RE

repo-website-api-review

Checks API documentation for consistency with code.

Install

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

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

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.

Review and verify API documentation routes on the Formisch website. Use when checking documentation accuracy, completeness, and consistency with source code.
157 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Compare function signatures with source code
  • Verify parameter and return types
  • Check JSDoc descriptions
  • Validate href links in properties.ts
  • Ensure correct headings in index.mdx

How it works

The skill outlines a four-step process for reviewing API documentation, including comparing with source code, checking property files, verifying content, and validating menu links.

Inputs & outputs

You give it
API documentation files (source code, properties.ts, index.mdx, menu.md)
You get back
A review output detailing issues found and recommendations for correction

When to use repo-website-api-review

  • Verify API routes
  • Update documentation
  • Audit API docs

About this skill

Reviewing API Documentation

This skill provides a systematic approach to reviewing API documentation routes for accuracy and consistency.

Review Process

Step 1: Compare with Source Code

For each documented API:

  1. Read the source file completely
  2. Compare function signatures - Must match exactly
  3. Verify types - Generics, parameters, return types
  4. Check JSDoc - Descriptions should match

Step 2: Check properties.ts

Verify each property:

  • Generic constraints match source code
  • Parameter types are accurate
  • Return type is correct
  • All href links are valid
  • No unused properties defined

Step 3: Check index.mdx

Verify content:

  • Front matter is complete (title, description, source, contributors)
  • Function signature matches source exactly
  • All generics documented
  • All parameters documented with correct headings (Parameters vs Properties)
  • Explanation references specific parameters/properties
  • Examples are realistic and follow conventions
  • Related section uses correct framework terminology

Step 4: Check Menu and Links

  • API listed in menu.md (alphabetical order)
  • All internal links work
  • Cross-package links use absolute paths
  • No broken links to types or functions

Common Issues to Find

Signature Mismatches

// Source code
export function validate(form: FormStore, config?: Config): void;

// ❌ Documentation shows different signature
const result = validate(form); // Missing config, wrong return

Missing Parameters

Documentation should include ALL parameters from source:

## Parameters

- `form` <Property {...properties.form} />
- `config` <Property {...properties.config} /> <!-- Don't forget optional params -->

Wrong Headings

API TypeHeading
Functions## Parameters
Components## Properties

Outdated Examples

Examples must work with current API:

// ❌ Old API usage
const form = createForm(schema);

// ✅ Current API
const form = createForm({ schema });

Framework Terminology

FrameworkRelated Section Heading
Solid### Primitives
Qwik### Hooks
Preact### Hooks
React Native### Hooks
Angular### Functions / ### Directives
Vue### Composables
Svelte### Runes

Type Links

// ❌ Wrong - using constraint type name
generics: [{ type: 'custom', name: 'RequiredPath' }];

// ✅ Correct - using parameter name
generics: [{ type: 'custom', name: 'TFieldPath' }];

Cross-Package Links

// ❌ Wrong - relative across packages
href: '../../../core/api/FormSchema/';

// ✅ Correct - absolute path
href: '/core/api/FormSchema/';

Verification Checklist

properties.ts

  • All generics have modifier: 'extends' (extends unknown when the source has no constraint)
  • Custom types have valid href links
  • Property order: name, href, generics
  • No unused properties
  • Types match source exactly

index.mdx

  • Title matches API name exactly (case-sensitive)
  • Description ends with period
  • Source path is correct
  • Function signature code block matches source
  • Correct heading (Parameters/Properties)
  • Explanation references specific params/props
  • Returns section present (unless void or component)
  • Examples section present (unless component/type)
  • Related section uses correct framework terminology
  • No Types in Related section

Menu Integration

  • API listed in appropriate menu.md
  • Alphabetical order maintained
  • Link path matches folder structure

Link Validation

  • All href in properties.ts resolve
  • ApiList links are valid
  • Cross-framework links use absolute paths
  • External links (Valibot) use full URLs

Review Output Format

Document issues found:

## Review: createForm

### Issues Found

1. **Signature mismatch** (L15)
   - Source shows `config: FormConfig<TSchema>`
   - Docs show `config: Config`

2. **Missing parameter** (Parameters section)
   - `initialInput` not documented

3. **Broken link** (properties.ts L23)
   - `href: '../FormConfig/'` - FormConfig not documented

### Recommendations

- Update properties.ts with correct FormConfig type
- Add initialInput to Parameters section
- Create FormConfig type documentation

When not to use it

  • When reviewing non-API documentation
  • When not reviewing Formisch website documentation

Limitations

  • Specific to Formisch website API documentation
  • Focuses on consistency with source code and internal standards

How it compares

This skill provides a systematic, checklist-driven approach to API documentation review, unlike a manual or ad-hoc inspection.

Compared to similar skills

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

SkillInstallsUpdatedSafetyDifficulty
repo-website-api-review (this skill)02moNo flagsIntermediate
documentation-review115moNo flagsBeginner
docs-review107moNo flagsBeginner
workthrough108moReviewBeginner

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-api-update

open-circle

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.

13

Search skills

Search the agent skills registry