MCPInstall

docs

Create or refresh project documentation in docs/. Use when a project needs docs initialized or existing docs synced to the current codebase.

Installs
498
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/buiducnhat/cobrew --skill docs
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads docs automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Docs

Create and maintain project documentation in docs/ with a consistent, lightweight structure.

Outputs

Maintain these outputs:

  1. docs/SUMMARY.md — documentation entry point with an Agent Context Guide (always regenerated)
  2. docs/architecture/ — system design, infrastructure, component interactions, data flows, feature flows. Focus on how the system works, not file/code structure.
  3. docs/codebase/ — file organization, directory structure, entry points, key modules and their responsibilities. Focus on where things live in the code.
  4. docs/code-standard/ — coding conventions, naming rules, style guides, environment setup, custom rules and patterns the team follows. Focus on how to write code that fits in with the existing codebase, best practices, and team conventions, very important for maintaining consistency.
  5. docs/project-pdr/ — product goals, use cases, business rules, constraints, and decision rationale. Nice to have many use case/requirements files

Also keep README.md aligned with current docs links and project summary.

Workflow

Step 1: Context Scan

Scan the project to understand what needs documenting:

  1. Read existing docs if any (docs/SUMMARY.md and topic folders)
  2. Read README.md and key config files (package.json, tsconfig.json, Cargo.toml, etc.)
  3. Scan source directories to understand project structure, entry points, and major components
  4. Check git log --oneline -20 for recent changes when updating existing docs

Focus on facts: features, architecture, stack, directory structure, and workflows. Do not invent requirements or assume business logic that is not evident from the code.

Step 2: Infer Behavior

  • Infer whether the repository needs an initial documentation pass or an incremental update based on the current docs/ state.
  • If docs/ does not exist or is clearly incomplete, perform initialization behavior.
  • If docs/ already exists with the standard structure, perform update behavior.
  • State the inferred behavior briefly when relevant.

Step 3: Produce Documentation

Initialize docs when missing or incomplete

  1. Create docs/ and 4 topic folders: architecture/, codebase/, code-standard/, project-pdr/
  2. For each topic folder: a. Scan codebase for relevant information b. Generate content based on codebase scan c. Create topic-specific files based on content found in the codebase. Name each file by its content (e.g., components.md, conventions.md). Do NOT use generic names (overview.md, index.md, main.md). Split into multiple files when content covers 2+ clearly distinct sub-topics. Minimum 1 file per folder.
  3. Create docs/SUMMARY.md using the format specified in Content Requirements, including the Agent Context Guide
  4. Update README.md with link to docs/SUMMARY.md

Populate each file with concrete, project-specific content. Avoid placeholders and generic templates.

Update docs when they already exist

  1. Detect what changed: compare current code against existing docs. Use git log --oneline and source file scanning to identify new/modified/removed components.
  2. Preserve useful existing content and section structure.
  3. Update stale or inaccurate sections in-place — do not rewrite from scratch.
  4. Add newly discovered features, components, or conventions.
  5. Remove clearly obsolete statements.
  6. Add, modify, or remove detail files as needed based on content changes.
  7. Regenerate docs/SUMMARY.md to match current files — only list files that actually exist on disk and keep the Agent Context Guide.
  8. Update README.md if documentation links changed.

Important: The goal is an incremental, surgical update — not a full rewrite.

Step 4: Sync README

Ensure README.md includes:

  • Short project overview
  • Quick start (if present in project)
  • Documentation link pointing to docs/SUMMARY.md

Step 5: Validate Quality

Before finishing, verify:

  • docs/SUMMARY.md exists and lists every detail file that actually exists on disk (no phantom entries)
  • Each topic folder has at least 1 topic-specific file
  • No generic file names (overview.md, index.md, main.md) in topic folders
  • README.md links point to docs/SUMMARY.md
  • SUMMARY.md is concise, contains the Agent Context Guide, and contains file tables for all sections
  • Terminology is consistent across files
  • No contradictions between docs and code
  • Paths and component names are accurate
  • Content is concise, specific, and actionable

Content Requirements

SUMMARY.md format

Contains project overview, a concise Agent Context Guide, and file tables for each documentation section.

Strictly follow the template in references/summary-template.md.

The Agent Context Guide must stay limited to project context loading:

  • Read docs/SUMMARY.md first when it exists
  • Load only task-relevant detail docs
  • Prioritize Code Standard docs for implementation conventions
  • Use the available input/question before broad changes when docs conflict with code or user intent

Do not use the guide to duplicate general engineering principles, git rules, or detailed question-tool procedures.

Topic file rules

  • Each file focuses on 1 specific sub-topic within its folder
  • Named by content slug: components.md, conventions.md, product-goals.md
  • Do NOT use generic names: overview.md, index.md, main.md, general.md
  • Keep files focused and concise without enforcing line-count targets

Edge Cases

  • Minimal/empty project: If the codebase has very little code, keep topic files short and factual. Do not pad content to reach arbitrary size targets. Mark sections as "TBD — to be documented as the project grows" when there is genuinely nothing to document yet. Even with 1 file per folder, name it by its content.
  • Custom files in docs/: Preserve any user-created files outside the 4 standard topic folders (e.g., docs/API.md, docs/deployment.md). List them under "Other" in SUMMARY.md. Do not move or rename them.
  • Monorepo: If the project contains multiple packages/apps, document the overall structure in architecture/components.md and note each package's purpose. Each package does not need its own full docs set — keep it proportional.

Rules

  • Keep documentation factual; do not invent requirements.
  • Prefer concise updates over verbose prose.
  • Keep docs aligned with current implementation.
  • When uncertain, mark assumptions explicitly and request confirmation.
  • Ask targeted questions when information cannot be reliably inferred (business goals, ambiguous module ownership, conflicting conventions, unclear architecture decisions).

FAQ

What does the docs skill do?

Create or refresh project documentation in docs/. Use when a project needs docs initialized or existing docs synced to the current codebase.

How do I install docs?

Run npx skills add https://github.com/buiducnhat/cobrew --skill docs in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/docs/ (personal) or .claude/skills/docs/ (project).

Which AI agents can use docs?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is docs safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains docs?

It is published by buiducnhat in buiducnhat/cobrew. It has 498 recorded installs.

More from buiducnhat/cobrew

View all →

brainstorm

buiducnhat/cobrew

Collaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding.

execute-plan

buiducnhat/cobrew

Execute an approved implementation plan exactly and safely. Use for ExecPlan-style plan execution, resumable phase checklists, multi-hour implementation work, migrations, significant refactors, and plans that require verification checkpoints, status tracking, and final reporting.

write-plan

buiducnhat/cobrew

Create detailed, execution-ready implementation plans for complex or high-risk changes without coding. Use for ExecPlan-style work, multi-hour changes, significant refactors, migrations, resumable phase checklists, and work that should be handed off to execute-plan with clear validation.

quick-implement

buiducnhat/cobrew

Open the skill to read its SKILL.md instructions.

438 installs

ask

buiducnhat/cobrew

Open the skill to read its SKILL.md instructions.

302 installs

fix

buiducnhat/cobrew

Open the skill to read its SKILL.md instructions.

279 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs