sdsrss/agentsmd/agentsmd-lint-argv
Claude Code and agent skill by sdsrss/agentsmd
- community
Checking that the SKILL.md file is still in the repository.
Detect silent-fallback argv parsing in agentsmd bin/ and scripts/. Use when adding or reviewing a CLI flag/parser. Not for runtime hook command parsing or general linting; static read-only gate.
Install
npx vskill@latest install sdsrss/agentsmd/agentsmd-lint-argvSKILL.md
agentsmd-lint-argv
Use the selected SKILL.md absolute path from the live skills list; never infer it from the process cwd. Define and call the adjacent launcher in the same shell. The launcher preserves selected bundle → manifest-owned standalone → versioned CLI identity checks and exports plugin context only for a verified selected bundle.
The bug class: a CLI that reads a flag with args.includes('--x') or args[args.indexOf('--x')+1] silently ignores a mis-shaped flag (--days 30 instead of --days=30) or a bare value flag that swallows the next token — the failure is invisible, the wrong default wins. This gate locks it out:
- Antipattern scan —
.includes('--/.find(a=>a.startsWith('--'))/.indexOf('--on a code line. Suppress a deliberate one with an inline// argv-lint:allow. - Main-block scan — a
require.main === moduleblock that never calls a real parser (parseStrict/parseArgs/parseDaysArg/parseNoArgs/printHelpAndExit) → a new CLI can't silently skip arg validation. No-arg CLIs (install/uninstall) are allowlisted. 0 hits+ exit 0 = clean; a hit → exit 1 namingfile:line [pattern]. Fix: parse throughscripts/lib/argv.js(parseStrictdemands--key=value, rejects unknown flags loudly;parsePositiveIntrejects theNumber()/parseIntcoercion footguns).
Wired into npm test as a regression gate — a CLI that reintroduces the antipattern fails CI. From the repo instead of an install: node scripts/lint-argv.js.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentsmd-lint-argv/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sdsrss/agentsmd/agentsmd-lint-argv)