RE

repo-website-api-update

Automates updating API documentation pages whenever underlying source code interfaces change.

Install

mkdir -p .claude/skills/repo-website-api-update && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3279" && unzip -o skill.zip -d .claude/skills/repo-website-api-update && rm skill.zip

Installs to .claude/skills/repo-website-api-update

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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.
249 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Sync API documentation with code changes
  • Update function signatures
  • Manage interface property updates
  • Document new type constraints
  • Handle function renames

How it works

It follows a structured process to update properties and documentation files by matching source code types and signatures exactly.

Inputs & outputs

You give it
Source code changes
You get back
Updated API documentation files

When to use repo-website-api-update

  • Updating API docs after function rename
  • Syncing parameter changes to documentation
  • Documenting new type constraints

About this skill

Updating API Documentation

Guide for syncing API docs with source code changes.

Prerequisite: Read the repo-website-api-create skill for properties.ts and index.mdx patterns.

When to Update

Update documentation when source code changes:

  • Function signatures (parameters, generics, return types)
  • Interface properties
  • JSDoc descriptions or hints
  • Behavior changes affecting examples

Do NOT update for: Internal implementation changes (~run method), test changes, non-JSDoc comments.

Process

  1. Read full source file - Don't just look at diff; understand complete current state
  2. Identify changes - Categorize as addition, removal, or modification
  3. Update properties.ts - Match types exactly to source; for optional object keys, keep the plain key name and use a union with undefined as the last option instead of appending ?
  4. Update index.mdx - Signature, generics, parameters, examples
  5. Update related files - Type docs, menu.md if renamed

Common Change Types

New Parameter Added

// Before: one overload
export function action<TInput>(requirement: TRequirement): Action<...>;

// After: two overloads (message is optional)
export function action<TInput>(requirement: TRequirement): Action<..., undefined>;
export function action<TInput, TMessage>(requirement: TRequirement, message: TMessage): Action<..., TMessage>;

Update:

  1. Add TMessage generic to properties.ts
  2. Add message parameter to properties.ts
  3. Update signature in index.mdx
  4. Add generic and parameter documentation
  5. Update examples to show new parameter

Parameter Removed (Breaking)

  1. Remove from properties.ts
  2. Update signature in index.mdx
  3. Remove from Parameters section
  4. Update all examples
  5. Consider adding migration note in Explanation

Type Constraint Changed

// Before
TRequirement extends number

// After
TRequirement extends number | string

Update:

  1. Update type in properties.ts
  2. Update Explanation to mention both types
  3. Add examples for new type usage

Interface Property Added

  1. Update type documentation in (types)/TypeName/
  2. Add new property to properties.ts; if the source key is optional, do not append ? to the key name and model it as a union with undefined last
  3. Document in Definition section

Function Renamed

  1. Rename folder
  2. Update all references in files
  3. Update menu.md (maintain alphabetical order)
  4. Update cross-references in related API docs
  5. Consider redirect if widely used

Deprecation

Add notice at top of index.mdx (import Link from ~/components):

> **⚠️ Deprecated**: Use <Link href="../newFunction/">\`newFunction\`</Link> instead. Will be removed in v2.0.

New Helper Type Introduced

When source introduces a type alias:

// Before: TInput extends string | unknown[]
// After: TInput extends LengthInput
  1. Update properties.ts to reference new type with href
  2. Create documentation for the new type in (types)/
  3. Update explanation if supported types changed

Multiple Overloads Added (Sync/Async)

When sync and async variants are added:

  1. Update signature to show general pattern or both overloads
  2. Add explanation about sync vs async usage
  3. Add examples for both use cases
  4. Update Related section for async schemas if relevant

Related Files to Update

When a function changes, check:

  • Type docs - If interfaces changed ((types)/TypeName/)
  • Related API docs - Other APIs that reference this function in their Related section
  • Guide files - If usage patterns changed significantly
  • menu.md - If function renamed or moved

Verification

After updating, verify:

  • All types match source exactly
  • Function signature matches source
  • All examples work with new API
  • All href links are valid
  • Related type docs updated if interfaces changed
  • menu.md updated if renamed
  • Related API docs updated (their Related sections)

Best Practices

  • Read full source file - Don't just look at diff
  • Update incrementally - properties.tsindex.mdx → related files
  • Don't over-document internals - Only user-facing changes need docs
  • Preserve example quality - Keep realistic, demonstrate best practices
  • Check related APIs - They may reference the changed function

When to Ask for Help

  • Major breaking changes (complete signature overhaul)
  • Complex generic constraint changes
  • Unclear intent from source changes
  • Many related files affected
  • Need to document migration path

Quick Reference

ChangeFiles to Update
New parameterproperties.ts, index.mdx (signature, generics, params, examples)
Removed parameterproperties.ts, index.mdx
Type changeproperties.ts, index.mdx (explanation, examples)
Interface change(types)/TypeName/properties.ts, (types)/TypeName/index.mdx
Renamed functionFolder name, all files, menu.md, cross-references
Deprecationindex.mdx (add warning)

When not to use it

  • Internal implementation changes
  • Non-JSDoc comment updates

Limitations

  • Requires manual verification of links and examples
  • Does not automate documentation for internal methods

How it compares

It uses a pattern-based approach for syncing documentation rather than manual updates, ensuring consistency across related API files.

Compared to similar skills

repo-website-api-update side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
repo-website-api-update (this skill)15moNo flagsIntermediate
ml-paper-writing486moReviewAdvanced
docs-review107moNo flagsBeginner
claude-md-improver216moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

More by open-circle

View all by open-circle

repo-website-api-create

open-circle

Create new API reference pages for the Valibot website at website/src/routes/api/. Use when adding documentation for new schemas, actions, methods, or types. Covers reading source code, creating properties.ts and index.mdx files, updating menu.md, and cross-referencing related APIs.

26

repo-prepare-release

open-circle

Prepare releases by analyzing changelogs, determining version bumps, and updating package.json and changelog files.

12

repo-source-code-document

open-circle

Write JSDoc comments and inline documentation for Valibot library source code in /library/src/. Use when documenting schemas, actions, methods, or utilities. Covers interface documentation, function overloads, purity annotations, inline comment patterns, and terminology consistency.

14

repo-source-code-review

open-circle

Review pull requests and source code changes in /library/src/. Use when reviewing PRs, validating implementation patterns, or checking code quality before merging. Covers code quality checks, type safety, documentation review, test coverage, and common issues to watch for.

12

repo-structure-navigate

open-circle

Navigate the Valibot repository structure. Use when looking for files, understanding the codebase layout, finding schema/action/method implementations, locating tests, API docs, or guide pages. Covers monorepo layout, library architecture, file naming conventions, and quick lookups.

16

repo-website-guide-create

open-circle

Create conceptual documentation and tutorial pages for the Valibot website at website/src/routes/guides/. Use when adding guides about schemas, pipelines, async validation, migration, or other topics. Covers directory structure, MDX templates, frontmatter, and content guidelines.

16

You might also like

ml-paper-writing

davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.

4897

docs-review

metabase

Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.

1085

claude-md-improver

anthropics

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".

2167

write-docs

tldraw

Writing SDK documentation for tldraw. Use when creating new documentation articles, updating existing docs, or when documentation writing guidance is needed. Applies to docs in apps/docs/content/.

665

update-docs

vercel

This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "docs/01-app", "docs/02-pages", "MDX", "documentation update", "API reference", ".mdx files". Provides guided workflow for updating Next.js documentation based on code changes.

2543

wiki-architect

microsoft

Analyzes code repositories and generates hierarchical documentation structures with onboarding guides. Use when the user wants to create a wiki, generate documentation, map a codebase structure, or understand a project's architecture at a high level.

1144

Search skills

Search the agent skills registry