一键导入
subagent-orchestration
Use when designing, implementing, or debugging sub-agent handoff workflows, model routing, telemetry, or admin-panel agent wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when designing, implementing, or debugging sub-agent handoff workflows, model routing, telemetry, or admin-panel agent wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Skill evaluation framework, self-evolving agent loop, multi-agent SDLC orchestration, and tool-use optimization for automated quality gates.
Use plain Git for local history, branches, pushes, and Hostinger deployment checkouts.
Use when editing owner/admin pages, CRUD forms, media library, environment editor, permissions, audit log, integrations, or admin navigation.
Use when editing PHP controllers, services, JSON persistence, auth, support assistant context, wallet, orders, reviews, media, or audit behavior.
Use bapXaura CLI for ALL file/content/db operations. Never use raw shell/edit/write/find/grep tools directly.
Use when editing Hostinger deployment, Git auto-deploy, environment, permissions, cron, or production setup documentation.
| type | skill |
| name | subagent-orchestration |
| description | Use when designing, implementing, or debugging sub-agent handoff workflows, model routing, telemetry, or admin-panel agent wiring. |
| Source | Key Pattern | Handoff Mechanism |
|---|---|---|
| OpenAI Agents SDK | Triage → specialist handoff; agents-as-tools | Tool-based handoff; LLM decides transfer |
| Anthropic/Claude | Orchestrator-worker; verification subagent | Agent tool; markdown-defined agents |
| Google ADK/Gemini | SequentialAgent, ParallelAgent, LoopAgent | sub_agents param; @agent syntax; A2A protocol |
| OpenCode | Task tool dispatch; markdown-defined agents | task() with subagent_type; fresh context |
| GitHub Actions | OrchestratorOps; workflow_dispatch fan-out | Job delegation via needs/matrix |
| MCP Community | AgentHandoff JSON packets; Sub-Agent MCP | Structured handoff files; Streamable HTTP |
From AGENTS.md: Chain, Not Parallel — sequential handoff only:
Issue → handoff JSON → CTO → Worker → evidence → Reviewer → findings → CTO
Sub-agents should use the most cost-effective model for their task. Configured from the admin panel via MySQL secrets table (Google AI endpoint, Gemini API key, model name).
| Role | Recommended Model | Rationale |
|---|---|---|
| CTO (Orchestrator) | Gemini 2.5 Pro / Claude Opus | Planning, synthesis, routing decisions |
| Worker (Implementation) | Gemini 2.5 Flash / Claude Sonnet | Fast execution, good at code tasks |
| Reviewer (Verification) | Gemini 2.5 Flash | Cheap verification with structured rubric |
Model selection is read from the encrypted app_secrets record in remote
MySQL at runtime:
agent_model: model ID, default gemma-4-31b-itapi_endpoint: provider base URLagent_api_key: authentication keyThe admin panel (/admin) has a built-in agent interface that:
.agents/temp/The admin agent wires to the AI model endpoint configured in Admin → Integrations. It runs as a PHP controller action that:
Each cycle records to .agents/ops/telemetry.json with enriched fields:
{
"id": "cycle-YYYY-MM-DD-NNN",
"started": "ISO8601",
"completed": "ISO8601",
"duration_minutes": 0,
"model_used": "gemini-2.5-flash",
"api_endpoint": "https://generativelanguage.googleapis.com/v1/models/",
"total_issues": 0,
"closed_issues": 0,
"objectives_completed": 0,
"handoffs_used": 0,
"files_changed": 0,
"tests_passed": "0/0",
"gaps": 0,
"errors": 0,
"sub_agents_used": 0,
"sub_agent_parallel": 0,
"sub_agent_failures": 0,
"tokens_input": 0,
"tokens_output": 0,
"cost_estimate_usd": 0.0,
"score": 0
}
Score formula: (closed_issues/total_issues) × (1 - errors/objectives) × max(0.5, 1 - duration_minutes/240) × 100
Goal: score ≥ 90 per cycle. If score < 70, the workflow needs optimization.
bapXaura map + bapXaura schema list before any actionbapXaura handoff next <issue> to load objectivesbapXaura CLI.agents/temp/ for user-provided attachmentsAll coding agents (OpenCode, Claude Code, Codex, etc.) treat .agents/temp/ as the standard inbox:
.agents/temp/ within this project.agents/temp/ to understand the user's visual requestThis standardizes attachment handling across all coding agent types.
The site is hosted on Hostinger shared hosting with Git auto-deploy:
bapXaura ci)workflow_dispatch on GitHub Actions for long-running taskssecrets tablebapXaura write file