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/fixgit 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.00021 | $0.00664 |
| Opus 5 | $0.00010 | $0.00332 |
| Sonnet 5 | $0.00004 | $0.00133 |
| Haiku 4.5 | $0.00002 | $0.00066 |
Grade A, and why
fix 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 — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
Workflow
Step 1: Score First
Parse $ARGUMENTS for a path (default: cwd if empty). Dispatch the nlpm:scorer agent via Task tool to score all artifacts at that path. Collect all findings.
If no artifacts are found → "No NL programming artifacts found." and stop.
Step 2: Classify Findings
Separate findings into auto-fixable and not-auto-fixable:
Auto-fixable (will be applied):
- Missing
user-invocable: falseon shared partials → add to frontmatter toolsfield in command frontmatter whereallowed-toolsis expected → rename field (note:toolsin agent frontmatter is valid and not auto-fixed)- Heading hierarchy gaps (## → ####) → insert missing ### level
- Trailing whitespace → strip
- Missing
descriptionin shared partial frontmatter → generate from filename and first heading - Missing
namein skill frontmatter → derive from directory name - Missing
argument-hinton commands that reference$ARGUMENTSin body → add"[args]"
Suggested fixes (shown with diff, applied only if user approves):
- Agent using opus for mechanical task → suggest downgrade to sonnet/haiku with rationale
- Agent with no
<example>blocks → generate skeleton examples from description - Skill >500 lines → suggest split points based on H2 sections
NOT auto-fixable (reported but not modified):
- Vague descriptions (what should the trigger phrases be?)
- Behavioral contradictions (which artifact is right?)
- Scope boundaries, output formats, error handling
Step 3: Apply Fixes
For each auto-fixable finding:
- Read the file
- Apply the fix using Edit tool
- Log: "Fixed: {file}:{line} — {what was changed}"
Step 4: Re-Score
Re-run scoring on all fixed files to compute new scores.
Step 5: Report
NLPM Fix Report
Fixed {N} findings in {M} files:
{file}:{line} — added user-invocable: false (+25 points)
{file}:{line} — renamed tools → allowed-tools (+0 points, consistency)
{file}:{line} — inserted missing ### heading (+0 points)
Not auto-fixable ({N} findings remain):
[{SEVERITY}] {file}:{line} — {finding} (requires human judgment)
Score changes:
{file} {old_score} → {new_score} (+{delta})
Overall: {old_avg} → {new_avg}
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 · 78 lines · 21 tokens per session scan A 6d37df9e6c15
fix is a command published in the GitHub repository xiaolai/nlpm (133 stars, last pushed 2d ago), licensed ISC. It adds 21 tokens to every session and 664 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.