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/lab-state.ts.mjs
View on GitHubexport default () => `import { DIRECTION_IDS, SURFACE_IDS, type DirectionId, type SurfaceId } from "./kit";
import { registry } from "./registry";
export type LabView = SurfaceId | "board";
export type LabTheme = "dark" | "light";
export const LAB_VIEWS: readonly LabView[] = [...SURFACE_IDS, "board"];
export const FIRST_SURFACE: SurfaceId = SURFACE_IDS[0];
export interface LabState {
direction: DirectionId | "all";
view: LabView;
theme: LabTheme;
chrome: boolean;
anim: boolean;
proposal: boolean;
}
export const isDirection = (value: string | null): value is DirectionId => value !== null && (DIRECTION_IDS as readonly string[]).includes(value);
export const isView = (value: string | null): value is LabView => value !== null && (LAB_VIEWS as readonly string[]).includes(value);
export function readLabState(search: string): LabState {
const params = new URLSearchParams(search);
const d = params.get("d");
const s = params.get("s");
return {
direction: d === "all" ? "all" : isDirection(d) ? d : s ? "today" : registry.landing.direction,
view: isView(s) ? s : d && d !== "all" ? FIRST_SURFACE : registry.landing.view,
theme: params.get("theme") === "light" ? "light" : "dark",
chrome: params.get("chrome") !== "0",
anim: params.get("anim") !== "0",
proposal: params.get("proposal") === "1",
};
}
export function labSearch(state: LabState): string {
const params = new URLSearchParams({ d: state.direction, s: state.view, theme: state.theme });
if (!state.chrome) params.set("chrome", "0");
if (!state.anim) params.set("anim", "0");
if (state.proposal) params.set("proposal", "1");
return \`?\${params.toString()}\`;
}
export const landingSearch = (): string => labSearch(readLabState(""));
export const kitIdOf = (state: LabState): DirectionId => (state.direction === "all" ? "today" : state.direction);
`;
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 |