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/tests/harness/api-bug-bash.cjs

View on GitHub
// Run only against a disposable template copy; this writes projects and assets.
// node scripts/api-bug-bash.cjs http://localhost:3098
const assert = require('node:assert/strict');
const sharp = require('sharp');
const fs = require('node:fs/promises');
const os = require('node:os');
const path = require('node:path');
const {execFileSync} = require('node:child_process');
const {randomBytes} = require('node:crypto');
const base = (process.argv[2] || 'http://localhost:3098').replace(/\/$/, '');
const projectURL = base + '/api/project';
const post = (route, data, headers = {}) => fetch(base + route, {
  method: 'POST', headers: {'content-type': 'application/json', ...headers}, body: JSON.stringify(data),
});
let passed = 0;
async function check(name, run) { await run(); console.log('PASS', name); passed++; }
(async () => {
  const initial = await fetch(projectURL);
  assert.equal(initial.status, 200);
  const {state: original} = await initial.json();
  assert.ok(original, 'Start with a disposable template project');
  try {
    await check('invalid project shapes are rejected without replacing the file', async () => {
      const slide = {id:'a', layout:'no-device', screenshot:'', label:{en:'Test'}, headline:{en:'Test'}};
      const rect = {x:0,y:0,width:10,height:10};
      const invalid = [null, [], {}, {...original,schemaVersion:999}, {...original,connectedCanvas:'false'},
        {...original,slidesByDevice:{typo:[]}}, {...original,locales:['en','en']},
        ...[{headline:{en:[]}}, {transforms:{caption:{...rect,width:-1}}}, {textElements:[null]},
          {imageElements:[{id:'x',src:'a',transform:rect},{id:'x',src:'b',transform:rect}]}]
          .map(patch => ({...original, slidesByDevice:{watchos:[{...slide,...patch}]}}))];
      for (const state of invalid) assert.equal((await post('/api/project',state)).status,400);
      assert.deepEqual((await (await fetch(projectURL)).json()).state, original);
    });
    await check('every write route requires exact JSON content type and same origin', async () => {
      for (const route of ['/api/project','/api/upload','/api/upload-font']) {
        for (const type of ['text/plain','application/json-invalid']) assert.equal((await post(route,{}, {'content-type':type})).status,415);
        for (const origin of ['null','https://evil.example','http://localhost:9999']) assert.equal((await post(route,{}, {origin})).status,403);
        assert.equal((await post(route,{}, {'sec-fetch-site':'cross-site'})).status,403);
      }
      for (const host of ['localhost','127.0.0.1']) {
        const url = new URL(projectURL); url.hostname = host;
        const response = await fetch(url, {method:'POST',headers:{'content-type':'application/json',origin:url.origin,'sec-fetch-site':'same-origin'},body:JSON.stringify(original)});
        assert.equal(response.status,200,host);
      }
    });
    await check('concurrent stale project writes conflict and preserve the winning state', async () => {
      const revision = (await fetch(projectURL)).headers.get('etag');
      assert.ok(revision);
      const candidates = ['tab A','tab B'].map(appName=>({...original,appName}));
      const responses = await Promise.all(candidates.map(data=>post('/api/project',data,{'if-match':revision})));
      assert.deepEqual(responses.map(r=>r.status).sort(),[200,412]);
      const winning = responses.findIndex(r=>r.status===200);
      const current = await fetch(projectURL);
      assert.deepEqual((await current.json()).state,candidates[winning]);
      assert.equal(current.headers.get('etag'),responses[winning].headers.get('etag'));
      assert.equal((await post('/api/project',original,{'if-match':revision})).status,412);
      assert.equal((await post('/api/project',original,{'if-match':current.headers.get('etag')})).status,200);
    });
    await check('truncated, forged, malformed base64 and wrong-type uploads are rejected', async () => {
      for (const data of [null, {}, {dataUrl:'data:image/png;base64,iVBORw0KGgo='}, {dataUrl:'data:image/jpeg;base64,/9j/'},
        {dataUrl:'data:image/png;base64,iVBORw0K!Ggo='}, {dataUrl:'data:text/html;base64,SGk='}]) {
        assert.equal((await post('/api/upload',data)).status,400);
      }
      for (const data of [null,{}, {data:'d09GMg=='},{data:'T1RUTw=='},{data:'AAEAAA=='},{data:'d09GRg=='}]) {
        assert.equal((await post('/api/upload-font',data)).status,400);
      }
    });
    await check('real PNG/JPEG uploads round-trip; identical concurrent uploads stay intact', async () => {
      for (const format of ['png','jpeg']) {
        // Always a new hash, so restarting next start cannot mask missing
        // runtime asset serving by indexing files from a previous test run.
        const bytes = await sharp({create:{width:24,height:30,channels:3,background:'#'+randomBytes(3).toString('hex')}})[format]().toBuffer();
        const responses = await Promise.all(Array.from({length:4},()=>post('/api/upload',{dataUrl:`data:image/${format};base64,${bytes.toString('base64')}`})));
        let path;
        for (const response of responses) {
          assert.equal(response.status,200); const result = await response.json();
          if (path) assert.equal(result.path,path); path = result.path;
          const saved = await fetch(base+path); assert.equal(saved.status,200);
          assert.deepEqual(Buffer.from(await saved.arrayBuffer()),bytes);
        }
        assert.equal((await post('/api/upload',{dataUrl:`data:image/${format==='png'?'jpeg':'png'};base64,${bytes.toString('base64')}`})).status,400);
      }
    });
    await check('oversized request bodies are rejected including chunked bodies', async () => {
      const chunk = new Uint8Array(1024*1024).fill(32);
      for (const [route, megabytes] of [['/api/upload',13], ['/api/upload-font',24], ['/api/project',65]]) {
        const response = await fetch(base+route,{method:'POST',headers:{'content-type':'application/json'},duplex:'half',
          body:new ReadableStream({start(controller){for(let i=0;i<megabytes;i++)controller.enqueue(chunk);controller.close();}})});
        assert.equal(response.status,413,route);
      }
    });
    await check('valid WOFF2 uploads persist and truncated copies are rejected', async () => {
      const html = await (await fetch(base)).text();
      const fontPath = html.match(/\/_next\/static\/media\/[^"\s<>]+\.woff2/)?.[0];
      assert.ok(fontPath,'Expected bundled Next font');
      const bytes = Buffer.from(await (await fetch(base+fontPath)).arrayBuffer());
      // WOFF2's header version is metadata, independent of the glyph stream.
      randomBytes(4).copy(bytes,24);
      const response = await post('/api/upload-font',{data:bytes.toString('base64')});
      assert.equal(response.status,200); const {font}=await response.json();
      assert.equal(font.format,'woff2');
      assert.deepEqual(Buffer.from(await (await fetch(base+font.src)).arrayBuffer()),bytes);
      assert.equal((await post('/api/upload-font',{data:bytes.subarray(0,64).toString('base64')})).status,400);
    });
    await check('runtime asset routes reject missing files and traversal paths', async () => {
      for (const prefix of ['/screenshots/uploaded/','/fonts/imported/']) {
        for (const name of ['not-a-hash.png','0000000000000000.woff2','..%2f..%2fapp-store-screenshots.json']) {
          assert.ok([400,404].includes((await fetch(base+prefix+name)).status));
        }
      }
    });
    await check('documented migration handles null overlays and duplicate element IDs', async () => {
      const skill = await fs.readFile(path.join(__dirname,'../../../SKILL.md'),'utf8').catch(error => { if (error.code !== 'ENOENT') throw error; return null; });
      const source = skill
        ? skill.match(/BACKUP_DIR="\$BACKUP_DIR" node <<'NODE'\n([\s\S]*?)\nNODE/)[1]
        : await fs.readFile(path.join(__dirname,'migration-fixture.cjs'),'utf8');
      const temporary = await fs.mkdtemp(path.join(os.tmpdir(),'screenshot-migration-'));
      const transform = {x:10,y:20,width:0,height:40};
      try {
        const old = {...original, schemaVersion:1, connectedCanvas:undefined, slidesByDevice:{watchos:[{
          id:'legacy', layout:'hero', label:'Label', headline:'Old headline', screenshot:'/old.png',
          textElements:[null,{id:'same',text:'Hello',transform},{id:'same',text:{en:'Copy',de:42},transform,fontSize:-3}],
          imageElements:[null,{id:'same',src:'/a.png',transform},{id:'same',src:'/b.png',transform}],
        }]}};
        await fs.writeFile(path.join(temporary,'app-store-screenshots.json'),JSON.stringify(old));
        execFileSync(process.execPath,['-e',source],{cwd:temporary,env:{...process.env,BACKUP_DIR:temporary}});
        const migrated=JSON.parse(await fs.readFile(path.join(temporary,'app-store-screenshots.json'),'utf8'));
        assert.equal(migrated.connectedCanvas,false);assert.equal(migrated.schemaVersion,2);
        const slide=migrated.slidesByDevice.watchos[0];
        assert.deepEqual(slide.headline,{en:'Old headline'});assert.equal(slide.screenshot,'/old.png');
        assert.equal(slide.textElements.length,2);assert.equal(slide.imageElements.length,2);
        assert.equal(new Set(slide.textElements.map(e=>e.id)).size,2);
        assert.equal(new Set(slide.imageElements.map(e=>e.id)).size,2);
        assert.equal((await post('/api/project',migrated)).status,200);
      } finally { await fs.rm(temporary,{recursive:true,force:true}); }
    });
    console.log(`${passed} API regression groups passed.`);
  } finally {
    assert.equal((await post('/api/project',original)).status,200,'Could not restore disposable project');
  }
})().catch(error=>{console.error(error);process.exitCode=1;});
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