rules

Enforce R01–R50 quality rules on NL programming artifacts.

111|29|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/xiaolai/nlpm-for-claude --skill rules-xiaolai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules
Source: https://github.com/xiaolai/nlpm-for-claude/tree/main/skills/nlpm/rules
Command: npx skills add https://github.com/xiaolai/nlpm-for-claude --skill rules-xiaolai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces a cohesive, actionable set of quality guidelines for NL programming artifacts to improve Claude-native code quality and consistency.

Core Features & Use Cases

  • Enforce measurable criteria: Replace vague language with concrete, testable requirements for artifacts.
  • Scope and cross-reference: Guides when to link to related skills, agents, or prompts and helps maintain coherence across NL artifacts.
  • Use case: governance and repair: When writing or reviewing artifacts (skills, agents, commands, rules, hooks, prompts, CLAUDE.md, memory files), NLPM scoring and auto-fix workflows apply these rules to identify and repair issues.

Quick Start

Run /nlpm:score to evaluate all NL artifacts against these rules, then run /nlpm:fix to repair detected issues.

Frequently Asked Questions about rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce quality rules for Claude prompts and CLAUDE.md memory files?

You can enforce quality rules for Claude prompts and CLAUDE.md memory files by applying a unified rule set (R01–R50) with measurable constraints across writing, reviewing, and fixing workflows. This replaces vague language with concrete, testable requirements for natural language artifacts.

What is NLPM scoring and how does auto-fix work for natural language artifacts?

NLPM scoring evaluates natural language artifacts against enforceable constraints (R01–R50), and auto-fix repairs detected issues automatically. Run /nlpm:score to identify violations in skills, agents, commands, and prompts, then run /nlpm:fix to resolve them.

How do I write testable constraints for Claude skills and agent prompts?

To write testable constraints for Claude skills and agent prompts, replace vague language with concrete requirements specifying line limits, runnable examples, and cross-reference notes. The unified rule set (R01–R50) provides enforceable criteria for these natural language programming artifacts.

Can I use these rules to review and fix hooks and commands?

Yes, you can use these rules to review and fix hooks and commands. The rule set applies across writing, reviewing, scoring, and fixing workflows for skills, agents, commands, rules, hooks, prompts, and memory files, ensuring comprehensive coverage of all natural language artifacts.

What's the best way to maintain coherence across multiple Claude-native artifacts?

The best way to maintain coherence across multiple Claude-native artifacts is to apply cross-reference notes and a unified rule set during governance workflows. This guides when to link to related skills, agents, or prompts and ensures artifacts remain consistent and actionable.

Why do my Claude memory files and prompts fail quality scoring?

Claude memory files and prompts fail quality scoring when they contain vague language, lack runnable examples, exceed line limits, or miss cross-reference notes. The unified rule set flags these issues as enforceable constraint violations during the /nlpm:score evaluation.