check
Check cross-artifact consistency — reference integrity, orphans, contradictions
Shared partial: discover NL programming artifact files in a directory by category (A: plugin, B: project config, F: memory). Used by /nlpm:ls, /nlpm:score, /nlpm:check, and /nlpm:trend.
> /plugin marketplace add xiaolai/nlpm > /plugin install nlpm@xiaolai
How it fires
How this command gets triggered: by you, by Claude, or both.
/discoverContext preview
What this command does when you run it.
Shared partial: discover NL programming artifact files in a directory by category (A: plugin, B: project config, F: memory). Used by /nlpm:ls, /nlpm:score, /nlpm:check, and /nlpm:trend.
description: "Shared partial: discover NL programming artifact files in a directory by category (A: plugin, B: project config, F: memory). Used by /nlpm:ls, /nlpm:score, /nlpm:check, and /nlpm:trend." user-invocable: false disable-model-invocation: true
**Purpose:** Discover NL programming artifacts by path pattern.
**Input:** directory path, category filter (A, B, or both) **Output:** classified file list with line counts
Patterns to search (relative to target directory):
| Pattern | Notes | |---------|-------| | `.claude-plugin/plugin.json` | Plugin manifest | | `.claude-plugin/marketplace.json` | Marketplace entry | | `commands/**/*.md` | Exclude `commands/shared/` — those are shared partials | | `commands/shared/**/*.md` | Shared partials | | `agents/**/*.md` | Agent definitions | | `skills/**/SKILL.md` | Skill definitions | | `hooks/**/*.json` | Hook configs | | `.mcp.json` | MCP config | | `.lsp.json` | LSP config | | `settings.json` | Root-level settings |
| Pattern | Notes | |---------|-------| | `CLAUDE.md` | Root project instructions | | `.claude/CLAUDE.md` | Claude config directory instructions | | `**/CLAUDE.md` | Subdirectory CLAUDE.md files (monorepo packages) | | `.claude/rules/**/*.md` | Rule files | | `.claude/settings.json` | Claude settings — also check for inline `hooks` key | | `.claude/settings.local.json` | Local Claude settings — also check for inline `hooks` key | | `.claude/**/*.local.md` | Local plugin config files | | `.claude/commands/**/*.md` | User-level custom commands |
| Pattern | Notes | |---------|-------| | `~/.claude/projects/*/memory/*.md` | Project memory files | | `~/.claude/projects/*/memory/MEMORY.md` | Memory index |
Always skip these directories during traversal:
1. Receive: `directory` (absolute path), `category` ("A", "B", "F", or "both") 2. Use Glob to discover files matching each pattern within the directory 3. Filter out any results that fall inside skip directories 4. For each found file, use Read to count lines 5. Return a structured list with entries: `{ path, category, pattern_matched, line_count }` 6. For Category B settings files (`.claude/settings.json`, `.claude/settings.local.json`): after discovering the file, flag whether it contains a top-level `hooks` key — if so, note `inline_hooks: true` on the entry so the scanner knows to treat it as a hook source as well
Natural-Language Programming Manager — score, check, fix, and test NL artifacts across Claude Code, Codex CLI, and Antigravity. Tier-aware scoring with per-tool overlays. Part of the xiaolai plugin marketplace.
Check cross-artifact consistency — reference integrity, orphans, contradictions
Auto-fix fixable findings in NL artifacts — missing fields, heading gaps, field renames
Prepare NLPM for this project — detect artifacts, set strictness, capture baseline trend snapshot
Discover all natural language programming artifacts in a repository
Render a self-contained HTML report — per-file scores, score trend, cross-artifact graph, vocabulary noun-verb map, drift…
Score NL programming artifacts — 100-point quality score per file