Skip to content
Skills Library
Programming · Writing

doc-update

/doc-update

Update documentation files with an execution-first approach: read source, plan briefly, edit immediately, summarize changes, and commit. Use when updating docs, syncing documentation with code changes, or batch-editing markdown files.

Licence
BSD-3-Clause
Last repository change
23.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

BSD-3-Clause, otwarta.

What it does and when to use it

Update documentation files with an execution-first approach: read source, plan briefly, edit immediately, summarize changes, and commit. Use when updating docs, syncing documentation with code changes, or batch-editing markdown files.

Arguments

/doc-update <file-or-directory> [--commit] [--dry-run]
Original author description

Update documentation files with an execution-first approach: read source, plan briefly, edit immediately, summarize changes, and commit. Use when updating docs, syncing documentation with code changes, or batch-editing markdown files.

How it works

  1. Usage
  2. Arguments
  3. Instructions
  4. Error Handling
  5. Quality Checks
Original SKILL.md headings · 102 lines, 502 words
SKILL.md preview
---
name: doc-update
description: "Update documentation files with an execution-first approach: read source, plan briefly, edit immediately, summarize changes, and commit. Use when updating docs, syncing documentation with code changes, or batch-editing markdown files."
argument-hint: "<file-or-directory> [--commit] [--dry-run]"
user-invocable: true
disable-model-invocation: true
context: fork
allowed-tools:
  - Bash
  - Grep
  - Glob
  - Read
  - Edit
  - Write
iso_class: none
---

# Document Update Command

Update documentation files with an execution-first workflow.

## Usage

```
/doc-update README.md                    # Update a single file
/doc-update docs/                        # Update all docs in directory
/doc-update docs/api.md --commit         # Update and commit
/doc-update docs/ --dry-run              # Show planned changes without applying
```

## Arguments

- `<file-or-directory>`: Target to update (required)
  - Single file: update that file directly
  - Directory: find and update all `.md` files recursively

- `[--commit]`: Commit changes after applying edits (optional)
  - Without `--commit`: Edit files but do not commit
  - With `--commit`: Edit files, then create a commit with a one-line summary per file

- `[--dry-run]`: Preview mode (optional)
  - Show what would change without modifying any files

## Instructions

Follow this execution-first workflow strictly.

### Anti-Pattern

Do NOT spend more than 2 minutes on analysis before starting edits. If you find yourself reading a third file without having made any edits, stop and start editing immediately.

### Step 1: Read Source (max 1 minute)

Read the target file(s) to understand current content. For directories, scan file names first, then read files as you edit them — not all upfront.

### Step 2: Plan (max 5 bullet points)

Write a brief plan of changes. Maximum 5 bullet points. Do not create detailed outlines, change matrices, or impact analyses.

Example:
```
Plan:
- Update API endpoint table with new /users/search route
- Fix outdated install command (npm → pnpm)
- Remove deprecated config section
- Add missing environment variable docs
- Update version references to 3.2.0
```

### Step 3: Edit Immediately

Start making changes file by file. Use the Edit tool for surgical modifications. Use Write only for new files or complete rewrites.

Rules:
- Edit one file at a time
- After each file, move to the next — do not re-read files you just edited
- Match existing formatting, heading levels, and style conventions
- Do not add unrelated improvements or reformatting

### Step 4: Summarize Changes

After all edits are complete, provide a one-line summary per modified file:

```
Changes:
- docs/api.md: added /users/search endpoint documentation
- docs/install.md: updated package manager from npm to pnpm
- docs/config.md: removed deprecated v1 configuration section
```

### Step 5: Commit (if --commit)

If `--commit` flag is set, create a single commit with type `docs`:

```
docs(scope): brief description of changes
```

Include the file-level summary as the commit body.

## Error Handling

| Condition | Behavior |
|-----------|----------|
| File not found | Report error, skip file, continue with remaining targets |
| Binary file | Skip with warning |
| No changes needed | Report "No updates required" and exit |
| Read-only file | Report error and skip |
| Dry-run mode | Show diff preview for each file, make no modifications |

## Quality Checks

Before finishing, verify:
- [ ] No broken markdown links introduced
- [ ] Heading hierarchy is consistent (no skipped levels)
- [ ] Code blocks have language annotations
- [ ] No trailing whitespace added

Versions

RepositoryScoreLicence
This page · kcenon/claude-config100BSD-3-Clause
drvoss/everything-copilot-cli100MIT
boykush/scraps100MIT

Database snapshot: 13.11.2026 · package version b19f6fbb6b64 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100documentation-management
    Operating manual for documentation work in nexus-agents. Use when updating docs, adding new docs, changing doc pipeline, or troubleshooting doc issues. Triggers on "update docs", "add documentation", "doc pipeline".
  • 100docs-creator
    Create or improve documentation files with Diataxis-aware placement and consistent naming. Use when the user wants to create any new documentation, improve existing docs, write a README, or restructure documentation. Also use when asked to "write docs", "improve this doc", "add…
  • 100update-architecture
    Update architecture markdown files. Use when user says "update architecture", "update arch docs", "sync architecture", or mentions updating architecture documentation.
  • 100update-docs
    Use after an epic completes, after a substantive merge, when documentation is out of sync with the code, or when the user asks to update docs / regenerate the README / refresh stale documentation. Invokes the doc-writer agent to update project documentation based on the recent…
  • 100repo-website-api-update
    Update existing API documentation pages after source code changes. Use when syncing docs with library changes like new parameters, type constraint changes, interface updates, or function renames. Covers common change patterns and verification steps.
  • 100updating-noridocs
    Use this when you have finished making code changes and you are ready to update the documentation based on those changes.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.