Documentation Sync
Update website docs to match recent code changes with source validation.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/skillshare-update-docs-runkids/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
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 (commands, reference, understand, how-to, troubleshooting, getting-started) plus the built-in skill description and README. If you just implemented a feature and need to update docs, this is the skill to use. Never manually edit website docs without cross-validating flags against Go source first.
What this skill does
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 updates website/docs/, the built-in skill (skills/skillshare/), and README.md. It does NOT write Go code (use implement-feature) or CHANGELOG (use changelog).
Before acting, run python3 scripts/ai-context.py documentation. That topic is the source of truth for documentation ownership, code cross-validation and verification; this skill retains the update workflow.
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/):
cmd/skillshare/<cmd>.goβwebsite/docs/reference/commands/<cmd>.md- Flag changes, new subcommands, output format changes
Concept docs (website/docs/understand/):
internal/audit/βunderstand/audit-engine.mdinternal/sync/βunderstand/sync-modes.md,understand/source-and-targets.mdinternal/install/tracked.goβunderstand/tracked-repositories.mdinternal/config/βunderstand/declarative-manifest.md.skillshare/project config changes βunderstand/project-skills.mdskills/skillshare/SKILL.mdformat βunderstand/skill-format.md
Reference docs (website/docs/reference/):
internal/config/targets.yamlβreference/targets/internal/audit/rules.yamlβreference/commands/audit-rules.mdreference/appendix/for CLI quick-reference tables
How-to guides (website/docs/how-to/):
- New workflow patterns β
how-to/daily-tasks/,how-to/advanced/,how-to/recipes/ - Sharing/org features β
how-to/sharing/
Troubleshooting (website/docs/troubleshooting/):
- New error messages β
troubleshooting/common-errors.md - FAQ additions β
troubleshooting/faq.md
Getting started (website/docs/getting-started/):
- Breaking changes to init/install flow β
getting-started/first-sync.md - Quick reference updates β
getting-started/quick-reference.md
Learn (website/docs/learn/):
- New target integrations β
learn/with-<tool>.md
Step 2: Cross-Validate Flags
For each affected command:
-
Read the Go source to extract actual flags and behavior. Commands parse arguments by hand, so flags appear as string literals (
"--force") in the parse function ofcmd/skillshare/<cmd>.go;ss <cmd> --helpinside the devcontainer lists them too. -
Read the corresponding doc page:
website/docs/reference/commands/<cmd>.md -
Compare and fix:
- New flags in code β add to docs with usage example
- Removed flags from code β remove from docs
- Changed behavior β update description
- Every
--flagin docs must appear as a string literal in the command's source
Step 3: Update Documentation
Apply changes following existing doc conventions:
- Match heading structure of neighboring doc pages
- Include CLI examples with expected output
- Keep flag tables consistent in format
Step 4: Check Built-in Skill
If changes affect user-visible CLI behavior:
- Read
skills/skillshare/SKILL.md - Check if the built-in skill description needs updating
- Verify description stays under 1024 characters (CodeX limit)
Step 5: Check README
Review README.md for sections that may need updates:
- Recent Updates callout
- Why skillshare bullet points (5 selling points)
- Highlights section (core feature examples)
Step 6: Build Verification
docker exec "$CONTAINER" bash -c 'cd /workspace/website && pnpm run build'
Confirm no broken links or build errors.
Step 7: Report
List all changes made with rationale:
== Documentation Updates ==
Modified:
website/docs/reference/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
Apply the documentation topic. Keep this adapter scoped to documentation; use the implementation or release workflows for other changes.
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
Poster & Visual Design
anthropics
Create original posters and visual art in PNG and PDF formats.
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.