بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف 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 commands/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
Pulls review findings and CI status on the current branch's open PR, fixes each in the working tree, refreshes any stale `.claude/` docs, replies with a summary comment, and pushes a follow-up commit. The worker's return leg after `claude-pr-review`. Use when asked to "address the review", "fix the PR comments", "respond to review", or after an orchestrator posts findings. Do NOT use to write a review. That is `claude-pr-review`.
Ships a small self-review edit on the current PR branch by staging, committing, pushing, and syncing the open PR, replying on the PR when it carries review comments. Use when asked to "ship a followup", "push the PR fix", "followup", or "commit and push this small change". Do NOT use when there is no open PR for the branch (use git-ship instead).
Chains implement → verify → review → ship after a feature plan is approved. Reads the plan for the current branch, runs the full pipeline in one session, and stops on any failure or non-minor review finding. Use when asked to "autoship", "ship this feature end to end", or "run the chain". Do NOT auto-trigger. Requires an approved plan file.
Asserts the orchestrator role for the current session and holds the build loop, dispatching to the roadmap, feature, review, and worktree skills. Use when asked to "be the orchestrator", "run the orchestrator", "orchestrate this project", or to set up the control session for parallel feature builds. Do NOT build features or merge PRs in this session.
Reviews an open pull request from an independent session and posts findings as a review comment on the PR. Reads project docs and the roadmap for cross-feature context a self-review lacks. Use when asked to "review the PR", "review this feature's PR", "post a PR review", or acting as the orchestrator reviewing a worker's PR. Do NOT use to review local uncommitted changes. That is `claude-review`.
Classifies each section of a target project's bloated `CLAUDE.md` into the three-tier context model and proposes moves to path-scoped rules or context entries, keeping only always-load behavior in `CLAUDE.md`. Use when asked to "slim CLAUDE.md", "migrate CLAUDE.md to rules", "rebalance CLAUDE.md", or when a project's `CLAUDE.md` has grown large. Do NOT move `docs/` files (that is `migration-context`) and do NOT auto-execute. Proposal only.