跳到正文
cccskills
免费在 GitHub 公开

skill-creator

Guide for creating or updating a ReviewFlow skill. Use when the user wants to create a new skill, update an existing skill, or asks how to add a slash command that extends Claude's capabilities in this project.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Skill Creator

Guide for creating effective skills in the ReviewFlow project.

About Skills

Skills are modular, self-contained packages that extend Claude's capabilities with specialized workflows, domain knowledge, and tool integrations. They transform Claude from a general-purpose agent into a project-specialized one.

What Skills Provide

  1. Specialized workflows — Multi-step procedures (e.g. /ship, /tdd, /implement-feature)
  2. Domain expertise — ReviewFlow-specific knowledge, architecture patterns, business rules
  3. Bundled resources — References and assets loaded on demand

Core Principles

Concise is Key

The context window is a shared resource. Only add context Claude does not already have. Challenge each paragraph: "Does Claude really need this?" If not, remove it.

Set Appropriate Degrees of Freedom

  • High freedom (text instructions): multiple approaches valid, context-dependent
  • Medium freedom (pseudocode/templates): preferred pattern exists, variation acceptable
  • Low freedom (shell scripts): operations are fragile, consistency critical

Anatomy of a ReviewFlow Skill

.claude/skills/<skill-name>/
├── SKILL.md            (required)
│   ├── YAML frontmatter (required: name + description)
│   └── Markdown instructions
└── references/         (optional — bundled docs loaded by reference)

Skill Creation Process

  1. Understand the skill with 2-3 concrete usage examples
  2. Draft the frontmatter (name, description, user-invocable)
  3. Write the body — imperative instructions, low prose
  4. Test it: invoke /skill-name and verify Claude follows the workflow
  5. Register in CLAUDE.md skills table

Frontmatter Reference

---
name: skill-name            # kebab-case, matches folder name
description: >              # PRIMARY TRIGGER — LLM reads only this initially.
  One or two sentences.     # Include natural-language trigger phrases.
  "Use when the user says X, Y, Z."
user-invocable: true        # true = can be invoked with /skill-name
allowed-tools: Bash, Read   # optional — restrict available tools
---

Official fields: name, description, user-invocable, allowed-tools, disable-model-invocation, context.

triggers: [] is NOT an official field — it is silently ignored. The description is the only trigger mechanism.

Writing Guidelines

  • Write in English — no exceptions (code, body, comments)
  • Use imperative form: "Run", "Read", "Stop", never "You should run"
  • description is the primary trigger — include natural trigger phrases in it
  • Keep the body under 400 lines
  • Include only what Claude does not already know
  • Prefer tables and bullet lists over prose paragraphs
  • Match ReviewFlow conventions (see CLAUDE.md and .claude/rules/coding-standards.md)

What NOT to Include

  • Generic programming knowledge Claude already has
  • README-style context that belongs in docs
  • Comments explaining what the skill is (the frontmatter does that)
  • Skills are for AI agents, not humans — do not write tutorials

ReviewFlow-Specific Conventions

ConventionDetail
Package manageryarn — never pnpm or npm
Main branchmaster — never main
Quality gateyarn verify (typecheck + lint + test:ci)
Commit formatConventional Commits via commitlint
LanguageEnglish everywhere (code, tests, commits, logs)
Imports@/ alias + .js extension mandatory
No barrel exportsDirect imports only, no index.ts re-exports

Skill Registration

After creating a skill, add it to the skills table in CLAUDE.md:

| `/skill-name` | When to use this skill |

Quick Template

---
name: my-skill
description: Brief description. Use when the user says "X", "Y", or wants to Z.
user-invocable: true
---

# My Skill — Short Title

## Activation

This skill activates with `/my-skill`.

## Workflow

### Step 1: <Action>

<Instructions>

### Step 2: <Action>

<Instructions>

## Rules

- NEVER do X
- ALWAYS do Y

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月21日 更新

查看 DGouron 的全部技能

报告此技能的问题