agentleFS
WtotdeDWtotdeD/agentic-resume-builder/.claude/skills/run-app/SKILL.md

run-app

Skill2 starsChanged 4 months agoMITView on GitHub

Launches the resume app locally and drives it — renders every lens, exports a PDF, screenshots a page. Use when asked to run or start the app, screenshot a resume, or confirm a content/config/template change actually renders.

  • Reads credentials

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use release.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Stop it with pkill -f 'ne[x]t dev'.

    line 24
  2. Very specific:

    Write the script into the project root, not a temp dir — Puppeteer resolves from the project's node_modules.

    line 62
  3. Distinctive:

    Read the PNG back. A blank frame or missing sections is a failure even when every status code was 200.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Run the app

Launch the Next.js dev server, then drive it. A 200 from a render route proves almost nothing here — see step 2.

1. Launch

PORT=3111 pnpm dev -p 3111 > /tmp/dev.log 2>&1 &
sleep 10 && tail -3 /tmp/dev.log

PORT must match -p. The export route builds its own base URL from process.env.PORT (src/app/api/export-pdf/route.ts) rather than from the incoming request, so leaving it unset makes PDF export fetch localhost:3000 — either nothing, or some other project's server.

Stop it with pkill -f 'ne[x]t dev'. The bracket is load-bearing: a plain next dev pattern matches the invoking shell's own command line and kills it.

2. Drive the render routes

sections: in a config matches ## headings by exact string and fails silently, so check the HTML body, not the status code:

for c in $(ls resumes/*.yaml | xargs -n1 basename | sed 's/.yaml//'); do
  code=$(curl -s http://localhost:3111/render/$c -o /tmp/$c.html -w '%{http_code}')
  echo "$c $code: $(grep -oE '<h2[^>]*>[^<]+' /tmp/$c.html | sed 's/.*>//' | paste -sd' ')"
done
grep -ilE 'non-existent ID|Failed to' /tmp/*.html   # expand: errors surface as an error box

grep -o, not grep -c — the HTML is minified onto two lines, so a line count reports "2 sections" for every config regardless of what rendered.

Note this lists only top-level sections. The per-entry ## headings (Achievements, Architecture, …) render as <h4>; to check those, grep <h4 the same way or read a screenshot. Compare against the config's sections: list — a section listed there but missing from the page is a heading string mismatch, not a render failure.

3. Export a PDF

curl -s -D /tmp/hdr.txt -o /tmp/out.pdf -X POST http://localhost:3111/api/export-pdf \
  -H 'Content-Type: application/json' -d '{"configName":"tech-lead"}'
file /tmp/out.pdf   # expect: PDF document, 2-4 pages

Page count is the signal worth reading — a template or content change that pushes a resume from 3 pages to 5 is a regression nothing else catches.

4. Screenshot, and look at it

Write the script into the project root, not a temp dir — Puppeteer resolves from the project's node_modules. Chrome is already present in ~/.cache/puppeteer; nothing needs installing.

import puppeteer from 'puppeteer';
const b = await puppeteer.launch({ args: ['--no-sandbox'] });
const p = await b.newPage();
await p.setViewport({ width: 1280, height: 1600 });
await p.goto('http://localhost:3111/render/tech-lead', { waitUntil: 'networkidle0' });
await p.screenshot({ path: 'shot.png', fullPage: true });
await b.close();

Read the PNG back. A blank frame or missing sections is a failure even when every status code was 200.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.