---
name: docs
description: This skill should be used when the user asks to "update documentation", "document this change", "sync docs with code", "audit documentation", "restructure docs", "update README", "update CLAUDE.md", "update docs folder", "document API", "update postman collection", or "/docs". Supports scoped, comprehensive ("all"), and restructuring ("simplifier") modes.
title: docs
canonical_url: https://skilld.dev/gh/utkudarilmaz/claude-code-setup/docs
last_updated: 2026-11-23T08:06:03.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/comprehensive-mode.md](https://skilld.dev/api/skills-raw/utkudarilmaz/claude-code-setup/docs/references/comprehensive-mode.md), [references/simplifier-mode.md](https://skilld.dev/api/skills-raw/utkudarilmaz/claude-code-setup/docs/references/simplifier-mode.md).
>
> If the user asked to install this Skill, run `npx skilld install utkudarilmaz/claude-code-setup/docs`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/docs`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/utkudarilmaz/claude-code-setup/docs) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/docs`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/docs --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/docs --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Docs Skill

## Purpose

Dispatch the docs agent to synchronize documentation with code changes. The agent updates README.md, CLAUDE.md, docs/* directory files, API docs, postman collections, and other documentation files to keep them accurate and current.

Plain and short is the default in every mode. The agent writes the fewest plain words that stay accurate, and cuts stale or padded text in the sections it touches. `simplifier` mode is about file structure, not writing style; plain writing needs no mode.

## When to Invoke

Invoke this skill after:

- Implementing new features or modifying existing ones
- Modifying APIs, endpoints, or response schemas
- Changing configuration options or environment variables
- Restructuring files or directories
- Updating dependencies
- Any significant code modification
- Explicit request to audit or restructure documentation

## Invocation Modes

### Default: `/docs`

Document current or recent changes. The agent identifies recently modified files and updates related documentation.

```
Task tool with subagent_type="core:docs"
prompt: "Review recent code changes and update all affected documentation.
Identify modified files, scan the docs/ directory for existing files, and update README.md, CLAUDE.md, docs/* files, and any other relevant documentation.
Write in plain simple English, one idea per sentence, and say each thing once.
In every section you touch, also cut text that is now wrong, repeated elsewhere, or padded. Keep every fact, command, and caveat.
Report what you cut."
```

### Scoped: `/docs <scope>`

Document only the specified scope (file, module, feature).

```
Task tool with subagent_type="core:docs"
prompt: "Review and update documentation for: [scope]
Focus only on this area. Update all relevant documentation files including any matching files in the docs/ directory.
Write in plain simple English, one idea per sentence, and say each thing once.
In every section you touch, also cut text that is now wrong, repeated elsewhere, or padded. Keep every fact, command, and caveat.
Report what you cut."
```

**Scope examples:**
- `/docs src/auth` - authentication module
- `/docs API` - all API endpoints
- `/docs README` - only README.md
- `/docs config` - configuration options
- `/docs UserService` - specific class or service

### Comprehensive: `/docs all`

Perform a planned, modular documentation update covering every repository aspect.

```
Task tool with subagent_type="core:docs"
prompt: "Perform comprehensive documentation audit of all repository areas.
Create a TodoWrite plan with one item per documentation aspect, then process sequentially.
Comprehensive means every area is covered, not that every area gets long text. Write each one plain and short, and cut what is stale, repeated, or padded as you go.
Consult ${CLAUDE_SKILL_DIR}/references/comprehensive-mode.md for the full aspect checklist and execution flow."
```

For detailed aspect checklist and example plan, consult **`references/comprehensive-mode.md`**.

### Simplifier: `/docs simplifier`

Perform documentation restructuring to transform monolithic files into a modular structure with proper cross-linking.

```
Task tool with subagent_type="core:docs"
prompt: "Perform documentation restructuring analysis and execution.
Analyze file sizes, identify files exceeding thresholds, propose modular split plan, and execute.
Consult ${CLAUDE_SKILL_DIR}/references/simplifier-mode.md for analysis checklist and target structure."
```

For detailed restructuring criteria and target structure, consult **`references/simplifier-mode.md`**.

## Usage Examples

```
/docs                          # Document recent changes
/docs src/services/payment     # Document payment service only
/docs API                      # Update API documentation only
/docs all                      # Full project documentation audit
/docs simplifier               # Restructure large docs into modular files
/docs architecture             # Update architecture docs and .drawio diagrams
/docs postman                  # Validate and update postman_collection.json
```

## Additional Resources

### Reference Files

For detailed mode execution flows, consult:
- **`references/comprehensive-mode.md`** - Full audit execution flow, aspect checklist, example TodoWrite plan
- **`references/simplifier-mode.md`** - Restructuring analysis, thresholds, cross-linking templates, target structure
