Skip to content
cccskills
FreePublished on GitHub

docs

Generate or update documentation for Terrae components

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Docs Skill

Generate or update documentation for Terrae components.

Reference

Use src/app/docs/lines-animated/page.tsx as the reference for component documentation structure and patterns.

Instructions

  1. Determine Documentation Type Ask the user what they need:

    • Component documentation page
    • Weeklog entry
    • README update
    • API reference
  2. For Component Documentation Location: src/app/docs/{component-name}/page.tsx Examples Location: src/app/docs/_components/examples/{example-name}.tsx

    Structure:

    • Title and description (in DocsLayout)
    • Installation section
    • First example (directly after installation, NO title/description)
    • Additional examples (each with DocsSection title and description)
    • Animation Modes or similar feature explanations (if applicable)
    • Properties table
    • Use Cases grid (exactly 2 use cases, not more)
    • Performance Tips
  3. 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>
        )
      }
      
  4. For Weeklog Entries Location: src/app/docs/weeklog/page.tsx

    Add new entries at the top with:

    • Date
    • Summary of changes
    • Links to relevant components
  5. Documentation Patterns

    • Use code blocks with proper syntax highlighting
    • Include working examples
    • Show both basic and advanced usage
    • Document all props with types and defaults
    • Add visual examples where helpful
    • Use DocsCode for inline code references
    • Use DocsLink for external links
  6. Review Process

    • Show the documentation to the user before saving
    • Ask for feedback and adjustments
    • Only save after user approval

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

check

Free

Verify all outputs exist after creating a new component and fix any issues

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

commit

Free

Create standardized git commits following Terrae's conventions

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

fix

Free

Systematically fix issues found by /review or reported by the user

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

issue

Free

Read a GitHub issue, summarize it, and create a branch for it

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

lint

Free

Run linting and type checking across the Terrae codebase

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

new

Free

End-to-end workflow for building a new Terrae component from scratch

The English summary is being prepared. Showing the original description.

alamenai/terrae249Updated Apr 7, 2026

See all skills by alamenai

Report a problem with this skill