required-argument-aware-flag-validation-04ae1c — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited required-argument-aware-flag-validation-04ae1c (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Domain: validator Trigger: Apply this whenever flag validation cannot rely on shell parsers and must check --flag=value, combined short bundles, and missing arguments explicitly. Source Pattern: Distilled from reviewed tool execution, streaming, persistence, and output-budget implementations.
Iterate over tokens after the command verb, treat -- according to whether the tool respects it, then inspect each -flag/--flag by looking it up in the declarative config. Handle inline values (-E=), attached numeric args (-A20), and bundles of non-arg flags carefully: reject unknown flags, ensure required arguments exist, and forbid bundles that include arg-taking options. Use typed helpers (validate flag argument) to keep regex/number checks centralized.
--flag= must be validated as empty input, not allowed to silently consume the next token.xargs, stop validating wrapper flags once parsing has switched to the downstream command.none-type flags in bundles to avoid parser differentials.- unless the flag explicitly allows it (e.g., git --sort -version:refname).Implement this in a shell command policy layer by validating the tokenized command against declarative flag metadata before execution. That ensures commands containing -S, --diff-filter, or --flag=value cannot bypass read-only guardrails through parser edge cases.
-FLAG=value the same as -FLAG value; the attached format still needs its own validation rules.-FLAG=; otherwise attackers can bypass restrictions by hiding invalid input behind =.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.