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/direction/MotionSpecimen.tsx.mjs
View on GitHubexport default (ctx, direction) => {
const p = direction.prefix;
return `import type { CSSProperties } from "react";
import type { LabRecord } from "../../kit";
const BOX = { width: 168, height: 150 };
const SHEET = { width: 112, height: 134 };
const FRONT = { left: (BOX.width - SHEET.width) / 2, top: 8 };
const BACKINGS = [
{ spread: "left", rotate: -14, left: FRONT.left - 14, top: FRONT.top + 4 },
{ spread: "right", rotate: -5, left: FRONT.left + 14, top: FRONT.top + 4 },
] as const;
type Backing = (typeof BACKINGS)[number];
function BackingSheet({ spread, rotate, left, top }: Backing) {
const style = {
left,
top,
width: SHEET.width,
height: SHEET.height,
transformOrigin: \`\${SHEET.width / 2}px \${SHEET.height / 2}px\`,
filter: "var(--${p}-shadow-sheet)",
"--${p}-base": \`\${rotate}deg\`,
} as CSSProperties;
return <div data-rotate data-spread={spread} aria-hidden className="absolute rounded-(--${p}-sheet-radius) bg-(--${p}-paper)" style={style} />;
}
export function MotionSpecimen({ item }: { item: LabRecord }) {
return (
<button
type="button"
aria-label={\`Open \${item.title}\`}
className="flex h-(--${p}-tile-h) w-full flex-col items-center gap-3 rounded-(--${p}-tile-radius) px-4 pt-4 text-left outline-none transition-colors hover:bg-(--${p}-tile-hover) focus-visible:bg-(--${p}-tile-hover) focus-visible:ring-2 focus-visible:ring-ring"
>
<div className="relative shrink-0" style={{ width: BOX.width, height: BOX.height }}>
{BACKINGS.map((backing) => (
<BackingSheet key={backing.spread} {...backing} />
))}
<div
data-front
className="absolute flex items-end rounded-(--${p}-sheet-radius) bg-(--${p}-paper) p-2 text-(length:--text-micro) leading-4 text-(--${p}-ink)"
style={{ left: FRONT.left, top: FRONT.top, width: SHEET.width, height: SHEET.height, filter: "var(--${p}-shadow-sheet)" }}
>
<span className="line-clamp-3 break-words">{item.title}</span>
</div>
</div>
<span className="line-clamp-2 w-full text-center text-sm font-medium leading-5 text-foreground">{item.title}</span>
<span className="text-xs leading-4 text-muted-foreground">
{item.author} · {item.updatedLabel}
</span>
</button>
);
}
`;
};
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 |