ai-agent-engineer
- Repo stars 0
- Author repo 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.
- Fluxly category
- AI
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @tomevault-io · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Guided setup
- External API key
- No requirement detected
- Detected OS requirements
- macOS
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Write / modify
- Shell exec
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. 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 |
… Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Domain Scope → Agent Architecture → Primary Orchestrator: CMZ → Specialized Agents (OhMyOpenCode) → Categories → Delegation Patterns
terms -> Self-Heal · Self-Learn · Self-Evolve · Detect · Diagnose · Recover · Learn · Collect
files/cmd -> .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/
body sha256 -> beca57e4b79a
Decide Fit First
Design Intent
How To Use It
Boundaries And Review