Skills.MD
# Generate Subsystem Skills
This skill analyzes each subsystem in the LlamaFarm monorepo and generates specialized Claude Code skills for security, performance, and language-specific best practices.
## Usage
```
/generate-subsystem-skills
```
---
## What Gets Generated
### Shared Language Skills (4)
- `python-skills/` - Used by: server, rag, runtime, config, common
- `go-skills/` - Used by: cli
- `typescript-skills/` - Used by: designer, electron
- `react-skills/` - Used by: designer
### Subsystem-Specific Skills (8)
- `cli-skills/` - Cobra, Bubbletea patterns
- `server-skills/` - FastAPI, Celery, Pydantic patterns
- `rag-skills/` - LlamaIndex, ChromaDB patterns
- `runtime-skills/` - PyTorch, Transformers patterns
- `designer-skills/` - TanStack Query, Tailwind, Radix patterns
- `electron-skills/` - Electron IPC, security patterns
- `config-skills/` - Pydantic, JSONSchema patterns
- `common-skills/` - HuggingFace Hub patterns
---
## Generation Process
### Step 1: Read Registry
Load subsystem definitions from [subsystem-registry.md](subsystem-registry.md).
### Step 2: Generate Shared Language Skills
Launch sub-agents IN PARALLEL to generate:
1. **Python Skills Agent** - Analyze Python subsystems (server, rag, runtime, config, common), identify ideal patterns, generate `python-skills/`
2. **Go Skills Agent** - Analyze CLI subsystem, identify ideal Go patterns, generate `go-skills/`
3. **TypeScript Skills Agent** - Analyze designer and electron, identify ideal TS patterns, generate `typescript-skills/`
4. **React Skills Agent** - Analyze designer, identify ideal React 18 patterns, generate `react-skills/`
### Step 3: Generate Subsystem Skills
Launch sub-agents IN PARALLEL for each subsystem:
For each subsystem, the agent should:
1. Read the subsystem's dependency files (package.json, pyproject.toml, go.mod)
2. Analyze code patterns using Grep and Read
3. Generate SKILL.md that links to shared language skills
4. Generate framework-specific checklist files
5. Write all files to `.claude/skills/{subsystem}-skills/`
### Step 4: Report Summary
After all agents complete, report:
- Number of skills generated
- Total files created
- Any errors encountered
---
## Sub-Agent Prompt Templates
### For Shared Language Skills
```
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
```
### For Subsystem Skills
```
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.
```
---
## Key Principle
**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.
---
## Output Location
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
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「generate-subsystem-skills」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次