| name | apex-harness |
| description | Use for substantial coding, refactoring, architecture, research, or ML work that needs disciplined execution, stronger verification, clear user decision points, or structured docs such as specs, design docs, implementation matrices, tradeoff logs, and status/handoff records. Do not use for trivial low-risk local edits such as minor UI text changes, comments, or narrow fixes. |
APEX Harness Skill for Codex
Use this skill when the task is substantial enough that you need disciplined execution rather than ad hoc coding.
This skill is for:
- significant implementation or refactor work
- machine learning / deep learning algorithm work
- research-oriented coding where evaluation semantics matter
- architecture-level or cross-module changes
- tasks that need durable documentation, implementation tracking, explicit tradeoff handling, or a handoff document when the user asks for one
Do not use this skill for trivial low-risk edits such as:
- minor UI text or style changes
- comments or docstrings only
- narrow local fixes with obvious behavior and low blast radius
What this skill does
It enforces:
- risk-calibrated execution (
Tier A / B / C)
- stronger verification for higher-risk work
- preservation of meaningful human design authority without turning routine implementation into an approval queue
- explicit boundaries for when the user must make decisions
- prohibition on silent simplification or silent scope narrowing
- documentation updates when existing source-of-truth docs would otherwise become wrong or misleading
- structured documentation outputs under
docs/ when the task actually needs them
- neutral implementation plans under
docs/plans/ when creating plans from approved specs
- two-level tradeoff handling: local design tradeoffs in leaf docs, project-level deviations in
docs/tradeoffs.md, and matrix entries that reference stable tradeoff IDs without duplicating them
- status / handoff documentation only when the user explicitly asks for handoff
Core operating rules
- Do not fake completeness.
- Do not hide unfinished work behind vague wording.
- Do not guess APIs, tensor shapes, schemas, config semantics, contracts, or implicit invariants.
- Prefer typed, asserted, or mechanically checked boundaries.
- Do not silently simplify, omit, downgrade, or narrow requested scope.
- Tradeoff logs record approved or unavoidable deviations; they do not authorize silent ones.
How to use this skill
- Classify the task using
references/workflow.md.
- Resolve authority, mechanism, capability, and evidence boundaries using
references/governance_contract.md.
- Apply the correct verification intensity from
references/workflow.md.
- If the task changes substantial behavior, architecture, evaluation semantics, or research interpretation, follow
references/documentation_topology.md.
- If traceability risk justifies it, maintain a spec-to-implementation mapping using
references/matrix_template.md.
- If the implementation materially deviates from the original plan, record the deviation using
references/tradeoff_template.md.
- When the user explicitly requests handoff, maintain or refresh a current status / handoff document using
references/status_template.md.
Activation output
When this skill is active, state the following before implementation:
- task tier and why
- success criteria
- verification path
- whether docs, matrix, tradeoff log, or user-requested handoff updates are required
Keep this concise; it is an execution boundary, not a ceremony.
Red flags
Stop and re-check scope, verification, or user consultation when you notice:
- "I'll do the simple version first" for a requested feature, algorithm, evaluation, or contract
- "This probably works" without observable evidence
- "Docs can be updated later" after a source-of-truth doc became wrong or misleading
- "The tensor shape / schema / config probably is..." without checking the source of truth
- "This is small enough to skip classification"
- creating or refreshing handoff docs without the user asking for handoff
Quick routing
Use references/workflow.md for:
- Tier A / B / C classification
- verification policy
- user consultation boundary
- harness rules
- completion rules
- handoff rules
- environment policy
Use references/governance_contract.md for:
- authority and Git mutation boundaries
- mechanism preconditions
- platform capability negotiation
- reusable verification evidence
- governance-to-workflow composition
Use references/documentation_topology.md for:
- repository documentation topology
- what belongs in
docs/specs/
- what belongs in
docs/plans/
- what belongs in
docs/design/
- what belongs in
docs/matrix_*.md
- required anchor docs
- update rules by tier
Use references/plan_template.md for:
- implementation plans in
docs/plans/
- compatibility with plan executors such as
writing-plans and subagent-driven execution
Use references/matrix_template.md for:
- original-intent to current-implementation mapping
Use references/tradeoff_template.md for:
docs/tradeoffs.md entry format with stable IDs
Use references/status_template.md for:
- short user-requested handoff summaries: objective, high-level state, verification summary, blockers / risks, next steps, and references
Repository assumptions for this skill
Unless the repository clearly defines a different structure, assume:
docs/specs/ = active specifications and leaf docs
docs/specs/legacy/ = superseded specifications
docs/specs/status_*.md = current-state snapshots and handoff notes when the user explicitly requests handoff
docs/plans/ = neutral implementation plans created from approved specs
docs/design/ = architecture and design records, including dated design documents
docs/matrix_*.md = spec-to-implementation matrices
docs/tradeoffs.md = repository-wide approved or unavoidable deviations
If the repository already has a stronger convention, follow repository truth. Otherwise, use the neutral paths above; branded or tool-specific subdirectories such as docs/superpowers/ are not the default.
Minimal always-on behavior
Even when this skill is active:
- keep diffs proportionate to task scope
- prefer existing reliable tests over redundant scaffolding
- ask the user before committing to material research or architecture tradeoffs
- confirm intent or design direction when a request is exploratory, underspecified, or explicitly vibe-driven and the choice would materially shape the result
- do not claim completion unless claimed scope, verification, and any required documentation are mutually consistent
Composition with workflow skills
APEX is the governance layer when it is active: it decides risk tier, consultation boundaries, verification intensity, and required documentation. Workflow skills such as brainstorming, planning, TDD, worktrees, delegation, review, and branch finishing are execution mechanisms selected at the intensity justified by that classification.
- Use a workflow skill when its concrete trigger is present; activation does not automatically make every step heavyweight.
- Workflow skills consume the decision record in
references/governance_contract.md; they must not increase mutation authority, delegation, ceremony, or documentation obligations on their own.
- Tool availability alone does not select a mechanism. Confirm required runtime capabilities and use documented fallbacks rather than guessing APIs or parameters.
- Do not let a leaf workflow create a second spec, plan, matrix, tradeoff log, or handoff source of truth.
- Repository conventions take precedence over the neutral documentation defaults in this skill.
- Platform, system, developer, user, and repository instructions remain authoritative over every skill.