.claude/skills/docs/SKILL.md
Generate or update documentation for Terrae components
npx skillsauth add alamenai/terrae docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate or update documentation for Terrae components.
Use src/app/docs/lines-animated/page.tsx as the reference for component documentation structure and patterns.
Determine Documentation Type Ask the user what they need:
For Component Documentation
Location: src/app/docs/{component-name}/page.tsx
Examples Location: src/app/docs/_components/examples/{example-name}.tsx
Structure:
Example Component Patterns
Use h-full w-full for the container div (NOT fixed heights like h-[400px])
The ComponentPreview wrapper handles sizing
Always get accessToken from environment variable
Example structure:
export const ExampleName = () => {
const accessToken = process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN || ""
return (
<div className="h-full w-full">
<Map accessToken={accessToken} center={CENTER} zoom={10}>
{/* Component here */}
</Map>
</div>
)
}
For Weeklog Entries
Location: src/app/docs/weeklog/page.tsx
Add new entries at the top with:
Documentation Patterns
Review Process
testing
Run tests for Terrae components
development
Review code changes implemented in the current session before committing
development
Prepare a Terrae component for release by running all checks and builds
tools
Commit, push, and open a pull request on GitHub