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/frames/[filename]/route.ts
View on GitHubimport { promises as fs } from "node:fs";
import path from "node:path";
import { NextResponse } from "next/server";
import { FRAME_FILES } from "@/lib/frame-assets";
export const dynamic = "force-dynamic";
// Served at runtime: Next's production public-file index only covers files
// that existed at build time, and bezels may be swapped afterwards.
export async function GET(_req: Request, context: { params: Promise<{ filename: string }> }) {
const { filename } = await context.params;
const name = filename.replace(/\.png$/, "");
if (!filename.endsWith(".png") || !(FRAME_FILES as readonly string[]).includes(name)) {
return new NextResponse(null, { status: 404 });
}
try {
const bytes = await fs.readFile(path.join(process.cwd(), "public", "frames", filename));
return new NextResponse(new Uint8Array(bytes), { headers: {
"Content-Type": "image/png",
"Content-Length": String(bytes.length),
// The URL carries ?v=<mtime>, so a replaced file gets a new URL.
"Cache-Control": "public, max-age=31536000, immutable",
"X-Content-Type-Options": "nosniff",
} });
} catch (error) {
if ((error as NodeJS.ErrnoException).code === "ENOENT") return new NextResponse(null, { status: 404 });
return NextResponse.json({ ok: false, error: "Frame could not be read" }, { status: 500 });
}
}
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: 198k | 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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |