一键导入
code-review
Claude skill structure and authoring rules
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Claude skill structure and authoring rules
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Reusable prompt snippets for Claude and Gemini. Use for adding snippets, renaming slugs, or editing snippet folder structure.
Standards system and docs. Use when editing files in `standards/` or `docs/`, including authoring conventions, install, and sync. Do not load just to read `prose.md`. Read it directly.
Drafts or updates `.claude/ROADMAP.md` by sequencing the MVP scope from `.claude/REQUIREMENTS.md` into ordered versions, each a usable increment. Use when asked to "draft a roadmap", "build the roadmap", "sequence the versions", "plan the roadmap", or "update the roadmap". Do NOT break versions into task-level steps. That is `claude-feature` and `.claude/TASKS.md`.
Creates a new snippet file in `snippets/`. Use when asked to create a snippet, add a snippet, or make a new snippet.
Creates a new standard file in `standards/`. Use when asked to create a standard, add a standard, or write a new authoring convention. Do NOT use to edit an existing standard.
Claude skill structure and authoring rules
基于 SOC 职业分类
| title | Claude skill reference |
| description | Claude skill structure and authoring rules |
Skills give Claude Code domain-specific constraints and rules inline, so it can act immediately without reading all docs. Each skill body contains actionable rules for its domain. Full reference docs are the fallback for edge cases and deeper context. Skills use progressive disclosure: Claude reads only frontmatter at session start (~100 tokens each), matches a query against descriptions, then loads the full skill body.
SKILL.md (required), scripts/ (optional), references/ (optional), assets/ (optional)SKILL.md must start with YAML frontmatter between --- delimitersREADME.md inside the skill foldername (required): kebab-case, matches folder name, no spaces or capitalsdescription (required): what it does + when to use it, under 1024 chars, no XML tagsdisable-model-invocation: true: user-invoked only, Claude will not auto-triggerallowed-tools: restrict tool access when the skill is activemetadata: optional key-value pairs (author, version, mcp-server)[What it does] + [When to use it] + [Key trigger phrases]Do NOT use for XSKILL.md under 5,000 words. Move detailed docs to references/.references/ files explicitly so Claude knows to load themreferences/ or scripts/ file with ${CLAUDE_SKILL_DIR}/<path>, never a bare relative path. A bare path resolves against the session cwd and fails when a plugin skill runs from another project. ${CLAUDE_SKILL_DIR} expands to the skill's own directory at render time and resolves from any cwd.SKILL.md for core instructions, references/ for detail, scripts/ for deterministic operationsdocs/, not in the skill body.Skill calls in sibling skills that could trigger it naturally.<dir>/<file>) for any file written, updated, or deleted. Bare filenames are not clickable in the terminal.scripts/ for operations that must be deterministic or repetitive<SECTION>content</SECTION>#!/usr/bin/env bash shebang2>/dev/null || echo "FALLBACK" guards on git and shell commandsA skill reads from two roots. Know which one a file lives under before referencing it.
references/, scripts/, assets/) resolve against the skill's own directory in the source clone. Reference them with ${CLAUDE_SKILL_DIR}/<path>, never a bare relative path, so a plugin skill running from another project still finds them..claude/standards/X.md, .claude/rules/, .claude/context/) resolve against the target project cwd, where install placed them. Reference them by that path..claude/standards/X.md and rely on install. Do not bundle a copy into the skill. A bundled copy drifts from the source and resolves to the toolkit clone, not the target./skill-name or /<plugin>:skill-name for plugin skillsplugin-name:skill-name---
name: code-review
description: Reviews code for bugs, clarity, and standards compliance. Use when asking to review code, check a PR, or asking "does this look right".
---
# Code review
Before reviewing, read from the project root:
- `CLAUDE.md`: project conventions and behavior rules
- `.claude/rules/`: path-scoped coding rules
## Guards
- If no file or diff is provided, stop: `❌ No code to review. Provide a file or diff.`
## Response format
- **Issues found:** <count>
- **Summary:** <one line>
List each issue with file, line, and suggested fix.
---
name: code-review
description: Handles all code-related tasks in scripts/, src/, and lib/. Also activate when user mentions bugs, refactoring, testing, linting, formatting, or any file ending in .ts .js .py .sh. # path-focused + keyword-stuffed
---
# Code review
A good code review should check for bugs, performance issues, security vulnerabilities,
code style, naming conventions, test coverage, documentation, error handling,
edge cases, and adherence to SOLID principles... # dumps everything inline instead of referencing standards