component-docs
About
This skill automatically generates or updates component documentation by analyzing git changes to capture implementation details. It provides templates for consistent documentation in docs/components/, making it ideal for documenting new features or components. Developers should use it after implementing changes to maintain a current component catalog.
Quick Install
Claude Code
Recommended/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/component-docsCopy and paste this command in Claude Code to install this skill
Documentation
Component Documentation Skill
Overview
This skill helps document components and features in the jimmodel project. It enables developers to create comprehensive, git-driven documentation that captures what was implemented, where the code lives, what libraries were used, and how it all works together.
The skill automatically explores git changes to discover implementation details, checks for existing documentation, and either creates new component docs or updates existing ones with the latest changes. All documentation follows consistent templates and conventions, making it easy for future developers to understand each component.
When to Use This Skill
Trigger this skill when:
- You've just implemented a significant feature or component
- You want to document an existing feature that's undocumented
- You've made updates to a documented component and want to keep docs current
- A teammate needs to understand how a feature works
- You're onboarding and want to document what you're learning
Examples:
- "I just finished implementing the authentication system, help me document it"
- "Update the database schema docs with the new tables I added"
- "Help me document the API routes structure"
- "Create docs for the styling system"
How It Works
Core Workflow: Document a Component
See: references/workflows/document-component.md for detailed step-by-step instructions.
The workflow:
- Identify the component - Determine what you want to document
- Explore git changes - Use git commands to discover what was actually implemented
- Check existing docs - Is this a new component or an update to existing docs?
- Gather details - Extract files, technologies, configuration from git exploration
- Create or update docs - Use the template to write documentation
- Validate - Use the checklist to ensure completeness
Key Innovation: Git-Driven Discovery
Instead of relying on memory or assumptions, this skill uses git commands to objectively discover:
- Which files were created/modified
- What dependencies were added
- Configuration changes made
- The actual scope of implementation
See: references/git-exploration-guide.md for git commands and examples.
Documentation Template
The template in assets/component-template.md includes sections for:
- Overview (what and why)
- Files & Locations (where the code is)
- Technologies & Libraries (what was used)
- Configuration (how to set it up)
- How It Works (the implementation)
- Related Documentation (external links)
- Future Considerations (tech debt, improvements)
Workflows
1. Document a Component (New or Update)
File: references/workflows/document-component.md
Checklist: references/checklists/component-docs-checklist.md
Complete guide for creating or updating a component document. Includes:
- Git exploration strategy to discover implementation details
- Template population based on findings
- Validation steps to ensure quality
2. Quick Checklist for Validation
File: references/checklists/component-docs-checklist.md
Use this checklist to verify your component documentation is complete and ready.
Resources
references/
workflows/document-component.md- Detailed step-by-step workflow for documenting componentschecklists/component-docs-checklist.md- Checklist to validate documentation completenessgit-exploration-guide.md- Guide to using git commands to discover implementation details
assets/
component-template.md- Markdown template showing all sections and example content for component docs
File Location
All component documentation goes in: docs/components/
Files follow naming convention: [component-name].md (kebab-case)
Examples:
docs/components/authentication.mddocs/components/database-schema.mddocs/components/api-routes.mddocs/components/styling-system.md
Template Sections at a Glance
| Section | Purpose | Key Info |
|---|---|---|
| Overview | What and why | 1-2 sentence summary |
| Files & Locations | Where the code lives | File paths with descriptions |
| Technologies & Libraries | What was used | Library names, versions, docs links |
| Configuration | How to set it up | Env vars, config files, setup steps |
| How It Works | The implementation | Flow explanation with file references |
| API Endpoints | (if applicable) | Route documentation |
| Usage Examples | (if applicable) | Code snippets showing usage |
| Related Documentation | Reference links | External docs, internal docs |
| Future Considerations | (optional) | Tech debt, planned improvements |
Quick Start Example
User: "I just implemented database schema with Drizzle ORM, can you help me document it?"
What the skill does:
- Asks: "Component name?" → "database-schema"
- Runs git commands to find changed files in
db/schema/,drizzle/, andpackage.json - Checks if
docs/components/database-schema.mdexists (doesn't) - Extracts from git:
- Files:
db/schema/index.ts,drizzle/migrations/,drizzle.config.ts - Libraries:
drizzle-orm,@neondatabase/serverless - Config: Database connection setup
- Files:
- Creates
docs/components/database-schema.mdusing template - Validates against checklist
Result: A complete, git-informed component document ready for the team.
Design Principles
- Git-Driven - Use git to discover facts, not opinions
- Template-Based - Consistency across all component docs
- Developer-Focused - Written for future developers to understand quickly
- Comprehensive - Include all context needed to work with the component
- Maintainable - Easy to update as components evolve
GitHub Repository
Related Skills
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
creating-opencode-plugins
MetaThis skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
