| name | repo-website-api-review |
| description | Review and verify API documentation routes on the Formisch website. Use when checking documentation accuracy, completeness, and consistency with source code. |
| metadata | {"author":"formisch","version":"1.0"} |
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:
- Read the source file completely
- Compare function signatures - Must match exactly
- Verify types - Generics, parameters, return types
- Check JSDoc - Descriptions should match
Step 2: Check properties.ts
Verify each property:
Step 3: Check index.mdx
Verify content:
Step 4: Check Menu and Links
Common Issues to Find
Signature Mismatches
export function validate(form: FormStore, config?: Config): void;
const result = validate(form);
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 Type | Heading |
|---|
| Functions | ## Parameters |
| Components | ## Properties |
Outdated Examples
Examples must work with current API:
const form = createForm(schema);
const form = createForm({ schema });
Framework Terminology
| Framework | Related Section Heading |
|---|
| Solid | ### Primitives |
| Qwik | ### Hooks |
| Preact | ### Hooks |
| React Native | ### Hooks |
| Angular | ### Functions / ### Directives |
| Vue | ### Composables |
| Svelte | ### Runes |
Type Links
generics: [{ type: 'custom', name: 'RequiredPath' }];
generics: [{ type: 'custom', name: 'TFieldPath' }];
Cross-Package Links
href: '../../../core/api/FormSchema/';
href: '/core/api/FormSchema/';
Verification Checklist
properties.ts
index.mdx
Menu Integration
Link Validation
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