agentleFS
yhyattyhyatt/dishonest-code-audit/.github/copilot-instructions.md

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
  1. Distinctive:

    When reviewing PRs in this repo, weight the items below.

    line 5
  2. Distinctive:

    Test fixtures are minimal by policy — usually 1-2 findings per side.

    line 31
  3. Distinctive:

    No emojis in code or commit messages.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 passing case-06-malformed and case-12-malformed-known-clean fixtures, which assert non-empty stderr capture.
  • set -euo pipefail plus explicit per-command rescue in tests/run-aggregator-tests.sh and tests/run-fixtures.sh. The harnesses set the strict-mode flags AND use set +e/set -e brackets 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 raises ValueError with file:line on 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 --yes for knip and leasot in skills/stub-audit/profiles/typescript.md. The design goal is zero-install. Do not suggest pinning versions in the profile bash.
  • Unified FALSE-POSITIVE / INTENTIONAL severity label. Canonical per the SKILL.md prompt. normalize_severity() accepts it and canonicalizes to INTENTIONAL for 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 to build_counts, apply_known_clean, or render_markdown must keep the rendered equation reconciling against itself (safe + mock - overlap - reclassified = total). The reconciliation is asserted by case-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, 57 lists. 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 truncate User-visible lie — see case-08-strict-unknown-key).
  • Profile additions. A new language profile under skills/stub-audit/profiles/<lang>.md should mirror the existing profile structure (Detection bash, Always-skip patterns, Graceful degradation table) AND ship at least one fixture under tests/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. (See README.md and CHANGELOG.md for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.