[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70NZZ9DY4XY1DQ919CKD8GP":3,"skill-same:01M70NZZ9DY4XY1DQ919CKD8GP":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M70NZZ9DY4XY1DQ919CKD8GP","conventions",null,"Use when writing, reviewing, or validating Claude Code plugin artifacts — check frontmatter schemas, hook event names, naming conventions, prompt structure, or reference syntax. Loaded by the NLPM scorer and checker agents for schema validation.","shengdabai\u002FTony-Claude-Code-Skills","shengdabai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F116417419?v=4","01M70F6D2WY5PQV5A92BKYJQEW","Tony Sheng","01M70F6D3GAAAYZ5H4CC1G8VXM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fconventions\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"artifacts","reference","syntax","validation","naming","claude code plugin","plugin","structure","check","code","when","prompt","use","writing","schema","schema validation","checker","event","for","2026-11-10 10:12:30",false,"---\nname: conventions\ndescription: \"Use when writing, reviewing, or validating Claude Code plugin artifacts — check frontmatter schemas, hook event names, naming conventions, prompt structure, or reference syntax. Loaded by the NLPM scorer and checker agents for schema validation.\"\nversion: 0.1.0\n---\n\n# Claude Code Plugin Conventions\n\nCanonical reference for all NL programming artifact schemas, frontmatter fields, hook events, and naming conventions. Use this skill when linting, writing, or reviewing any Claude Code plugin component.\n\n---\n\n## 1. plugin.json\n\nThe plugin manifest. Located at `.claude-plugin\u002Fplugin.json`.\n\n**Required fields:**\n- `name` — string, kebab-case, unique identifier\n\n**Optional fields:**\n- `version` — semver string (e.g. `\"0.1.0\"`)\n- `description` — one-line summary of what the plugin does\n- `author` — object: `{ \"name\": \"...\", \"email\": \"...\", \"url\": \"...\" }`\n- `homepage` — URL string\n- `repository` — URL string or object\n- `license` — SPDX identifier (e.g. `\"MIT\"`)\n- `keywords` — string array for discovery\n\n**Component path fields (all optional, string or string[]):**\n- `commands` — path(s) to command markdown files\n- `agents` — path(s) to agent markdown files\n- `skills` — path(s) to skill directories\n- `hooks` — path to hooks.json\n- `mcpServers` — path(s) to MCP server config\n- `lspServers` — path(s) to LSP server config\n- `outputStyles` — path(s) to output style definitions\n\n**Example:**\n```json\n{\n  \"name\": \"my-plugin\",\n  \"version\": \"0.2.1\",\n  \"description\": \"Does useful things\",\n  \"author\": { \"name\": \"dev\" },\n  \"license\": \"MIT\",\n  \"keywords\": [\"tools\", \"productivity\"],\n  \"commands\": \"commands\u002F\",\n  \"agents\": \"agents\u002F\",\n  \"skills\": \"skills\u002F\"\n}\n```\n\n---\n\n## 2. Command Frontmatter\n\nCommands live in `commands\u002F*.md`. Frontmatter is YAML between `---` delimiters.\n\n**Required fields:**\n- `description` — string; explains what the command does and when to invoke it\n\n**Optional fields:**\n- `argument-hint` — string; shown in UI as placeholder (e.g. `\"[path]\"`, `\"\u003Cfile>\"`)\n- `allowed-tools` — string array; tools Claude may call while executing this command\n- `model` — one of `haiku`, `sonnet`, `opus`; selects model tier\n- `user-invocable` — boolean; set `false` for shared partials that should not appear in menus\n\n**Body convention:**\n- Write imperative instructions directed at Claude (not the user)\n- Use numbered steps for multi-phase workflows\n- Reference shared partials by relative path: `commands\u002Fshared\u002Fname.md`\n- Define the expected output format explicitly in the body\n\n**Example:**\n```yaml\n---\ndescription: \"Lint all NL artifacts in the current project and report quality scores\"\nargument-hint: \"[path]\"\nallowed-tools: [\"Read\", \"Glob\"]\nmodel: sonnet\n---\n```\n\n---\n\n## 3. Shared Partials\n\nReusable command fragments. Located in `commands\u002Fshared\u002F`.\n\n**Rules:**\n- MUST include `user-invocable: false` in frontmatter — prevents them appearing as top-level commands\n- MUST have a clear `description` stating their purpose as a partial\n- Referenced by full relative path from the consuming command file\n- Can contain any mix of instructions, templates, or decision logic\n\n**Example frontmatter:**\n```yaml\n---\ndescription: \"Shared: discover NL artifact files in a directory tree\"\nuser-invocable: false\nallowed-tools: [\"Glob\"]\n---\n```\n\n---\n\n## 4. Agent Frontmatter\n\nAgents live in `agents\u002F*.md`. They are specialized Claude instances invoked by commands or other agents.\n\n**Documented fields:**\n- `name` — string; identifier used when referencing or invoking this agent\n- `description` — string; critical for reliable triggering — should contain 3+ specific phrases describing when to use this agent\n\n**Convention fields (not enforced by schema but strongly recommended):**\n- `model` — `haiku` \u002F `sonnet` \u002F `opus`; declare explicitly\n- `color` — one of `cyan`, `blue`, `magenta`, `yellow`, `green`, `red`; visual label in UI\n- `tools` — tools the agent body actually needs; two valid formats (both accepted by Claude Code):\n  - JSON array: `tools: [\"Read\", \"Glob\"]`\n  - Comma-separated string: `tools: Read, Glob, Grep`\n- `skills` — skill references; two valid formats:\n  - JSON array: `skills: [\"nlpm:conventions\"]`\n  - YAML list: `skills:\\n  - nlpm:conventions`\n\n**Best practice: include `\u003Cexample>` blocks in description:**\n```markdown\n---\ndescription: |\n  Scans a directory for Claude Code artifact files. Use this agent when\n  you need to discover commands, agents, skills, rules, or hooks. Also\n  triggers on \"inventory NL files\" or \"find plugin components\".\n\n  \u003Cexample>\n  Context: User asks to audit a plugin repo\n  user: find all the agent files in this plugin\n  assistant: I'll scan the directory structure for agent markdown files...\n  \u003C\u002Fexample>\n\n  \u003Cexample>\n  Context: Command invokes scanner as sub-agent\n  user: \u002Fscan\n  assistant: Invoking scanner agent to discover NL artifacts...\n  \u003C\u002Fexample>\nmodel: haiku\ncolor: cyan\ntools: [\"Glob\", \"Read\"]\nskills: [\"nlpm:conventions\"]\n---\n```\n\nTwo or more `\u003Cexample>` blocks with diverse scenarios is the minimum for reliable triggering.\n\n---\n\n## 5. Skill Structure\n\nSkills provide reference knowledge to agents and commands.\n\n**Path conventions:**\n- Single plugin skill: `skills\u002F\u003Cname>\u002FSKILL.md`\n- Multi-skill plugin: `skills\u002F\u003Cplugin>\u002F\u003Cname>\u002FSKILL.md`\n\n**Frontmatter:**\n- `name` — string (required)\n- `description` — string (required); used for discovery and triggering\n- `version` — semver string (optional)\n- `globs` — string array (optional); file patterns this skill applies to\n\n**Body rules:**\n- Under 500 lines — exceeding this creates context bloat\n- Reference material only — no imperative instructions (those belong in commands\u002Fagents)\n- Include a scope note: what this skill covers and what it does NOT cover\n- Cross-reference related skills with their `plugin:skill` identifiers\n\n**Supporting directories (optional):**\n- `references\u002F` — external docs, specifications, examples\n- `examples\u002F` — concrete worked examples\n- `scripts\u002F` — helper scripts referenced by hooks or commands\n\n---\n\n## 6. Rules\n\nRules live in `.claude\u002Frules\u002F\u003Cname>.md`.\n\n**Frontmatter:**\n- `description` — string (required); summary shown in rule lists\n- `paths` — string array (optional); glob patterns scoping which files this rule applies to\n\n**Body format:**\n- Lead with a **bold imperative**: `**Always do X.**` or `**Use Y instead of Z.**`\n- Follow immediately with rationale: \"Because W, using X ensures...\"\n- Be specific and testable — vague rules cannot be linted or enforced\n- State what to DO, not only what to avoid (Pink Elephant effect: prohibitions without alternatives are ignored)\n\n**Budget:** Under 500 lines total per rules file.\n\n**Naming convention for ordered sets:** `NN-kebab-name.md` (e.g. `01-formatting.md`, `02-naming.md`)\n\n**Example:**\n```markdown\n---\ndescription: \"Always use kebab-case for file and plugin names\"\npaths: [\"**\u002F*.json\", \"**\u002F*.md\"]\n---\n\n**Use kebab-case for all file and plugin names.**\n\nBecause Claude Code resolves plugin references by exact string match, inconsistent casing\ncauses lookup failures. `my-plugin` and `MyPlugin` are treated as different identifiers.\n\nCorrect: `my-plugin`, `tdd-guardian`, `echo-sleuth`\nIncorrect: `myPlugin`, `MyPlugin`, `my_plugin`\n```\n\n---\n\n## 7. Hook Events\n\nHook events are **case-sensitive**. Using wrong case silently ignores the hook.\n\n**Available events:**\n| Event | Trigger |\n|-------|---------|\n| `PreToolUse` | Before any tool call |\n| `PostToolUse` | After successful tool call |\n| `PostToolUseFailure` | After failed tool call |\n| `PermissionRequest` | When Claude requests permission |\n| `UserPromptSubmit` | When user submits a prompt |\n| `Stop` | When main agent stops |\n| `SubagentStop` | When sub-agent stops |\n| `SessionStart` | Session initialization |\n| `SessionEnd` | Session teardown |\n| `PreCompact` | Before context compaction |\n| `Notification` | On notification events |\n| `InstructionsLoaded` | After instructions load |\n\n**Hook types:** `command`, `prompt`, `agent`\n\n**Matcher:** Regex pattern matched against the tool name (for tool hooks). Empty string matches all.\n\n**Permission decision output** (for `PermissionRequest` hooks):\n```json\n{\n  \"hookSpecificOutput\": {\n    \"permissionDecision\": \"allow\",\n    \"permissionDecisionReason\": \"This tool call is safe because...\"\n  }\n}\n```\n`permissionDecision` values: `\"allow\"` or `\"deny\"`\n\n---\n\n## 8. hooks.json Format\n\nLocated at `.claude\u002Fhooks.json` or path specified in `plugin.json`.\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Write|Edit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fpre-write-check.sh\"\n          }\n        ]\n      }\n    ],\n    \"SessionStart\": [\n      {\n        \"matcher\": \"\",\n        \"hooks\": [\n          {\n            \"type\": \"prompt\",\n            \"prompt\": \"You are now in strict TDD mode. No production code without a failing test.\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Structure rules:**\n- Top-level key: `\"hooks\"`\n- Second-level keys: event names (case-sensitive)\n- Each event maps to an array of matcher objects\n- Each matcher object: `{ \"matcher\": \"\u003Cregex>\", \"hooks\": [...] }`\n- Each hook object: `{ \"type\": \"command\"|\"prompt\"|\"agent\", \"\u003Ctype-field>\": \"...\" }` where the field name matches the type: `\"command\"` for type `command`, `\"prompt\"` for type `prompt`, `\"agent\"` for type `agent`\n\n---\n\n## 9. General Prompt Engineering\n\n**Layer order** (imperative for complex prompts):\n1. Role\u002Fpersona — \"You are a strict code reviewer...\"\n2. Context — relevant background, project state, constraints\n3. Task — specific action to perform\n4. Constraints — what to avoid, limits, edge cases\n5. Output format — exact structure of the response\n\n**Few-shot examples:** Include 2+ concrete input→output examples for any complex judgment task. Examples dramatically improve consistency.\n\n**Positive framing:** State what to do. \"Use imperative verbs\" beats \"Don't use passive voice.\" The brain processes prohibitions poorly under inference load (Pink Elephant effect).\n\n**Explicit output format:** Every command and agent body should define exactly what the output should look like — section names, table formats, score displays, etc.\n\n---\n\n## 10. Naming Conventions\n\n| Item | Convention | Example |\n|------|-----------|---------|\n| File names | kebab-case | `tdd-guardian.md`, `pre-write-check.sh` |\n| Plugin names | kebab-case | `nlpm`, `echo-sleuth` |\n| Skill references | `plugin-name:skill-name` | `nlpm:conventions`, `tdd-guardian:rules` |\n| Rule files (ordered) | `NN-kebab.md` | `01-formatting.md` |\n| Environment variable | SCREAMING_SNAKE | `CLAUDE_PLUGIN_ROOT` |\n\n**Portable paths:** Always use `${CLAUDE_PLUGIN_ROOT}` when referencing files within a plugin (scripts, configs). Hardcoded absolute paths break portability.\n\n---\n\n## 11. Reference Syntax\n\n**Commands referencing shared partials:**\n```\n\u003C!-- Include: commands\u002Fshared\u002Fdiscover.md -->\n```\nOr by instruction: \"Follow the steps in commands\u002Fshared\u002Fdiscover.md\"\n\n**Agents referencing skills in frontmatter:**\n```yaml\nskills: [\"nlpm:conventions\", \"nlpm:patterns\"]\n```\n\n**Hooks referencing scripts:**\n```json\n\"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck.sh\"\n```\n\n**Cross-plugin skill references** use the same `plugin:skill` format. The plugin must be installed for the reference to resolve.\n\n---\n\n## 12. Memory File Conventions\n\nMemory files are `.md` files that Claude Code writes and reads as persistent per-project knowledge.\n\n**Location:**\n```\n~\u002F.claude\u002Fprojects\u002F\u003Cproject-slug>\u002Fmemory\u002F\n```\n\n**Index file:** `MEMORY.md` lives at the same level as individual memory files. It is a one-line-per-entry index, not a memory file itself. Each line references one memory file by filename.\n\n**Individual memory files** MUST include YAML frontmatter:\n\n```yaml\n---\nname: \"short identifier\"\ndescription: \"one-line summary of what this memory contains\"\ntype: user | feedback | project | reference\n---\n```\n\n**`type` values:**\n| Value | Meaning |\n|-------|---------|\n| `user` | Preferences, habits, or facts about the user |\n| `feedback` | Corrections or lessons from past sessions |\n| `project` | Project-specific facts, decisions, or context |\n| `reference` | External reference material copied into memory |\n\n**Rules:**\n- Every memory file must appear in `MEMORY.md` — orphaned files (present in the directory but not in the index) are flagged by the scorer\n- `MEMORY.md` itself is the index; it does not need frontmatter and is not scored as a memory file\n- Memory files should not reference other files or functions that have since been deleted — stale references reduce the signal-to-noise ratio of the memory store\n\n---\n\n## 13. Rule Overrides in nlpm.local.md\n\nUsers can suppress or adjust individual rules in `.claude\u002Fnlpm.local.md`:\n\n```yaml\n---\nstrictness: standard\nscore_threshold: 70\nrule_overrides:\n  R01: { max_penalty: -10 }     # reduce vague quantifier cap from -20 to -10\n  R05: { threshold: 600 }       # allow skills up to 600 lines instead of 500\n  R09: { min_examples: 1 }      # require only 1 example block instead of 2\n  R10: { suppress: true }       # disable model tier checking entirely\n  R23: { budget: 800 }          # increase rules budget from 500 to 800 lines\n---\n```\n\n**Override types:**\n\n| Type | Effect | Example |\n|------|--------|---------|\n| `suppress: true` | Disable the rule entirely (penalty becomes 0) | `R10: { suppress: true }` |\n| `max_penalty: N` | Cap the penalty at N (less negative = more lenient) | `R01: { max_penalty: -10 }` |\n| `threshold: N` | Adjust numeric thresholds (line limits, counts) | `R05: { threshold: 600 }` |\n| `min_examples: N` | Adjust minimum example counts | `R09: { min_examples: 1 }` |\n\nRules not listed in `rule_overrides` use their defaults from `nlpm:scoring`.\n\n---\n\n## Scope Note\n\nThis skill covers Claude Code plugin component schemas and conventions. It does NOT cover:\n- Scoring\u002Fquality rubric -> see `nlpm:scoring`\n- Anti-patterns and best practices catalog -> see `nlpm:patterns`\n- General software engineering conventions outside Claude Code artifacts\n","# Claude Code Plugin Conventions\n\nCanonical reference for all NL programming artifact schemas, frontmatter fields, hook events, and naming conventions. Use this skill when linting, writing, or reviewing any Claude Code plugin component.\n\n---\n\n## 1. plugin.json\n\nThe plugin manifest. Located at `.claude-plugin\u002Fplugin.json`.\n\n**Required fields:**\n- `name` — string, kebab-case, unique identifier\n\n**Optional fields:**\n- `version` — semver string (e.g. `\"0.1.0\"`)\n- `description` — one-line summary of what the plugin does\n- `author` — object: `{ \"name\": \"...\", \"email\": \"...\", \"url\": \"...\" }`\n- `homepage` — URL string\n- `repository` — URL string or object\n- `license` — SPDX identifier (e.g. `\"MIT\"`)\n- `keywords` — string array for discovery\n\n**Component path fields (all optional, string or string[]):**\n- `commands` — path(s) to command markdown files\n- `agents` — path(s) to agent markdown files\n- `skills` — path(s) to skill directories\n- `hooks` — path to hooks.json\n- `mcpServers` — path(s) to MCP server config\n- `lspServers` — path(s) to LSP server config\n- `outputStyles` — path(s) to output style definitions\n\n**Example:**\n```json\n{\n  \"name\": \"my-plugin\",\n  \"version\": \"0.2.1\",\n  \"description\": \"Does useful things\",\n  \"author\": { \"name\": \"dev\" },\n  \"license\": \"MIT\",\n  \"keywords\": [\"tools\", \"productivity\"],\n  \"commands\": \"commands\u002F\",\n  \"agents\": \"agents\u002F\",\n  \"skills\": \"skills\u002F\"\n}\n```\n\n---\n\n## 2. Command Frontmatter\n\nCommands live in `commands\u002F*.md`. Frontmatter is YAML between `---` delimiters.\n\n**Required fields:**\n- `description` — string; explains what the command does and when to invoke it\n\n**Optional fields:**\n- `argument-hint` — string; shown in UI as placeholder (e.g. `\"[path]\"`, `\"\u003Cfile>\"`)\n- `allowed-tools` — string array; tools Claude may call while executing this command\n- `model` — one of `haiku`, `sonnet`, `opus`; selects model tier\n- `user-invocable` — boolean; set `false` for shared partials that should not appear in menus\n\n**Body convention:**\n- Write imperative instructions directed at Claude (not the user)\n- Use numbered steps for multi-phase workflows\n- Reference shared partials by relative path: `commands\u002Fshared\u002Fname.md`\n- Define the expected output format explicitly in the body\n\n**Example:**\n```yaml\n---\ndescription: \"Lint all NL artifacts in the current project and report quality scores\"\nargument-hint: \"[path]\"\nallowed-tools: [\"Read\", \"Glob\"]\nmodel: sonnet\n---\n```\n\n---\n\n## 3. Shared Partials\n\nReusable command fragments. Located in `commands\u002Fshared\u002F`.\n\n**Rules:**\n- MUST include `user-invocable: false` in frontmatter — prevents them appearing as top-level commands\n- MUST have a clear `description` stating their purpose as a partial\n- Referenced by full relative path from the consuming command file\n- Can contain any mix of instructions, templates, or decision logic\n\n**Example frontmatter:**\n```yaml\n---\ndescription: \"Shared: discover NL artifact files in a directory tree\"\nuser-invocable: false\nallowed-tools: [\"Glob\"]\n---\n```\n\n---\n\n## 4. Agent Frontmatter\n\nAgents live in `agents\u002F*.md`. They are specialized Claude instances invoked by commands or other agents.\n\n**Documented fields:**\n- `name` — string; identifier used when referencing or invoking this agent\n- `description` — string; critical for reliable triggering — should contain 3+ specific phrases describing when to use this agent\n\n**Convention fields (not enforced by schema but strongly recommended):**\n- `model` — `haiku` \u002F `sonnet` \u002F `opus`; declare explicitly\n- `color` — one of `cyan`, `blue`, `magenta`, `yellow`, `green`, `red`; visual label in UI\n- `tools` — tools the agent body actually needs; two valid formats (both accepted by Claude Code):\n  - JSON array: `tools: [\"Read\", \"Glob\"]`\n  - Comma-separated string: `tools: Read, Glob, Grep`\n- `skills` — skill references; two valid formats:\n  - JSON array: `skills: [\"nlpm:conventions\"]`\n  - YAML list: `skills:\\n  - nlpm:conventions`\n\n**Best practice: include `\u003Cexample>` blocks in description:**\n```markdown\n---\ndescription: |\n  Scans a directory for Claude Code artifact files. Use this agent when\n  you need to discover commands, agents, skills, rules, or hooks. Also\n  triggers on \"inventory NL files\" or \"find plugin components\".\n\n  \u003Cexample>\n  Context: User asks to audit a plugin repo\n  user: find all the agent files in this plugin\n  assistant: I'll scan the directory structure for agent markdown files...\n  \u003C\u002Fexample>\n\n  \u003Cexample>\n  Context: Command invokes scanner as sub-agent\n  user: \u002Fscan\n  assistant: Invoking scanner agent to discover NL artifacts...\n  \u003C\u002Fexample>\nmodel: haiku\ncolor: cyan\ntools: [\"Glob\", \"Read\"]\nskills: [\"nlpm:conventions\"]\n---\n```\n\nTwo or more `\u003Cexample>` blocks with diverse scenarios is the minimum for reliable triggering.\n\n---\n\n## 5. Skill Structure\n\nSkills provide reference knowledge to agents and commands.\n\n**Path conventions:**\n- Single plugin skill: `skills\u002F\u003Cname>\u002FSKILL.md`\n- Multi-skill plugin: `skills\u002F\u003Cplugin>\u002F\u003Cname>\u002FSKILL.md`\n\n**Frontmatter:**\n- `name` — string (required)\n- `description` — string (required); used for discovery and triggering\n- `version` — semver string (optional)\n- `globs` — string array (optional); file patterns this skill applies to\n\n**Body rules:**\n- Under 500 lines — exceeding this creates context bloat\n- Reference material only — no imperative instructions (those belong in commands\u002Fagents)\n- Include a scope note: what this skill covers and what it does NOT cover\n- Cross-reference related skills with their `plugin:skill` identifiers\n\n**Supporting directories (optional):**\n- `references\u002F` — external docs, specifications, examples\n- `examples\u002F` — concrete worked examples\n- `scripts\u002F` — helper scripts referenced by hooks or commands\n\n---\n\n## 6. Rules\n\nRules live in `.claude\u002Frules\u002F\u003Cname>.md`.\n\n**Frontmatter:**\n- `description` — string (required); summary shown in rule lists\n- `paths` — string array (optional); glob patterns scoping which files this rule applies to\n\n**Body format:**\n- Lead with a **bold imperative**: `**Always do X.**` or `**Use Y instead of Z.**`\n- Follow immediately with rationale: \"Because W, using X ensures...\"\n- Be specific and testable — vague rules cannot be linted or enforced\n- State what to DO, not only what to avoid (Pink Elephant effect: prohibitions without alternatives are ignored)\n\n**Budget:** Under 500 lines total per rules file.\n\n**Naming convention for ordered sets:** `NN-kebab-name.md` (e.g. `01-formatting.md`, `02-naming.md`)\n\n**Example:**\n```markdown\n---\ndescription: \"Always use kebab-case for file and plugin names\"\npaths: [\"**\u002F*.json\", \"**\u002F*.md\"]\n---\n\n**Use kebab-case for all file and plugin names.**\n\nBecause Claude Code resolves plugin references by exact string match, inconsistent casing\ncauses lookup failures. `my-plugin` and `MyPlugin` are treated as different identifiers.\n\nCorrect: `my-plugin`, `tdd-guardian`, `echo-sleuth`\nIncorrect: `myPlugin`, `MyPlugin`, `my_plugin`\n```\n\n---\n\n## 7. Hook Events\n\nHook events are **case-sensitive**. Using wrong case silently ignores the hook.\n\n**Available events:**\n| Event | Trigger |\n|-------|---------|\n| `PreToolUse` | Before any tool call |\n| `PostToolUse` | After successful tool call |\n| `PostToolUseFailure` | After failed tool call |\n| `PermissionRequest` | When Claude requests permission |\n| `UserPromptSubmit` | When user submits a prompt |\n| `Stop` | When main agent stops |\n| `SubagentStop` | When sub-agent stops |\n| `SessionStart` | Session initialization |\n| `SessionEnd` | Session teardown |\n| `PreCompact` | Before context compaction |\n| `Notification` | On notification events |\n| `InstructionsLoaded` | After instructions load |\n\n**Hook types:** `command`, `prompt`, `agent`\n\n**Matcher:** Regex pattern matched against the tool name (for tool hooks). Empty string matches all.\n\n**Permission decision output** (for `PermissionRequest` hooks):\n```json\n{\n  \"hookSpecificOutput\": {\n    \"permissionDecision\": \"allow\",\n    \"permissionDecisionReason\": \"This tool call is safe because...\"\n  }\n}\n```\n`permissionDecision` values: `\"allow\"` or `\"deny\"`\n\n---\n\n## 8. hooks.json Format\n\nLocated at `.claude\u002Fhooks.json` or path specified in `plugin.json`.\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Write|Edit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fpre-write-check.sh\"\n          }\n        ]\n      }\n    ],\n    \"SessionStart\": [\n      {\n        \"matcher\": \"\",\n        \"hooks\": [\n          {\n            \"type\": \"prompt\",\n            \"prompt\": \"You are now in strict TDD mode. No production code without a failing test.\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Structure rules:**\n- Top-level key: `\"hooks\"`\n- Second-level keys: event names (case-sensitive)\n- Each event maps to an array of matcher objects\n- Each matcher object: `{ \"matcher\": \"\u003Cregex>\", \"hooks\": [...] }`\n- Each hook object: `{ \"type\": \"command\"|\"prompt\"|\"agent\", \"\u003Ctype-field>\": \"...\" }` where the field name matches the type: `\"command\"` for type `command`, `\"prompt\"` for type `prompt`, `\"agent\"` for type `agent`\n\n---\n\n## 9. General Prompt Engineering\n\n**Layer order** (imperative for complex prompts):\n1. Role\u002Fpersona — \"You are a strict code reviewer...\"\n2. Context — relevant background, project state, constraints\n3. Task — specific action to perform\n4. Constraints — what to avoid, limits, edge cases\n5. Output format — exact structure of the response\n\n**Few-shot examples:** Include 2+ concrete input→output examples for any complex judgment task. Examples dramatically improve consistency.\n\n**Positive framing:** State what to do. \"Use imperative verbs\" beats \"Don't use passive voice.\" The brain processes prohibitions poorly under inference load (Pink Elephant effect).\n\n**Explicit output format:** Every command and agent body should define exactly what the output should look like — section names, table formats, score displays, etc.\n\n---\n\n## 10. Naming Conventions\n\n| Item | Convention | Example |\n|------|-----------|---------|\n| File names | kebab-case | `tdd-guardian.md`, `pre-write-check.sh` |\n| Plugin names | kebab-case | `nlpm`, `echo-sleuth` |\n| Skill references | `plugin-name:skill-name` | `nlpm:conventions`, `tdd-guardian:rules` |\n| Rule files (ordered) | `NN-kebab.md` | `01-formatting.md` |\n| Environment variable | SCREAMING_SNAKE | `CLAUDE_PLUGIN_ROOT` |\n\n**Portable paths:** Always use `${CLAUDE_PLUGIN_ROOT}` when referencing files within a plugin (scripts, configs). Hardcoded absolute paths break portability.\n\n---\n\n## 11. Reference Syntax\n\n**Commands referencing shared partials:**\n```\n\u003C!-- Include: commands\u002Fshared\u002Fdiscover.md -->\n```\nOr by instruction: \"Follow the steps in commands\u002Fshared\u002Fdiscover.md\"\n\n**Agents referencing skills in frontmatter:**\n```yaml\nskills: [\"nlpm:conventions\", \"nlpm:patterns\"]\n```\n\n**Hooks referencing scripts:**\n```json\n\"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck.sh\"\n```\n\n**Cross-plugin skill references** use the same `plugin:skill` format. The plugin must be installed for the reference to resolve.\n\n---\n\n## 12. Memory File Conventions\n\nMemory files are `.md` files that Claude Code writes and reads as persistent per-project knowledge.\n\n**Location:**\n```\n~\u002F.claude\u002Fprojects\u002F\u003Cproject-slug>\u002Fmemory\u002F\n```\n\n**Index file:** `MEMORY.md` lives at the same level as individual memory files. It is a one-line-per-entry index, not a memory file itself. Each line references one memory file by filename.\n\n**Individual memory files** MUST include YAML frontmatter:\n\n```yaml\n---\nname: \"short identifier\"\ndescription: \"one-line summary of what this memory contains\"\ntype: user | feedback | project | reference\n---\n```\n\n**`type` values:**\n| Value | Meaning |\n|-------|---------|\n| `user` | Preferences, habits, or facts about the user |\n| `feedback` | Corrections or lessons from past sessions |\n| `project` | Project-specific facts, decisions, or context |\n| `reference` | External reference material copied into memory |\n\n**Rules:**\n- Every memory file must appear in `MEMORY.md` — orphaned files (present in the directory but not in the index) are flagged by the scorer\n- `MEMORY.md` itself is the index; it does not need frontmatter and is not scored as a memory file\n- Memory files should not reference other files or functions that have since been deleted — stale references reduce the signal-to-noise ratio of the memory store\n\n---\n\n## 13. Rule Overrides in nlpm.local.md\n\nUsers can suppress or adjust individual rules in `.claude\u002Fnlpm.local.md`:\n\n```yaml\n---\nstrictness: standard\nscore_threshold: 70\nrule_overrides:\n  R01: { max_penalty: -10 }     # reduce vague quantifier cap from -20 to -10\n  R05: { threshold: 600 }       # allow skills up to 600 lines instead of 500\n  R09: { min_examples: 1 }      # require only 1 example block instead of 2\n  R10: { suppress: true }       # disable model tier checking entirely\n  R23: { budget: 800 }          # increase rules budget from 500 to 800 lines\n---\n```\n\n**Override types:**\n\n| Type | Effect | Example |\n|------|--------|---------|\n| `suppress: true` | Disable the rule entirely (penalty becomes 0) | `R10: { suppress: true }` |\n| `max_penalty: N` | Cap the penalty at N (less negative = more lenient) | `R01: { max_penalty: -10 }` |\n| `threshold: N` | Adjust numeric thresholds (line limits, counts) | `R05: { threshold: 600 }` |\n| `min_examples: N` | Adjust minimum example counts | `R09: { min_examples: 1 }` |\n\nRules not listed in `rule_overrides` use their defaults from `nlpm:scoring`.\n\n---\n\n## Scope Note\n\nThis skill covers Claude Code plugin component schemas and conventions. It does NOT cover:\n- Scoring\u002Fquality rubric -> see `nlpm:scoring`\n- Anti-patterns and best practices catalog -> see `nlpm:patterns`\n- General software engineering conventions outside Claude Code artifacts\n",{"name":5,"version":43,"description":7},"0.1.0","main","7850740bd837adb32f0a109ab2af82482196c6f2","skills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fconventions",1,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills","https:\u002F\u002Fzturnsgo.com","https:\u002F\u002Fgithub.com\u002Fshengdabai","https:\u002F\u002Fzturnsgo.com\u002F","AI × education creator — producer, not consumer. Taught 6,000+ learners; shipping learning tools & daily essays with Claude Code, practicing @xiaolai's way 🥋","2026-11-01 21:28:23",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add shengdabai\u002FTony-Claude-Code-Skills --skill conventions",{"tool":60,"command":61},"bunx","bunx skills add shengdabai\u002FTony-Claude-Code-Skills --skill conventions",{"tool":63,"command":64},"pnpm","pnpm dlx skills add shengdabai\u002FTony-Claude-Code-Skills --skill conventions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fconventions\u002FSKILL.md",true,[],[69,78,86,94,102,110],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"01M73H7XKBHE1ETQDZT94MF9HH","seedance-prompt-en","Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":77},"01M73GRE9998Q1DZWC71N41JWG","onepage-pdf","Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file\u002Freport\u002Fproposal into a \"single-page PDF\", \"long PDF\", \"不分页 PDF\", \"单页 PDF\", \"长图式 PDF\", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":77},"01M73GQG1KZDADVPV3MHAT1J5A","native-feel-cross-platform-desktop","Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include \"cross-platform desktop\", \"Electron alternative\", \"Tauri vs native\", \"WebView wrapper\", \"near-native performance\", \"Raycast architecture\", \"WebKit\u002FWebView2 quirks\", \"WKWebView\", \"system tray app\", \"global hotkey app\", \"launcher app\". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":77},"01M73G87PDNSMKG2FHWCYER6N8","gstack","Router for the gstack skill suite. (gstack)","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":77},"01M73G3EAQWKCM8DB8D0N0QSVG","fireworks-tech-graph","Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent\u002Fmemory, or concept map - and export as SVG+PNG. Trigger on: \"画图\" \"帮我画\" \"生成图\" \"做个图\" \"架构图\" \"流程图\" \"可视化一下\" \"出图\" \"generate diagram\" \"draw diagram\" \"visualize\" or any system\u002Fflow description the user wants illustrated.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":77},"01M73G086AXAH9DW1H5G5N3CPB","dbs-video-extract","接收抖音、小红书、微信视频号等短视频链接或分享文案，查询作品／账号数据并提取语音文字稿，按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用；运行前检查 TikHub 与轻抖使用凭证，缺少时用新手能理解的方式引导购买和安全配置。","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdbs-video-extract\u002FSKILL.md",[],[]]