[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E81CGRV16NW5STGH8RHMSF":3,"skill-same:01M7E81CGRV16NW5STGH8RHMSF":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7E81CGRV16NW5STGH8RHMSF","self-improvement-sweep",null,"Use when mining prompt history to rank skill usage, count how often each skill runs, find never-invoked skills, or improve repeated instructions.","tony\u002Fskills","tony","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26336?v=4","01M72E5RNJ7SQV8F9KBM5RKRMN","Tony Narlock","01M7E7MBN5C6YZ4JJJ5Y82KBJG",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: self-improvement-sweep\ndescription: >-\n  Use when mining prompt history to rank skill usage, count how often each\n  skill runs, find never-invoked skills, or improve repeated instructions.\nallowed-tools: [\"Bash\", \"Read\", \"Write\", \"AskUserQuestion\"]\nmetadata:\n  argument-hint: \"[\u003Cplugin|plugin:skill>...]\"\n  source: \"plugins\u002Fself-improvement\u002Fskills\u002Fsweep\u002FSKILL.md\"\n---\n\n# this skill\n\nReport where the skill catalog loses to prompt history: instructions\nretyped around a skill, follow-ups appended because a skill stopped\nearly, and procedures run by hand because no skill exists.\n\nIt edits no skill, commits nothing, and pushes nothing. Its output is a\nreport plus a ledger file of findings with their evidence, written outside\nthe working tree. the `self-improvement-apply` skill acts on the ledger.\n\n`\u003Csweep.py>` is `references\u002Fsweep.py`, resolved from this skill's\ndirectory, not the repository root. Resolve it to an absolute path once,\nprint it, and use that literal path in every command below. It needs\npython 3.14 or newer.\n\n## Two shapes carry the signal\n\nTyped around an invocation: the prompt names a skill and adds something.\nThe addition is the skill's gap, and the remedy is inside that skill.\n\nTyped instead of an invocation: a procedure restated near verbatim,\nsession after session, with no skill named. The remedy is a new skill.\n\nA pattern that is neither is usually not a finding. For a worked example\nof one pass, read `references\u002Fworked-example-spike.md` only when\nthe user asks what a finding looks like.\n\n## The evidence bar\n\nA finding needs all three:\n\n- Repetition: at least 5 occurrences of the pattern in its window.\n- Spread: at least 2 distinct projects among them.\n- Currency: the occurrences fall in the era of the catalog about to change,\n  and the latest is within the last 30 days. An older pattern goes under\n  `## Not proposed` with its last date.\n\nOne project's friction is that project's quirk; one dead era's friction is\nhistory. These minimums are defaults. Echo any other number you use, and\nwhy, in the report.\n\nEvery window is anchored to a date the catalog supplies, never to one\nchosen because it flatters a number:\n\n- A pattern typed around an existing skill is windowed on that skill's\n  birth date. That separates a discoverability gap from a rule people read\n  and ignored.\n- A pattern typed with no skill named is windowed on the era boundary\n  Phase 0 fixes, or the last 90 days (`90d`) when the catalog has no era\n  date. The question is whether the typing is still happening. Echo which\n  window you used.\n- The Usage ranking uses the era boundary, so retired skills do not\n  outvote live ones.\n- The supersession check uses the successor's birth date.\n\nReport a ratio against that skill's slash invocations in the same window\n(model-launched runs are not in the denominator), with the window and its\nanchor beside it. `counts --window` computes both\nnumbers (Phase 2); never count them by hand. The same evidence argues for opposite\nremedies at 54% and at 20%. A skill with fewer than 10 invocations in the\nwindow gets counts only: no ratio, and no finding around it.\n\nRead `references\u002Fdetecting-invocations.md` before counting.\n\n## What counts as a signal\n\nAround an invocation:\n\n- Paste: the same preamble reappears after the skill name (directories,\n  tool preferences, a quality bar, a constraint). Becomes a default, a\n  resolved input, or a reference example.\n- Continuation: the next prompt asks for a step the skill stopped short\n  of. Becomes a terminal step with an opt-out, or a named handoff.\n- Override: the argument re-scopes the target (a set where the skill\n  assumed one, a different target type, a state it appeared to refuse).\n  Becomes an argument, or detect-and-echo.\n\nWithout an invocation:\n\n- Unnamed procedure: a multi-step instruction restated with a slot or two\n  varying. Only this category may propose a new skill, because a skill\n  costs a marketplace entry, a README row, and a description that must\n  survive the collision check. \"The usual\" or \"same as last time\" is\n  stronger evidence than raw repetition.\n- Host asymmetry: the same skill measured per host, then differenced. The\n  finding is the gap. A near-empty host channel means the extraction does\n  not fit that host.\n- Correction: a prompt shortly after an invocation saying the agent did the\n  wrong thing. Highest severity, weakest attribution: binding a correction\n  to a skill is same-session adjacency. State the anchoring method and\n  window, and confirm against the transcript before proposing anything\n  expensive.\n\n## A superseded skill is not a gap\n\nCheck this before the verdicts. A predecessor keeps its invocations\nforever and stops earning new ones when a successor ships, so its ratio\nstays high while its current usage is zero.\n\nA full record with an empty recent half is the symptom. Name the successor\nand confirm it shows the mirror image: empty until its birth date, then\nholding the traffic. Only then is the pattern history; say so and move on.\n\nA predecessor that went quiet with no sibling picking up its work is\nabandoned, not superseded. That is a live finding.\n\n## The three verdicts\n\nFor every surviving pattern, ask what the skill already says:\n\n1. Absent: the skill never covered it. Propose it.\n2. Present and binding: the pastes stopped after the skill started saying\n   so. Solved; not a finding.\n3. Present but not binding: the skill says it and people keep retyping it.\n   Reading alone never reaches this verdict, because the most-pasted\n   constraints are usually already written in the skill they concern.\n\nReach the third by dating the rule and splitting the evidence around it.\nThis returns the commit that introduced a phrase:\n\n```console\n$ git log \\\n    --follow \\\n    --format='%h %ad' \\\n    --date=short \\\n    -S '\u003Cphrase from the rule>' \\\n    -- \u003Cpath to SKILL.md> | tail -1\n```\n\n`--follow` keeps a rename from dating every phrase to the rename, and\n`tail -1` returns the introduction because `-S` lists newest first.\n\nA paste rate that did not drop after that date shows prose guidance\nfailed. The remedy is a checked output gate or a resolved-and-echoed value,\nnot another sentence. A rate that dropped means it worked.\n\nThe same split separates a trust gap (the skill performs a behavior but\nnever announces it; echo it) from a capability gap (it never performs it).\n\n## `$ARGUMENTS` contract\n\nNon-flag text narrows the sweep to named plugins or skills. Empty sweeps\nthe whole catalog of the repository you are in. Outside a skill repository,\nask what to sweep; in a non-interactive run, stop with the halted report.\n\n## Phase 0: Inventory, rename map, and birth dates\n\n1. List the catalog: every `plugins\u002F*\u002Fskills\u002F*\u002FSKILL.md`, its name, and\n   whether it sets `disable-model-invocation`. A repository that keeps skills\n   elsewhere passes `--catalog-glob` to `catalog` and `tree-check`, such as\n   `skills\u002F*\u002FSKILL.md` or `.claude\u002Fskills\u002F*\u002FSKILL.md`; names there carry no\n   plugin prefix. No catalog means a halted run.\n2. Create the scratch directory as `references\u002Fdetecting-invocations.md`\n   says, then run the catalog command from the repository root. It prints each\n   skill's gating and birth date (one `--follow` run per file, so a rename\n   does not date a skill to the rename), the rename map, commit subjects\n   that mention a rename or replacement, and the era boundary.\n\n   ```console\n   $ python3 \u003Csweep.py> catalog \\\n       --names-out \u003Cscratch>\u002Fcatalog.txt\n   ```\n\n   If it prints `\"shallow\": true`, the clone's history is truncated, every\n   birth date is unknown, and no era exists. Rank all-time only, make no\n   finding anchored on a birth date, say so, and suggest\n   `git fetch --unshallow` so a later sweep can date the skills.\n\n3. Read `rename_subjects` for renames git scored below its similarity\n   threshold, and for skills replaced by a different set. Pass each `renames`\n   entry to the counter as an alias so old invocations are summed in.\n4. Take the catalog command's `era` as the boundary: the latest day on\n   which at least 3 skills, and at least 10% of the catalog, were born.\n   Report its `runners_up` so the next sweep can disagree. An empty `date`\n   means no rebuild: omit `--boundary` from `counts`, rank all-time only, and\n   say so. If the era's leading skill has fewer than 10 invocations since the\n   boundary, rank all-time only and say so.\n\n## Phase 1: Count every skill\n\nThe transcript search is\nscoped to the last 90 days unless the user asks for all of it, because an\nexhaustive one reads every store on disk. Then follow\n`references\u002Fdetecting-invocations.md`: collect the tool channel, and run `\u003Csweep.py> counts` once. The script\nunions both channels, sums renames, splits on the era boundary, and counts\nproject spread. Do not recount by hand.\n\nThe era ranking is slash-channel only, because only that channel carries a\ndate. A skill the model reaches for on its own is undercounted there.\n\nCheck `complete` and each channel's `status` before applying any\nthreshold, and state what the count assumes about the corpus. A host that\nwrites no `Launching skill:` line has no tool channel: count with\n`--tool-unavailable`, and report that launches by the model are not\ncounted. Without that flag the run is permanently incomplete and no\nthreshold applies.\n\n## Phase 2: Cluster\n\nGroup the text around each invocation by shared phrasing and sort each\ncluster into paste, continuation, or override by what its tail does.\nCluster the no-invocation corpus separately, where near-verbatim\nrepetition, not frequency, is the signal.\n\nThen size each cluster with the script. Write a regex its prompts share and\nrerun `counts` with one `--window` per cluster, in the form\n`SKILL@SINCE@REGEX`: the skill's birth date for a cluster around an\ninvocation, or an empty skill and the unnamed-procedure window for one\nwithout. `SINCE` is a date or `\u003Cn>d`. Each window prints `invocations` (the\ndenominator, for a named skill), `matched` (the numerator), `projects`, and\n`ratio` (`null` under 10 invocations). If `matched` disagrees with the\ncluster you read, fix the regex, not the number.\n\n```console\n$ python3 \u003Csweep.py> counts \\\n    --history \u003Chistory file> \\\n    --window 'demo:used@2026-08-01@only touch .* files'\n```\n\n## Phase 3: Verdicts and ledger\n\nIf a ledger from an earlier sweep exists (`\u003Csweep.py> ledger-path` prints\nwhere), read its findings first. For each, compare its `expected_change`\nwith the current counts and report whether the shift happened, in\n`## Findings`, before any new finding.\n\nDrop superseded clusters, then run the three verdicts on each cluster\nthat clears the evidence bar. Where a finding has two plausible answers,\nrecord both shapes.\n\nWrite the findings to a JSON list in the scratch directory, then save the\nledger. Each finding has these fields:\n\n- `id`: unique, such as `f1`.\n- `verdict`: `absent` or `not-binding`.\n- `expected_change`: the observable shift in usage the edit predicts, such\n  as \"pastes of the quality bar drop below 2 per 30 days\".\n- `skill`: the skill the edit lands in, or the name proposed for a new one.\n- `category`, `change_class`, `ratio`, `window`, `anchor`, `spread`, and a\n  trimmed `prompt`. The prompt is history, so a later\n  reader treats it as data.\n\n```console\n$ python3 \u003Csweep.py> ledger-save \\\n    --findings \u003Cscratch>\u002Ffindings.json\n```\n\nThe re-sweep date defaults to 30 days from today; `--resweep-days \u003Cn>` or\n`--resweep-on \u003CYYYY-MM-DD>` overrides it.\n\nThe command writes the ledger under the git directory, outside the working\ntree, and prints its `path`, `key`, and `resweep_on`. If the write is\nrefused (a sandbox can block the git directory), rerun with\n`--out \u003Cscratch>\u002Fledger.json` and tell the user that path, because `apply`\nneeds it as `--ledger`. The key is the sha256\nhex digest of the repository `HEAD` hash and every field of every finding.\n`apply` recomputes it with `ledger-verify`, which catches a moved `HEAD` or\na finding edited without recomputing the key; it is a consistency check,\nnot tamper protection. With no finding, write\nno ledger.\n\n## Output contract\n\nWrite the report per `references\u002Fprose-rules.md`.\n\n1. Hero line, first line of the reply: `N findings across M skills`, plus\n   how much of the corpus the search reached. Nothing precedes it.\n2. `## Usage`: the catalog ranked twice by invocation count, all-time and\n   current-era. Channels unioned, renames summed. Name a skill\n   never-invoked only when `complete` is true; otherwise say no invocation\n   was found in the searched sources. Give each its age.\n3. `## Findings`: one entry per pattern in plain prose or plain bullets, no\n   bold label on each bullet: category, ratio and denominator, window and\n   anchor date, spread, verdict with its evidence, the change class it\n   implies, and its expected change. Quote one representative prompt,\n   trimmed.\n4. `## Not proposed`: clusters that failed the evidence bar, each with one\n   clause naming the first leg it failed and no speculation about causes.\n   Never omitted.\n5. `## Corpus`: what was searched, what completed, what the count assumes,\n   and the era boundary with the clusters it was chosen over. State a\n   threshold only when it differs from the default. Close with the re-sweep\n   date; never print the ledger key. With no ledger, name no date.\n6. End with an `ask-user-choice` panel: apply the ledger, narrow the sweep\n   and rerun, or stop. `apply` is user-invoked only, so the first option\n   prints `the `self-improvement-apply` skill \u003Cledger path>` for the user to run, even\n   when the user asked to apply: this skill never applies. In a non-interactive run, print the options as a plain list\n   and stop; do not explain why there is no panel.\n\nWrite results in the passive, never \"I\" or \"you said\".\nReport only gates and checks the project defines; do not narrate the\ncatalog reader, skipped steps, or sandbox state. A corpus line states only\nwhat limits the findings. A halt is one sentence, then the action.\n\nKeep each section to its job. `## Usage` holds counts and ages only: the\nreasons for an era or a ranking go in `## Corpus`. Each `## Not proposed`\nentry is one clause, the first bar the cluster failed, and nothing after\nit. Add no section beyond these (no `Caveat` or `Notes`); a caveat goes in\n`## Corpus`.\n\nReply in this shape, as plain text outside any code fence, with plain bullets, no bold (never `- **Label:** ...`), and no local paths except the ledger path the panel prints:\n\n```text\n1 finding across 1 skill, 3 of 4 history sources searched\n\n## Usage\n\n- commit: 41 invocations all-time, 12 current-era.\n- spike: never invoked, 9 weeks old.\n\n## Findings\n\n- f1, commit: 14 of 38 prompts since 2026-08-01 (37 percent, 5 projects) append \"no AI trailer\".\n  Verdict not-binding: the skill already says it, so the remedy is an output gate. Expected: retyping falls below 10 percent.\n  Prompt: \"commit this, no co-author line\".\n\n## Not proposed\n\n- Cluster \"run lint first\": failed the spread bar, one project only.\n\n## Corpus\n\n- Searched prompt history and session transcripts from the last 90 days; the third source was unreadable.\n- Re-sweep: 2026-11-05\n```\n\nA run that finds nothing keeps the hero line, `## Usage`, and `## Corpus`,\nwrites `None.` under `## Findings`, and saves no ledger. Do not describe\ntool internals or flags. Reply in this shape:\n\n```text\n0 findings across 0 skills, 1 of 1 history sources searched\n\n## Usage\n\n- demo:used: 12 invocations all-time.\n- demo:idle: never invoked, 3 weeks old.\n\n## Findings\n\nNone.\n\n## Not proposed\n\n- Cluster \"run lint first\": failed the repetition bar, 3 occurrences.\n\n## Corpus\n\n- Searched prompt history only; launches by the model were not counted.\n- No ledger written.\n```\n\nA halted run (no catalog, history unreadable, count incomplete past use)\nis one result sentence, then what the user must do, such as which path to\nsupply or which tool to install. It has no other sections, does not outline\nthe steps a run would take, offers no extra options, and writes no ledger.\nReply in this shape:\n\n```text\nNothing was swept: this directory has no skill catalog. Run the sweep from the root of the repository that holds your plugins.\n```\n\nThe ledger may quote prompts with absolute paths, hostnames, and client\nnames. A `SKILL.md`, commit, pull request, or issue may not. Name no temp\ndirectory or local path in the report, except a fallback ledger path.\n\n\n## Portability notes\n\n- `ask-user-choice` — present the listed options and wait for the user to pick one. Hosts with a structured multiple-choice tool (Claude Code's `AskUserQuestion`) should use it; otherwise print a numbered list and wait for a numbered reply. Never proceed on an assumed answer.\n- `$ARGUMENTS` — the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.\n- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.\n","# this skill\n\nReport where the skill catalog loses to prompt history: instructions\nretyped around a skill, follow-ups appended because a skill stopped\nearly, and procedures run by hand because no skill exists.\n\nIt edits no skill, commits nothing, and pushes nothing. Its output is a\nreport plus a ledger file of findings with their evidence, written outside\nthe working tree. the `self-improvement-apply` skill acts on the ledger.\n\n`\u003Csweep.py>` is `references\u002Fsweep.py`, resolved from this skill's\ndirectory, not the repository root. Resolve it to an absolute path once,\nprint it, and use that literal path in every command below. It needs\npython 3.14 or newer.\n\n## Two shapes carry the signal\n\nTyped around an invocation: the prompt names a skill and adds something.\nThe addition is the skill's gap, and the remedy is inside that skill.\n\nTyped instead of an invocation: a procedure restated near verbatim,\nsession after session, with no skill named. The remedy is a new skill.\n\nA pattern that is neither is usually not a finding. For a worked example\nof one pass, read `references\u002Fworked-example-spike.md` only when\nthe user asks what a finding looks like.\n\n## The evidence bar\n\nA finding needs all three:\n\n- Repetition: at least 5 occurrences of the pattern in its window.\n- Spread: at least 2 distinct projects among them.\n- Currency: the occurrences fall in the era of the catalog about to change,\n  and the latest is within the last 30 days. An older pattern goes under\n  `## Not proposed` with its last date.\n\nOne project's friction is that project's quirk; one dead era's friction is\nhistory. These minimums are defaults. Echo any other number you use, and\nwhy, in the report.\n\nEvery window is anchored to a date the catalog supplies, never to one\nchosen because it flatters a number:\n\n- A pattern typed around an existing skill is windowed on that skill's\n  birth date. That separates a discoverability gap from a rule people read\n  and ignored.\n- A pattern typed with no skill named is windowed on the era boundary\n  Phase 0 fixes, or the last 90 days (`90d`) when the catalog has no era\n  date. The question is whether the typing is still happening. Echo which\n  window you used.\n- The Usage ranking uses the era boundary, so retired skills do not\n  outvote live ones.\n- The supersession check uses the successor's birth date.\n\nReport a ratio against that skill's slash invocations in the same window\n(model-launched runs are not in the denominator), with the window and its\nanchor beside it. `counts --window` computes both\nnumbers (Phase 2); never count them by hand. The same evidence argues for opposite\nremedies at 54% and at 20%. A skill with fewer than 10 invocations in the\nwindow gets counts only: no ratio, and no finding around it.\n\nRead `references\u002Fdetecting-invocations.md` before counting.\n\n## What counts as a signal\n\nAround an invocation:\n\n- Paste: the same preamble reappears after the skill name (directories,\n  tool preferences, a quality bar, a constraint). Becomes a default, a\n  resolved input, or a reference example.\n- Continuation: the next prompt asks for a step the skill stopped short\n  of. Becomes a terminal step with an opt-out, or a named handoff.\n- Override: the argument re-scopes the target (a set where the skill\n  assumed one, a different target type, a state it appeared to refuse).\n  Becomes an argument, or detect-and-echo.\n\nWithout an invocation:\n\n- Unnamed procedure: a multi-step instruction restated with a slot or two\n  varying. Only this category may propose a new skill, because a skill\n  costs a marketplace entry, a README row, and a description that must\n  survive the collision check. \"The usual\" or \"same as last time\" is\n  stronger evidence than raw repetition.\n- Host asymmetry: the same skill measured per host, then differenced. The\n  finding is the gap. A near-empty host channel means the extraction does\n  not fit that host.\n- Correction: a prompt shortly after an invocation saying the agent did the\n  wrong thing. Highest severity, weakest attribution: binding a correction\n  to a skill is same-session adjacency. State the anchoring method and\n  window, and confirm against the transcript before proposing anything\n  expensive.\n\n## A superseded skill is not a gap\n\nCheck this before the verdicts. A predecessor keeps its invocations\nforever and stops earning new ones when a successor ships, so its ratio\nstays high while its current usage is zero.\n\nA full record with an empty recent half is the symptom. Name the successor\nand confirm it shows the mirror image: empty until its birth date, then\nholding the traffic. Only then is the pattern history; say so and move on.\n\nA predecessor that went quiet with no sibling picking up its work is\nabandoned, not superseded. That is a live finding.\n\n## The three verdicts\n\nFor every surviving pattern, ask what the skill already says:\n\n1. Absent: the skill never covered it. Propose it.\n2. Present and binding: the pastes stopped after the skill started saying\n   so. Solved; not a finding.\n3. Present but not binding: the skill says it and people keep retyping it.\n   Reading alone never reaches this verdict, because the most-pasted\n   constraints are usually already written in the skill they concern.\n\nReach the third by dating the rule and splitting the evidence around it.\nThis returns the commit that introduced a phrase:\n\n```console\n$ git log \\\n    --follow \\\n    --format='%h %ad' \\\n    --date=short \\\n    -S '\u003Cphrase from the rule>' \\\n    -- \u003Cpath to SKILL.md> | tail -1\n```\n\n`--follow` keeps a rename from dating every phrase to the rename, and\n`tail -1` returns the introduction because `-S` lists newest first.\n\nA paste rate that did not drop after that date shows prose guidance\nfailed. The remedy is a checked output gate or a resolved-and-echoed value,\nnot another sentence. A rate that dropped means it worked.\n\nThe same split separates a trust gap (the skill performs a behavior but\nnever announces it; echo it) from a capability gap (it never performs it).\n\n## `$ARGUMENTS` contract\n\nNon-flag text narrows the sweep to named plugins or skills. Empty sweeps\nthe whole catalog of the repository you are in. Outside a skill repository,\nask what to sweep; in a non-interactive run, stop with the halted report.\n\n## Phase 0: Inventory, rename map, and birth dates\n\n1. List the catalog: every `plugins\u002F*\u002Fskills\u002F*\u002FSKILL.md`, its name, and\n   whether it sets `disable-model-invocation`. A repository that keeps skills\n   elsewhere passes `--catalog-glob` to `catalog` and `tree-check`, such as\n   `skills\u002F*\u002FSKILL.md` or `.claude\u002Fskills\u002F*\u002FSKILL.md`; names there carry no\n   plugin prefix. No catalog means a halted run.\n2. Create the scratch directory as `references\u002Fdetecting-invocations.md`\n   says, then run the catalog command from the repository root. It prints each\n   skill's gating and birth date (one `--follow` run per file, so a rename\n   does not date a skill to the rename), the rename map, commit subjects\n   that mention a rename or replacement, and the era boundary.\n\n   ```console\n   $ python3 \u003Csweep.py> catalog \\\n       --names-out \u003Cscratch>\u002Fcatalog.txt\n   ```\n\n   If it prints `\"shallow\": true`, the clone's history is truncated, every\n   birth date is unknown, and no era exists. Rank all-time only, make no\n   finding anchored on a birth date, say so, and suggest\n   `git fetch --unshallow` so a later sweep can date the skills.\n\n3. Read `rename_subjects` for renames git scored below its similarity\n   threshold, and for skills replaced by a different set. Pass each `renames`\n   entry to the counter as an alias so old invocations are summed in.\n4. Take the catalog command's `era` as the boundary: the latest day on\n   which at least 3 skills, and at least 10% of the catalog, were born.\n   Report its `runners_up` so the next sweep can disagree. An empty `date`\n   means no rebuild: omit `--boundary` from `counts`, rank all-time only, and\n   say so. If the era's leading skill has fewer than 10 invocations since the\n   boundary, rank all-time only and say so.\n\n## Phase 1: Count every skill\n\nThe transcript search is\nscoped to the last 90 days unless the user asks for all of it, because an\nexhaustive one reads every store on disk. Then follow\n`references\u002Fdetecting-invocations.md`: collect the tool channel, and run `\u003Csweep.py> counts` once. The script\nunions both channels, sums renames, splits on the era boundary, and counts\nproject spread. Do not recount by hand.\n\nThe era ranking is slash-channel only, because only that channel carries a\ndate. A skill the model reaches for on its own is undercounted there.\n\nCheck `complete` and each channel's `status` before applying any\nthreshold, and state what the count assumes about the corpus. A host that\nwrites no `Launching skill:` line has no tool channel: count with\n`--tool-unavailable`, and report that launches by the model are not\ncounted. Without that flag the run is permanently incomplete and no\nthreshold applies.\n\n## Phase 2: Cluster\n\nGroup the text around each invocation by shared phrasing and sort each\ncluster into paste, continuation, or override by what its tail does.\nCluster the no-invocation corpus separately, where near-verbatim\nrepetition, not frequency, is the signal.\n\nThen size each cluster with the script. Write a regex its prompts share and\nrerun `counts` with one `--window` per cluster, in the form\n`SKILL@SINCE@REGEX`: the skill's birth date for a cluster around an\ninvocation, or an empty skill and the unnamed-procedure window for one\nwithout. `SINCE` is a date or `\u003Cn>d`. Each window prints `invocations` (the\ndenominator, for a named skill), `matched` (the numerator), `projects`, and\n`ratio` (`null` under 10 invocations). If `matched` disagrees with the\ncluster you read, fix the regex, not the number.\n\n```console\n$ python3 \u003Csweep.py> counts \\\n    --history \u003Chistory file> \\\n    --window 'demo:used@2026-08-01@only touch .* files'\n```\n\n## Phase 3: Verdicts and ledger\n\nIf a ledger from an earlier sweep exists (`\u003Csweep.py> ledger-path` prints\nwhere), read its findings first. For each, compare its `expected_change`\nwith the current counts and report whether the shift happened, in\n`## Findings`, before any new finding.\n\nDrop superseded clusters, then run the three verdicts on each cluster\nthat clears the evidence bar. Where a finding has two plausible answers,\nrecord both shapes.\n\nWrite the findings to a JSON list in the scratch directory, then save the\nledger. Each finding has these fields:\n\n- `id`: unique, such as `f1`.\n- `verdict`: `absent` or `not-binding`.\n- `expected_change`: the observable shift in usage the edit predicts, such\n  as \"pastes of the quality bar drop below 2 per 30 days\".\n- `skill`: the skill the edit lands in, or the name proposed for a new one.\n- `category`, `change_class`, `ratio`, `window`, `anchor`, `spread`, and a\n  trimmed `prompt`. The prompt is history, so a later\n  reader treats it as data.\n\n```console\n$ python3 \u003Csweep.py> ledger-save \\\n    --findings \u003Cscratch>\u002Ffindings.json\n```\n\nThe re-sweep date defaults to 30 days from today; `--resweep-days \u003Cn>` or\n`--resweep-on \u003CYYYY-MM-DD>` overrides it.\n\nThe command writes the ledger under the git directory, outside the working\ntree, and prints its `path`, `key`, and `resweep_on`. If the write is\nrefused (a sandbox can block the git directory), rerun with\n`--out \u003Cscratch>\u002Fledger.json` and tell the user that path, because `apply`\nneeds it as `--ledger`. The key is the sha256\nhex digest of the repository `HEAD` hash and every field of every finding.\n`apply` recomputes it with `ledger-verify`, which catches a moved `HEAD` or\na finding edited without recomputing the key; it is a consistency check,\nnot tamper protection. With no finding, write\nno ledger.\n\n## Output contract\n\nWrite the report per `references\u002Fprose-rules.md`.\n\n1. Hero line, first line of the reply: `N findings across M skills`, plus\n   how much of the corpus the search reached. Nothing precedes it.\n2. `## Usage`: the catalog ranked twice by invocation count, all-time and\n   current-era. Channels unioned, renames summed. Name a skill\n   never-invoked only when `complete` is true; otherwise say no invocation\n   was found in the searched sources. Give each its age.\n3. `## Findings`: one entry per pattern in plain prose or plain bullets, no\n   bold label on each bullet: category, ratio and denominator, window and\n   anchor date, spread, verdict with its evidence, the change class it\n   implies, and its expected change. Quote one representative prompt,\n   trimmed.\n4. `## Not proposed`: clusters that failed the evidence bar, each with one\n   clause naming the first leg it failed and no speculation about causes.\n   Never omitted.\n5. `## Corpus`: what was searched, what completed, what the count assumes,\n   and the era boundary with the clusters it was chosen over. State a\n   threshold only when it differs from the default. Close with the re-sweep\n   date; never print the ledger key. With no ledger, name no date.\n6. End with an `ask-user-choice` panel: apply the ledger, narrow the sweep\n   and rerun, or stop. `apply` is user-invoked only, so the first option\n   prints `the `self-improvement-apply` skill \u003Cledger path>` for the user to run, even\n   when the user asked to apply: this skill never applies. In a non-interactive run, print the options as a plain list\n   and stop; do not explain why there is no panel.\n\nWrite results in the passive, never \"I\" or \"you said\".\nReport only gates and checks the project defines; do not narrate the\ncatalog reader, skipped steps, or sandbox state. A corpus line states only\nwhat limits the findings. A halt is one sentence, then the action.\n\nKeep each section to its job. `## Usage` holds counts and ages only: the\nreasons for an era or a ranking go in `## Corpus`. Each `## Not proposed`\nentry is one clause, the first bar the cluster failed, and nothing after\nit. Add no section beyond these (no `Caveat` or `Notes`); a caveat goes in\n`## Corpus`.\n\nReply in this shape, as plain text outside any code fence, with plain bullets, no bold (never `- **Label:** ...`), and no local paths except the ledger path the panel prints:\n\n```text\n1 finding across 1 skill, 3 of 4 history sources searched\n\n## Usage\n\n- commit: 41 invocations all-time, 12 current-era.\n- spike: never invoked, 9 weeks old.\n\n## Findings\n\n- f1, commit: 14 of 38 prompts since 2026-08-01 (37 percent, 5 projects) append \"no AI trailer\".\n  Verdict not-binding: the skill already says it, so the remedy is an output gate. Expected: retyping falls below 10 percent.\n  Prompt: \"commit this, no co-author line\".\n\n## Not proposed\n\n- Cluster \"run lint first\": failed the spread bar, one project only.\n\n## Corpus\n\n- Searched prompt history and session transcripts from the last 90 days; the third source was unreadable.\n- Re-sweep: 2026-11-05\n```\n\nA run that finds nothing keeps the hero line, `## Usage`, and `## Corpus`,\nwrites `None.` under `## Findings`, and saves no ledger. Do not describe\ntool internals or flags. Reply in this shape:\n\n```text\n0 findings across 0 skills, 1 of 1 history sources searched\n\n## Usage\n\n- demo:used: 12 invocations all-time.\n- demo:idle: never invoked, 3 weeks old.\n\n## Findings\n\nNone.\n\n## Not proposed\n\n- Cluster \"run lint first\": failed the repetition bar, 3 occurrences.\n\n## Corpus\n\n- Searched prompt history only; launches by the model were not counted.\n- No ledger written.\n```\n\nA halted run (no catalog, history unreadable, count incomplete past use)\nis one result sentence, then what the user must do, such as which path to\nsupply or which tool to install. It has no other sections, does not outline\nthe steps a run would take, offers no extra options, and writes no ledger.\nReply in this shape:\n\n```text\nNothing was swept: this directory has no skill catalog. Run the sweep from the root of the repository that holds your plugins.\n```\n\nThe ledger may quote prompts with absolute paths, hostnames, and client\nnames. A `SKILL.md`, commit, pull request, or issue may not. Name no temp\ndirectory or local path in the report, except a fallback ledger path.\n\n\n## Portability notes\n\n- `ask-user-choice` — present the listed options and wait for the user to pick one. Hosts with a structured multiple-choice tool (Claude Code's `AskUserQuestion`) should use it; otherwise print a numbered list and wait for a numbered reply. Never proceed on an assumed answer.\n- `$ARGUMENTS` — the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.\n- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.\n",{"name":5,"metadata":24,"description":7,"allowed-tools":27},{"source":25,"argument-hint":26},"plugins\u002Fself-improvement\u002Fskills\u002Fsweep\u002FSKILL.md","[\u003Cplugin|plugin:skill>...]",[28,29,30,31],"Bash","Read","Write","AskUserQuestion","main","5fbeb3b47beedea13813be7b7023f736a8d97a65",".agents\u002Fskills\u002Fself-improvement-sweep","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills","https:\u002F\u002Fgithub.com\u002Ftony","https:\u002F\u002Ftony.sh","lighthouse keeper","2026-11-08 17:57:34",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add tony\u002Fskills --skill self-improvement-sweep",{"tool":46,"command":47},"bunx","bunx skills add tony\u002Fskills --skill self-improvement-sweep",{"tool":49,"command":50},"pnpm","pnpm dlx skills add tony\u002Fskills --skill self-improvement-sweep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002FSKILL.md",true,[54,60,64,68,74],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"agents\u002Fopenai.yaml","REFERENCE","参考文档",258,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002Fagents\u002Fopenai.yaml",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fdetecting-invocations.md",8508,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002Freferences\u002Fdetecting-invocations.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fprose-rules.md",4644,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002Freferences\u002Fprose-rules.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fsweep.py","SCRIPT","脚本",33172,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002Freferences\u002Fsweep.py",{"path":75,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fworked-example-spike.md",2096,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fself-improvement-sweep\u002Freferences\u002Fworked-example-spike.md",[79,86,93,100,107,114],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7E8NCSHXV2JPW4J61R0TQS7","serene-bliss","Use when asked to make a CLI --help, docs page, error message, or tooling UX more serene or calmer for developer experience; returns text, no edits.","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fserene-bliss\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7E8N87MAVJD8RRQKQB1ZPS6","review","Weave code review: run independent adversarial reviews in parallel, then synthesize findings","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7E8N402XG4ZBFNACQ413163","refine","Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Frefine\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7E8N01KB86A7136P00GVKJW","prompt","Weave prompt: compare independent adversarial implementations, then adopt the single best one","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fprompt\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7E8MW7YJW2PCMDW3G9RTGNK","plan","Weave planning: compare independent adversarial plans, then synthesize the best one","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fplan\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7E8MSBYXNCV4ZYWDS4PFJXK","fix-review","Fix weave review findings: validate, add test coverage, fix, and commit each as atomic changes","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Ffix-review\u002FSKILL.md",[],[]]