Generate specialized skills for each subsystem in the monorepo. Creates shared language skills and subsystem-specific checklists for high-quality AI code generation.
This skill analyzes each subsystem in the LlamaFarm monorepo and generates specialized Claude Code skills for security, performance, and language-specific best practices.
/generate-subsystem-skills
python-skills/ - Used by: server, rag, runtime, config, commongo-skills/ - Used by: clitypescript-skills/ - Used by: designer, electronreact-skills/ - Used by: designercli-skills/ - Cobra, Bubbletea patternsserver-skills/ - FastAPI, Celery, Pydantic patternsrag-skills/ - LlamaIndex, ChromaDB patternsruntime-skills/ - PyTorch, Transformers patternsdesigner-skills/ - TanStack Query, Tailwind, Radix patternselectron-skills/ - Electron IPC, security patternsconfig-skills/ - Pydantic, JSONSchema patternscommon-skills/ - HuggingFace Hub patternsLoad subsystem definitions from subsystem-registry.md.
Launch sub-agents IN PARALLEL to generate:
Python Skills Agent - Analyze Python subsystems (server, rag, runtime, config, common), identify ideal patterns, generate python-skills/
Go Skills Agent - Analyze CLI subsystem, identify ideal Go patterns, generate go-skills/
TypeScript Skills Agent - Analyze designer and electron, identify ideal TS patterns, generate typescript-skills/
React Skills Agent - Analyze designer, identify ideal React 18 patterns, generate react-skills/
Launch sub-agents IN PARALLEL for each subsystem:
For each subsystem, the agent should:
.claude/skills/{subsystem}-skills/After all agents complete, report:
You are generating a shared {LANGUAGE} skills directory for Claude Code.
Analyze these subsystems that use {LANGUAGE}:
{SUBSYSTEM_PATHS}
Your task:
1. Read key files to understand patterns used
2. When patterns vary, document the IDEAL approach (not inconsistencies)
3. Reference industry best practices
4. Generate files in .claude/skills/{LANGUAGE}-skills/
Files to generate:
- SKILL.md (overview, ~100 lines)
- patterns.md (idiomatic patterns)
- error-handling.md
- testing.md
- security.md
- {additional language-specific files}
Each checklist item should have:
- Description of what to check
- Search pattern (grep command)
- Pass/fail criteria
- Severity level
You are generating subsystem-specific skills for {SUBSYSTEM} in Claude Code.
Directory: {PATH}
Tech Stack: {TECH_STACK}
Links to: {SHARED_SKILLS}
Your task:
1. Read dependency files and key source files
2. Identify framework-specific patterns
3. Generate SKILL.md that links to shared language skills
4. Generate framework-specific checklists
Files to generate:
- SKILL.md (overview with links to shared skills)
- {framework}.md for each framework used
- performance.md (subsystem-specific optimizations)
Remember: Document IDEAL patterns, not existing inconsistencies.
Prescribe ideal patterns - When the codebase has inconsistent patterns, the generated skills should document the BEST practice according to industry standards, not codify existing inconsistencies.
All skills are written to .claude/skills/ with this structure:
.claude/skills/
āāā python-skills/ # Shared
āāā go-skills/ # Shared
āāā typescript-skills/ # Shared
āāā react-skills/ # Shared
āāā cli-skills/ # Subsystem
āāā server-skills/ # Subsystem
āāā rag-skills/ # Subsystem
āāā runtime-skills/ # Subsystem
āāā designer-skills/ # Subsystem
āāā electron-skills/ # Subsystem
āāā config-skills/ # Subsystem
āāā common-skills/ # Subsystem