Update docs

From JetBrains/skills · View interactive version

Update docs is an AI agent skill from the GitHub repository JetBrains/skills. Update website docs to match recent code changes, cross-validating every flag against source. Use this skill whenever the user asks to: update documentation, sync docs with code, document a new flag or command, fix stale docs, or update the README. This skill covers all website/docs/ categories (com

How to use this skill

Skill file

Sync website documentation with recent code changes. $ARGUMENTS specifies scope: a command name (e.g., install), commit range, or omit to auto-detect from git diff HEAD~1.

Scope: This skill only updates website/docs/. It does NOT write Go code (use implement-feature) or CHANGELOG (use changelog).

Workflow

Step 1: Detect Changes

# Auto-detect recently changed code
git diff HEAD~1 --stat -- cmd/skillshare/ internal/

# Also check for structural changes that affect concept/reference docs
git diff HEAD~1 --stat -- internal/config/targets.yaml internal/audit/rules.yaml

Map changed files to affected documentation using this guide:

Command docs (website/docs/reference/commands/):

Concept docs (website/docs/understand/):

Reference docs (website/docs/reference/):

How-to guides (website/docs/how-to/):

Troubleshooting (website/docs/troubleshooting/):

Getting started (website/docs/getting-started/):

Learn (website/docs/learn/):

Step 2: Cross-Validate Flags

For each affected command:

  1. Read the Go source to extract actual flags and behavior:

```bash

grep -n 'flag\.\|Usage\|Args' cmd/skillshare/<cmd>.go

```

  1. Read the corresponding doc page:

```

website/docs/commands/<cmd>.md

```

  1. Compare and fix:

Step 3: Update Documentation

Apply changes following existing doc conventions:

Step 4: Check Built-in Skill

If changes affect user-visible CLI behavior:

  1. Read skills/skillshare/SKILL.md
  2. Check if the built-in skill description needs updating
  3. Verify description stays under 1024 characters (CodeX limit)

Step 5: Check README

Review README.md for sections that may need updates:

Step 6: Build Verification

cd website && npm run build

Confirm no broken links or build errors.

Step 7: Report

List all changes made with rationale:

== Documentation Updates ==

Modified:
  website/docs/commands/install.md
    - Added --into flag documentation
    - Updated install examples

  skills/skillshare/SKILL.md
    - Added --into to feature list (desc: 987/1024 chars)

Build: PASS (no broken links)

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.