Jamdesk Documentation logo

Automated Doc Updates

Keep documentation in sync with your code using the /update-jamdesk skill for Claude Code.

The /update-jamdesk skill for Claude Code watches your code changes and generates matching documentation updates. Run it after you ship a user-facing feature. It finds the doc pages to create or edit.

Looking for general AI writing tips? See Claude Code for tool setup. See Writing with AI for broader guidance on writing docs with AI tools.

When to Use

Use when: You've made user-facing changes to APIs, CLI commands, UI, config options, or component behavior.

Skip when: Internal refactors, test-only changes, build/CI config, or performance work without behavior change.

Prerequisites

  • Claude Code installed and configured
  • A Jamdesk documentation project with docs.json
  • Optional: Jamdesk CLI for verification (npm install -g jamdesk)

Quick Start

1
Create Config File

Create a .jamdesk-docs-path file in your code repository pointing to your docs:

.jamdesk-docs-path
docs_path: ../my-docs

The path can be relative (from the config file) or absolute.

2
Run the Skill

Run this after implementing a feature:

/update-jamdesk

Claude analyzes your changes and asks clarifying questions before writing documentation.

3
Review and Commit

Review the generated documentation. Claude verifies it with jamdesk validate and jamdesk broken-links before committing.

Config File Format

The .jamdesk-docs-path file tells Claude where your documentation lives.

Simple format with the path only:

../my-docs

Full format with options:

.jamdesk-docs-path
# Path to documentation repository
docs_path: ../my-docs

# Optional: Branch for doc updates (default: main)
docs_branch: main

The skill finds the config file by walking up from your current directory to the git root. Place it in your repository root.

How It Works

Claude runs these steps for /update-jamdesk:

  1. Locates your docs: finds the .jamdesk-docs-path config file
  2. Asks questions: clarifies branch strategy, scope, and content
  3. Analyzes existing docs: searches for related content to update or extend
  4. Writes documentation: creates or updates pages following Jamdesk standards, with simple examples first
  5. Reviews tone: check the output for AI filler. Claude writes better with a CLAUDE.md that sets the voice (see Claude Code)
  6. Verifies: runs jamdesk validate and jamdesk broken-links
  7. Commits: stages changes and offers to commit/push/PR

Run git checkout . before committing to revert every edit.

ScenarioAction
New featureCreate new page
Behavior changeUpdate existing page
Small additionAdd section to existing page
Major capabilityNew standalone page
Deprecation/removalUpdate existing + add migration notes

Example Session

User: I just added a webhook feature. Can you document it?

Claude: I'm using the update-jamdesk skill to update your documentation.

Found .jamdesk-docs-path: ../customer-docs

How should I handle changes to the docs repository?
1. Create a new feature branch (recommended)
2. Update directly on main
3. Use current branch

User: 1

Claude: Based on the webhook implementation, I plan to:
- Create: webhooks/overview.mdx
- Update: getting-started.mdx (add link)

Any changes to this plan?

User: Looks good

Claude: [Creates documentation...]

✓ jamdesk validate passed
✓ jamdesk broken-links passed

Commit these changes?

Preview Mode

Run with --preview to see what would change without making edits:

/update-jamdesk --preview

Preview mode lets you:

  • Check what documentation needs updating
  • Review proposed changes before committing
  • See the skill's analysis without side effects

Proactive Suggestions

Claude may suggest this after you commit user-facing code changes:

Tip: These changes affect user-facing features.
Run /update-jamdesk to update your documentation.

This appears when:

  • You have a .jamdesk-docs-path config file, AND
  • Your commit includes files matching user-facing patterns (API, CLI, components)

Installing the Skill

Install the /update-jamdesk skill using the skills CLI:

npx skills add jamdesk/skills --skill update-jamdesk

This installs the skill to .claude/skills/update-jamdesk/ in your project.

Installs to your current project directory:

npx skills add jamdesk/skills --skill update-jamdesk

The skill is available when working in this project.

Listing Available Skills

See all Jamdesk skills:

npx skills add jamdesk/skills --list

Updating

Re-run the install command to get the latest version:

npx skills add jamdesk/skills --skill update-jamdesk

Restart Claude Code or start a new session after installing or updating.

Troubleshooting

Check that the skill file is at .claude/skills/update-jamdesk/SKILL.md. Then restart your Claude Code session.

Create .jamdesk-docs-path in your repository root with the path to your docs directory. The skill searches from your current directory up to the git root.

Install with npm install -g jamdesk. The skill works without it. It skips automated validation.

What's Next?

MCP Server

Connect AI assistants directly to your docs

CLI Overview

The jamdesk CLI for local development