junk-detection

junk-detection is a skill for Codex from mrmps/chomsky-stack. It costs 122 tokens per session (1,861 once invoked), scanned A, original, MIT.

A code-audit skill that looks for unnecessary complexity, fake tests, outdated compatibility code, hardcoded stubs, and code shaped to satisfy a score instead of the real requirement.

In plain words
What is it for?
Use it to inspect diffs, pull requests, branches, or whole codebases for suspicious patterns and report the areas that need attention.
Why use it?
It helps reveal code that appears to work but makes future changes harder or fails to provide genuine behaviour.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect diffs, pull requests, branches, or whole codebases for suspicious patterns and report the areas that need attention.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mrmps/chomsky-stack/junk-detection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mrmps/chomsky-stack --skill junk-detection
Clone the repo
git clone --depth 1 https://github.com/mrmps/chomsky-stack

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for junk-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/mrmps/chomsky-stack/junk-detection/github.svg)](https://agentmods.dev/skills/mrmps/chomsky-stack/junk-detection)
Your own site
<a href="https://agentmods.dev/skills/mrmps/chomsky-stack/junk-detection"><img src="https://agentmods.dev/badge/skills/mrmps/chomsky-stack/junk-detection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for junk-detection

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrmps/chomsky-stack/junk-detection"><img src="https://agentmods.dev/badge/skills/mrmps/chomsky-stack/junk-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.01861
Opus 5.5 $0.00049 $0.00744
Sonnet 5.5 $0.00024 $0.00372
Haiku 4.5 $0.00012 $0.00186

Measured 1mo ago against content hash 40dfc533c76f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

junk-detection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_hotspots.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/junk-detection/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Junk detection

Separate bad aesthetics from bad incentives. Find code that optimizes a proxy, preserves a constraint that no longer exists, or makes future change harder without buying required behavior.

Read references/taxonomy.md before the first audit in a task. Treat the scanner as triage, never as a verdict.

Choose the audit surface

  1. Read repository instructions and the relevant product or domain contract.
  2. For branch or PR work, compare the merge-base with origin/main (or the repository's actual trunk) through HEAD, then include staged, unstaged, and untracked work.
  3. For a whole-codebase request, start with changed and frequently touched paths, then broaden to all first-party code.
  4. Exclude generated, vendored, minified, lock, fixture, snapshot, and migration output unless the request targets it.
  5. Preserve the user's existing changes. Audit only unless the user also asks for fixes.

Run the bundled triage script from the repository root:

python3 <skill-dir>/scripts/scan_hotspots.py --scope diff
python3 <skill-dir>/scripts/scan_hotspots.py --scope all

Use --base <ref> when trunk is not origin/main. Use --json when another tool will consume the output.

Reconstruct the real contract

Before calling anything junk, identify:

  • The behavior the user or product actually needs.
  • Public APIs, persisted data, deployed clients, URLs, events, and integrations that constrain compatibility.
  • What the tests, types, lint rules, benchmarks, or review rubric measure.
  • The gap between that proxy and the intended behavior.
  • The narrowest direct observation that would prove the behavior.

If the contract is unknown, report a suspect and the missing evidence. Do not manufacture certainty from code shape alone.

Audit through six lenses

1. Reward-hacked implementation

Look for a patch that satisfies the evaluator instead of the task:

  • Production code branches on test names, fixtures, environment markers, or known inputs.
  • Expected outputs, IDs, timestamps, paths, or benchmark cases are hardcoded.
  • Tests, graders, CI, timeouts, snapshots, or assertions are weakened to create a green signal.
  • Errors are swallowed, exit codes forced to success, features stubbed, or data silently fabricated.
  • A test passes but asserts nothing meaningful, mocks away the behavior, or only repeats the implementation.
  • The implementation handles visible cases in isolation but breaks composition, invalid inputs, retries, or real user flows.
  • The final claim is stronger than the evidence actually collected.

Read the full file on GitHub · 154 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 154 lines · 122 tokens per session scan A 40dfc533c76f

Subscribe to this mod's changes

junk-detection is a skill published in the GitHub repository mrmps/chomsky-stack (7 stars, last pushed 1mo ago), licensed MIT. It adds 122 tokens to every session and 1,861 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

sync-bridge

Reviews and guides Chromium Sync Model API (DataTypeSyncBridge) implementations, including DataTypeStore persistence and forwards/backwards compatibility for sync specifics. Use when implementing or reviewing a DataTypeSyncBridge subclass, DataTypeStore usage, sync metadata persistence, conflict resolution, or…

chromium/chromium · 109 tokens

sync-model-processor

Reviews changes to Chromium Sync model internals in components/sync/model/, including ClientTagBasedDataTypeProcessor, ClientTagBasedRemoteUpdateHandler, ProcessorEntity, ProcessorEntityMetadata, and ProcessorEntityTracker. Use when modifying or reviewing processor state transitions, entity metadata tracking, conflict…

chromium/chromium · 98 tokens

adversarial-reviewer

Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general…

emdash-cms/emdash · 72 tokens

gsd-ns-review

Invoke this Pi skill with /skill:gsd-ns-review.

open-gsd/gsd-core · 16 tokens

gitnexus

A code-graph analysis add-on for examining an existing codebase, including symbols, call paths, execution flows, and effects across repositories. It can query GitNexus through its command-line or MCP interfaces.

hashgraph-online/awesome-codex-plugins · 58 tokens

issue

Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…

jeremylongshore/tons-of-skills-marketplace · 115 tokens