/ancplua-skills:grounding-auditfrom ancplua-skills
Verify claims a repo makes about itself — doc comments, examples, README snippets, inline "this never happens" comments, test assertions on wording, CHANGELOG statements — against what the code and its dependencies actually do. Classify each as true, lie, stale, or unverifiable, fix them, and restructure so the same lie cannot recur. Use this whenever a comment asserts library or framework behavior, whenever a defensive check or workaround is justified by a comment rather than by a reproduction, after any refactor or dependency upgrade that changed observable behavior, when a test asserts prose instead of structure, and any time something reads plausible but you cannot verify it without looking. Reach for it especially when reviewing AI-written code, which states mechanisms confidently and is right about them only sometimes.
Ships in ancplua-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are auditing claims about the code, not the code itself.
A repository holds two kinds of text: code, which does what it does, and assertions about the code — doc comments, examples, README API sketches, inline explanations, test assertions on wording, architecture notes. When an assertion is false, every reader builds on it. Humans trust it. Agents ingest it as ground truth and write more code on top. Tests get written against it. That is not a code smell; it is poisoned grounding — the reasoning downstream is corrupted even when every individual step is sound.
A false claim is worse than no claim, because it is load-bearing without being checked.
expect(msg).toContain("must be absolute")) instead of structure.Collect every assertion about behavior in scope, in descending blast radius:
@example blocks.| Claim is about | Verify against | Never accept |
|---|---|---|
| Local behavior | The implementation. Trace the exact path. | Adjacency — a comment near a function is not evidence about it |
| A dependency | Vendored docs, or the installed package source, file and line | Recall. Your training data holds older major versions that compile identically |
| An output string | Execution, character for character | A remembered format. Culture, ordering, and punctuation are where lies hide |
| A consumer ("X parses this") | Grep for the actual consumers and read them | The claim itself. Claims about who depends on what are the scariest ones |
| A reachable state | A reproduction, or a proof it cannot occur | "It could theoretically happen" |
Environment-dependent behavior is a claim: an output documented as 62.0% is a lie on a de-AT host if the formatting is
culture-sensitive.
For a claim about a dependency you cannot check cheaply, that is itself the finding. Record it UNVERIFIABLE and say so. Do not guess and do not let the comment stand as if checked.
| Verdict | Meaning | Action |
|---|---|---|
| TRUE | Matches behavior | Leave it; optionally pin it with a test |
| LIE | Never true in any reachable version | Fix now; trace what was built on it |
| LOAD-BEARING LIE | A lie that justifies code | Delete the claim and the code it justifies. A guard against an impossible state is not "harmless" — it costs runtime, misleads the next reader, and hides the real invariant |
| STALE | Was true, drifted after a change | Fix; name the change that orphaned it |
| UNVERIFIABLE | Cannot be checked from repo or docs | Rewrite so it is checkable, or delete it |
For every lie and every stale claim, trace the poisoning chain: what else — tests, docs, consumer code, past decisions, other comments — was written by someone who believed it? Each is a new audit target.
The verdict is the deliverable:
Sweep result: N true / N lies / N load-bearing / N stale / N unverifiable. Consumers X and Y never depended on the false claim (verified by …). Poisoning was confined to {tests, docs, module Z}; fixed by {…}; recurrence prevented by {golden test / structured API / invariant output / citation}.
Name what was checked and found clean as explicitly as what was found wrong. "No consumer parses the reason prose" is worth as much as a fix, because it bounds the blast radius and un-poisons the reasoning downstream.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ancplua/ancplua-skills --plugin ancplua-skills43 skills in this plugin
/agent-log-scanScan agent transcripts and turn antipatterns into config and routine changes, not just an allowlist like fewer-permission-prompts. Use when asked to scan agent logs or session history, "why do my agents keep failing", "what happened across my sessions", to find retry loops, permission thrash, API dead-ends or limit interrupts, or raise autonomy./analyzer-purityKeep Roslyn analyzers, source generators and code fixes pure, loadable and cache-friendly inside every compiler host. Use when creating, changing, reviewing or packaging a netstandard2.0 project with IsRoslynComponent, EnforceExtendedAnalyzerRules or Microsoft.CodeAnalysis references, or when an RS1xxx/RS2xxx diagnostic, a sluggish IDE or a generator that reruns on every keystroke points at one./Other plugins' skills for the same job