How sarma45/skillhub works
AI Engineering Cockpit guides a person from repository import and editable repository facts through task framing, versioned plan approval, isolated execution, evidence-backed review, and a gated pull-request draft. A durable worker orchestrates repository indexing, planning, runs, and security scans; policy and contracts bound the workflow. Separate capabilities cover approved project memory, context assembly, browser verification, model routing, skill extraction/catalog, and quality evaluation. The worker and selected routes are sampled; other capability links reflect README documentation, so uncertain internal call wiring is omitted.
Main entry points: main.ts Job worker · v1 HTTP API · index.ts Cockpit database · app-layer.ts Application layer
Components 24
Workspace UI and API
- Cockpit UI
apps/web/src/app - HTTP API
apps/web/src/app/api/v1 - Application layer
apps/web/src/server/app-layer.ts
Engineering workflow
- Job worker
apps/worker/src/main.ts - Repository mapping
services/repo-parser/src/index.ts - Plan generation
services/planning-service/src/index.ts - Run execution
services/execution-engine/src/engine.ts - Isolated workspace
services/execution-engine/src/workspace.ts
Capabilities and integrations
- Context assembly
services/context-service/src/index.ts - Project memory
services/memory-service/src/index.ts - Browser verification
services/browser-service/src/index.ts - Model routing
services/routing-service/src/index.ts - Model gateway
packages/model-gateway/src/index.ts - Quality evaluation
services/evaluation-service/src/index.ts - Security scanning
services/security-service/src/index.ts - Skill extraction
services/extraction-service/src/index.ts - Skill catalog
services/skill-registry/src/index.ts
Policy and persistence
- Safety policy
packages/policy/src/index.ts - Domain contracts
packages/contracts/src/index.ts - Cockpit database
packages/db/src/index.ts
Other components
- Engineer
- Model providers
- Local browser target
- Safe-lab fixture
security-fixtures/vulnerable-app/server.js
Connections 29
- Engineer → Cockpit UI: uses
- Cockpit UI → HTTP API: requests
- HTTP API → Application layer: dispatches
- Application layer → Cockpit database: reads/writes
- Application layer → Job worker: queues jobs
- Job worker → Cockpit database: claims jobs
- Job worker → Repository mapping: builds map
- Job worker → Cockpit database: stores map
- Job worker → Context assembly: assembles context
- Job worker → Plan generation: generates plan
- Job worker → Run execution: runs plan
- Run execution → Isolated workspace: uses workspace
- Run execution → Safety policy: redacts receipts
- Job worker → Cockpit database: stores run events
- Job worker → Project memory: records lessons
- Job worker → Quality evaluation: evaluates changes
- Job worker → Security scanning: runs scans
- Security scanning → Safe-lab fixture: scans locally
- HTTP API → Browser verification: creates captures
- Browser verification → Local browser target: verifies
- HTTP API → Skill extraction: extracts skills
- Skill extraction → Skill catalog: proposes skills
- HTTP API → Skill catalog: lists catalog
- Job worker → Model gateway: creates tool gateway
- Model gateway → Model providers: routes requests
- Model routing → Model providers: selects provider
- Context assembly → Project memory: includes memories
- HTTP API → Safety policy: enforces boundaries
- HTTP API → Domain contracts: validates payloads