Automated summary
This skill keeps a RSPress site's user-facing docs in sync with changes in auto-generated API documentation by comparing file timestamps.
Strengths
- Flags stale pages by comparing modification times of API docs against user docs
- Targeted updates to cross-references and Twoslash code blocks (imports, type signatures, parameters)
- Automatically inserts migration callouts with before/after examples for breaking changes
- Preserves custom editorial content and supports a --check-only dry run before writing
Limitations
- Assumes a specific layout ({siteDocs}/api/ for API docs, design.config.json, rspress.config.ts)
- Change detection relies on file timestamps, so edits that keep the same mtime can be missed
- Leaves some manual updates for the user; it only lists them in the generated sync report
Use it after an API update or release when the user documentation of an RSPress site needs to catch up with regenerated API docs.
Avoid it on projects that don't use RSPress or the expected config layout, or where documentation isn't derived from generated API docs.
Security analysis
SafeThe skill is purely a documentation editing workflow: it reads config and markdown files and updates cross-references, code examples, and migration notes. There are no bash invocations, no network calls, no credential access, and no destructive commands; the declared tool set (Read, Glob, Grep, Edit, Write) matches the stated purpose. The only meaningful risk is silent bulk modification of user docs, which is normal for a doc-sync tool and is explicitly scoped to generated portions with custom content preserved.
- •Write/Edit access to documentation trees is the only side effect; bulk/--force syncs could rewrite many files, so changes should be reviewed under version control before commit.
Examples
Sync the RSPress documentation for the effect-type-registry module with the latest API changes.Run /rspress-sync rspress-plugin-api-extractor --check-only and tell me which user docs are stale before writing anything.Force a full sync of the website docs and add migration notes for any breaking API changes.name: rspress-sync description: Sync site docs with API changes. Use when APIs have been updated and documentation needs to reflect the changes. allowed-tools: Read, Glob, Grep, Edit, Write context: fork agent: rspress-doc-agent
Sync RSPress Documentation with API Changes
Syncs RSPress site documentation with changes in auto-generated API docs.
Overview
This skill detects API changes and updates user-facing documentation by:
- Comparing API doc timestamps with user doc timestamps
- Identifying stale documentation
- Updating cross-references
- Updating code examples
- Adding migration notes for breaking changes
- Preserving custom content
Quick Start
Sync all documentation for a module:
/rspress-sync effect-type-registry
Check what needs syncing (dry run):
/rspress-sync rspress-plugin-api-extractor --check-only
Force sync all docs:
/rspress-sync website --force
How It Works
1. Parse Parameters
module: Module name from design.config.json [REQUIRED]--check-only: Report what needs syncing without writing (optional)--force: Sync all docs regardless of timestamps (optional)--breaking: Add breaking change notes (optional)
2. Load Configuration
Reads design.config.json to find:
- Site docs path
- API docs location
- Module package name
3. Detect API Changes
Compares timestamps:
- Get modification times of all API docs (
{siteDocs}/api/**/*.md) - Get modification times of all user docs (
{siteDocs}/**/*.mdx) - Identify user docs older than latest API changes
4. Analyze Impact
For each changed API doc:
- Parse API doc to understand what changed
- Identify which user docs reference this API
- Determine if changes are breaking or non-breaking
- Collect affected code examples
5. Update Cross-References
Fix broken or outdated links:
- Update paths if API docs moved
- Fix renamed classes/functions/interfaces
- Update anchors if heading structure changed
- Remove references to deleted APIs
6. Update Code Examples
Refresh Twoslash code blocks:
- Update imports if package exports changed
- Fix type signatures if APIs changed
- Add new parameters if required
- Remove deprecated usage patterns
7. Add Migration Notes
For breaking changes:
- Insert callout with migration instructions
- Show before/after code examples
- Link to changelog or release notes
- Highlight deprecated alternatives
8. Preserve Custom Content
Protect user additions:
- Keep custom sections
- Preserve added examples
- Maintain editorial content
- Only update generated portions
9. Generate Sync Report
Creates report with:
- Files updated
- Changes made
- Migration notes added
- Remaining manual updates needed
Sync Strategies
Non-Breaking Changes
For minor API updates:
- Update code examples silently
- Fix cross-references
- No migration notes needed
Breaking Changes
For major API changes:
- Add prominent callout
- Include before/after examples
- Link to migration guide
- Mark deprecated patterns
New APIs
For new functionality:
- Consider adding new guide pages
- Add examples to existing pages
- Update landing page features
- Refresh table of contents
Removed APIs
For deleted functionality:
- Remove or mark as removed
- Add deprecation notice
- Suggest alternatives
- Link to migration path
Supporting Documentation
instructions.md- Detailed sync processexamples.md- Sample sync operations
Success Criteria
- ✅ Stale docs identified correctly
- ✅ Cross-references updated
- ✅ Code examples compile
- ✅ Migration notes added for breaking changes
- ✅ Custom content preserved
- ✅ Sync report generated
Integration Points
- Uses
.claude/design/design.config.json - Reads API docs from
{siteDocs}/api/ - Updates user docs in
{siteDocs}/ - Reads
rspress.config.tsfor context
Related Skills
/rspress-guide- Generate new guides/rspress-examples- Update code examples/rspress-review- Review synced docs/rspress-navigation- Update navigation
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/rspress-documentation-sync-mrwakb1z' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/rspress-documentation-sync-mrwakb1z/download' --output '.skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md.part' && mv '.skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md.part' '.skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Glob, Grep, Edit, Write
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md' && test -s '.skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/rspress-sync' && cp -R '.skill-downloads/rspress-documentation-sync-mrwakb1z' '.claude/skills/rspress-sync'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/rspress-documentation-sync-mrwakb1z'openskills read 'rspress-documentation-sync-mrwakb1z'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/rspress-documentation-sync-mrwakb1z/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Supabase Docs Authoring
Documentation
Write, edit, and review Supabase documentation content including guides, tutorials, reference docs, and partials. Follow style guides and MDX/TOML validation rules.
Create Architecture Decision Record
Documentation
Create a new Architecture Decision Record with sequential numbering, register it in the AgentDB graph, and link related ADRs.
Plan update with deep research
Documentation
Updates a plan document by launching parallel subagents to analyze a topic across all compiler passes, then consolidates findings into the plan doc.