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): match full hex color range in validate.js
Emp150072b0e7b80683
diff --git a/plugins/stitch-build/skills/react-components/scripts/validate.js b/plugins/stitch-build/skills/react-components/scripts/validate.jsindex 883ba9b..c81418c 100644--- a/plugins/stitch-build/skills/react-components/scripts/validate.js+++ b/plugins/stitch-build/skills/react-components/scripts/validate.js@@ -18,7 +18,7 @@ import swc from '@swc/core';import fs from 'node:fs';import path from 'node:path';-const HEX_COLOR_REGEX = /#[0-9A-Fa-f]{6}/;+const HEX_COLOR_REGEX = /#[0-9A-Fa-f]{3,8}\b/;async function validateComponent(filePath) {const code = fs.readFileSync(filePath, 'utf-8');