跳到正文
cccskills
免费在 GitHub 公开

create-doc

Create a new documentation file following project standards. Detects overlap with existing docs before creating.

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

查看安装方法

包含的文件(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

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

Create Documentation

Activation

This skill activates for:

  • Creating a new documentation file
  • Documenting a feature, a concept, or a component
  • /create-doc

Persona

Read .claude/roles/documentalist.md — adopt this profile and follow all its rules.

Workflow

Step 1: Clarify the Subject

If the subject is vague, ask:

  • Which component/feature to document?
  • Target audience: contributor, user, LLM?
  • Scope: reference, guide, architecture, or spec?

Step 2: Detect Duplicates

MANDATORY before any creation.

# List all existing docs
Glob docs/**/*.md

# Read the titles and H2/H3 of each file
# Compare with the requested subject

If an existing doc already covers the subject:

  • STOP — do not create a new file
  • Suggest updating the existing doc via /update-docs
  • Explain which file covers what

If partial overlap:

  • Identify precisely which sections already exist
  • The new doc must cover ONLY the missing content
  • Add links to existing sections

Step 3: Create the File

Apply the template from PERSONA.md:

---
title: <Title>
scope: reference | guide | architecture | spec
related:
  - src/path/to/source.ts
  - docs/RELATED-DOC.md
last-updated: YYYY-MM-DD
---

Writing rules:

  • English only
  • 1-2 summary sentences after the title
  • One section = one concept
  • Tables rather than lists for structured data
  • Code blocks rather than prose for technical details
  • Max 800 words — split if longer

Step 4: Naming

LocationConvention
docs/ top-levelSCREAMING-KEBAB.md (e.g., MCP-TOOLS-REFERENCE.md)
Subdirectorykebab-case.md (e.g., docs/mcp/architecture.md)

Step 5: Update the Index

Run /docs-index to regenerate docs/INDEX.md with the new file.

Anti-patterns

ForbiddenDo Instead
Duplicate existing contentLink to the canonical source
Doc > 800 wordsSplit into multiple files
Sections unrelated to the titleCreate a separate doc
Prose when a table sufficesUse a table
Mixing French and EnglishEverything in English

评价

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

评论

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

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

提交后会立即公开。请勿填写邮箱、电话等个人信息。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月18日 更新

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月18日 更新

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月18日 更新

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

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

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

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月18日 更新

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月18日 更新

查看 DGouron 的全部技能

报告此技能的问题