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/args.mjs
View on GitHubexport class UsageError extends Error {}
export const COMMANDS = {
new: {
strings: ["slug", "title", "surfaces", "directions", "names", "group", "capabilities", "company", "landing", "ports", "root"],
booleans: ["force-count", "dry-run", "json", "skip-verify", "no-build", "keep-on-failure"],
},
check: { strings: ["slug", "root"], booleans: ["strict", "run", "json", "skip-verify"] },
"add-direction": { strings: ["slug", "name", "root"], booleans: ["force-count", "json", "skip-verify"] },
list: { strings: ["root"], booleans: ["json"] },
};
export function parseArgs(argv) {
const [command, ...rest] = argv;
if (!command || command === "--help" || command === "-h") return { command: "help", flags: {} };
const spec = COMMANDS[command];
if (!spec) throw new UsageError(`unknown subcommand "${command}"; expected one of ${Object.keys(COMMANDS).join(", ")}`);
const flags = {};
for (let i = 0; i < rest.length; i += 1) {
const token = rest[i];
if (!token.startsWith("--")) throw new UsageError(`unexpected argument "${token}"`);
const [rawKey, inline] = token.slice(2).split(/=(.*)/s);
if (spec.booleans.includes(rawKey)) {
if (inline !== undefined && inline !== "true" && inline !== "false") throw new UsageError(`--${rawKey} takes no value`);
flags[rawKey] = inline !== "false";
continue;
}
if (!spec.strings.includes(rawKey)) throw new UsageError(`unknown flag --${rawKey} for ${command}`);
const value = inline !== undefined ? inline : rest[(i += 1)];
if (value === undefined || value.startsWith("--")) throw new UsageError(`--${rawKey} needs a value`);
flags[rawKey] = value;
}
return { command, flags };
}
export function helpText() {
return `Usage:
scaffold.mjs new --slug <slug> --title <Title> --surfaces id:Label:width@nav,... --directions 2|3
[--names a,b[,c]] [--group Components|Pages|Layouts|Patterns] [--capabilities a/k,...]
[--company name:PREFIX] [--landing auto|all|today|<id>] [--ports dev,preview]
[--force-count] [--dry-run] [--json] [--skip-verify] [--no-build] [--keep-on-failure] [--root <dir>]
scaffold.mjs check --slug <slug> [--strict] [--run] [--json] [--skip-verify] [--root <dir>]
scaffold.mjs add-direction --slug <slug> --name <Name> [--force-count] [--json] [--skip-verify] [--root <dir>]
scaffold.mjs list [--json] [--root <dir>]
Exit 0 on success, 1 on any failure (the failing command's output is printed).`;
}
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 |