musubix-code-generation
設計仕様からコード生成ガイド。実装・機能作成に使用。
от nahisaho★ 15 звёзд на GitHub
Установить musubix-code-generation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Generation Skill
設計ドキュメントからコードを生成し、トレーサビリティを維持。
Supported Languages
| 言語 | 拡張子 | サポート機能 |
|---|---|---|
| TypeScript | .ts |
フル型サポート |
| JavaScript | .js |
ES6+ modules |
| Python | .py |
型ヒント |
| Java/Go/Rust/C# | 各種 | Interface/Struct生成 |
WHEN → DO
| WHEN | DO |
|---|---|
| コード生成前 | DES-*とREQ-*の存在確認 |
| 実装開始 | テスト先行(Article III) |
| コード作成 | @see タグでトレーサビリティ追加 |
Traceability Comment
/**
* UserService - Handles user operations
* @see REQ-INT-001 - Neuro-Symbolic Integration
* @see DES-INT-001 - Integration Layer Design
*/
export class UserService { ... }
Design Pattern Templates
| パターン | 用途 |
|---|---|
| Singleton | グローバルインスタンス管理 |
| Factory | 型に応じたオブジェクト生成 |
| Repository | データアクセス抽象化 |
Repository Pattern
/** @pattern Repository */
export interface Repository<T> {
findById(id: string): Promise<T | null>;
save(entity: T): Promise<T>;
delete(id: string): Promise<void>;
}
CLI
npx musubix codegen generate <design-file> # コード生成
npx musubix codegen generate <file> --full-skeleton # 4ファイル生成
npx musubix codegen generate <file> --with-tests # テスト付き
npx musubix codegen status <spec> # ステータス遷移コード
npx musubix codegen status <spec> --enum # enum型
npx musubix codegen analyze <file> # 静的解析
npx musubix codegen security <path> # セキュリティスキャン
Quality Checks (Article IX)
- No
anytypes - @see references on all classes/functions
- Test coverage ≥ 80%
-
npm run lintpasses -
npm run buildsucceeds
出力例
┌─────────────────────────────────────────┐
│ Code Generated │
├─────────────────────────────────────────┤
│ Source: DES-AUTH-001 │
│ Files: 4 generated │
│ Patterns: Repository, Service │
│ Coverage: @see tags added │
│ Tests: test stubs generated │
└─────────────────────────────────────────┘
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл musubix-code-generation?
設計仕様からコード生成ガイド。実装・機能作成に使用。
Как установить скилл musubix-code-generation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл musubix-code-generation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…