documentation-contract-plan-hardening
Harden a documentation/contract plan before adversarial review by mapping every issue-scope requirement to independent acceptance criteria and tests, especially for routing/indexing contracts.
Best use case
documentation-contract-plan-hardening is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Harden a documentation/contract plan before adversarial review by mapping every issue-scope requirement to independent acceptance criteria and tests, especially for routing/indexing contracts.
Teams using documentation-contract-plan-hardening should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/documentation-contract-plan-hardening/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How documentation-contract-plan-hardening Compares
| Feature / Agent | documentation-contract-plan-hardening | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Harden a documentation/contract plan before adversarial review by mapping every issue-scope requirement to independent acceptance criteria and tests, especially for routing/indexing contracts.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Documentation Contract Plan Hardening Use when drafting a plan for a docs/standards/contract issue where the deliverable is a policy/contract/checklist rather than runtime code. ## Why this exists In issue #2460 (tier-1 indexing and code-placement contract), all three adversarial reviewers returned MAJOR because the plan looked reasonable at a high level but failed a stricter standard: - issue-required surfaces were bundled into generic "section presence" tests - code-placement requirements cited `DATA_PLACEMENT.md` but were not independently testable - a legacy-reference ban was specified as a vague negative test with no concrete forbidden pattern - daily freshness linkage existed in prose but not as a dedicated validation target - the plan relied on a local report artifact that was not clearly canonical on the repo's main branch ## Core rule For documentation-contract plans, every correctness-critical scope item from the issue body must map to: 1. a named artifact section in the contract/checklist 2. an independent acceptance criterion 3. an independent test or validation check If multiple issue-scope requirements are compressed into one generic test, adversarial reviewers will (correctly) call the plan under-specified. ## Hardening checklist before review ### 1. Build a scope-to-test matrix Create a table in your notes before finalizing the plan: | Issue requirement | Planned artifact section | Acceptance criterion | Test/validation | |---|---|---|---| | operator maps required | contract section "Required routing surfaces" | contract explicitly requires `docs/maps/<repo>-operator-map.md` | `test_contract_requires_operator_maps` | | machine-readable registry | contract section "Required routing surfaces" | contract requires one canonical registry per repo | `test_contract_requires_registry` | | code/tests/docs routing table | checklist + contract section | contract/checklist define routing-table semantics | `test_contract_requires_routing_table` | | repo vs `/mnt/ace/data` placement | code-placement section | contract encodes data-placement rule | `test_contract_encodes_data_placement_rule` | | daily freshness | freshness section | contract states cadence and follow-through issue | `test_contract_defines_daily_freshness_and_links_followup` | Do not proceed until each issue-scope bullet has its own row. ### 2. Treat cited baseline docs as obligations, not decoration If the plan cites a baseline document such as: - `docs/standards/CONTROL_PLANE_CONTRACT.md` - `docs/standards/FILE_STRUCTURE_TAXONOMY.md` - `docs/standards/DATA_PLACEMENT.md` then the plan must say exactly what rule from that document becomes part of the new contract and how that rule will be tested. Bad: - "DATA_PLACEMENT.md must be incorporated" Good: - "The contract must restate the repo-vs-`/mnt/ace/data` decision rule and checklist rows must verify whether each tier-1 repo's routing guidance points large/generated outputs off-repo." - plus a dedicated acceptance criterion and test. ### 3. Avoid vague negative tests for legacy references If you need to retire a legacy pattern, do NOT write a test like: - `test_contract_avoids_legacy_pattern` unless the plan defines: - the exact forbidden string(s) or regex - the allowed migration/retirement wording - which files the guard applies to Better pattern: - one test for required positive retirement language - one test for forbidden legacy references Example split: - `test_contract_declares_legacy_product_doc_conventions_retired` - `test_contract_does_not_recommend_<exact_legacy_pattern>` ### 4. Distinguish canonical repo evidence from local attestation If a plan cites a local artifact that may not exist on the canonical branch yet (for example a newly generated report in a dirty working tree), say so explicitly. Use one of these two patterns: 1. **Canonical evidence pattern** - artifact exists on tracked branch / repo state expected by reviewers - safe to cite as repo truth 2. **Local attestation pattern** - artifact exists only locally right now - use it as planning input, but acknowledge that implementation must either: - land the artifact canonically, or - remove dependence on it before approval If you don't disambiguate this, reviewers may flag the plan as coupled to unpublished state. ### 5. For contract/checklist pairs, test both discoverability and linkage When the deliverable includes both a contract doc and a checklist doc, include tests for: - contract exists - checklist exists - contract links checklist - checklist references contract or derived authority - docs index links both from a trusted discovery surface Otherwise the checklist can become an orphan artifact. ### 6. Name artifacts to match issue scope If the issue title says "indexing and code-placement contract" but the planned file is named only `INDEXING_CONTRACT`, reviewers may treat that as scope loss. Either: - include the full scope in the filename, or - state explicitly in the plan that the contract file covers both topics despite the shorter filename ## Recommended validation pattern for docs-contract issues Prefer many small assertions over one umbrella test. Bad: - `test_contract_contains_required_sections` Better: - `test_contract_requires_agents_md` - `test_contract_requires_readme` - `test_contract_requires_docs_readme` - `test_contract_requires_operator_map` - `test_contract_requires_machine_readable_registry` - `test_contract_requires_routing_table` - `test_contract_encodes_data_placement_rule` - `test_contract_declares_daily_freshness_rule` - `test_contract_links_followup_issue_2465` ## When to use this skill Use before sending any documentation/contract plan to Codex/Gemini/Codex for adversarial review, especially when: - the issue is in `cat:documentation` or `cat:harness` - the deliverable is a contract, policy, checklist, or governance doc - the issue body has a bulleted scope that can be converted into testable requirements - local reports or freshly generated artifacts are being cited as planning evidence ## Outcome goal A reviewer should be able to point at each issue-scope bullet and immediately see: - where it lands in the deliverable - which acceptance criterion covers it - which dedicated validation proves it If not, the plan is still too soft for adversarial review.
Related Skills
llm-wiki-page-shape-contract
Enforce the page-shape contract when a repo-side document or analysis output gets converted into an llm-wiki page. Use when (1) running `scripts/knowledge/llm_wiki.py ingest`, (2) writing or rewriting a wiki page from docs/reports/*, docs/handoffs/*, scripts/review/results/*, or calc citation outputs, (3) deciding whether a page should be split into a folder of sub-pages, (4) reviewing wiki PRs for length / diagram / divide-and-conquer compliance. Codifies the Karpathy + Astro-Han + lewislulu page rules applied to workspace-hub's domain-wiki layout under /mnt/local-analysis/llm-wiki/wikis/<domain>/. Sibling to research/llm-wiki (which owns the CLI ops) — this skill is the quality gate every converted page must clear before commit.
blender-worktree-test-hardening
Recover and harden digitalmodel Blender automation work in isolated worktrees when uv/editable dependency paths break and local machines lack a Blender executable.
plan-review-prompt-refresh-after-plan-edits
Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.
workspace-knowledge-doc-contracts
Class-level workspace knowledge, LLM-wiki, repo mission contracts, stale doc references, semantic taxonomy, and knowledge-source reconnaissance.
workspace-hub-overnight-plan-monitor
Monitor and reconcile workspace-hub overnight planning or implementation batches, including process status, result artifacts, issue/commit verification, and controlled failed-lane recovery.
plan-gated-issue-execution-wave
Execute a multi-issue architecture/planning wave in a plan-gated repo, then safely transition approved issues into implementation with file-based Codex prompts, local approval markers, subprocess monitoring, and cleanup handling for sandbox/hook edge cases.
mixed-ops-vs-repo-fix-plan-boundary
Plan mixed operational-vs-repo remediation issues by proving live-state classification first, then only proposing code changes for confirmed repo-owned failure paths.
wave-based-parallel-plan-execution
Orchestrate phase execution by discovering dependencies, grouping into waves, spawning subagents, and collecting results with optional wave filtering
plan-gated-issue-validation-workflow
Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables
plan-gated-issue-implementation
Workflow for executing pre-approved GitHub issues with mandatory validation checkpoints
multi-role-agent-contract-review-pipeline
Execute a 4-role agent team (Planner/Architect/Reviewer/Integrator) pipeline for self-reviewing knowledge artifacts before delivery
external-drive-ingest-planning
Plan safe external-drive ingests into repo-aligned storage such as /mnt/ace: read-only mounts, manifests, staged rsync, dedupe-merge gates, GitHub issue traceability, and governance/execution split.