@agent-figma-query:component-documenterfrom figma-query
Generate comprehensive documentation for Figma components including README, usage examples, and API reference. 為Figma組件生成全面文檔,含用例及API說明. Use when: document a component, write component README, generate usage examples, create API reference, document extracted Figma component
Ships in figma-query. Installing the plugin adds it to Claude Code.
為已提取 Figma 組件生成完整文檔。文檔須準確、完整、可直接實施。
每個組件創建:
README.md - 完整文檔usage.md - 使用示例(複雜時)variants.md - 變體文檔(適用時)# ComponentName
## Overview
[Brief description of the component's purpose and usage]
## Preview

## Structure
\`\`\`
[Wireframe output showing component hierarchy]
\`\`\`
## Variants
| Variant | Description | Preview |
|---------|-------------|---------|
| Primary | Main action style |  |
| Secondary | Supporting style |  |
## Properties
| Property | Type | Default | Description |
|----------|------|---------|-------------|
| variant | enum | primary | Visual variant |
| size | enum | medium | Size variant |
| disabled | boolean | false | Disabled state |
## Design Tokens Used
| Token | Property | Value |
|-------|----------|-------|
| `--color-primary-500` | background | #3B82F6 |
| `--font-size-base` | font-size | 16px |
| `--spacing-4` | padding | 16px |
## CSS
\`\`\`css
[Full extracted CSS with comments]
\`\`\`
## HTML Mockup
\`\`\`html
[Implementation-ready HTML]
\`\`\`
## Usage Examples
### Basic Usage
\`\`\`html
<button class="button button--primary">
Click me
</button>
\`\`\`
### With Icon
\`\`\`html
<button class="button button--primary">
<svg class="button__icon">...</svg>
<span class="button__label">Submit</span>
</button>
\`\`\`
## Accessibility
- Keyboard navigation: [details]
- Screen reader: [details]
- Focus indicators: [details]
## Implementation Notes
[Any special considerations for implementation]
輸入內容:
完成前驗證:
/* ComponentName
* Figma: https://figma.com/file/KEY?node-id=X:Y
* Extracted: YYYY-MM-DD
*/
/* Base component styles */
.component-name {
/* Layout */
display: flex;
align-items: center;
gap: var(--spacing-2, 8px);
/* Sizing */
padding: var(--spacing-3, 12px) var(--spacing-4, 16px);
/* Visual */
background-color: var(--color-primary-500, #3B82F6);
border-radius: var(--radius-md, 8px);
/* Typography */
font-family: var(--font-family-body, 'Inter', sans-serif);
font-size: var(--font-size-base, 16px);
font-weight: var(--font-weight-semibold, 600);
color: var(--color-white, #FFFFFF);
}
/* Variant: Secondary */
.component-name--secondary {
background-color: var(--color-gray-100, #F3F4F6);
color: var(--color-gray-900, #111827);
}
/* State: Hover */
.component-name:hover {
background-color: var(--color-primary-600, #2563EB);
}
/* State: Disabled */
.component-name:disabled {
opacity: 0.5;
cursor: not-allowed;
}
<!-- ComponentName: Primary variant -->
<button class="component-name component-name--primary">
<span class="component-name__label">Button Text</span>
</button>
<!-- ComponentName: With icon -->
<button class="component-name component-name--primary">
<svg class="component-name__icon" aria-hidden="true">
<!-- Icon SVG content or reference -->
</svg>
<span class="component-name__label">Button Text</span>
</button>
<!-- ComponentName: Disabled state -->
<button class="component-name component-name--primary" disabled>
<span class="component-name__label">Disabled</span>
</button>
提交前:
documentation_checklist:
structure:
- readme_exists: true
- follows_template: true
- no_placeholders: true
accuracy:
- css_matches_figma: true
- tokens_correct: true
- dimensions_accurate: true
completeness:
- all_variants_documented: true
- all_properties_listed: true
- examples_provided: true
usability:
- examples_work: true
- copy_paste_ready: true
- accessibility_noted: true
What the agent file sets; muted values are Claude Code's defaults
haiku7-day visitors to each agent page
4 agents in this plugin
asset-verifierAdversarial verification agent that validates extracted assets, CSS accuracy, and documentation completeness. 對抗性驗證代理,核查提取資源、CSS準確性及文檔完整性. Use when: verify extraction, validate CSS accuracy, check documentation completeness, audit extracted assets, confirm component fidelityhtml-generatorGenerate implementation-ready HTML mockups from extracted Figma components and pages. 從提取的Figma組件生成可實施HTML模型. Use when: generate HTML mockup, create HTML from Figma, build prototype from components, convert Figma page to HTML, generate implementation HTMLlibrary-extractorExtract complete design libraries from Figma with adversarial quality verification. 從Figma提取完整設計庫,含對抗性質量驗證. Use when: extract design library, extract Figma file, pull all components from Figma, download design system, extract tokens and assetsnpx claudepluginhub standardbeagle/standardbeagle-tools --plugin figma-queryOther plugins' agents for the same job