dishonest-code-audit
Copilot instructions1 starsChanged 7 months agoMITView on GitHub
This repo ships a Claude Code plugin that audits codebases for "lying" code — silent failures and stub/placeholder code in user-visible paths. The plugin runs two specialist subagents in parallel and a deterministic Python aggregator merges their findings. When reviewing PRs in this repo, weight the items below. Most Markdown files under skills/**/SKILL.md and skills/**/profiles/*.md are runtime instructions consumed by an LLM agent, not human documentation. Do not critique their prose for clarity-to-developers. Critique them for: ambiguity that would cause…
The file
We split this copilot-instructions.md into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
When reviewing PRs in this repo, weight the items below.
- Distinctive: line 31
Test fixtures are minimal by policy — usually 1-2 findings per side.
- Distinctive: line 32
No emojis in code or commit messages.
≈ “Common” is an estimate: at least 1 in 5 of the 3,950 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository instructions for Copilot
This repo ships a Claude Code plugin that audits codebases for "lying" code — silent failures and stub/placeholder code in user-visible paths. The plugin runs two specialist subagents in parallel and a deterministic Python aggregator merges their findings.
When reviewing PRs in this repo, weight the items below.
Audience
Most Markdown files under skills/**/SKILL.md and skills/**/profiles/*.md are runtime instructions consumed by an LLM agent, not human documentation. Do not critique their prose for clarity-to-developers. Critique them for: ambiguity that would cause an LLM to misclassify a finding, missing fallback paths when a toolchain is absent, and consistency with the structured-finding schema documented in skills/stub-audit/SKILL.md.
Load-bearing patterns — do not flag these
- Prompt-injection guard (~150 words prepended to Task prompts in
skills/dishonest-code-audit/SKILL.md). The cost is upfront and the value is contingent; this is acknowledged in the README. Do not suggest removing or shortening it. $(cmd 2>&1 >/dev/null)in test harnesses. Captures stderr while discarding stdout. The redirection order is correct — it is processed left-to-right against the file-descriptor table. Verified by the passingcase-06-malformedandcase-12-malformed-known-cleanfixtures, which assert non-empty stderr capture.set -euo pipefailplus explicit per-command rescue intests/run-aggregator-tests.shandtests/run-fixtures.sh. The harnesses set the strict-mode flags AND useset +e/set -ebrackets around expected-to-fail commands. Do not suggest "add error handling"; check the surrounding bracket first.- "Fail loud, never silent" posture in
skills/dishonest-code-audit/lib/aggregate.py. The script raisesValueErrorwithfile:lineon every malformed block, missing field, unknown severity, and malformed known-clean entry. Do not suggest "consider continuing on parse errors" — that defeats the script's stated motivation (the orchestrator LLM miscounts, and a silently-broken parser produces the same failure shape). npx --yesforknipandleasotinskills/stub-audit/profiles/typescript.md. The design goal is zero-install. Do not suggest pinning versions in the profile bash.- Unified
FALSE-POSITIVE / INTENTIONALseverity label. Canonical per the SKILL.md prompt.normalize_severity()accepts it and canonicalizes toINTENTIONALfor bucketing. Do not flag the long-form label as "non-canonical." - Hebrew strings in
tests/fixtures/**and in example fixtures. Some fixtures use Hebrew strings because the wet run was on a Hebrew app. Not a localization concern — these are test inputs, not user-facing copy.
Real concerns to weight heavily
- Counts arithmetic in
skills/dishonest-code-audit/lib/aggregate.py. Any change tobuild_counts,apply_known_clean, orrender_markdownmust keep the rendered equation reconciling against itself (safe + mock - overlap - reclassified = total). The reconciliation is asserted bycase-07-reclass-overlap. - Dedup correctness in
deduplicate(). Two findings about the same real bug must merge; two unrelated findings in the same file must NOT merge. The Jaccard fallback is gated on "at least one side has unknown line" — flag any change that removes the gate. - Block parser tolerance. The parser handles pipe-block evidence, multi-line continuations, blank-line spacing, and
Line: 40, 47, 57lists. Any change that narrows tolerance must be backed by a new fixture; widening tolerance should not silently accept unknown top-level field keys (this used to silently truncateUser-visible lie— seecase-08-strict-unknown-key). - Profile additions. A new language profile under
skills/stub-audit/profiles/<lang>.mdshould mirror the existing profile structure (Detection bash, Always-skip patterns, Graceful degradation table) AND ship at least one fixture undertests/fixtures/<lang>-<framework>/that the run-fixtures harness exercises.
House style
- Lowercase by default in human-facing prose. Avoid em dashes (
—) used as casual sentence separators; use a comma, period, or colon. (SeeREADME.mdandCHANGELOG.mdfor the established voice.) - Test fixtures are minimal by policy — usually 1-2 findings per side. Do not suggest "make the fixture more realistic" unless it would exercise a real edge case the harness misses.
- No emojis in code or commit messages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

