/nlpm:initfrom nlpm
Initializes NLPM for a project by detecting artifacts, setting strictness level, writing config, updating .gitignore, and capturing a baseline score snapshot.
Ships in nlpm. Installing the plugin adds it to Claude Code.
Read .claude/nlpm.local.md. If exists, show current settings and ask: "Reconfigure? (yes/no)". If no → stop.
Run artifact discovery (same as /nlpm:ls) to show what's in the project.
AskUserQuestion:
question: "What strictness level?"
header: "Strictness"
options:
- label: "Relaxed"
description: "Threshold 60 — only flag seriously broken artifacts"
- label: "Standard (Recommended)"
description: "Threshold 70 — flag artifacts that need improvement"
- label: "Strict"
description: "Threshold 80 — flag anything below good quality"
Create .claude/ directory if needed. Write .claude/nlpm.local.md:
---
# NLPM Configuration
strictness: {chosen}
score_threshold: {60|70|80}
---
# NLPM Settings
When scoring NL artifacts in this project, use **{strictness}** strictness.
Flag artifacts scoring below **{threshold}/100** for improvement.
Append the following to .gitignore (skip lines already present):
# nlpm generated artifacts
.claude/nlpm-history.json
Score every NL artifact discovered in Step 2 so /nlpm:trend has a starting point.
nlpm:scorer and nlpm:vague-scanner in parallel over the discovered artifacts (same dispatch pattern as /nlpm:score). The vague-scanner's counts override the scorer's heuristic detection.${CLAUDE_PLUGIN_ROOT}/commands/shared/append-history.md with scope: "full" and files_scored equal to the artifact count.If Step 2 found zero artifacts, skip this step — there is nothing to score and the partial declines to write empty snapshots.
NLPM is ready for this project.
Strictness: {standard}
Threshold: {70}/100
Artifacts found: {N}
Baseline score: {overall}/100 (snapshot saved to .claude/nlpm-history.json)
Config: .claude/nlpm.local.md
Run /nlpm:score to re-score later, or /nlpm:trend to compare against this baseline.
If Step 6 was skipped (zero artifacts), omit the "Baseline score" line and replace the final sentence with "No artifacts found yet — re-run /nlpm:init after adding artifacts to the project."
Error handling:
.claude/ directory doesn't exist → create itWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub xiaolai/nlpm --plugin nlpm15 commands in this plugin
/checkCheck cross-artifact consistency — reference integrity, orphans, contradictions/fixAuto-fix fixable findings in NL artifacts — missing fields, heading gaps, field renames/lsDiscover all natural language programming artifacts in a repository/reportRender a self-contained HTML report — per-file scores, score trend, cross-artifact graph, vocabulary noun-verb map, drift candidates, and findings — into .claude/nlpm-reports/. Opens directly via file://. No server, no build, no network./scoreScore NL programming artifacts — 100-point quality score per file/security-scanScan a Claude Code plugin for security risks in executable artifacts (hooks, scripts, MCP configs, dependencies).Other plugins' commands for the same job