Skip to content

docs(docs-hygiene): cut model-read ecosystem examples from five skills - #17814

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17777-44867898895-1
Nov 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17777-44867898895-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17777

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Cuts the model-read tool, language and harness examples that #17777 lists from docs-hygiene. Each cut deletes the example and keeps the rule around it. Generic words replace the example only where the sentence would not read without them (tier-model.md criterion 3, plugin-contract.md items 2 and 58). No R8 rows are in this part.

Row count: 5 (all R11).

  • F0177 | R11 | CUT: write-for-humans/SKILL.md:139, removed "(a Vale, markdownlint, or textlint config)".
  • F0178 | R11 | PARTLY CUT: plugin-contract.md:33-36 and :58 no longer name markdownlint-cli2. Kept in audit-noise/SKILL.md:236 and :251, which a script reads (see Script readers).
  • F0179 | R11 | CUT: audit-encapsulation/SKILL.md:216, removed "(TypeScript export, .NET internal, Python _prefix)".
  • F0180 | R11 | CUT: write-for-agents/reference/agent-doc-surfaces.md, deleted the "## Other-ecosystem analogues" section (the harness table and its vendor pointer, lines 125-160 at this base, 114-130 at 5b66a7f).
  • F0181 | R11 | CUT: audit-progressive-disclosure/context/tier-model.md:121, replaced the fetch.py example with "the pointer says whether to execute the target or read it".
    GONE: none. Each row's cited text was still present at base 69cc1a0.

Script-reader searches (Grep, run in this session):

  1. SKILL\.md|plugin-contract|tier-model|agent-doc-surfaces over plugins/docs-hygiene//scripts/. Hit: audit-noise/scripts/detect.test.sh:1351-1358 reads audit-noise/SKILL.md (it sed-extracts the "Uncommitted .md files" grep and runs it). audit-progressive-disclosure/scripts/detect.sh:122 names agent-doc-surfaces only in a comment and does not read it. No script reads write-for-humans/SKILL.md, audit-encapsulation/SKILL.md (its detect.sh only matches SKILL.md path patterns in target files), tier-model.md, agent-doc-surfaces.md or plugin-contract.md.
  2. Vale|textlint|fetch\.py|Other-ecosystem|Cursor rules|_prefix|markdownlint-cli2\)|opt-out marker over docs-hygiene evals/** and scripts/**: no hit on any cut text.
  3. (SKILL\.md|plugin-contract|tier-model|agent-doc-surfaces) over docs-hygiene *.{mjs,js,py,ts,json,yaml}: only eval sample strings, no file reader.

## Script readers

  • F0178, the audit-noise/SKILL.md half (lines 236 and 251, markdownlint-cli2 as the owning linter and the markdownlint configuration source): not cut, because audit-noise/scripts/detect.test.sh reads that file. The script reads a different line of the file, but the issue's rule is per file.

Existing eval cases that read the cut text, per changed skill:

  • write-for-humans: none.
  • audit-encapsulation: none.
  • audit-progressive-disclosure: none.
  • write-for-agents: none reads the deleted table. The closest is evals/wfa-path-scoped-migration-rule: its prompt says a run must use paths: frontmatter ("Cursor globs alone fails"), and it grades the paths: key, not the table.
  • plugin-contract.md is a plugin reference file, not a skill, and no eval reads it.

Whole page or part, per changed file: all five are…

Not verified

  • tidy pass 5: ai-slop's deterministic detect.sh could not run, because this lane's Bash runs only the named wrappers. The rubric was applied by hand to the changed lines.
  • check-affected skipped these: comment-hygiene (fetching the ci-workflows action failed with no network), size-check (audit-size.sh missing from the lane checks), typos (not installed). check-changed-skills skipped markdownlint and script tests. All are left to the PR's CI.
  • CI-only checks were not run here, including portability-lint, lychee-offline and evals-quality. Left to the PR's CI.
  • The host-session eval hold (do-not-merge, a targeted sonnet case for each changed skill) is the host session's step, not this lane's. Not run.
  • F0178 is kept in audit-noise/SKILL.md:236,251 because detect.test.sh reads that file (the issue's Script readers rule). A host session may choose to cut it if the rule is meant per line, not per file.
  • Out of scope, found in review: extract-ssot/context/decision-framework.md:67 (GitHub Copilot 4000-char truncation) and extract-ssot/context/execution-checklist.md:72 (npx markdownlint-cli2) still carry tool-specific examples. They are not rows in this part's table.
  • The working tree lists untracked .bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile and .zshrc at the checkout root. This run did not create them (they look like sandbox mount artifacts). Keep them out of the patch.

Fix

  • plugins/docs-hygiene/skills/write-for-humans/SKILL.md: dropped the Vale/markdownlint/textlint example from the prose-linter step (F0177); part of the page.
  • plugins/docs-hygiene/reference/plugin-contract.md: the Not-a-linter boundary and the setup sentence no longer name markdownlint-cli2 (F0178); part of the page.
  • plugins/docs-hygiene/skills/audit-encapsulation/SKILL.md: dropped the TypeScript/.NET/Python visibility examples (F0179); part of the page.
  • plugins/docs-hygiene/skills/write-for-agents/reference/agent-doc-surfaces.md: deleted the Other-ecosystem analogues section (F0180); part of the page.
  • plugins/docs-hygiene/skills/audit-progressive-disclosure/context/tier-model.md: replaced the fetch.py example in criterion 3 with a generic statement (F0181); part of the page.
  • .changes/docs-hygiene/work-resolve-issue-issue-17777-44867898895-1-41954571.md: new patch changelog fragment for docs-hygiene.

Verification

The runner ran each check from the base copy against dd3784a:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 3 fragments under .changes/ are valid (run before and after tidy and review).
  • check-changed-skills: 4 skills checked, 0 failed. The warnings it printed predate this change (description length, body size, Gotchas surface).
  • check-affected: 14 passed, 9 skipped over 6 changed files.
  • Grep script-reader searches 1-3 (quoted in summary): only audit-noise/SKILL.md has a script reader, so that half of F0178 is kept.
  • Grep for other-ecosystem-analogues anchors repo-wide: no references to the deleted section.
  • Fresh-context review subagent over the diff: no high or medium findings. It made one low finding (fragment wording missed the plugin-contract.md:58 edit), which is fixed. A second low finding is outside this part's rows (see not_done).
  • tidy-diff: passes 1-3 had nothing to do (all files are markdown). Pass 4 (write-for-agents) made no edit. Pass 5 (ai-slop) ran the rubric by hand on the changed lines and found no tell.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44867898895

Left out: the items under Not verified.

Related

#17777

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17777 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed dd3784a8779fca0765c258805e411fb06c21069a: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17814

I found no security issues in this pull request.

I read the whole change in all 6 changed files: the changelog fragment and five markdown files under plugins/docs-hygiene/. The change removes illustrative examples: tool names, language visibility examples, a fetch.py example and the other-harness instruction-file table with its vendor links. Generic wording replaces some of them.

  • Changed instructions: I checked each removed or reworded line in the skill and reference bodies by what breaks without it. Every one is an example. The rules around them stay, and none of the removed text was a guardrail:

    • running the project's prose linter;
    • routing code-side visibility checks to language tooling;
    • marking whether a pointer means execute or read;
    • the "Not a linter" boundary.

    Nothing that protected an action, a credential, a trust boundary or a publish step was removed. The instruction exception register was not consulted; I judged each line by its consequence instead.

  • Plugin manifests: none changed. There are no plugin.json or marketplace.json edits and no userConfig changes.

  • Trust controls and trusted paths: no changed file matches a trusted-path glob. No workflow, action, token, kill-switch or merge-hold code changed.

  • Text in the pull request description: it contains no instructions aimed at this lane. It mentions untracked files at the lane's checkout root, including .mcp.json. Those files are not in the diff.

  • Spend: none. The change adds no paid usage and no billable resources.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed dd3784a8779fca0765c258805e411fb06c21069a: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read every hunk of all 6 changed files. This is a documentation-only change in docs-hygiene. It removes model-read tool, language and harness examples and leaves the rules around them unchanged, as #17777 asks.

Checked against the closing issue (#17777)

  • F0177: the Vale/markdownlint/textlint example is gone from write-for-humans/SKILL.md, and the linter rule stays.
  • F0178:
    • plugin-contract.md items 2 and 58 no longer name markdownlint-cli2.
    • The new wording "its one external prerequisite" is still true: setup/SKILL.md:13 describes markdownlint-cli2 as "The one external prerequisite".
    • The audit-noise/SKILL.md half is kept. The PR body lists it under a Script readers heading, which is what the issue's script-reader criterion requires.
  • F0179: the TypeScript/.NET/Python examples are dropped from audit-encapsulation/SKILL.md.
  • F0180: the whole "Other-ecosystem analogues" section is deleted from agent-doc-surfaces.md.
    • Nothing in plugins/docs-hygiene links to that section; the only mentions are historical CHANGELOG.md entries.
    • write-for-agents/SKILL.md:19 still points at the file for Claude Code loading behavior, which the file still covers.
  • F0181: criterion 3 in tier-model.md now says what the criterion requires in general terms instead of giving an example.
  • Changelog: the patch fragment matches a docs-only wording change, and it describes all six edits.
  • PR body: it states the row count (5), lists each row's outcome, quotes the script-reader searches, names the eval cases per changed skill and says whole-page or part for each file. These are the author's claims, not checked by me.

I did not run any checks. The verification and eval results in the PR body come from the author and I have not confirmed them. The eval hold the issue describes is a step for the host session, outside this lane.

No changed file matches a trusted-path glob. The path-scoped rules cost-claims.md and skill-bodies-state-current-rules.md apply to these files; the change adds no cost claim and no restated upstream value.

Loosened checks: the prompt had no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines. I used fail with no consumer entries, and the citation requirement was not checked. The change loosens no check.
Loosened checks would be marked: fail (default); patterns: 0

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.330 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut (five R11 rows, no R8 row). F0180 deletes the whole 'Other-ecosystem analogues' section (the other-harness instruction-file table and its pointers) from agent-doc-surfaces.md; predicted outcome: the reply still places Claude Code files from the kept Claude Code table and names Cursor's and Copilot's files from its own knowledge, so no loss. F0177 cuts Vale, markdownlint and textlint as example prose linters; F0181 cuts the fetch.py execute-vs-read example; F0178 rewords plugin-contract.md (read by no skill route this case reaches); F0179 cuts TypeScript/.NET/Python visibility examples from audit-encapsulation (four skills changed, three-case cap; audit-encapsulation's cut is one example list in 'What this skill does not do'). Measured by p17814-wfa-surfaces (F0180; cursor-rules-path and copilot-instructions-path read the deleted table on BEFORE), p17814-wfh-after-writing (F0177, SKILL.md loaded; runs-vale), p17814-apd-pointer-quality (F0181; missing-intent reads the criterion whose example was cut). Unmeasured: F0178 (plugin-contract.md), F0179 (audit-encapsulation).

  • New cases p17814-wfa-surfaces, p17814-wfh-after-writing, p17814-apd-pointer-quality: no existing case for these skills grades the cut text deterministically, so three rules-only cases were written (four, three and three anchored positive regex graders, no negative lookahead, no Skill grader; each prompt names the cut page where one is opened, R121).

  • Whole-section deletion (F0180, 'Other-ecosystem analogues'): predicted outcome stated in scope_note; this case cannot detect wrong text, only a fall on the two vendor-path graders.

  • Unmeasured rows: F0178 (plugin-contract.md rewording, no skill route here), F0179 (audit-encapsulation examples; three-case cap).

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 69cc1a018851c075bc5b02ad14e7d83ffb6a7c69 (merge base with main)

  • After: dd3784a8779fca0765c258805e411fb06c21069a (pull request head; live head when this was written: dd3784a8779fca0765c258805e411fb06c21069a)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17814-wfa-surfaces rules-with-paths 3/3 3/3
p17814-wfa-surfaces import-saves-nothing 3/3 3/3
p17814-wfa-surfaces cursor-rules-path 3/3 3/3
p17814-wfa-surfaces copilot-instructions-path 3/3 3/3
p17814-wfa-surfaces mean case score 1.000 1.000
p17814-wfh-after-writing runs-vale 3/3 3/3
p17814-wfh-after-writing reports-command-result 3/3 3/3
p17814-wfh-after-writing ai-tell-check 3/3 3/3
p17814-wfh-after-writing mean case score 1.000 1.000
p17814-apd-pointer-quality missing-condition 3/3 3/3
p17814-apd-pointer-quality missing-intent 3/3 3/3
p17814-apd-pointer-quality notes2-not-ok 3/3 3/3
p17814-apd-pointer-quality mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17814-wfa-surfaces before: opened skills/write-for-agents/reference/agent-doc-surfaces.md in 3 of 3 runs
  • p17814-wfa-surfaces after: opened skills/write-for-agents/reference/agent-doc-surfaces.md in 3 of 3 runs
  • p17814-wfh-after-writing before: opened no changed file in 3 runs
  • p17814-wfh-after-writing after: opened no changed file in 3 runs
  • p17814-apd-pointer-quality before: opened skills/audit-progressive-disclosure/context/tier-model.md in 3 of 3 runs
  • p17814-apd-pointer-quality after: opened skills/audit-progressive-disclosure/context/tier-model.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0180 (skills/write-for-agents/reference/agent-doc-surfaces.md, case p17814-wfa-surfaces): opened in 3 of 3 before, 3 of 3 after runs
  • F0177 (skills/write-for-humans/SKILL.md, case p17814-wfh-after-writing): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0181 (skills/audit-progressive-disclosure/context/tier-model.md, case p17814-apd-pointer-quality): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17814-wfa-surfaces (write-for-agents): PASS (no loss: after 1.000, before 1.000)
  • verdict p17814-wfh-after-writing (write-for-humans): PASS (no loss: after 1.000, before 1.000)
  • verdict p17814-apd-pointer-quality (audit-progressive-disclosure): PASS (no loss: after 1.000, before 1.000)

Cost: 1.81 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p17814-wfa-surfaces

prompt.md:

---
description: "Written for PR 17814 (row F0180, R11 cut of the other-harness instruction-file table in write-for-agents' agent-doc-surfaces reference). Asked where agent instructions for Claude Code, Cursor and Copilot live in one repo, the reply puts a path-scoped Claude rule under .claude/rules with paths frontmatter, says an @import does not save context, and names Cursor's and Copilot's instruction files"
tags: [write-for-agents, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is written. The reply places the API-only rule in .claude/rules/ with a paths: glob, says an @import is expanded at launch and saves no context, and names .cursor/rules and .github/copilot-instructions.md. It ends with the four fixed lines."
---

/docs-hygiene:write-for-agents

Before you write anything: our repo is used with Claude Code, Cursor and GitHub Copilot. Check your answers against the skill's agent-doc-surfaces reference.

1. A rule should apply only when Claude works on files under `src/api/`. Where does it go for Claude Code?
2. If I move a big section of `CLAUDE.md` into another file and pull it in with an `@` import, does that cut what the session loads at start?
3. Where does Cursor read project rules from?
4. Where does GitHub Copilot read repository-wide instructions from?

Don't write, run or research anything online yet.

End with exactly these four lines:

API_ONLY_RULE: <path and how it is scoped>
IMPORT_SAVES_CONTEXT: <yes or no>
CURSOR_RULES: <path>
COPILOT_INSTRUCTIONS: <path>

case.yaml:

schema_version: "1.1"
name: p17814-wfa-surfaces
plugins: ["../.."]
graders:
  - name: 'rules-with-paths'
    type: 'regex'
    pattern: '^[\W_]*API_ONLY_RULE[*_]*:(?=[^\n]*\.claude/rules)(?=[^\n]*paths)'
    flags: 'im'
    target: 'last_message'
  - name: 'import-saves-nothing'
    type: 'regex'
    pattern: '^[\W_]*IMPORT_SAVES_CONTEXT[*_]*:[\s*`]*no\b'
    flags: 'im'
    target: 'last_message'
  - name: 'cursor-rules-path'
    type: 'regex'
    pattern: '^[\W_]*CURSOR_RULES[*_]*:[^\n]*\.cursor/rules'
    flags: 'im'
    target: 'last_message'
  - name: 'copilot-instructions-path'
    type: 'regex'
    pattern: '^[\W_]*COPILOT_INSTRUCTIONS[*_]*:[^\n]*\.github/copilot-instructions\.md'
    flags: 'im'
    target: 'last_message'

p17814-wfh-after-writing

prompt.md:

---
description: "Written for PR 17814 (row F0177, R11 cut of Vale, markdownlint and textlint as example prose linters in write-for-humans' After writing step). Asked what happens after a README is written in a repo that configures Vale, the reply runs the configured Vale linter on the written file, reports the command and its result, and runs the AI-tell check"
tags: [write-for-humans, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is written or run. The reply says it would run vale on README.md (the repo's .vale.ini), fix what it reports in that file, report the command and its result, and run /ai-slop:audit on the file. It ends with the three fixed lines."
---

/docs-hygiene:write-for-humans

Before you draft our new `README.md`, tell me what you do after writing it. Our repo has a `.vale.ini` at the root and a `styles/` folder for Vale.

1. Which linter do you run, on which files?
2. What do you report about it?
3. Which other check do you run on what you wrote?

Don't write, run or research anything online yet.

End with exactly these three lines:

PROSE_LINTER: <tool and files>
LINTER_REPORT: <what you report>
OTHER_CHECK: <the check>

case.yaml:

schema_version: "1.1"
name: p17814-wfh-after-writing
plugins: ["../.."]
graders:
  - name: 'runs-vale'
    type: 'regex'
    pattern: '^[\W_]*PROSE_LINTER[*_]*:[^\n]*\bvale\b'
    flags: 'im'
    target: 'last_message'
  - name: 'reports-command-result'
    type: 'regex'
    pattern: '^[\W_]*LINTER_REPORT[*_]*:(?=[^\n]*command)(?=[^\n]*(?:result|output|finding|exit))'
    flags: 'im'
    target: 'last_message'
  - name: 'ai-tell-check'
    type: 'regex'
    pattern: '^[\W_]*OTHER_CHECK[*_]*:[^\n]*(?:ai-slop|ai[- ]writing tell|ai tell)'
    flags: 'im'
    target: 'last_message'

p17814-apd-pointer-quality

prompt.md:

---
description: "Written for PR 17814 (row F0181, R11 cut of the fetch.py execute-vs-read example in audit-progressive-disclosure's tier-model pointer criteria). Asked to judge a bare pointer to a script and a vaguely named target, the reply says the pointer lacks a condition and an execute-or-read intent and that notes2.md is not a self-describing name"
tags: [audit-progressive-disclosure, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run. The reply says 'See scripts/sync.sh.' has no condition (when to read it) and no intent (execute it or read it), and that notes2.md fails the self-describing-name criterion. It ends with the three fixed lines."
---

/docs-hygiene:audit-progressive-disclosure

Before auditing anything, judge two pointers from our `CLAUDE.md` against the skill's pointer-quality criteria in its tier-model page:

1. `See scripts/sync.sh.` (a bare line at the end of the deploy section)
2. `More in docs/notes2.md.`

Don't run, edit or research anything online yet.

End with exactly these three lines:

SYNC_POINTER_MISSING_CONDITION: <yes or no>
SYNC_POINTER_MISSING_INTENT: <yes or no>
NOTES2_NAME_OK: <yes or no>

case.yaml:

schema_version: "1.1"
name: p17814-apd-pointer-quality
plugins: ["../.."]
graders:
  - name: 'missing-condition'
    type: 'regex'
    pattern: '^[\W_]*SYNC_POINTER_MISSING_CONDITION[*_]*:[\s*`]*yes\b'
    flags: 'im'
    target: 'last_message'
  - name: 'missing-intent'
    type: 'regex'
    pattern: '^[\W_]*SYNC_POINTER_MISSING_INTENT[*_]*:[\s*`]*yes\b'
    flags: 'im'
    target: 'last_message'
  - name: 'notes2-not-ok'
    type: 'regex'
    pattern: '^[\W_]*NOTES2_NAME_OK[*_]*:[\s*`]*no\b'
    flags: 'im'
    target: 'last_message'

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for dd3784a8779fca0765c258805e411fb06c21069a: #17814 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 3ef714c Nov 21, 2026
106 of 110 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17777-44867898895-1 branch November 21, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cut the model-read ecosystem specifics from docs-hygiene: five single-row skills

1 participant