Skip to content

refactor(architecture): give the nine map-* skills distinct, trimmed descriptions - #13011

Merged
kyle-sexton merged 3 commits into
mainfrom
refactor/12490-map-descriptions
Nov 4, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
refactor/12490-map-descriptions

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Closes #12490

Summary

The nine architecture:map-* skills stay separate leaves, as the owner decided on #12490 (option 3). Each had its description rewritten and was then measured on held-out trigger probes on Opus.

  • Five ship the new description: map-components, map-containers, map-context, map-dependencies and map-landscape. Each is now under the 419-character warn line, keeps its distinct first clause, and drops trigger phrases that repeat the skill name or its opening phrase.
  • Four keep their before text: map-data, map-events, map-flow and map-deployment. Their negative controls could not detect a loss, so the pre-registered rule keeps the before text.

Fix

skill before chars shipped chars shipped text
map-components 450 403 new
map-containers 451 392 new
map-context 459 352 new
map-dependencies 432 347 new
map-landscape 467 358 new
map-data 473 473 before (unmeasurable)
map-events 404 404 before (unmeasurable)
map-flow 468 468 before (unmeasurable)
map-deployment 364 364 before (control drop did not reproduce)

Only description: lines change; skill bodies are untouched. The first clauses of all nine were already distinct and stay distinct.

Verification

Meaning diff (before any paid run). /docs-hygiene:compress compare ran with two independent compare-labeler agents, nine skill pairs read as one directory, and an intended-cuts file.

  • Round 1: both returned BLOCK on the same 3 losses ('component diagram' and 'module dependencies' in map-components, 'internal dependencies' in map-dependencies). Between them they also flagged 2 ambiguities: map-data's subset wording, and "Skip for repositories" in components and containers.
  • All five are fixed. Round 2: both labelers return VERDICT: PASS.

Pre-registration (this body, before the first paid run).

  • Probes: a held-out set written blind by a fresh agent from the before descriptions only, 10 per skill (5 should-trigger, 5 near-misses aimed at named siblings), 90 cases, emitted with measure-invocation.sh emit-plugin-eval. The rewriter never read any probe or eval file.
  • Arms: before (origin/main at 255279f), after (this branch), and 9 controls, each the before plugin with one skill's description replaced by "Helper for repository maintenance tasks.". The cases are identical across arms.
  • Run: per skill, before, after and that skill's control launched together on that skill's 10 cases. --model opus --runs 3 --ablation none --keep-temp --disallow-tools Read Glob Grep Agent -j 1, Claude Code 2.1.318.
  • Validity: every pass VALID per run-validity.py. The skill-fired check is not applied, and a denial or a turn cap after the run's graded Skill call does not invalidate it. A usage-limit or auth error is rerun under this plan. No other exclusions.
  • Decision, per skill:
    • (a) Trigger rate on the should-trigger cases: after ≥ before − 0.05.
    • (b) False-trigger rate on the near-misses: after ≤ before + 0.05.
    • (c) No noise-report case drop without a measured cause.
    • (d) The control must detect a loss, by a noise-report case drop or a mean case score at least 0.15 below before. A skill whose control detects nothing is unmeasurable and ships its before text.
    • (e) A skill failing (a) to (c) ships its before text.
    • Each clause is checked against every skill before a verdict is reported.

Results (trigger rate / false-trigger rate / case mean; 30 runs per arm per skill; every pass VALID except as noted):

skill before after control after vs before (noise report) control vs before verdict
map-components 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.40 / 0.00 / 0.70 non-inferior, no case drop 3 case drops (1.00 to 0.00) ships new
map-containers 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.73 / 0.00 / 0.87 non-inferior, no case drop 2 case drops (one 1.00 to 0.00) ships new
map-context 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.53 / 0.00 / 0.77 non-inferior, no case drop 3 case drops ships new
map-dependencies 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.40 / 0.00 / 0.70 non-inferior, no case drop 3 case drops (1.00 to 0.00) ships new
map-landscape 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.60 / 0.00 / 0.80 non-inferior, no case drop 2 case drops (1.00 to 0.00) ships new
map-deployment 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 0.87 / 0.00 / 0.93 non-inferior, no case drop 2 drops of one run each; did not reproduce keeps before
map-data 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 non-inferior no detection keeps before
map-events 0.93 / 0.00 / 0.97 (INVALID, see below) 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 non-inferior no detection keeps before
map-flow 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 1.00 / 0.00 / 1.00 non-inferior no detection keeps before

Disclosures.

  • map-deployment rule, applied after its scores were read. plugins/skill-quality/reference/invocation-probes.md ("Description controls") requires a description control's case drop to reproduce, which is stricter than (d) as pre-registered. Each map-deployment drop was a single miss in 3 runs, so I reran those two cases, before and control launched together, 3 runs each, both VALID. The control fired 3/3 on both, so the drop did not reproduce, and map-deployment keeps its before text. The five shipped skills each have at least one drop of 1.00 to 0.00, a miss in all 3 runs.
  • One run excluded. In map-events, one before-arm run crashed (Claude Code SIGSEGV), which makes that pass INVALID. It was not rerun: map-events keeps its before text either way, because its control detected nothing.
  • Unmeasurable skills. For map-data, map-events and map-flow, a generic description lost no held-out request in this plugin-only listing, so these probes cannot detect a cut. They keep their before text, and map-data and map-flow keep their description-length warnings.
  • Cost: 822 Opus runs, about 99 USD as a list-price estimate summed from the CLI's costUsd. This is Claude subscription usage, not spend.
  • Static checks: check-skill.sh plugins/architecture/skills: 12 passed, 0 failed. measure-invocation.sh validate plugins/architecture/probes: PASS. check-changelog-fragments.sh --check-required: pass.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_015te8CoibZv2y2Zsidz4jvz

kyle-sexton and others added 3 commits November 3, 2026 19:38
…descriptions

Each description drops trigger phrases that repeat the skill name or its
opening phrase and compresses its sibling pointers, bringing all nine under
the 419-character warn line while keeping each first clause distinct.

Refs #12490

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8CoibZv2y2Zsidz4jvz
…d a loss

The held-out pass measured all nine rewrites. The controls for map-data,
map-events, map-flow and map-deployment detected no loss (map-deployment's
drops did not reproduce), so those four keep their before descriptions, as
the preregistered rule on #13011 requires.

Refs #12490

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8CoibZv2y2Zsidz4jvz
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 01:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T01:59:09.341879Z 4026974 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13011

No security issues found. I read every hunk of all 6 changed files.

What changed. The change edits only the frontmatter description: line of five architecture:map-* skills (map-components, map-containers, map-context, map-dependencies, map-landscape) and adds one changelog fragment. In each skill:

  • argument-hint, user-invocable and disable-model-invocation: false are unchanged.
  • No skill body changes.

Instruction-surface lens. The new descriptions remove trigger phrases and shorten the "Skip for…" sibling pointers, for example /architecture:map-landscape becomes map-landscape. None of the removed text is a guardrail; they are routing hints.

  • The one safety-relevant phrase is "credentials redacted" in map-context, and the new description keeps it.
  • No standing instruction is deleted, narrowed or softened in a way that protects a register class.
  • I didn't need the protected-class register, because no rule was removed.

Trust controls and manifests. No file in the diff matches the wrapper's trusted-path globs. No trust control, merge hold, token scope, kill switch or plugin manifest (plugin.json / marketplace.json) is touched.

PR context. The description and the closing-issue comments contain no text aimed at the review lane. The only spend it mentions is about 822 Opus runs on the Claude subscription for trigger measurement. That spend already happened and this change adds none.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13011, trimmed architecture:map-* descriptions

This review is complete: I read every hunk of all 6 changed files. The PR changes only five description: lines (map-components, map-containers, map-context, map-dependencies, map-landscape) and adds a bump: patch changelog fragment. A patch bump fits a change that touches only descriptions. No plugin manifest changed, so the manifest checks don't apply.

Correctness. Each new description keeps the same opening clause as before. Every trigger phrase that was dropped either repeats the skill name (for example 'map components', 'map context') or repeats the opening phrase (for example 'C4 component view', 'container diagram'). The phrases the round-1 meaning diff said were lost ('component diagram', 'module dependencies', 'internal dependencies') are back in. The skip clauses now name sibling skills by bare leaf name (map-landscape, improve). That matches how map-components and map-containers already wrote them. The fragment's ranges (432–467 → 347–403) agree with the PR's table. I estimated map-context by hand at about 350 characters, close to the stated 352. I did not count the other four, so the claim that all five are under the 419-character warn line in plugins/skill-quality/scripts/check-skill.sh (POCOK_DESC_MAX=419) is the author's and unverified.

Closing issue #12490, done-when items.

  • No two descriptions share a first clause, and /skill-quality:check passes: met as far as the diff shows. All five first clauses are still distinct. The check results ("12 passed, 0 failed") are claimed by the author and unverified.
  • Two-labeler meaning diff before any paid run: claimed by the author, unverified.
  • Triggering re-measured, no lost positive and no new false fire, a failing description keeps its main text: claimed by the author, unverified. The four skills whose description controls detected nothing (map-data, map-events, map-flow, map-deployment) keep their old text, which the pre-registered rule allows. map-data (473) and map-flow (468) therefore stay over the 419 warn line. That falls short of the issue's Outcome wording ("trimmed to the repository's description standard") but is consistent with its done-when rule. This is a note, not counted as a finding.
  • 9 map- skills, validate-plugins.sh passes:* no skill directory is added or removed. The validator run is not stated and I could not run it.

Finding (advisory, cross-file). The criterion "No two plugins/architecture/skills/map-*/SKILL.md descriptions share a first clause" is met, but no test in the PR or the repository would fail if it broke. check-skill.sh checks each skill on its own, and I found no check that compares sibling descriptions; distinct first clauses appear only as comments in scripts/skill-leaf-name-registry.txt. A later edit to any of the nine descriptions, for example

description: "C4 component view of the modules inside one deployable, one directed arrow per internal build reference, each citing its declaration. Use when 'component diagram', 'what is inside this service', 'module dependencies', 'which way do the arrows point', 'layering of this deployable'. Skip for which repositories exist (map-landscape), all deployables (map-containers), or module-design friction (improve)."
, could make two first clauses match and still pass every check. Fix: add a sibling check (in check-skill.sh or validate-plugins.sh) that splits each description at its first . and fails when two skills in the same plugin produce the same opening clause. Alternatively, record in #12490 that this criterion is verified by hand only.

Rule files. .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md cover the changed SKILL.md files. They are not broken: the changes are frontmatter descriptions only, with no restated upstream facts and no prices. The cost figure (~99 USD list-price estimate, from subscription usage) appears only in the PR body, not in any file.

Spend: the PR body reports 822 Opus runs on subscription usage for the trigger measurement. That is prepaid usage, not a billed charge, so there is no hold.

No embedded instructions were found in the PR context or the prior-findings file. This is round 1 of a cap of 3, and there are no prior findings.

@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review round 1: reply

Finding Classification Action
No check fails if two sibling map-* first clauses ever match Valid observation; no change in this PR I took the review's own alternative: the criterion is verified by hand and recorded below. A sibling-clause check would be a new standing mechanism. Its only consumer would be this one-time cleanup criterion, and no other plugin has asked for it.

Hand verification at 4026974. The first clauses up to the first period are distinct across all nine: "C4 component view…", "C4 container diagram…", "C4 system context…", "Entity-relationship diagram…", "Project dependency graph…", "C4 deployment view…", "Async message topology…", "Sequence diagram…", "C4 System Landscape…". Run in the PR worktree at that head, scripts/validate-plugins.sh reports "All plugin manifests and the catalog validated." and check-skill.sh plugins/architecture/skills reports 12 passed, 0 failed.

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.

refactor(architecture): give the nine map-* skills distinct, trimmed descriptions

1 participant