moai-foundation-claude
Canonical Claude Code skill authoring kit covering agent Skills, sub-agent templates, custom slash commands, orchestration patterns, hooks, memory, settings…
от diegosouzapw★ 68 звёзд на GitHub
Установить moai-foundation-claude в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
name: skill-name description: One-line description (max 200 chars) version: 1.0.0 updated: 2025-11-26 status: active
Quick Reference (30 seconds)
Implementation Guide (5 minutes)
Advanced Implementation (10+ minutes)
Pattern 2: Sub-agent Delegation
```python
# Sequential delegation
result1 = Task(subagent_type="workflow-spec", prompt="Analyze")
result2 = Task(subagent_type="code-backend", prompt="Implement", context=result1)
# Parallel delegation
results = await Promise.all([
Task(subagent_type="code-backend", prompt="Backend"),
Task(subagent_type="code-frontend", prompt="Frontend")
])
Pattern 3: Custom Command with Hooks
{
"hooks": {
"PreToolUse": [{
"matcher": "Write",
"hooks": [{"type": "command", "command": "validate-write"}]
}]
}
}
MoAI-ADK Skills & Sub-agents Directory
Quick Access Patterns
Core Skills: Skill("moai-foundation-claude") - This comprehensive authoring kit
Agent Creation: Task(subagent_type="agent-factory") - Create standardized sub-agents
Skill Creation: Task(subagent_type="skill-factory") - Create compliant skills
Quality Gates: Task(subagent_type="quality-gate") - TRUST 5 validation
Documentation: Task(subagent_type="docs-manager") - Generate technical docs
Key Specialized Skills:
moai-lang-python- Python 3.13+ with FastAPI, async patternsmoai-lang-typescript- TypeScript 5.9+ with React 19, Next.js 16moai-domain-backend- Modern backend architecture patternsmoai-domain-frontend- React 19, Next.js 15, Vue 3.5 frameworksmoai-quality-security- OWASP Top 10, threat modelingmoai-essentials-debug- AI-powered debugging with Context7
Essential Sub-agents:
spec-builder- EARS format specification generationtdd-implementer- RED-GREEN-REFACTOR TDD executionsecurity-expert- Security analysis and validationbackend-expert- Backend architecture and API developmentfrontend-expert- Frontend UI implementationperformance-engineer- Performance optimization and analysis
Essential Implementation Patterns
Command→Agent→Skill Orchestration
Sequential Workflow:
# Phase 1: Analysis → spec-builder → analysis
analysis = Task(subagent_type="spec-builder", prompt="Analyze: $ARGUMENTS")
# Phase 2: Implementation → tdd-implementer → code + tests
implementation = Task(subagent_type="tdd-implementer", prompt="Implement: $analysis.spec_id")
# Phase 3: Validation → quality-gate → approval
validation = Task(subagent_type="quality-gate", prompt="Validate: $implementation")
Parallel Development:
# Execute independent tasks simultaneously
results = await Promise.all([
Task(subagent_type="backend-expert", prompt="Backend: $1"),
Task(subagent_type="frontend-expert", prompt="Frontend: $1"),
Task(subagent_type="docs-manager", prompt="Docs: $1")
])
# Integrate all results
Task(subagent_type="quality-gate", prompt="Integrate", context={"results": results})
Token Session Management
Independent 200K Sessions: Each Task() creates a new 200K token context
Task(subagent_type="backend-expert", prompt="Complex task") # 200K session
Task(subagent_type="frontend-expert", prompt="UI task") # New 200K session
File Reference Patterns
Parameter Handling:
- Positional:
$1,$2,$3 - All arguments:
$ARGUMENTS - File references:
@config.yaml,@path/to/file.md
Hook Integration
Pre/Post Tool Execution (see Hooks Guide):
{
"hooks": {
"PreToolUse": [{"matcher": "Bash", "hooks": [{"type": "command", "command": "validate-command"}]}],
"PostToolUse": [{"matcher": "Write", "hooks": [{"type": "command", "command": "backup-file"}]}]
}
}
Key Reference Guides
Comprehensive Documentation:
- Commands Guide - Complete command creation
- Hooks System - Event-driven automation
- Memory Management - Context persistence
- Settings Config - Configuration hierarchy
- IAM Permissions - Access control
- Complete Setup - Full configuration
Works Well With
- moai-core-agent-factory - For creating new sub-agents with proper standards
- moai-cc-commands - For creating custom slash commands
- moai-cc-hooks - For implementing Claude Code hooks
- moai-cc-configuration - For managing Claude Code settings
- moai-quality-gate - For validating code quality standards
- moai-essentials-debug - For debugging skill loading issues
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Grep - 05
Glob
Вложенные файлы
- metadata.json
FAQ
Что делает скилл moai-foundation-claude?
Canonical Claude Code skill authoring kit covering agent Skills, sub-agent templates, custom slash commands, orchestration patterns, hooks, memory, settings, and IAM permission rules aligned with official documentation.
Как установить скилл moai-foundation-claude?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл moai-foundation-claude запускает скрипты?
Нет, скилл состоит только из инструкций (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…