feat(docs-hygiene): write-for-agents — authoring-time skill for agent-consumed markdown - #3003
Conversation
…-consumed markdown The write-side complement to the audit siblings, per the lane 7 design contract (docs/specs/write-for-agents-brief.md): model-invoked at the writing moment for CLAUDE.md/AGENTS.md content, rules files, agent-loaded reference docs, pointer lines, and doc-plus-pointer extractions. Inlines the adapted doctrine (two loads, branch-covering pointers, steps vs reference with co-location, observable completion criteria, split-by-sequence, positive-form prompting) and points at the audit siblings, the invocation-mode rubric, claude-memory's pointer remediation, and curate-language instead of restating them. Ships the docs-verified surface reference and a 9-case trigger/behavior eval suite. PLUGIN-PHILOSOPHY gains the cognitive-load cross-reference; the SSOT decomposition flips gaps 1-2 to ADOPTED and retires the leading-words tracked strand. docs-hygiene 0.17.0. Closes #2962. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 3m 26s —— View job Claude finished the code reviewTodo list
SummaryReviewed all 9 changed files ( 1 finding, posted inline:
Verified as correct (no findings):
Everything else — markdownlint, |
|
Claude finished @kyle-sexton's task in 41s —— View job Security review — PR #3003Skip gate: stop early — the full diff (
No security issues found. This PR is a documentation-only addition (a new authoring-time skill plus its supporting reference/eval fixtures) with no security-relevant surface — skip gate condition 2 applies. |
|
Last security-reviewed head: |
|
Claude has reviewed this PR 5 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 07341a266c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ts, contract-clean links, add-dir row Addresses the automated review findings on #3003: the restructure-before-pointer caveat is stated inline (its claude-memory home is #2987's unbuilt deliverable — a pointer to nothing, caught by review; #2987 may convert this to a pointer when it lands); the sibling tier-model link is replaced with the slash-only public-surface form per the encapsulation contract; operative handoffs use the explicit Skill-tool invocation phrasing the invocation-mode convention binds new skill text to; the reference table regains the conditional --add-dir load row dropped in trimming. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Review round addressed in
markdownlint clean after the round. Generated by Claude Code |
|
Claude finished @kyle-sexton's task in 2m 16s —— View job Code review —
|
|
Claude finished @kyle-sexton's task in 50s —— View job Security review — PR #3003Skip gate: stop early — this run reviews only the commits since the last security-reviewed head (
No code, no GitHub Actions workflow changes, no auth/authz logic, no injection surfaces (command/SQL/path/template), no secret/token/credential handling, and no permission or dependency-pin changes. There is no security-relevant surface in this change — skip gate condition 2 applies.
No security issues found. |
…l body The entry still described the removed claude-memory:audit pointer; it now matches the shipped skill (caveat stated inline pending #2987). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 52s —— View job Code review —
|
plugin-gate caught the stale generated catalog block after the write-for-agents manifest description change; regenerated via scripts/generate-catalog.mjs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 1m 29s —— View job Code review —
|
Second generated surface behind plugin-gate; the third (identity-prerequisites) verified in sync, and validate-plugins.sh now passes locally end to end. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 44s —— View job Code review —
|
Closes #2962
Summary
Adds
docs-hygiene:write-for-agents— the write-side complement to the plugin's seven audit/transform skills: authoring-time doctrine that fires while agent-consumed markdown is being written, closing the writing-for-agents re-evaluation's gaps 1–2 (no authoring-time home for non-skill agent docs; completion-criteria doctrine homeless) plus the two-loads budget. docs-hygiene 0.16.1 → 0.17.0.Fix
plugins/docs-hygiene/skills/write-for-agents/(model-invoked): inlines the adapted doctrine — budget both loads (context + cognitive), branch-covering front-loaded pointers, steps-vs-reference separation with co-location, observable completion criteria (premature-completion / post-completion / legwork guards), split-by-sequence, positive-form prompting — and points ataudit-progressive-disclosure's tier model, the invocation-mode rubric (§ Splitting by invocation, per the lane 8 coordination note),claude-memory:audit's navigation-pointer remediation (per the lane 9 coordination note), andcurate-languageinstead of restating any of them. Route-away fence keeps SKILL.md authoring, audit requests, and human-facing docs with their incumbent owners.reference/agent-doc-surfaces.md: shipped adaptation of the docs-verified auto-read surface enumeration (Claude Code v2.1.233 baseline, re-verify note) plus other-ecosystem analogues.evals/: 9-case suite gating trigger reliability — 5 positive writing-moment cases, 3 negative route-away controls, 1 doctrine-behavior case over a planted-flaw fixture.docs/PLUGIN-PHILOSOPHY.md: one-line cognitive-load cross-reference in Instruction economy.docs/upstream/mattpocock-skills.md: decomposition-table gap-1/2 verdicts flipped to ADOPTED; leading-words tracked strand retired (both per the Brief's on-merge criteria).Verification
markdownlint-cli2over all touched markdown: 0 issues in 7 files.jq emptyonplugin.jsonandevals.json: both parse.scripts/check-changelog-parity.sh --checkand--check-bump origin/main: both exit 0 (0.17.0 entry present and matching).Related
docs/specs/write-for-agents-brief.md(course lane 7, playbooks/docs-hygiene: aihero course lane 7: authoring-time steering doctrine (writing-for-agents re-decision) #2909; user-confirmed 2026-08-17)🤖 Generated with Claude Code
https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
Generated by Claude Code