AGENT SKILL

draft-strategy

Use only when autopilot-draft dispatches document strategy and evidence-plan creation. Not for top-level user requests or primary capability routing.

License 许可
MIT
所属仓库
dmlguq456/hearting
最近更新
2026-11-12
Stars
★ 9
Forks
2

01 前言 Front Matter

name
draft-strategy
metadata
{ "adapter": "opencode", "portable_source": "capabilities/draft-strategy.md", "invocation_class": "parent-invoked" }
description
Use only when autopilot-draft dispatches document strategy and evidence-plan creation. Not for top-level user requests or primary capability routing.

03 SKILL.md 正文

draft-strategy

This is an OpenCode-native Skill projection generated from the portable capability contract. It is adapter-owned output, not a legacy compatibility Skill copy.

Source

  • Portable source: capabilities/draft-strategy.md
  • Runtime check: adapters/opencode/bin/preflight.sh capability-info draft-strategy
  • Bootstrap: adapters/opencode/AGENTS.md

Use

  1. Read capabilities/draft-strategy.md for the runtime-neutral contract.
  2. Run adapters/opencode/bin/preflight.sh capability-info draft-strategy.
  3. Obey the reported status:
    • instruction-only: use this Skill as OpenCode guidance plus explicit preflight guards.
    • tool-contract: report the named tool_contract, run any tool_contract_check, and obey runtime_surface / fallback before claiming full support.
    • unsupported: stop or use the reported fallback.

Shape

  • Identifier: draft-strategy
  • Invocation class: parent-invoked
  • Supported modes: rebuttal, paper, review, report, proposal, presentation
  • Argument shape: <mode> --inputs <comma-separated-paths> --output <artifact-dir> [--intensity direct|quick|standard|strong|thorough|adversarial] <task description>
  • Portable meaning: Create an initial document strategy and evidence-based writing plan.

Portable Contract

  • Invocation semantics: Create an initial document strategy. The internal mode enum has six values: rebuttal, paper, review, report, proposal, and presentation. Autopilot-draft's form-first paper/presentation/doc modes convert doc intent from natural-language keywords (rebuttal response, review, report, proposal, or generic) into one of these direct sub-skill mode labels. For direct invocation, require the user to provide one of the six modes as the first argument. Adapters may expose this capability through native commands, skill files, prompt instructions, or explicit wrappers. The adapter must report unsupported runtime mechanics instead of silently treating another runtime's native file format as portable.

Projected Portable Details

Artifact Ownership

Artifact root: core/CONVENTIONS.md §5.1; output placement: §5.

Artifact Producer Lifecycle

draft-strategy is a standard+ stage worker: it never issues its own campaign or cycle. It receives the owner's open cycle through AGENT_ARTIFACT_CAMPAIGN_ID/AGENT_ARTIFACT_CYCLE_ID/AGENT_ARTIFACT_PRODUCER_ID/ AGENT_ARTIFACT_CYCLE_DIR/AGENT_ARTIFACT_OUTPUT_DIR (dispatch env pass-through), may call utilities/artifact_producer.py begin --node <node id> on the same route to resume that cycle, and writes only inside <cycle_dir>/artifacts/<bucket>/... within its node write_scope. artifact_producer.py owns the open cycle and its output paths; finalize and admit-shared belong to the owner, never to a stage worker. See producer_lifecycle in capabilities/topologies.json.

Role Requirements

Use portable role names from roles/README.md and core/CONVENTIONS.md. Concrete model names, subagent frontmatter, and runtime-specific tool lists belong in adapter files.

Guard Requirements

Adapters must preserve the portable invariants relevant to this capability:

  • resolve artifact root through utilities/artifact-root.sh or equivalent logic;
  • use DB memory paths, not runtime-native memory files.

Portable procedure and reference documents are owned under capabilities/draft-strategy/references/ when present. Claude, Codex, and OpenCode Skill bodies are generated projections of this capability and use the same logical procedure read-set.

Shared Procedure References

Read the complete portable procedure files listed here when they apply; this logical read-set is shared across Claude, Codex, and OpenCode.

  • capabilities/draft-strategy/references/delegate-prompt.md
  • capabilities/draft-strategy/references/mirror.md
  • capabilities/draft-strategy/references/procedure.md
  • capabilities/draft-strategy/references/qa-review.md

Workflow Evidence

  • For workflow state: adapters/opencode/bin/preflight.sh status [cwd] [session-id] and adapters/opencode/bin/preflight.sh prompt-signal [cwd] [session-id]

Do not use legacy compatibility Skill files or non-native adapter Skill files as OpenCode-native source. Those files are compatibility/reference surfaces only.

04 同仓库更多 Skills