Audit Component Parity
audit_component_parityCompare Figma components against code components to find missing implementations, coverage gaps, and parity percentage for design system alignment.
Instructions
Compare Figma components against code components to find coverage gaps.
Fetches components from Figma and compares against a Storybook manifest or component mapping from GitHub. Uses fuzzy name matching (normalizes casing, strips spaces/hyphens) to find matches.
Args:
figma_file_key (string): The Figma file key
figma_page_name (string, optional): Filter Figma components to a specific page
github_repo (string): GitHub repo in 'owner/repo' format
storybook_manifest_path (string, optional): Path to stories.json in the repo
component_mapping_path (string, optional): Path to a JSON mapping file
Returns: Coverage report with: matched components, missing in code, missing in Figma, coverage percentage, and Figma links.
Examples:
"How many of our Figma components are implemented?" → audit_component_parity
"Check parity for our design system" → audit_component_parity with storybook path
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"figma_file_key": "<figma_file_key>",
"github_repo": "<github_repo>"
},
"name": "audit_component_parity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_repo | Yes | GitHub repository in 'owner/repo' format | |
| figma_file_key | Yes | The Figma file key | |
| figma_page_name | No | Optional Figma page name to filter components (e.g. 'Components') | |
| component_mapping_path | No | Path to a JSON mapping file in the repo that maps Figma names to code names | |
| storybook_manifest_path | No | Path to Storybook stories.json manifest in the repo (e.g. 'storybook-static/stories.json') |