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.
assets/templates/kit.ts.mjs
View on GitHubexport default (ctx) => `import type { FC } from "react";
import { registry } from "./registry";
export type DirectionId = (typeof registry.directions)[number]["id"];
export type SurfaceId = (typeof registry.surfaces)[number]["id"];
export interface LabRecord {
id: string;
title: string;
author: string;
updatedAt: string;
updatedLabel: string;
}
export interface SurfaceData extends Record<SurfaceId, unknown> {
${ctx.surfaces.map((surface) => ` ${JSON.stringify(surface.id)}: { items: LabRecord[] };`).join("\n")}
}
export interface DirectionKit {
id: DirectionId;
name: string;
tagline: string;
flags?: Record<string, boolean>;
${ctx.surfaces.map((surface) => ` ${surface.body}: FC<SurfaceData["${surface.id}"]>;`).join("\n")}
}
export const DIRECTION_IDS: readonly DirectionId[] = registry.directions.map((direction) => direction.id);
export const SURFACE_IDS: readonly SurfaceId[] = registry.surfaces.map((surface) => surface.id);
export const KIT_KEYS = Object.fromEntries(registry.directions.map((direction) => [direction.id, direction.key])) as Record<DirectionId, string>;
export const KIT_META = Object.fromEntries(registry.directions.map((direction) => [direction.id, { name: direction.name, tagline: direction.tagline }])) as Record<
DirectionId,
{ name: string; tagline: string }
>;
export function surfaceOf(id: SurfaceId) {
const surface = registry.surfaces.find((entry) => entry.id === id);
if (!surface) throw new Error(\`No surface \${id} in the ${ctx.slug} registry\`);
return surface;
}
const KIT_LOADERS = import.meta.glob<{ kit: DirectionKit }>("./directions/*/index.tsx");
export function loadKit(id: DirectionId): Promise<DirectionKit> {
const load = KIT_LOADERS[\`./directions/\${id}/index.tsx\`];
if (!load) return Promise.reject(new Error(\`No kit at directions/\${id}/index.tsx\`));
return load().then((module) => module.kit);
}
`;
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: 323k | 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 |