Audit Design System Health
audit_system_healthAudit design system health by combining token drift and component parity into one sync score, revealing misalignment between Figma and your codebase.
Instructions
Run a comprehensive health check on your design system, combining token drift analysis and component parity into a single sync score.
This is an orchestrator tool that calls extract_tokens + audit_component_parity internally and merges the results into a unified health report.
Args:
figma_file_key (string): The Figma file key
github_repo (string): GitHub repo in 'owner/repo' format
token_file_path (string, optional): Path to token JSON file in the repo to diff against
storybook_manifest_path (string, optional): Path to stories.json for component parity
component_mapping_path (string, optional): Path to component mapping JSON
Returns: Health report with:
score (0-100): Overall sync health
tokenDrift: Token diff results (added, removed, changed)
componentParity: Component coverage results
warnings: Array of non-fatal errors encountered
timestamp: When the audit ran
Examples:
"How in sync is our design system?" → audit_system_health
"Give me a health report for our DS" → audit_system_health with all paths
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_system_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_repo | Yes | GitHub repository in 'owner/repo' format | |
| figma_file_key | Yes | The Figma file key | |
| token_file_path | No | Path to the token file in the repo (JSON, W3C format) to compare against Figma tokens | |
| component_mapping_path | No | Path to component mapping JSON in the repo | |
| storybook_manifest_path | No | Path to Storybook stories.json in the repo |