一键导入
subagent-bootstrap
Use when a task needs specialist delegation, run-bundle bootstrap, explicit stage subagents, or Codex implementation routing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a task needs specialist delegation, run-bundle bootstrap, explicit stage subagents, or Codex implementation routing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when agent-side working philosophy, interaction lessons, task retrospectives, repeated routing misses, missed skill invocation, or recurrence-prevention feedback should be logged without mixing them into user preferences.
Use when exploring, refactoring, or choosing an algorithm under proof obligations; builds JIT-canonical IR, lemma dependency graphs, algorithmic blocker frontiers, and algorithm-change guidance before handing terminal proof work to formal-proof-workflow.
Use when designing, implementing, reviewing, or diagnosing numerical optimization, solvers, preconditioners, convergence, gradients, Jacobians, Hessians, KKT conditions, tolerances, or optimization benchmarks; fixes the mathematical and validation contract before code or experiment changes.
Use when a change needs oracle/spec-risk classification or resilient, adversarial static test design, including behavior contracts, oracle choice, property/metamorphic candidates, mutation adequacy, or brittle-test diagnosis.
Use when updating AgentCanon itself, refreshing a vendored vendor/agent-canon submodule pin, repairing AgentCanon root runtime views, applying AgentCanon update TODOs, or routing local AgentCanon source commits through a proper AgentCanon branch and PR before parent pin updates.
Use when accumulated AgentCanon eval evidence is missing, stale, or failing; runs registered eval producers, validates eval family accumulation, and stores evidence through the log archive instead of hand-writing reports.
| name | subagent-bootstrap |
| description | Use when a task needs specialist delegation, run-bundle bootstrap, explicit stage subagents, or Codex implementation routing. |
agents/skills/subagent-bootstrap.md route before spawning or recording waves.Use the command packet before applying this skill's workflow:
python3 tools/agent_tools/skill_tool_commands.py show --skill subagent-bootstrap --format text
Execute the required and task-matching conditional commands that the packet prints.
agents/skills/subagent-bootstrap.md.agents/canonical/CODEX_SUBAGENTS.md.agents/internal-routines/subagent-startup.md before preparing
subagent-only startup or internal skill route handoffs. Treat _... startup
names as private route labels, not public skill IDs.agents/COMMUNICATION_PROTOCOL.md as the single owner of handoff and
capsule fields. This skill owns launch timing, role selection, wave ledger,
authorization, and closeout mechanics; it does not create a second capsule
schema.requirements_organizer / explorer before /goal is finalized when the exact objective is not yet fixed.goal.md is parseable, the Codex goal view is mirrored or queued, and Plan-mode evidence mapping exists.goal.md block. After the run bundle and pre-handoff investigation packet derive dependency-expanded handoff scope, validation plan, and tool-rejection preflight evidence, launch or schedule spark_worker / worker; read-only waves are setup evidence, not a substitute for the implementation handoff. The parent remains orchestrator / integrator and does not become the default implementer.spawn_agent, do not silently spawn even read-only pre-goal agents. Record the fan-out plan, handoff packets, and PRE_GOAL_SUBAGENT_AUTHORIZATION=required in the run bundle, then wait for or request authorization.--task-id so agents/task_catalog.yaml expands default specialists and review packs.IMPLEMENTATION_CODEX_AGENTS.STANDARD_AGENT_WAVE_SEQUENCE=plan,review,edit.
Each wave handoff records plan artifact, review gate decision, and edit
handoff evidence in that order through team_manifest.yaml
run.standard_wave_sequence.DEFAULT_QUALITY_CHECKS=enabled,
DEFAULT_QUALITY_CHECK_ROLES, and DEFAULT_QUALITY_CHECK_AGENT_TYPES.
Review and edit handoffs include team_manifest.yaml
run.default_quality_check_policy.IMPLEMENTATION_CODEX_AGENTS starts with spark_worker,worker, send only approved, low-risk implementation slices derived from the Abstract Design Frame and design trace to spark_worker first..codex/agents/<role>.toml before choosing model / reasoning for a spawned role.spark_worker / worker; parent owns the handoff packet, integration order, review gate, and final responsibility.spark_worker eligible only when it is derived from the Abstract Design Frame and is one file or one abstraction unit, public interface unchanged, no dependency change, no specification interpretation, and locally testable.allowed_paths, relevant canon sections, explicit do_not_read surfaces, and expected output schema, with context artifacts referenced through the protocol-owned capsule. Use /workspace or the repo root only as workspace identity, then derive handoff scope from route seed, responsibility search, reuse survey, stale-surface scan, and dependency expansion. For implementation handoff, seed allowed_paths from implementation-surface router PRIMARY_PATHS and do_not_read from FORBIDDEN_PATHS; if the router is unavailable, pass deterministic fallback output as a provisional source-packet seed or record router_unavailable_blocker before handoff. Fallback routing reaches fallback_exit_status through canonical_rerun_pass, durable_blocker_or_issue, or explicit_approval_evidence.Fresh Subagent Context Capsule through agents/COMMUNICATION_PROTOCOL.md and its Context Visibility Contract. Keep full packets, raw stdout, raw logs, broad chat summaries, and full dashboards in local/tool context by path instead of pasting them into the prompt.team_manifest.yaml provides
run.subagent_prompt_packet.subagent_startup_route, carry that structural
route field into the handoff packet and downstream review result. Do not
convert it into prompt keyword routing, public ACTIVE_SKILLS, or a
duplicated capsule schema.Target Binding Packet in the capsule before spawning. If the
packet is incomplete, repair the capsule or source packet first. A subagent's
unchecked theorem sketch, type-incompatible formula, local counterexample, or
code suggestion is not an implementation instruction until the parent has run
the stated checker / validation route and confirmed it targets the same public
root.allowed_paths from dependency headers when possible: expand edited paths, search hits, checker findings, or changed files through run_repo_dependency_review.sh and pass dependency_edit_scope.txt / dependency_graph.tsv instead of only a hand-written file list.model and model_reasoning_effort before escalating to the parent or a frontier role.worker.WRITE_SUBAGENT_AUTHORIZATION=required or the gate-specific blocker in the run bundle and stop expanding read-only analysis for that slice. Parent-direct is allowed only as a recorded exception with blocked route, exception rationale, owner boundary, and targeted validation.team_manifest.yaml fixes dependency order, wave plan, disjoint write scope, integration order, and review gate; colliding writers are serialized into later waves in the current checkout instead of split into separate worktrees.run.delegated_spawn_policy instead of flattening every role into one parent wave. Only sibling waves with disjoint input packets, write scopes, validation routes, and review gates may run together.Finding Route Packet from agents/skills/agent-log-analysis.md. Use finding_class to choose the destination owner and instance_partition to shard same-role instances by repo_key, hook_family, skill_name, workflow_name, issue_id, or path scope.<role_type>:<repo_key>:<finding_class>:<partition>:<seq> and give each instance its own structured evidence cell, allowed paths, expected output, validation route, and review gate.python3 tools/agent_tools/workflow_monitor.py --subagent-wave ...; delegated child waves must include remaining_spawn_budget.unverified_with_next_witness, connection_unconnected, or bridge gaps as user-facing stopping points while the next frontier can still be worked.failing_contract, observation_level, cause_classification,
intent_preservation, and evidence in the handoff, and forbid pass-only
simplification, revert, intended behavior/test deletion, oracle weakening,
or validation downscope.send_input a new task into subagents from a previous request.same_active_task_delta, scope_or_contract_change, or new_task; record a checkpoint in the run bundle, Agent Wave Ledger, and workflow monitoring; then either send the updated packet to the still-valid run-local agent or spawn a fresh follow-up wave when scope, allowed paths, owner, or review gate changed.team_manifest.yaml run.subagent_lifecycle_policy in every subagent handoff prompt, especially fresh_subagents_required: true and reuse_for_new_task: forbidden.wait_agent times out, returns empty status, or a run-local subagent has no final response at a wave decision point, record subagent_no_return_investigation before closing, replacing, or escalating that agent. Include agent id, wave id, wait command and timeout, last known status, last workflow-monitor event, runtime or tool error, log / dashboard pointers, cause hypothesis, and selected action: continue_wait, status_probe_same_task, close_and_replace_fresh_wave, or escalate_runtime_issue.python3 tools/agent_tools/tool_rejection_preflight.py --root . <planned-edit-paths> and include TOOL_REJECTION_PREDICTED_GATE lines, rejection_preflight_command, and the gate-specific repair plan in the handoff. Treat hook runtime, skill mirror sync, tool catalog, agent protocol convention, and log-surface inventory gates as implementation blockers until the repair command is run or explicitly scheduled in the same handoff.subagents_closed=yes plus Subagent Lifecycle Evidence in closeout_gate.md.