Validate design system compliance in code and detect token usage violations
Validates code against design system specifications and detects token usage violations.
npx claudepluginhub a5c-ai/babysitterThis skill is limited to using the following tools:
README.mdValidate that code adheres to design system specifications, checking token usage, component props, and style consistency.
{
"type": "object",
"properties": {
"scanPath": {
"type": "string",
"description": "Path to code to validate"
},
"tokenDefinitions": {
"type": "string",
"description": "Path to design token definitions"
},
"rules": {
"type": "object",
"properties": {
"enforceTokenColors": { "type": "boolean", "default": true },
"enforceTokenSpacing": { "type": "boolean", "default": true },
"enforceTokenTypography": { "type": "boolean", "default": true },
"allowHardcodedValues": { "type": "array", "items": { "type": "string" } }
}
},
"fileTypes": {
"type": "array",
"items": { "type": "string" },
"default": ["css", "scss", "tsx", "jsx"]
},
"severity": {
"type": "string",
"enum": ["error", "warning", "info"],
"default": "warning"
}
},
"required": ["scanPath", "tokenDefinitions"]
}
{
"type": "object",
"properties": {
"violations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": { "type": "string" },
"line": { "type": "number" },
"rule": { "type": "string" },
"message": { "type": "string" },
"suggestion": { "type": "string" }
}
}
},
"summary": {
"type": "object",
"properties": {
"filesScanned": { "type": "number" },
"totalViolations": { "type": "number" },
"byRule": { "type": "object" },
"complianceScore": { "type": "number" }
}
},
"tokenCoverage": {
"type": "object",
"description": "Token usage statistics"
}
}
}
const result = await skill.execute({
scanPath: './src/components',
tokenDefinitions: './tokens/design-tokens.json',
rules: {
enforceTokenColors: true,
enforceTokenSpacing: true,
enforceTokenTypography: true
},
severity: 'warning'
});
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.