ai 技能规划
- 作者仓库星标 0
- 作者仓库 skills-registry
AI Agent Engineer
Expert guidance for engineering and improving AI agents in the IdeaFlow multi-agent system.
Domain Scope
This skill covers the ai-agent-engineer domain within IdeaFlow:
| Area | Files | Purpose |
| ------------------- | ------------------------------------------------------------ | --------------------------------------- | ----------------------------- | --------------------- |
| Agent Configuration | .opencode/agents/CMZ.json, .opencode/oh-my-opencode.json | Agent definitions, models, capabilities |
| YH | | Skills Library | .opencode/skills/*/SKILL.md | 33 specialized skills |
| Agent Guidelines | docs/agent-guidelines.md | 10 core principles, workflows |
| System Integration | opencode.json, AGENTS.md | CLI config, documentation |
Agent Architecture
Primary Orchestrator: CMZ
CMZ (Cognitive Meta-Z) is the main orchestrating agent with three core capabilities:
- Self-Heal: Detect errors, diagnose root cause, implement recovery
- Self-Learn: Integrate feedback, analyze outcomes, build knowledge
- Self-Evolve: Expand capabilities, optimize performance, meta-improve
Specialized Agents (OhMyOpenCode)
| Agent | Model | Purpose |
|---|---|---|
| Sisyphus | minimax-m2.5-free | Main orchestrator, relentless execution |
| Hephaestus | glm-4.7-free | Autonomous deep worker |
| Oracle | minimax-m2.5-free | Architecture, debugging, reasoning |
| Librarian | glm-4.7-free | Documentation, exploration |
| Explore | glm-4.7-free | Fast codebase search |
Categories
| Category | Model | Use Case |
|---|---|---|
| visual-engineering | glm-4.7-free | UI/Frontend work |
| ultrabrain | minimax-m2.5-free | Complex logic, architecture |
| quick | minimax-m2.1-free | Fast, simple tasks |
| deep | minimax-m2.5-free | Thorough analysis |
Delegation Patterns
When to Delegate
Task Type → Delegate To
─────────────────────────────────────
Codebase exploration → explore (background)
Documentation lookup → librarian (background)
Complex reasoning → oracle (blocking)
UI/Frontend work → visual-engineering category
Quick fixes → quick category
Delegation Commands
# Background exploration (parallel)
task(subagent_type="explore", run_in_background=true, prompt="...")
# Blocking consultation
task(subagent_type="oracle", run_in_background=false, prompt="...")
# Category delegation
task(category="visual-engineering", load_skills=["frontend-ui-ux"])
Configuration Management
Key Files
| File | Purpose |
|---|---|
opencode.json |
CLI config, model selection, MCP servers |
.opencode/oh-my-opencode.json |
Agent definitions, categories, hooks |
.opencode/agents/CMZ.json |
CMZ-specific configuration |
Adding a New Agent
- Define in
.opencode/oh-my-opencode.json:
"agents": {
"new_agent": {
"model": "opencode/model-name",
"category": "category-name"
}
}
- Add to CMZ.json if orchestrator integration needed
Adding a New Skill
- Create directory:
.opencode/skills/skill-name/ - Create
SKILL.mdwith frontmatter (name, description) - Add references in
references/if needed - Follow skill-creator guidelines for structure
Self-* Capabilities
Self-Heal Implementation
Error → Detect → Diagnose → Recover → Learn
- Detect: Monitor for exceptions, failed tests, CI failures
- Diagnose: Use systematic-debugging skill, analyze stack traces
- Recover: Implement fix, verify with tests
- Learn: Document in memory, prevent recurrence
Self-Learn Implementation
Feedback → Analyze → Extract → Apply
- Collect: User feedback, test outcomes, performance metrics
- Analyze: Identify patterns, successful approaches
- Extract: Generalize into reusable patterns
- Apply: Update skills, configs, documentation
Self-Evolve Implementation
Evaluate → Identify → Implement → Verify
- Evaluate: Current capabilities vs requirements
- Identify: Gaps, optimization opportunities
- Implement: New skills, improved delegation
- Verify: Tests pass, metrics improve
Agent Improvement Workflow
RESEARCH → PLAN → IMPLEMENT → VERIFY → SELF-REVIEW → DELIVER
- RESEARCH: Explore codebase, gather context
- PLAN: Create detailed work breakdown
- IMPLEMENT: Make atomic changes
- VERIFY: Run tests, lint, type-check
- SELF-REVIEW: Check against requirements
- DELIVER: Create PR with proper labeling
Verification Checklist
- All tests pass (
npm test) - Lint passes with zero warnings (
npm run lint) - Type check passes (
npm run type-check) - Build succeeds (
npm run build) - Documentation updated if needed
- PR has
ai-agent-engineerlabel
Common Tasks
Improve Agent Configuration
- Read current config from
.opencode/oh-my-opencode.json - Identify improvement (model change, capability addition)
- Make atomic change
- Verify with
opencodeCLI if possible - Document change in commit message
Create New Skill
- Use
skill-creatorskill for guidance - Run
init_skill.pyfrom skill-creator - Write SKILL.md with clear frontmatter
- Add references for detailed content
- Validate and test
Fix Agent Issue
- Reproduce issue
- Use
systematic-debuggingskill - Implement minimal fix
- Add regression test
- Verify fix
Reference Files
For detailed patterns and examples, see:
- Agent Architecture Details: Deep dive into agent system internals, model selection, and advanced patterns
Anti-Patterns
| Anti-Pattern | Why Bad | Instead |
|---|---|---|
| Direct main commits | Bypasses review | Use feature branches |
| Skipping tests | Regressions | Always run tests |
| Large atomic changes | Hard to review | Small, focused changes |
| Ignoring CI failures | Ships bugs | Fix all failures |
| Undocumented changes | Knowledge loss | Update documentation |
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: cpa03/ai-first — distributed by TomeVault.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 This skill covers the ai-agent-engineer domain within IdeaFlow: Area · Files · Purpose Agent Configuration · .opencode/agents/CMZ.json, .opencode/oh-my-opencode.json · Agent definitions, models, capabilities
Agent Architecture
CMZ (Cognitive Meta-Z) is the main orchestrating agent with three core capabilities: Self-Heal: Detect errors, diagnose root cause, implement recovery Self-Learn: Integrate feedback, analyze outcomes, build knowledge
Agent · Model · Purpose Sisyphus · minimax-m2.5-free · Main orchestrator, relentless execution Hephaestus · glm-4.7-free · Autonomous deep worker
Category · Model · Use Case visual-engineering · glm-4.7-free · UI/Frontend work ultrabrain · minimax-m2.5-free · Complex logic, architecture
Delegation Patterns
# AI Agent Engineer
Expert guidance for engineering and improving AI agents in the IdeaFlow multi-agent system.
## Domain Scope
This skill covers the ai-agent-engineer domain within IdeaFlow:
| Area | Files | Purpose |
| ------------------- | ------------------------------------------------------------ | --------------------------------------- | ----------------------------- | --------------------- |
| Agent Configuration | `.opencode/agents/CMZ.json`, `.opencode/oh-my-opencode.json` | Agent definitions, models, capabilities |
| YH | | Skills Library | `.opencode/skills/*/SKILL.md` | 33 specialized skills |
| Agent Guidelines | `docs/agent-guidelines.md` | 10 core principles, workflows |
| System Integration | `opencode.json`, `AGENTS.md` | CLI config, documentation |
## Agent Architecture
### Primary Orchestrator: CMZ
CMZ (Cognitive Meta-Z) is the main orchestrating agent with three core capabilities:
1. **Self-Heal**: Detect errors, diagnose root cause, implement recovery
2. **Self-Learn**: Integrate feedback, analyze outcomes, build knowledge
3. **Self-Evolve**: Expand capabilities, optimize performance, meta-improve
### Specialized Agents (OhMyOpenCode)
| Agent | Model | Purpose |
| ---------- | -------------- | --------------------------------------- |
| Sisyphus | minimax-m2.5-free | Main orchestrator, relentless execution |
| Hephaestus | glm-4.7-free | Autonomous deep worker |
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Domain Scope → Agent Architecture → Primary Orchestrator: CMZ → Specialized Agents (OhMyOpenCode) → Categories → Delegation Patterns
要点 -> Self-Heal · Self-Learn · Self-Evolve · Detect · Diagnose · Recover · Learn · Collect
文件/命令 -> .opencode/agents/CMZ.json · .opencode/oh-my-opencode.json · .opencode/skills//SKILL.md · docs/agent-guidelines.md · opencode.json · AGENTS.md · .opencode/skills/skill-name/ · references/
内容 SHA-256 -> beca57e4b79a
方法与流程
适用与边界
原文中的明确线索
.opencode/agents/CMZ.json、.opencode/oh-my-opencode.json、.opencode/skills//SKILL.md、docs/agent-guidelines.md、opencode.json、AGENTS.md、.opencode/skills/skill-name/、references/