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.
npx agentmods add commands/xiaolai/nlpm/scoregit clone --depth 1 https://github.com/xiaolai/nlpmWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00014 | $0.00876 |
| Opus 5 | $0.00007 | $0.00438 |
| Sonnet 5 | $0.00003 | $0.00175 |
| Haiku 4.5 | $0.00001 | $0.00088 |
Grade A, and why
score 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 2d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
Workflow
Step 1: Load Config
Read .claude/nlpm.local.md if it exists. Extract score_threshold (default: 70).
Step 2: Parse Arguments
| Input | Behavior |
|---|---|
| (empty) | Score all Category A+B artifacts in cwd |
| directory path | Score all artifacts under that directory |
| file path | Score that single file |
| --changed | Score only files changed since last commit (uses git diff --name-only HEAD) |
If --changed is present: run git diff --name-only HEAD to get changed files, then filter through commands/shared/classify.md to keep only NL artifacts. Skip the full discovery step.
Step 3: Discover Artifacts
If path is a directory: use commands/shared/discover.md to discover all NL artifacts.
If path is a file: use commands/shared/classify.md to determine its type.
If no artifacts found → "No NL programming artifacts found."
Step 4: Score Artifacts
Dispatch two agents in parallel for each batch of up to 5 artifacts:
nlpm:scorer-- scores each artifact on the 100-point rubric (penalties, structure, heuristics)nlpm:vague-scanner-- counts vague quantifier words mechanically (fast, haiku)
The scorer incorporates the vague-scanner's word counts into its penalty calculation. If the vague-scanner reports counts that differ from the scorer's own detection, use the vague-scanner's counts (deterministic grep is more reliable than heuristic detection for word counting).
Pass to both agents:
- The artifact contents (read each file)
- The artifact types (from classify.md)
- Any rule overrides from the config (if
rule_overridesis present in.claude/nlpm.local.md)
Collect results: per-artifact score + finding list.
Step 5: Report
NLPM Score Report
File Type Score Findings
───────────────────────────────────────────────────────────
{for each file}
Overall: {avg_score}/100 — {EXCELLENT|GOOD|ADEQUATE|WEAK|REWRITE} [threshold: {score_threshold}]
High: {N} | Medium: {N} | Low: {N}
Below threshold: {N} files
Top findings:
1. [{SEVERITY}] {file}:{line} — {finding} ({penalty})
2. ...
Score guide: 90+ Excellent | 80-89 Good | 70-79 Adequate | 60-69 Weak | <60 Rewrite
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.
- 2d ago First seen · 94 lines · 14 tokens per session scan A 59ef80d245dc
score is a command published in the GitHub repository xiaolai/nlpm (133 stars, last pushed 2d ago), licensed ISC. It adds 14 tokens to every session and 876 once invoked, about $0.0001 per session on Opus 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-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.