AgentSkillsCN

run-factory-stage-a

根据蓝图调度提示与允许的写入权限,调度Intent Contractor(阶段A)执行Factory运行。

SKILL.md
--- frontmatter
name: run-factory-stage-a
description: Dispatch the Intent Contractor (Stage A) for a Factory run using the blueprint dispatch prompt and allowed writes.

Run Factory Stage A (Intent Contractor)

Trigger

User wants to execute Stage A for a Factory run (planning-only or execution-enabled). Run must already have KNOWLEDGE_LINT.txt PASS and raw_brief.md (and EXECUTION_MODE.txt) in run root.

Workflow

  1. Read docs/Factory/AgentArchitecture/STAGE_A_DISPATCH_PROMPT.md. Replace <RUN_ID> in the prompt body with the actual run ID.
  2. Ensure run has: raw_brief.md, EXECUTION_MODE.txt, KNOWLEDGE_LINT.txt (PASS) in run root.
  3. Paste the full dispatch prompt (including preamble and contract) into the agent chat. Use Medium tier (Sonnet 4.6) per MODEL_ROUTING_POLICY.
  4. Execute; agent may only create/modify: run root raw_brief.md (only if correcting capture), pack/intent.md, pack/HANDOFF/HANDOFF_STAGE_A.md.
  5. After execution, verify pack/intent.md and pack/HANDOFF/HANDOFF_STAGE_A.md exist; handoff must state Exit criteria PASS and Model tier used.

Guardrails

  • Do not generate EXECUTION_PROMPT or initialize downstream runs if EXECUTION_MODE is PLANNING_ONLY.
  • Enforce word caps: intent.md ≤ 1,200 words; HANDOFF ≤ 500 words, bullets only.

Output

  • intent.md (v1) and HANDOFF_STAGE_A.md in run pack; handoff compliant with blueprint.