oberconcejo/VS-CODE / .agents/skills/app-store-screenshots
app-store-screenshots
FlaggedUse 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.
template/src/app/api/frames/route.ts
View on GitHubimport { promises as fs } from "node:fs";
import path from "node:path";
import { NextResponse } from "next/server";
import { FRAME_FILES, type FrameFile, type MeasuredFrame } from "@/lib/frame-assets";
import { measureFrame } from "@/lib/measure-frame";
export const dynamic = "force-dynamic";
const FRAMES_DIR = path.join("public", "frames");
// Measurements keyed by file and modification time: replacing a PNG re-measures it.
const cache = new Map<string, MeasuredFrame>();
/** Which Apple bezels the user has added to public/frames/, measured. */
export async function GET() {
const frames: Partial<Record<FrameFile, MeasuredFrame>> = {};
const errors: Partial<Record<FrameFile, string>> = {};
await Promise.all(FRAME_FILES.map(async (name) => {
const file = path.join(process.cwd(), FRAMES_DIR, `${name}.png`);
try {
const stat = await fs.stat(file);
const version = Math.round(stat.mtimeMs).toString(36);
const key = `${name}:${version}:${stat.size}`;
let frame = cache.get(key);
if (!frame) {
frame = await measureFrame(await fs.readFile(file), `/frames/${name}.png?v=${version}`);
cache.set(key, frame);
}
frames[name] = frame;
} catch (error) {
if ((error as NodeJS.ErrnoException).code === "ENOENT") return;
errors[name] = `public/frames/${name}.png: ${error instanceof Error ? error.message : String(error)}`;
}
}));
return NextResponse.json({ ok: true, frames, errors }, { headers: { "Cache-Control": "no-store" } });
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |
| 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: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| 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: 193k | Updated | Claude CodeCodex | Verified | Install |