Skip to content

oberconcejo/VS-CODE / .agents/skills/app-store-screenshots

app-store-screenshots

Flagged

Use when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS, macOS, and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, mac app store, play store, screenshots, marketing assets, html-to-image, phone mockup, mac mockup, android screenshots, feature graphic.

FileKindSize
SKILL.mdskill md63.5 KB
copy-ideas.mdmarkdown8.9 KB
iphone-duo.mdmarkdown13.8 KB
mockup.pngbinary92.8 KB
scripts/capture-iphone-duo.shscript7.0 KB
style-prompts.mdmarkdown10.2 KB
style-prompts/01-retro-rubberhose-mascot.mdmarkdown24.7 KB
style-prompts/02-moody-curated-dating.mdmarkdown27.0 KB
style-prompts/03-paper-sticker-skeuomorphic.mdmarkdown28.3 KB
style-prompts/04-dreamy-pastel-couples.mdmarkdown24.7 KB
style-prompts/05-hand-drawn-editorial-tasks.mdmarkdown23.5 KB
style-prompts/06-glossy-3d-kbeauty-creator.mdmarkdown21.1 KB
style-prompts/07-liquid-glass-aurora.mdmarkdown19.8 KB
style-prompts/08-swiss-grid-bold.mdmarkdown20.0 KB
style-prompts/09-neon-athletic-night.mdmarkdown22.3 KB
style-prompts/10-magazine-cover-editorial.mdmarkdown25.2 KB
style-prompts/11-candy-pop-social.mdmarkdown19.9 KB
style-prompts/12-soft-clay-wellness.mdmarkdown20.6 KB
style-prompts/13-midnight-glow-pro.mdmarkdown33.7 KB
style-prompts/14-risograph-zine.mdmarkdown35.0 KB
style-prompts/15-bento-keynote-grid.mdmarkdown31.3 KB
style-prompts/16-toybox-primary.mdmarkdown35.2 KB
style-prompts/17-quiet-japandi.mdmarkdown30.0 KB
style-prompts/18-vintage-travel-poster.mdmarkdown37.6 KB
style-prompts/_QUALITY_BAR.mdmarkdown13.6 KB
template/.github/workflows/e2e.ymlconfig783 B
template/.gitignoreother470 B
template/README.mdmarkdown24.1 KB
template/app-store-screenshots.jsonconfig8.3 KB
template/bun.lockother71.9 KB
template/components.jsonconfig449 B
template/docs/testing/e2e.mdmarkdown23.5 KB
template/e2e-army/chrome-provider.tsscript1.7 KB
template/e2e-army/server.cjsscript1.6 KB
template/e2e.config.tsscript824 B
template/next.config.mjsscript294 B
template/package.jsonmanifest1.6 KB
template/postcss.config.mjsscript81 B
template/public/fonts/imported/.gitkeepother1 B
template/public/frames/.gitkeepother0 B
template/public/frames/duo-inner-landscape.pngbinary777.3 KB
template/public/frames/duo-inner-portrait.pngbinary802.5 KB
template/public/frames/duo-outer-landscape.pngbinary371.9 KB
template/public/frames/duo-outer-portrait.pngbinary446.3 KB
template/public/frames/ipad-portrait.pngbinary307.1 KB
template/public/frames/iphone-portrait.pngbinary478.4 KB
template/public/frames/mac.pngbinary660.7 KB
template/public/frames/tv.pngbinary833.9 KB
template/public/frames/watch.pngbinary234.3 KB
template/public/mockup.pngbinary92.8 KB
template/public/screenshots/android/phone/en/.gitkeepother0 B
template/public/screenshots/apple/ipad/en/.gitkeepother0 B
template/public/screenshots/apple/iphone/en/.gitkeepother0 B
template/src/app/api/frames/route.tsscript1.5 KB
template/src/app/api/project/route.tsscript3.4 KB
template/src/app/api/upload-font/route.tsscript4.5 KB
template/src/app/api/upload/route.tsscript3.2 KB
template/src/app/fonts/imported/[filename]/route.tsscript359 B
template/src/app/frames/[filename]/route.tsscript1.3 KB
template/src/app/globals.cssother3.2 KB
template/src/app/layout.tsxother487 B
template/src/app/page.tsxother141 B
template/src/app/screenshots/uploaded/[filename]/route.tsscript328 B
template/src/components/editor/background-controls.tsxother2.9 KB
template/src/components/editor/callout-controls.tsxother7.9 KB
template/src/components/editor/create-image-mask.tsscript586 B
template/src/components/editor/device-frames.tsxother20.9 KB
template/src/components/editor/font-importer.tsxother3.0 KB
template/src/components/editor/image-element-canvas.tsxother1.4 KB
template/src/components/editor/inspector.tsxother40.9 KB
template/src/components/editor/preview-stage.tsxother10.4 KB
template/src/components/editor/scene-layers.tsxother14.3 KB
template/src/components/editor/scene-playground.tsxother10.5 KB
template/src/components/editor/screenshot-editor.tsxother37.6 KB
template/src/components/editor/screenshot-picker.tsxother7.2 KB
template/src/components/editor/sidebar.tsxother4.3 KB
template/src/components/editor/slide-canvas.tsxother54.9 KB
template/src/components/editor/slide-thumb.tsxother5.9 KB
template/src/components/editor/style-lab.tsxother17.4 KB
template/src/components/editor/toolbar.tsxother14.7 KB
template/src/components/ui/button.tsxother1.8 KB
template/src/components/ui/card.tsxother1.2 KB
template/src/components/ui/dialog.tsxother3.1 KB
template/src/components/ui/dropdown-menu.tsxother3.7 KB
template/src/components/ui/input.tsxother717 B
template/src/components/ui/label.tsxother714 B
template/src/components/ui/popover.tsxother1.0 KB
template/src/components/ui/select.tsxother3.7 KB
template/src/components/ui/tabs.tsxother1.9 KB
template/src/components/ui/textarea.tsxother644 B
template/src/components/ui/tooltip.tsxother898 B
template/src/lib/clean-hex-color.tsscript225 B
template/src/lib/clean-imported-font.tsscript990 B
template/src/lib/constants.tsscript21.9 KB
template/src/lib/contrast.tsscript3.0 KB
template/src/lib/copy-ideas.tsscript2.9 KB
template/src/lib/defaults.tsscript9.2 KB
template/src/lib/elements.tsscript1.3 KB
template/src/lib/export-assets.tsscript1.3 KB
template/src/lib/export-render.tsscript8.9 KB
template/src/lib/frame-assets.tsscript7.7 KB
template/src/lib/image-cache.tsscript3.0 KB
template/src/lib/locale.tsscript1.9 KB
template/src/lib/measure-frame.tsscript3.6 KB
template/src/lib/png-encode.tsscript2.9 KB
template/src/lib/png-rgb.tsscript5.4 KB
template/src/lib/png-worker.tsscript545 B
template/src/lib/project-validation.tsscript4.9 KB
template/src/lib/request-body.tsscript1.7 KB
template/src/lib/request-guard.tsscript2.0 KB
template/src/lib/scene.tsscript4.7 KB
template/src/lib/serve-asset.tsscript1.0 KB
template/src/lib/storage.tsscript16.5 KB
template/src/lib/style-lab.tsscript13.1 KB
template/src/lib/types.tsscript7.4 KB
template/src/lib/typography.tsscript2.0 KB
template/src/lib/utils.tsscript169 B
template/src/lib/write-asset.tsscript448 B
template/tailwind.config.tsscript2.0 KB
template/tests/editor.e2e.tsscript12.5 KB
template/tests/harness/api-bug-bash.cjsscript9.5 KB
template/tests/harness/bug-bash.cjsscript34.9 KB
template/tests/harness/migration-fixture.cjsscript7.4 KB
template/tests/harness/run.cjsscript466 B
template/tests/harness/ui-bug-bash.cjsscript14.9 KB
template/tests/regression.e2e.tsscript1.5 KB
template/tests/scene-style-lab.e2e.tsscript14.7 KB
template/tests/targets.e2e.tsscript12.5 KB
template/tsconfig.jsonconfig594 B

template/src/components/editor/callout-controls.tsx

View on GitHub
"use client";
import * as React from "react";
import { Circle, Search, Square, Trash2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
import { img } from "@/lib/image-cache";
import { resolveScreenshot } from "@/lib/locale";
import { CALLOUT_ZOOM_MAX, CALLOUT_ZOOM_MIN, DEFAULT_CALLOUT } from "@/lib/scene";
import { cn } from "@/lib/utils";
import type { Callout, Device, ElementId, Orientation, Slide } from "@/lib/types";
import { getElementTransform, SCREEN_WIDTH_FRACTION } from "./slide-canvas";

/** Inspector section for the per-screen magnified callout ("Magnifier"). */
export function CalloutControls({
  slide,
  device,
  orientation,
  locale,
  available,
  onChange,
  onSelectElement,
}: {
  slide: Slide;
  device: Device;
  orientation: Orientation;
  locale: string;
  available: boolean;
  onChange: (patch: Partial<Slide>) => void;
  onSelectElement: (id: ElementId | null) => void;
}) {
  const callout = slide.callout;
  const screenshot = img(resolveScreenshot(slide.screenshot, locale));

  function patch(next: Partial<Callout>) {
    if (!callout) return;
    const merged = { ...callout, ...next };
    const saved = slide.transforms?.callout;
    // A circle is always round: square up a frame that was stretched as a rounded rect.
    if (next.shape === "circle" && saved && saved.width !== saved.height) {
      const size = Math.min(saved.width, saved.height);
      onChange({ callout: merged, transforms: { ...slide.transforms, callout: { ...saved, width: size, height: size } } });
      return;
    }
    onChange({ callout: merged });
  }

  if (!available) return null;

  // Share of the screenshot's width the lens actually shows, for the picker ring.
  const lensW = getElementTransform(slide, device, orientation, "callout")?.width;
  const deviceW = getElementTransform(slide, device, orientation, "device")?.width;
  const coverage = callout && lensW && deviceW ? Math.min(1, lensW / (deviceW * SCREEN_WIDTH_FRACTION * callout.zoom)) : 0.3;

  if (!callout) {
    return (
      <div className="flex items-center justify-between gap-2 rounded-md border bg-muted/30 p-3">
        <div className="min-w-0">
          <Label className="text-xs font-semibold">Magnifier</Label>
          <p className="text-[11px] text-muted-foreground">Zoom into one detail of the screenshot.</p>
        </div>
        <Button
          type="button"
          variant="outline"
          size="sm"
          className="h-7 shrink-0 px-2 text-xs"
          onClick={() => {
            onChange({ callout: { ...DEFAULT_CALLOUT } });
            onSelectElement("callout");
          }}
        >
          <Search className="h-3.5 w-3.5" />
          Add
        </Button>
      </div>
    );
  }

  return (
    <div className="space-y-3 rounded-md border bg-muted/30 p-3">
      <div className="flex items-center justify-between gap-2">
        <Label className="text-xs font-semibold">Magnifier</Label>
        <Button
          type="button"
          variant="ghost"
          size="icon"
          className="h-6 w-6 hover:text-destructive"
          aria-label="Remove magnifier"
          title="Remove magnifier"
          onClick={() => {
            const { callout: _removed, ...rest } = slide.transforms || {};
            onChange({ callout: undefined, transforms: Object.keys(rest).length ? rest : undefined });
            onSelectElement(null);
          }}
        >
          <Trash2 className="h-3.5 w-3.5" />
        </Button>
      </div>

      <FocusPicker
        src={screenshot}
        x={callout.focusX}
        y={callout.focusY}
        coverage={coverage}
        round={callout.shape === "circle"}
        onChange={(focusX, focusY) => patch({ focusX, focusY })}
      />

      <div className="space-y-1">
        <div className="flex items-center justify-between">
          <Label className="text-[11px] text-muted-foreground">Zoom</Label>
          <span className="text-[11px] tabular-nums text-muted-foreground">{callout.zoom.toFixed(1)}×</span>
        </div>
        <input
          type="range"
          min={CALLOUT_ZOOM_MIN}
          max={CALLOUT_ZOOM_MAX}
          step={0.1}
          value={callout.zoom}
          onChange={(e) => patch({ zoom: Number(e.target.value) })}
          className="w-full"
          aria-label="Magnifier zoom"
          aria-valuetext={`${callout.zoom.toFixed(1)} times`}
        />
      </div>

      <div className="grid grid-cols-2 gap-1" role="radiogroup" aria-label="Magnifier shape">
        {(["circle", "rounded"] as const).map((shape) => (
          <Button
            key={shape}
            type="button"
            role="radio"
            aria-checked={callout.shape === shape}
            variant={callout.shape === shape ? "secondary" : "outline"}
            size="sm"
            className="h-7 gap-1.5 text-xs"
            onClick={() => patch({ shape })}
          >
            {shape === "circle" ? <Circle className="h-3.5 w-3.5" /> : <Square className="h-3.5 w-3.5" />}
            {shape === "circle" ? "Circle" : "Rounded"}
          </Button>
        ))}
      </div>
    </div>
  );
}

const KEY_STEP = 0.02;

function FocusPicker({
  src,
  x,
  y,
  coverage,
  round,
  onChange,
}: {
  src: string;
  x: number;
  y: number;
  coverage: number;
  round: boolean;
  onChange: (x: number, y: number) => void;
}) {
  const ref = React.useRef<HTMLDivElement>(null);
  const clamp = (v: number) => Math.min(1, Math.max(0, v));

  function fromPointer(e: React.PointerEvent) {
    const box = ref.current?.getBoundingClientRect();
    if (!box || !box.width || !box.height) return;
    onChange(
      Math.round(clamp((e.clientX - box.left) / box.width) * 1000) / 1000,
      Math.round(clamp((e.clientY - box.top) / box.height) * 1000) / 1000,
    );
  }

  return (
    <div className="space-y-1">
      <Label className="text-[11px] text-muted-foreground">Focus — click or drag on the screenshot</Label>
      <div
        ref={ref}
        role="slider"
        tabIndex={0}
        aria-label="Magnifier focus"
        aria-valuemin={0}
        aria-valuemax={100}
        aria-valuenow={Math.round(y * 100)}
        aria-valuetext={`${Math.round(x * 100)}% across, ${Math.round(y * 100)}% down`}
        className={cn(
          "relative mx-auto w-24 cursor-crosshair touch-none select-none overflow-hidden rounded-md border bg-neutral-900 outline-none focus-visible:ring-2 focus-visible:ring-ring",
          !src && "aspect-[9/19.5]",
        )}
        onPointerDown={(e) => {
          e.currentTarget.setPointerCapture(e.pointerId);
          fromPointer(e);
        }}
        onPointerMove={(e) => {
          if (e.currentTarget.hasPointerCapture(e.pointerId)) fromPointer(e);
        }}
        onKeyDown={(e) => {
          const step = e.shiftKey ? KEY_STEP * 5 : KEY_STEP;
          const moves: Record<string, [number, number]> = {
            ArrowLeft: [-step, 0],
            ArrowRight: [step, 0],
            ArrowUp: [0, -step],
            ArrowDown: [0, step],
          };
          const move = moves[e.key];
          if (!move) return;
          e.preventDefault();
          e.stopPropagation();
          onChange(clamp(x + move[0]), clamp(y + move[1]));
        }}
      >
        {src ? (
          <img src={src} alt="" draggable={false} className="block w-full" />
        ) : (
          <span className="absolute inset-0 flex items-center justify-center p-2 text-center text-[10px] text-neutral-400">
            Add a screenshot first
          </span>
        )}
        <span
          aria-hidden
          className={cn(
            "pointer-events-none absolute aspect-square -translate-x-1/2 -translate-y-1/2 border-2 border-white bg-white/10 shadow-[0_0_0_1px_rgba(0,0,0,0.55),0_0_0_999px_rgba(0,0,0,0.35)]",
            round ? "rounded-full" : "rounded-[14%]",
          )}
          style={{ left: `${x * 100}%`, top: `${y * 100}%`, width: `${coverage * 100}%` }}
        />
      </div>
    </div>
  );
}
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall