Skip to content

paperclipai/paperclip / .agents/skills/directions-lab

directions-lab

Verified

Scaffold 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.

FileKindSize
SKILL.mdskill md15.4 KB
agents/openai.yamlconfig291 B
assets/PRECEDENTother187 B
assets/motion/v1-mvp-motion.cssother787 B
assets/templates/api-routes.ts.mjsscript531 B
assets/templates/api-stub.ts.mjsscript1.9 KB
assets/templates/build-info.ts.mjsscript220 B
assets/templates/define-lab.ts.mjsscript3.9 KB
assets/templates/direction/MotionSpecimen.tsx.mjsscript2.3 KB
assets/templates/direction/SlotBody.tsx.mjsscript521 B
assets/templates/direction/index.tsx.mjsscript445 B
assets/templates/direction/tokens.css.mjsscript1.1 KB
assets/templates/entry.html.mjsscript752 B
assets/templates/fixtures.ts.mjsscript1.2 KB
assets/templates/frames/AppShell.tsx.mjsscript5.2 KB
assets/templates/frames/Board.tsx.mjsscript4.8 KB
assets/templates/frames/LabToolbar.tsx.mjsscript4.4 KB
assets/templates/frames/Slot.tsx.mjsscript329 B
assets/templates/frames/SurfaceFrame.tsx.mjsscript1.3 KB
assets/templates/frames/SurfaceView.tsx.mjsscript540 B
assets/templates/kit.ts.mjsscript1.9 KB
assets/templates/lab-state.ts.mjsscript1.8 KB
assets/templates/lab.css.mjsscript74 B
assets/templates/launch-entries.json.mjsscript680 B
assets/templates/main.tsx.mjsscript6.2 KB
assets/templates/providers.tsx.mjsscript920 B
assets/templates/registry.ts.mjsscript1.6 KB
assets/templates/shot.cjs.mjsscript10.0 KB
assets/templates/stories/compare.stories.tsx.mjsscript3.4 KB
assets/templates/tests/api-stub.test.ts.mjsscript1.6 KB
assets/templates/tests/lab-state.test.ts.mjsscript3.1 KB
assets/templates/tests/motion-contract.test.ts.mjsscript5.7 KB
assets/templates/tests/registry.test.ts.mjsscript2.5 KB
assets/templates/tests/today.test.tsx.mjsscript2.0 KB
assets/templates/today/SlotBody.tsx.mjsscript972 B
assets/templates/today/adapters.ts.mjsscript748 B
assets/templates/today/index.tsx.mjsscript387 B
assets/templates/vite.config.mjs.mjsscript2.9 KB
evals/asks-how-many-directions/case.yamlconfig343 B
evals/asks-how-many-directions/graders/01-expected-output.mdmarkdown347 B
evals/asks-how-many-directions/prompt.mdmarkdown197 B
evals/multi-surface-three-directions/case.yamlconfig674 B
evals/multi-surface-three-directions/graders/01-expected-output.mdmarkdown672 B
evals/multi-surface-three-directions/prompt.mdmarkdown510 B
evals/single-surface-two-directions/case.yamlconfig398 B
evals/single-surface-two-directions/graders/01-expected-output.mdmarkdown397 B
evals/single-surface-two-directions/prompt.mdmarkdown284 B
references/canonical-directory.mdmarkdown15.5 KB
references/design-proposals-storybook.mdmarkdown29.2 KB
references/drawing-phases.mdmarkdown21.7 KB
references/generator.mdmarkdown25.7 KB
references/lab-anatomy.mdmarkdown28.7 KB
references/lifecycle.mdmarkdown18.9 KB
references/motion-spec.mdmarkdown21.1 KB
references/questions-and-defaults.mdmarkdown15.6 KB
references/repo-gates.mdmarkdown20.8 KB
references/today-fixtures-and-build.mdmarkdown34.9 KB
scripts/lib/args.mjsscript2.4 KB
scripts/lib/capabilities.mjsscript2.1 KB
scripts/lib/check.mjsscript10.6 KB
scripts/lib/context.mjsscript8.6 KB
scripts/lib/modes.mjsscript1001 B
scripts/lib/ports.mjsscript1.9 KB
scripts/lib/registry-edit.mjsscript5.2 KB
scripts/lib/render.mjsscript3.6 KB
scripts/lib/shared-files.mjsscript2.9 KB
scripts/lib/verify.mjsscript1.8 KB
scripts/lib/write.mjsscript2.3 KB
scripts/scaffold.mjsscript14.3 KB
scripts/scaffold.test.mjsscript33.7 KB

assets/templates/frames/AppShell.tsx.mjs

View on GitHub
export default () => `import type { ReactNode } from "react";
import {
  Boxes,
  ChevronsUpDown,
  CircleCheck,
  FolderOpen,
  GitBranch,
  History,
  Inbox,
  LayoutDashboard,
  LifeBuoy,
  Package,
  Repeat,
  Search,
  SquarePen,
  Unplug,
  Users,
  type LucideIcon,
} from "lucide-react";
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import { cn } from "@/lib/utils";
import type { ShellNav } from "../define-lab";
import { COMPANY, TASKS } from "../fixtures";

interface NavEntry {
  label: string;
  icon: LucideIcon;
  nav?: ShellNav;
}

const TOP: NavEntry[] = [
  { label: "New Task", icon: SquarePen },
  { label: "Search", icon: Search },
  { label: "Dashboard", icon: LayoutDashboard },
  { label: "Inbox", icon: Inbox },
];
const WORK: NavEntry[] = [
  { label: "Tasks", icon: CircleCheck, nav: "tasks" },
  { label: "Projects", icon: FolderOpen },
  { label: "Routines", icon: Repeat },
  { label: "Artifacts", icon: Package, nav: "artifacts" },
  { label: "Workspaces", icon: GitBranch },
];
const ORG: NavEntry[] = [
  { label: "Agents", icon: Users },
  { label: "Skills", icon: Boxes },
  { label: "Connectors", icon: Unplug },
  { label: "Audit", icon: History },
];
const RECENT = TASKS.map((task) => task.title);

function NavItem({ label, icon: Icon, active }: { label: string; icon?: LucideIcon; active?: boolean }) {
  return (
    <span
      className={cn(
        "flex items-center gap-2.5 mx-2 rounded-lg px-2 py-1.5 text-(length:--text-compact) font-medium transition-colors",
        active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-foreground/80",
      )}
    >
      {Icon ? (
        <span className="relative shrink-0">
          <Icon className="h-4 w-4" />
        </span>
      ) : null}
      <span className="min-w-0 flex-1 truncate">{label}</span>
    </span>
  );
}

function Section({ label, children }: { label: string; children: ReactNode }) {
  return (
    <div>
      <div className="px-3 py-1.5">
        <div className="relative flex min-h-6 min-w-0 items-center gap-1">
          <div className="inline-flex min-w-0 max-w-full items-center px-1 py-0.5">
            <span className="text-(length:--text-nano) font-medium uppercase tracking-widest font-mono text-muted-foreground/60">{label}</span>
          </div>
        </div>
      </div>
      <div className="flex flex-col gap-0.5 mt-0.5">{children}</div>
    </div>
  );
}

function Sidebar({ active }: { active: ShellNav }) {
  return (
    <aside className="flex w-60 shrink-0 flex-col primary-sidebar-surface" aria-label="Primary">
      <div className="flex h-(--sz-60px) shrink-0 items-center gap-1 px-3">
        <span className="flex h-9 min-w-0 flex-1 items-center justify-start gap-2 rounded-md px-4 text-left">
          <span className="flex min-w-0 flex-1 items-center gap-2">
            <span
              className="flex size-5 shrink-0 items-center justify-center rounded-md text-(length:--text-micro) font-semibold text-white"
              style={{ background: "var(--status-task-done)" }}
            >
              {COMPANY.name.charAt(0).toUpperCase()}
            </span>
            <span className="min-w-0 truncate text-sm font-bold text-foreground">{COMPANY.name}</span>
          </span>
          <ChevronsUpDown className="size-3.5 shrink-0 text-muted-foreground" />
        </span>
      </div>
      <nav className="flex min-h-0 flex-1 flex-col gap-4 px-3 py-2">
        <div className="flex flex-col gap-0.5">
          {TOP.map((entry) => (
            <NavItem key={entry.label} {...entry} />
          ))}
        </div>
        <Section label="Work">
          {WORK.map((entry) => (
            <NavItem key={entry.label} {...entry} active={entry.nav === active} />
          ))}
        </Section>
        <Section label="Org">
          {ORG.map((entry) => (
            <NavItem key={entry.label} {...entry} />
          ))}
        </Section>
        <Section label="Recent Tasks">
          {RECENT.map((title) => (
            <NavItem key={title} label={title} />
          ))}
        </Section>
      </nav>
      <div className="bg-border/50 px-3 py-2 dark:bg-muted">
        <div className="flex items-center gap-0.5 px-2">
          <span className="flex min-w-0 flex-1 items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-(length:--text-compact) font-medium text-foreground/80">
            <Avatar size="sm">
              <AvatarFallback>LA</AvatarFallback>
            </Avatar>
            <span className="min-w-0 flex-1 truncate">lab@{COMPANY.name}.example</span>
          </span>
        </div>
      </div>
    </aside>
  );
}

export function SupportButton() {
  return (
    <span className="ml-auto flex shrink-0 items-center gap-1 pl-2">
      <span className="inline-flex h-9 items-center gap-2 rounded-md px-3 text-sm font-medium text-muted-foreground">
        <LifeBuoy className="size-4" />
        Support
      </span>
    </span>
  );
}

export function AppShell({ active, children }: { active: ShellNav; children: ReactNode }) {
  return (
    <div className="bg-background text-foreground flex min-h-225 flex-col">
      <div className="flex min-h-0 flex-1">
        <Sidebar active={active} />
        <div className="flex min-w-0 flex-1 flex-col">{children}</div>
      </div>
    </div>
  );
}
`;
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall