paperclipai/paperclip / .agents/skills/directions-lab
directions-lab
VerifiedScaffold a directions lab that shows shipped UI (Today) beside 2-3 design directions, with surface tabs, theme and animation toggles and the V1 MVP hover motion, registered in design-proposals Storybook. Use for a directions page or lab, or to explore design directions next to production.
scripts/lib/verify.mjs
View on GitHubimport { spawnSync } from "node:child_process";
import path from "node:path";
export function runStep(label, command, args, { cwd, env = {} }) {
const result = spawnSync(command, args, {
cwd,
env: { ...process.env, ...env, CI: process.env.CI ?? "1" },
encoding: "utf8",
maxBuffer: 64 * 1024 * 1024,
});
const output = `${result.stdout ?? ""}${result.stderr ?? ""}`;
const display = `${Object.entries(env)
.map(([key, value]) => `${key}=${value} `)
.join("")}${command} ${args.join(" ")}`;
return { label, command: display, cwd, ok: result.status === 0, status: result.status, output, error: result.error?.message };
}
export function verificationSteps(ctx, { noBuild = false } = {}) {
const steps = [
{ label: "storybook catalog", command: "node", args: ["scripts/storybook-catalog.mjs", "--check"], cwd: "." },
{ label: "lab vitest", command: "npx", args: ["vitest", "run", `src/${ctx.slug}-directions`], cwd: "ui" },
];
if (!noBuild) {
steps.push({
label: "lab vite build",
command: "npx",
args: ["vite", "build", "--config", ctx.configFile],
cwd: "ui",
env: { [ctx.envOutDir]: ctx.staticDir },
});
}
return steps;
}
export function runVerification(root, steps, { onStep } = {}) {
const results = [];
for (const step of steps) {
const result = runStep(step.label, step.command, step.args, { cwd: path.join(root, step.cwd), env: step.env });
results.push(result);
onStep?.(result);
if (!result.ok) break;
}
return { ok: results.every((result) => result.ok), results };
}
export function describeFailure(result) {
const header = `FAILED ${result.label}: (cd ${result.cwd} && ${result.command}) exited ${result.status ?? "with no status"}`;
return `${header}\n${result.error ? `${result.error}\n` : ""}${result.output}`;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |