How atsu-adjoto007/universal-skills-hub works
Universal Skills Hub is an offline desktop manager for Agent Skills. Its main workflow is to scan configured agent folders, import selected Skills into a local library for parsing, classification, security review, duplicate detection and versioning, then organize them into packs and plan/apply synchronization to agent destinations. The desktop renderer invokes a whitelisted main-process API, which delegates product operations to the hub. The graph preserves the README’s other major capabilities, including backups and adapters. Some core connections are supported by the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: hub.js Hub coordinator · library.js Skill library · api.js Renderer API · fsutil.js Filesystem utilities
Components 22
Desktop interface
- Desktop UI
src/renderer/app.js - Electron main
src/main/main.js - Renderer API
src/main/api.js
Hub orchestration
- Hub coordinator
src/core/hub.js - Command-line client
src/cli/ush.js
Skill management
- Source detection
src/core/detector.js - Skill import
src/core/importer.js - Skill parser
src/core/skill-parser.js - Skill library
src/core/library.js - Classification
src/core/classifier.js - Security review
src/core/security.js - Duplicate analysis
src/core/duplicates.js - Version comparison
src/core/diff.js
Packs and delivery
- Packs and selection
src/core/packs.js - Synchronization
src/core/sync.js - Agent adapters
src/core/adapters/index.js - Backup and restore
src/core/backup.js - ZIP archives
src/core/archive.js
Local persistence
- Hub data store
src/core/store.js - Filesystem utilities
src/core/fsutil.js - Text matching
src/core/text.js
Other components
- Desktop user
Connections 41
- Desktop user → Desktop UI: uses
README.md - Desktop UI → Renderer API: requests operations
- Electron main → Renderer API: registers API
src/main/main.js - Electron main → Hub coordinator: initializes
src/main/main.js - Renderer API → Hub coordinator: delegates operations
src/main/api.js - Renderer API → Skill library: reads and edits
src/main/api.js - Renderer API → Packs and selection: manages packs
src/main/api.js - Renderer API → Synchronization: plans and runs
src/main/api.js - Renderer API → Agent adapters: lists adapters
src/main/api.js - Command-line client → Hub coordinator: uses
src/cli/ush.js - Hub coordinator → Hub data store: uses state
src/core/hub.js - Hub coordinator → Source detection: scans sources
src/core/hub.js - Hub coordinator → Skill import: imports Skills
src/core/hub.js - Hub coordinator → Skill library: manages library
src/core/hub.js - Hub coordinator → Packs and selection: proposes packs
src/core/hub.js - Hub coordinator → Duplicate analysis: checks duplicates
src/core/hub.js - Hub coordinator → Synchronization: coordinates sync
src/core/hub.js - Hub coordinator → Agent adapters: loads adapters
src/core/hub.js - Hub coordinator → Backup and restore: exports backups
src/core/hub.js - Hub coordinator → Filesystem utilities: uses utilities
src/core/hub.js - Hub coordinator → Text matching: matches text
src/core/hub.js - Source detection → Skill import: imports discoveries
src/core/detector.js - Source detection → Skill parser: parses folders
src/core/detector.js - Skill import → Skill parser: parses imports
src/core/importer.js - Skill import → ZIP archives: reads ZIP imports
src/core/importer.js - Skill library → Skill parser: parses Skills
src/core/library.js - Skill library → Classification: classifies Skills
src/core/library.js - Skill library → Security review: scans content
src/core/library.js - Skill library → Duplicate analysis: checks matches
src/core/library.js - Skill library → Version comparison: compares versions
src/core/library.js - Skill library → Filesystem utilities: copies files
src/core/library.js - Classification → Text matching: matches keywords
src/core/classifier.js - Duplicate analysis → Text matching: compares shingles
src/core/duplicates.js - Packs and selection → Text matching: scores keywords
src/core/packs.js - Synchronization → Agent adapters: installs Skills
src/core/sync.js - Synchronization → Version comparison: compares changes
src/core/sync.js - Synchronization → Filesystem utilities: backs up targets
src/core/sync.js - Backup and restore → ZIP archives: creates archives
src/core/backup.js - Backup and restore → Filesystem utilities: stores backup data
src/core/backup.js - Skill parser → Filesystem utilities: lists files
src/core/skill-parser.js - Hub data store → Filesystem utilities: persists data
src/core/store.js