A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.
TypeScript
fix(react-components): detect hex colors in JSX className
Micha Kiel241b53e23792
diff --git a/plugins/stitch-build/skills/react-components/scripts/validate.js b/plugins/stitch-build/skills/react-components/scripts/validate.jsindex 62ed4f4..4094b06 100644--- a/plugins/stitch-build/skills/react-components/scripts/validate.js+++ b/plugins/stitch-build/skills/react-components/scripts/validate.js@@ -33,7 +33,7 @@ async function validateComponent(filePath) {const walk = (node) => {if (!node) return;if (node.type === 'TsInterfaceDeclaration' && node.id.value.endsWith('Props')) hasInterface = true;- if (node.type === 'JSXAttribute' && node.name.name === 'className') {+ if (node.type === 'JSXAttribute' && (node.name?.value === 'className' || node.name?.name === 'className')) {if (node.value?.value && HEX_COLOR_REGEX.test(node.value.value)) tailwindIssues.push(node.value.value);}for (const key in node) { if (node[key] && typeof node[key] === 'object') walk(node[key]); }