用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rdmptv/AdbAutoPlayer --skill moai-toolkit-codegen命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | moai-toolkit-codegen |
| description | AI-powered code generation toolkit (UV scripts migrated to builder-skill-uvscript) |
| version | 1.0.0 |
| modularized | true |
| scripts_enabled | false |
| scripts_migration | {"date":"2025-11-30T00:00:00.000Z","new_location":"builder-skill-uvscript","reason":"UV script consolidation with unified builder-skill_ prefix"} |
| last_updated | "2025-11-30T00:00:00.000Z" |
| compliance_score | 85 |
| auto_trigger_keywords | ["codegen","scaffold","generate","template","agent generation","skill generation"] |
| color | red |
⚠️ UV Script Migration Notice
All 4 UV CLI scripts have been consolidated into the
builder-skill-uvscriptskill on 2025-11-30.New script locations:
builder-skill_generate_agent.py(previously generate_agent.py)builder-skill_generate_skill.py(previously generate_skill.py)builder-skill_generate_command.py(previously generate_command.py)builder-skill_scaffold_test.py(previously scaffold_test.py)- Find all scripts in:
.claude/skills/builder-skill-uvscript/scripts/Usage:
uv run .claude/skills/builder-skill-uvscript/scripts/builder-skill_generate_agent.pyThis skill retains its code generation knowledge and patterns.
AI-Powered Code Generation Toolkit
What It Does: Enterprise-grade code scaffolding system that generates MoAI agents, skills, commands, and tests with Context7 latest patterns, TRUST 5 validation, and IndieDevDan UV CLI script standards.
Core Capabilities:
Progressive Disclosure Workflow:
User Request → SKILL.md (200 tokens) → Script --help (0 tokens) → Execute
↓ ↓ ↓ ↓
Dormant Quick Check Full Documentation Implementation
When to Use:
This skill includes 4 UV CLI scripts following IndieDevDan pattern (PEP 723, dual output, 200-300 lines each).
Purpose: Generate MoAI agent YAML files with complete frontmatter following official agent standards.
Usage:
# Generate agent with name and description
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_agent.py \
--name expert-api \
--description "API design and implementation specialist"
# Generate with custom tools
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_agent.py \
--name manager-workflow \
--description "Workflow orchestration manager" \
--tools "Read,Write,Edit,Bash" \
--model sonnet
# JSON output mode
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_agent.py \
--name expert-database \
--description "Database design specialist" \
--json
Features:
Exit Codes: 0 (success), 1 (warning), 2 (error), 3 (critical)
Purpose: Generate complete skill structure with SKILL.md + scripts/ directory following IndieDevDan patterns.
Usage:
# Generate basic skill
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_skill.py \
--name moai-connector-api \
--description "REST API client generation toolkit"
# Generate with script templates
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_skill.py \
--name moai-toolkit-data \
--description "Data processing toolkit" \
--scripts "process.py,transform.py,validate.py"
# Full generation with keywords
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_skill.py \
--name moai-library-testing \
--description "Testing utilities" \
--keywords "test,testing,pytest,vitest" \
--json
Features:
Exit Codes: 0 (success), 1 (warning), 2 (error), 3 (critical)
Purpose: Generate slash command .md files with proper frontmatter and workflow definitions.
Usage:
# Generate basic command
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_command.py \
--name analyze-code \
--description "Analyze code quality and complexity"
# Generate with allowed tools
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_command.py \
--name deploy-app \
--description "Deploy application to production" \
--tools "Bash,Read,Write"
# Generate with arguments
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_command.py \
--name review-pr \
--description "Review pull request" \
--args "pr-number" \
--json
Features:
Exit Codes: 0 (success), 1 (warning), 2 (error), 3 (critical)
Purpose: Auto-generate test files (pytest/vitest) from existing source code with comprehensive test coverage.
Usage:
# Generate pytest tests
uv run .claude/skills/moai-toolkit-codegen/scripts/scaffold_test.py \
--source src/user_service.py \
--framework pytest
# Generate vitest tests
uv run .claude/skills/moai-toolkit-codegen/scripts/scaffold_test.py \
--source src/components/Button.tsx \
--framework vitest
# Generate with custom output path
uv run .claude/skills/moai-toolkit-codegen/scripts/scaffold_test.py \
--source src/api/client.py \
--output tests/api/test_client.py \
--framework pytest \
--json
Features:
Exit Codes: 0 (success), 1 (warning), 2 (error), 3 (critical)
Design Principles:
Integration Points:
All 4 scripts follow 13 IndieDevDan rules documented in builder-workflow.md:
✅ Size Constraints: 200-300 lines target (max 500)
✅ ASTRAL UV: PEP 723 # /// script dependency blocks
✅ Directory Organization: Flat scripts/ directory
✅ Self-Containment: Embedded HTTP clients, no shared imports
✅ CLI Interface: Click framework, --help, --json flags
✅ Structure: 9-section template (Shebang, Docstring, Imports, Constants, Project Root, Data Models, Core Logic, Formatters, CLI, Entry Point)
✅ Dependency Management: 0-3 packages, minimum version pinning
✅ Documentation: Google-style docstrings, comprehensive --help
✅ Testing: Basic unit tests (5-10 per script)
✅ Single-File: No multi-file dependencies
✅ Error Handling: Dual-mode errors (human + JSON)
✅ Configuration: Environment variables, no hardcoded secrets
✅ Progressive Disclosure: 0-token dormant, SKILL.md listing
# 1. Generate a new agent
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_agent.py \
--name expert-api --description "API specialist"
# 2. Generate a new skill
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_skill.py \
--name moai-connector-rest --description "REST API toolkit"
# 3. Generate a slash command
uv run .claude/skills/moai-toolkit-codegen/scripts/generate_command.py \
--name analyze-performance --description "Performance analysis"
# 4. Generate tests for existing code
uv run .claude/skills/moai-toolkit-codegen/scripts/scaffold_test.py \
--source src/user.py --framework pytest
Version: 1.0.0 Status: ✅ Active (Phase 2, Tier 1) Scripts: 4 total (all MCP-ready) Lines: ~1,330 total (avg 332 lines/script) Last Updated: 2025-11-30