AugmentClaude
ISCDocs

Quality Scoring Rubric

Score code artifacts on a 100-point scale with penalty tables and calibration examples.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up β€” so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/scoring-xiaolai/ β€” the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.

    What this command does
    1. Makes a new, empty temporary folder.
    2. Downloads the skill's folder, codex/skills/scoring, from github.com/xiaolai/nlpm (branch main), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep.
    3. Copies that folder to ~/.claude/skills/scoring-xiaolai/.
    4. Deletes the temporary folder.

    Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.

    How we check skills, and what we don't Β· Report this skill

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β€” they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description β€” no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the β€œWhat this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

100-point NL artifact rubric: penalty tables per artifact type, calibration cases.

What this skill does

NLPM Quality Scoring Rubric

100-point quality scale for all NL programming artifacts. Apply penalties deterministically. Use calibration examples to anchor judgment on borderline cases.


Scoring Formula

base_score = 100
adjustments = sum of all applicable penalties (all penalties are negative)
final_score = max(0, min(100, base_score + adjustments))

Penalties stack. The floor is 0; the ceiling is 100. No bonuses β€” the default assumption is that an artifact is well-formed, and quality is measured by what is missing or wrong.


Penalty Tables

The tables in this file cover every artifact type a Claude Code project contains. Tables for the remaining artifact types live in references/, one file per group. When the artifact you are scoring is listed below, Read that file and apply its tables as if they appeared here β€” they carry the same weight, and a finding cited to one of their rows is a rubric finding.

Artifact being scoredRead
Codex hook events; .codex-plugin/plugin.json; .agents/plugins/marketplace.json; agents/openai.yaml; .codex/config.tomlreferences/codex.md
Antigravity / Gemini-lineage hook events; gemini-extension.json; .gemini/commands/*.tomlreferences/antigravity.md
Memory files (~/.claude/projects/*/memory/*.md); agent workflow programs (project-root program.md-style files)references/memory-and-workflow.md

The universal Hooks checks below apply to Codex and Antigravity hook configs too.

Skills

RuleCheckConditionPenalty
--name presentMissing-25
--name matches parent directoryFrontmatter name: value does not equal parent directory name (per nlpm:conventions Β§5 β€” open spec MUST)-15
R04description presentMissing-25
R04Trigger qualityDescription is generic (≀1 specific phrase)-15
R04Description lengthDescription 500–800 chars-5
R04Description lengthDescription >800 chars-10
R05Body length400–500 lines-5
R05Body length>500 lines-10
R06Code examplesComplex concepts with no examples-5
R06Code examplesNo examples at all in a technical skill-10
R06<example> blocksZero <example> blocks on a user-invocable skill (user-invocable absent or true)-10
R07Scope noteNo scope note / cross-references-3

Scope-note discipline: R07 means "scope note when related skills exist." Do NOT apply R07 to missing example blocks β€” that is the new R06 row above (penalty -10, not -15). The 2026-05-13 lijigang/ljg-skills audit applied R07 + βˆ’15 fourteen times for missing example blocks; both labels were wrong (R07 is not example-related, and -15 is the agents penalty, not the skills penalty). The validator at auditor/scripts/validate-rule-ids.py catches this kind of drift in CI.

<example>-block counting discipline (added 2026-08-01, origin: xiaolai/cc-suite v1.3.1 remediation): an <example> block counts only when it sits outside fenced code blocks β€” in the body or in a frontmatter description block scalar. Tags inside a fenced template (```markdown … ```) are illustrative content, and prose that names the string `<example>` is a mention, not a block. A 2026-07-31 scoring pass credited a skill with example blocks that existed only inside a fenced template, hiding a real R06 violation across 13 files. Verify by reading the file, not by grepping for the tag.

name matches parent directory (added 2026-05-25, audit: google/skills): the open Agent Skills spec at agentskills.io makes this a MUST. Mismatch is deterministic, high-confidence, and reproducible by single-line diff (frontmatter name: vs basename($(dirname FILE))). Mark such findings confidence: high per the manifest-vs-disk-diff principle in agents/scorer.md step 6. Note: this penalty did not exist before 2026-05-25 β€” re-scoring past audits will yield slightly lower scores for any corpus containing this defect, but no contribute outcomes are retroactively affected since no PRs were ever opened against a name-mismatch finding under the prior rubric.


Agents

RuleCheckConditionPenalty
R09description presentMissing-25
R09<example> blocksZero <example> blocks in the description-15
R09Exclusion clauseDescription names no situation the agent is not for (a "Not for …"/"Do not use …" sentence, or an example where the assistant declines or routes elsewhere)-5
R09Description lengthDescription value over 1,200 characters, examples included-5
R10model declaredNot declared-5
R10model appropriateWrong tier for task (e.g. opus for parsing)-5
R11tools declaredNot declared-5
R11Unused toolsEach tool declared but not used in body-3 each
R12Output formatNo output format spec in body-10
R11Write on read-onlyAudit/review/scan agent declares Write or Edit-10

R09 example budget (changed in 1.4.0): one <example> block is full credit. An agent's description sits in the Agent tool's text on every turn and is the only thing Claude sees when choosing an agent, so examples stay in the description β€” moving them into the body hides them from routing. One well-chosen example plus an explicit exclusion ("Not for …") carries the routing signal at a fraction of the tokens; extra examples are allowed but cost always-on context, which is why R09 deducts 5 points when the description exceeds 1,200 characters.

min_examples override (R09: { min_examples: N } in the project's nlpm.local.md, see nlpm:conventions Β§6): with N greater than 1, a description that has at least one but fewer than N <example> blocks costs -5 per missing block, capped at -15 so that a partial set never costs more than none; zero blocks stays -15. The exclusion-clause and length rows are unchanged. Without the override, N is 1 and the rows above apply as written.


Commands

RuleCheckConditionPenalty
--description presentMissing-25
R18argument-hint presentCommand takes input but no hint-5
R14Steps numberedMulti-step body with no numbered steps-10
R15Empty input handlingNo handling for empty/missing input-10
R16Output formatNo output format defined-10
R17Error pathsNo error handling for missing files or bad data-5

Shared Partials

RuleCheckConditionPenalty
R19user-invocable: falseMissing or set to true-25
R20Purpose clearDescription doesn't state it's a partial-10

Rules

RuleCheckConditionPenalty
R21description presentMissing frontmatter description-10
R21Format: bold imperativeNo bold imperative opening-5
R21Format: rationaleNo rationale following the imperative-10
R22EnforceabilityRule is not specific/testable-10
R23BudgetRule file over 500 lines-15
R26Conflicts with other rulesDirect contradiction with another rule in same set-20
R24Duplicates toolingRe-states what eslint/ruff/clippy already catches-10

Hooks β€” universal checks (apply to all tools)

RuleCheckConditionPenalty
--Valid syntaxHook config file fails to parse (JSON or TOML per tool)-25
R29Scripts existReferenced script file does not exist-20
--Command safetyHook command contains dangerous patterns (rm -rf, git push --force, DROP TABLE)-15
--Matcher regex validMatcher pattern doesn't compile as valid regex-10
--Timeout reasonableHook specifies timeout > 30s (likely hangs)-5

Hooks (Claude Code β€” Tier 2-Claude only)

Authoritative event list: nlpm:conventions-claude Β§7 together with its extended allow-list in conventions-claude/reference.md. Per the multi-tool design (analysis/multi-tool-design-2026-05.md decision #4), Claude / Codex / Antigravity hook event vocabularies are NOT 1:1 mappable β€” three separate tables, no translation. The Codex and Antigravity tables are in references/codex.md and references/antigravity.md.

RuleCheckConditionPenalty
R27Event names valid (Claude)Uses an event name that is in neither the nlpm:conventions-claude Β§7 table nor its extended allow-list (conventions-claude/reference.md, Hook Events). Those two lists together are the confirmed set (33 events, including SubagentStop, SubagentStart, PreCompact and Notification); a name missing from both still passes if code.claude.com/docs/en/hooks.md documents it-15
R27Case correct (Claude)Event name has wrong case (e.g. pretooluse)-10
--Hook type valid (Claude)Uses unrecognized type value β€” confirmed Claude types: command, http, mcp_tool, prompt, agent-10
--MCP matcher format (Claude)Matcher targets MCP tool but doesn't use mcp__<server>__<tool> pattern-5

plugin.json (Claude Code β€” .claude-plugin/plugin.json)

CheckConditionPenalty
name presentMissing-25
version is semverPresent but not valid semver-10
description presentMissing-5

.claude-plugin/marketplace.json (Claude Code β€” Tier 2-Claude)

Schema reference: nlpm:conventions-claude Β§17 and its reference.md (Plugin Distribution).

CheckConditionPenalty
Valid JSONFile fails JSON parse-25
name presentMissing-25
owner.name presentowner missing, or it has no name-10
plugins array presentMissing or empty-10
Per-plugin name and sourceEither missing-10 each
Per-plugin source validA relative path that doesn't start with ./ (bare names are valid only under metadata.pluginRoot), or an object whose source.source isn't one of the six object types in reference.md or that lacks that type's required field-10 each
Per-plugin version in stepDiffers from the version in the plugin.json it describes, when that file is in the same repository (plugin.json wins at load, so the entry is stale)-5 each
Per-plugin description presentMissing (the /plugin browser shows it)-3 each

.mcp.json (Claude Code β€” .mcp.json at repo root)

CheckConditionPenalty
Valid JSONFile fails JSON parse-25
Server command presentMCP server entry missing command field-15

.lsp.json (Claude Code LSP β€” Tier 2-Claude)

Schema details: nlpm:conventions-claude Β§12. Stable in 2026.

CheckConditionPenalty
Valid JSONFile fails JSON parse-25

monitors/monitors.json (Claude Code monitors β€” Tier 2-Claude)

Schema details: nlpm:conventions-claude Β§13. Stable in 2026.

CheckConditionPenalty
Valid JSONFile fails JSON parse-25

Settings Files (.claude/settings.json, .claude/settings.local.json)

CheckConditionPenalty
Valid JSONFile fails JSON parse-25
No hardcoded secretsContains API keys, tokens, or passwords-25
Permission mode sanitybypassPermissions enabled in a shared project settings file (not .local)-15
Recognized keysContains unknown top-level keys not in Claude Code schema-5 each, cap -15
Hook definitions validhooks key present β€” check event names valid and case-correct-10 per invalid

CLAUDE.md

RuleCheckConditionPenalty
R49File existsNeither AGENTS.md nor CLAUDE.md in plugin root-10
--Under 200 linesCLAUDE.md exceeds 200 lines-5
R38Actionable contentCLAUDE.md has no actionable guidance (just filler)-10
R33Build/run commandNo instructions for how to build or run the project-10
R34Test commandNo instructions for how to run tests-5
R35Architecture overviewNo structure/component description (what lives where)-5
R36Valid @ importsContains @ import syntax referencing a file that doesn't exist-10
R37No stale file referencesMentions files or functions that no longer exist in the repo-10
R38Actionability ratio>60% of content is description rather than instructions-5
--Prerequisites sectionNo section covering required tools, versions, or setup steps-5
R39No rule conflictsCLAUDE.md says X while a .claude/rules/ file says not-X-15

All Artifact Types: Vague Quantifiers

RuleCheckConditionPenalty
R01Vague quantifierEach occurrence of: "appropriate", "relevant", "as needed", "sufficient", "adequate", "reasonable", "properly", "correctly", "some", "several", "various" without measurable criteria-2 each
R01Vague quantifier capTotal vague quantifier penaltymax -20

Mention-versus-use exclusion (added 2026-08-01, origin: xiaolai/cc-suite audit-family false positives; design reviewed via Codex consultation): do not count a vague term when it is presented as a literal token AND the containing clause explicitly instructs the reader or a tool to detect, flag, reject, replace, avoid, or report that term β€” audit tooling must be able to name the words it hunts (e.g. Flag uses of `some`, `several`, `various` without concrete criteria is R01's own job description, not a violation). Backtick or quotation formatting alone does NOT qualify: a term that still modifies an action, criterion, or requirement is counted even when backticked β€” handle errors `properly` remains a violation.


All Artifact Types: Vocabulary Drift (R51 β€” opt-in, disabled by default)

Applied only when R51: { enabled: true, vocabulary_skill: <path> } appears in .claude/nlpm.local.md. Without the opt-in, R51 contributes zero penalty regardless of artifact content. The configured vocabulary_skill must contain a registry.yaml listing canonical and deprecated terms; without it, R51 emits an advisory and contributes zero penalty.

RuleCheckConditionPenalty
R51Deprecated synonymEach occurrence of a term marked deprecated: in the project's registry.yaml, in the scope the artifact belongs to-2 each
R51Drift capTotal R51 penaltymax -10 per file
R51Missing registryenabled: true but vocabulary_skill: not set or points to a directory with no registry.yaml0 (advisory only)

Why opt-in: vocabulary discipline is high-leverage for projects with accumulated drift but premature for projects still discovering their domain. Each project decides when it has enough literary warrant (P6) to lock terms in. See analysis/vocabulary-design-principles.md for the six principles R51 operationalizes.

Registry-declaration exclusion (added 2026-08-01, origin: xiaolai/cc-suite vocabulary-skill self-reference; design reviewed via Codex consultation): the file that declares a deprecation must name the deprecated term to do so. Within the configured vocabulary_skill path, do not count a deprecated term where it occurs in the declaration that registers it or maps it to its replacement β€” registry.yaml deprecated: lists and the SKILL.md deprecation tables. The exclusion covers ONLY those declaration term fields: deprecated terms in surrounding prose inside the vocabulary_skill path are counted, and the path is not categorically exempt. The same mention-versus-use principle as R01's exclusion above, applied to R51.


Cross-Artifact (--plugin flag)

Applied when linting an entire plugin rather than individual files.

CheckConditionPenalty
Broken partial refsCommand references commands/shared/X.md that doesn't exist-20
Broken skill refsAgent references plugin:skill that isn't installed-20
Missing scriptsHook references script that doesn't exist-20
Orphaned filesAgent/command/skill file not referenced by anything-5 per file
ContradictionsTwo rules/instructions in same plugin directly contradict each other-15 per pair

Score Bands

RangeLabelMeaning
90–100ExcellentProduction-ready; minor or no findings
80–89GoodSolid; one or two non-critical gaps
70–79AdequateMeets threshold; noticeable gaps to address
60–69WeakBelow threshold; significant findings
<60RewriteFundamental problems; recommend rewriting from scratch

Default pass threshold: 70. Configurable in .claude/nlpm.local.md.


Calibration Examples

Four worked examples β€” Excellent Agent (97), Rewrite Agent (41), Excellent Rule (92), Weak Rule (41) β€” live in references/calibration-examples.md. Load that file on demand when scoring a borderline case (around band boundaries: 88-92, 68-72, 58-62) and you need an anchored reference.

The examples are not needed for routine scoring β€” the penalty tables (above, plus the per-tool reference files indexed under Penalty Tables) are self-contained. They were extracted from this file 2026-05-28 to keep the rubric under R05's 500-line body budget while preserving the calibration material verbatim.


Scope Note

This skill covers the NLPM scoring formula, penalty tables, score bands, and calibration examples. It does NOT cover:

  • Artifact schemas and valid field values β†’ see nlpm:conventions (universal) and the tool-specific overlays nlpm:conventions-claude, nlpm:conventions-codex, nlpm:conventions-antigravity (the latter three created in PR-B; see analysis/multi-tool-design-2026-05.md)
  • Patterns and anti-patterns catalog β†’ see nlpm:patterns
  • How to run the score command β†’ see commands/score.md

Multi-tool scoring (PR-B landed 2026-05-25)

nlpm now scores artifacts across three tool ecosystems β€” Claude Code, Codex CLI, and Antigravity (which absorbs Gemini CLI on 2026-06-18). The tier classification in agents/scorer.md separates open-spec (Tier 1), Tier 1.5 open-spec corpora, and per-tool Tier 2 overlays (2-Claude / 2-Codex / 2-Antigravity).

  • Hooks are scored per tool (the Claude table above; the Codex and Antigravity tables in references/). The three tools' event vocabularies are not 1:1 mappable; no universal translation layer. See analysis/multi-tool-design-2026-05.md decision #4.
  • Codex-specific artifacts scored (references/codex.md): .codex-plugin/plugin.json, .agents/plugins/marketplace.json, .codex/config.toml, agents/openai.yaml sidecars.
  • Antigravity-specific artifacts scored (references/antigravity.md; advisory-only until spec stabilizes): gemini-extension.json, .gemini/commands/*.toml, Antigravity hook events.
  • Claude-specific additions in 2026: .lsp.json, monitors/monitors.json (validate JSON-parse only until detailed schemas land). New SKILL.md fields documented in nlpm:conventions-claude.

Known False Positive Patterns

The following findings have historically been reported by the scorer despite having no backing in this rubric. They MUST NOT be penalized:

Invalid findingWhy it is invalid
Missing namespace: on skillNot in the skill schema; conventions Β§5 does not list it
Missing inline hooks:/skills: registration blocks in plugin.jsonconventions Β§1 defines these as optional path strings
AskUserQuestion / Task / WebFetch flagged as undocumented toolBuilt-in per conventions-claude Β§16
Agent missing skills: when omission is documented in CLAUDE.mdIntentional architectural choice
plugin.json missing engines: / minClaudeVersion: / main:All optional per conventions Β§1
plugin.json description shorter than sibling marketplace.json descriptionDesynchronization β‰  defect; only penalize if required field is absent

When in doubt: if a finding cannot be cited to a specific row in the penalty tables above or in a reference file indexed under Penalty Tables, drop it.

Related skills