find-accepted-but-ignored

Find input that is accepted and then has no effect: a config key absent from the list that validates it or the code that reads it, a flag nothing consults, a parameter a function receives and ignores, an unknown field dropped in silence, an option documented but unimplemented. Use when a setting seems to do nothing, when a "supported" option changes nothing, after adding or renaming a config key, or when auditing configuration parsing, API parameters, feature flags and option objects. Fixes the parts that are safely fixable.

O que é find-accepted-but-ignored?

find-accepted-but-ignored is a Claude Code agent skill that find input that is accepted and then has no effect: a config key absent from the list that validates it or the code that reads it, a flag nothing consults, a parameter a function receives and ignores, an unknown field dropped in silence, an option documented but unimplemented. Use when a setting seems to do nothing, when a "supported" option changes nothing, after adding or renaming a config key, or when auditing configuration parsing, API parameters, feature flags and option objects. Fixes the parts that are safely fixable.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/thomasdolash/code-audit-skills/tree/HEAD/find-accepted-but-ignored

Installed? Explore more Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação


name: find-accepted-but-ignored description: Find input that is accepted and then has no effect: a config key absent from the list that validates it or the code that reads it, a flag nothing consults, a parameter a function receives and ignores, an unknown field dropped in silence, an option documented but unimplemented. Use when a setting seems to do nothing, when a "supported" option changes nothing, after adding or renaming a config key, or when auditing configuration parsing, API parameters, feature flags and option objects. Fixes the parts that are safely fixable. license: MIT

Find accepted but ignored

An accepted-but-ignored defect is input the system takes and never acts on, so the caller believes it took effect.

The value parses, validates, and is then unused, or is validated against a set that no longer matches what the code downstream will accept.

The failure that matters

A value that is silently inert is worse than one that is rejected. The user tunes the knob, believes it, and the behavior is unchanged; no layer says so, and no test can fail because nothing was expected to happen. The same shape appears at every boundary, whether config, flags, query parameters, options objects, or the fields of a parsed document.

For each input that carries intent, name the place it should take effect and whether it does, or the reason it is deliberately inert. A reserved key awaiting an implementation is fine if it is marked as one.

Procedure

  1. List the inputs that carry intent. Configuration keys and environment variables, command-line flags, request parameters and bodies, option objects, feature flags, headers, and the fields of any parsed document or manifest.

  2. Trace each input from where it is accepted to where it takes effect. Name the consumer, the branch, call, or setting it reaches. An input with no consumer past its parsing site is the finding.

  3. Look for the shapes:

    • parsed, stored, and never read; or read into a default the code then ignores
    • validated against a set that does not include the value actually in use, so the validator accepts what the consumer will silently discard
    • a documented option absent from the implementation entirely
    • the same setting written from two sources, with one silently winning
    • a field dropped by a parser that strips unknown fields without reporting them
    • a flag read once at startup while the documentation implies it is live
    • a parameter accepted and then shadowed by a local or a constant
  4. Check the accepted set against the real domain. A validator built from a stale list is the same defect wearing a check, because it accepts a value the downstream model, provider, or schema will refuse, and the refusal is swallowed.

  5. Say which inert inputs matter. One that is documented and user-settable is a defect. One that is internal, unreachable, or explicitly reserved is not, but it should say so in place, so the next reader does not repeat the audit.

Fixing

  • Small and unambiguous: fix now. Remove a key nothing reads; report or reject a field the parser drops; wire a parsed value to the branch that clearly meant to use it; align a validator's set with the consumer's real domain.
  • Confirm first when behavior changes for existing input. Making a previously accepted value an error, or giving effect to a setting people already set, changes runtime behavior for every existing configuration.
  • Preserve deliberate inertness. Do not delete a reserved key someone may set; mark it as inert instead, in the same place it is declared.

Report

Lead with the findings:

inputaccepted atshould affecteffect now
engine variantconfig loadthe engine callnone: the engine declares no such variant
retry countrequest optionsthe retry loopignored: the loop reads a constant
unknown fieldsbody parsenothingstripped silently, no report
timeoutconstructorrequest deadlinehonored

Then, per finding: the input, where it is accepted, where it should take effect, and what the user would observe either way. Where a value is validated, say what the validator checks against and whether that source is current.

Close with four buckets:

  • Fixed: the input now takes effect, or now says it cannot.
  • Proposed: needs a behavior decision for existing configurations.
  • Deliberately inert: reserved or internal, stated as such in place.
  • Documented but unimplemented: the documentation promises what the code does not do.

If a value can be set, it either does something or it says it cannot.

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

audit-sweep

Run the code-audit set over a target and deliver one ranked report. Use when asked to review a codebase, a subsystem or a diff for defects, when starting work in unfamiliar code, after a large change, or before a release. Picks the audits that apply to the project, splits the work the way the project suggests, and ranks the combined findings worst first by impact. Reports; fixes follow on approval.

find-complex-functions

A complex function asks the reader to hold more than its job requires. It carries several responsibilities, branches inside branches, statements that mix levels of abstraction, or more locals than anyone can track.

find-duplicate-code

Duplication is the same **rule** written twice, whether that is a formula, a validation, a constant list, a protocol step, or a derivation. The copies usually differ in their text because someone adapted them, which is what makes the drift invisible.

find-overengineering

A fallback for an input no caller can produce, three options where nobody sets two, a compatibility layer for consumers that no longer exist and a migration framework for a schema with one user all cost more than the case they defend against. The defense is not free and not neutral. Every guard is a branch to test and a path to maintain, and a silent fallback turns a loud failure into a quiet wrong answer.

find-oversized-units

One change should be understandable in one place. A unit that breaks that rule holds more code than the change needs to touch: a file past the preferred range, a module where every agent edits a different section, or a unit whose parts change for unrelated reasons.

find-redundant-checks

A check can spend time without buying fault detection. It may guard the same claim twice, guard a claim two levels above where it would be caught just as well, test code that no longer exists, or belong to a suite where every case pays for the same setup.

Habilidades Relacionadas