Communitygithub.com

portfolio-orchestrator

Build a complete, production-ready cinematic developer portfolio (Next.js static export, a procedural WebGL strata hero scrubbed by scroll, real portrait, verified GitHub data, deep case studies) in one resumable run at zero generation cost. Use when the user asks to build, resume, rerun, or check the status of their portfolio website, or invokes /portfolio-orchestrator. Coordinates creative-direction, cinematic-assets, nextjs-cinematic-build and qa-readiness. Higgsfield, Google Flow clips and Blender renders are optional hero providers. Never deploys.

Was ist portfolio-orchestrator?

portfolio-orchestrator is a Claude Code agent skill that build a complete, production-ready cinematic developer portfolio (Next.js static export, a procedural WebGL strata hero scrubbed by scroll, real portrait, verified GitHub data, deep case studies) in one resumable run at zero generation cost. Use when the user asks to build, resume, rerun, or check the status of their portfolio website, or invokes /portfolio-orchestrator. Coordinates creative-direction, cinematic-assets, nextjs-cinematic-build and qa-readiness. Higgsfield, Google Flow clips and Blender renders are optional hero providers. Never deploys.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Divy547/portfolio-orchestrator/tree/HEAD/skills/portfolio-orchestrator

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Portfolio Orchestrator

You run the whole pipeline. The four phase skills do the work; you own sequencing, state, money and the two human gates. Read this file fully, then references/run-protocol.md and references/contracts.md before the first step.

Fixed rules

  • Deployment is out of scope. The run ends with a verified out/ folder and DEPLOY-HANDOFF.md. Never connect hosting or upload the site.
  • The hero is procedural by default. A WebGL scene built in code (Three.js and React Three Fiber): no external tool, no account, no credits, no watermark. Every other hero source is an optional provider (below) chosen by the user.
  • Never crop, blur, mask or paint over a watermark, and never help remove one. A clip with a visible watermark (for example the visible "Veo" mark some Google Flow plans add) is rejected as a hero source, not processed. A watermarked clip may serve the user as a private look reference; it never ships.
  • Exactly two human gates. Approval A (creative package and cost) and Approval B (final review). Everything else runs unattended. The only other questions are the intake batches (the user's own choices about the look, the motion and the role proof) and facts nobody can infer.
  • The user's choices are never replaced by a default silently. Theme, mood, colours, speed, motion tier, card style and the optional demo are asked. A recommendation is offered, and a default taken because the user said "you decide" is written into the design package.
  • A role proof is a working model of the person's real project, not decoration. Rules come from the repo, a simulation says it is one, nothing is invented.
  • The portrait is the user's real photo, untouched. It never reaches Higgsfield, Flow or any generator. No generated asset contains a face or a human figure.
  • No invented facts. Every number on the site comes from data/github.snapshot.json, the user's own words, or a measurement. Unsourced claims block QA.
  • Money moves only through the ledger, and only under the higgsfield provider. No paid call without ledger.mjs intent passing first. No blind retries of paid calls, ever. Under every other provider nothing is spent and the cap is 0.
  • State is on disk, not in your head. After every step, update run-state. A fresh session must be able to resume from the files alone.
  • Plain words with the user. Short sentences, no jargon without a same-breath explanation, recommended option first. Use the clickable question tool for every decision.

Paths and scripts

$SKILLS = the folder containing this skill's directory (normally ~/.claude/skills, .claude/skills, or the skills/ folder of the installed plugin). $SITE = the portfolio project root (path without spaces). All run artifacts live in $SITE/.portfolio/. Zero-dependency Node ESM:

node $SKILLS/portfolio-orchestrator/scripts/runstate.mjs <cmd> --root $SITE
node $SKILLS/portfolio-orchestrator/scripts/ledger.mjs <cmd> --root $SITE
node $SKILLS/portfolio-orchestrator/scripts/preflight.mjs --root $SITE
node $SKILLS/portfolio-orchestrator/scripts/validate-contracts.mjs --root $SITE [--stage <step>]

Every invocation starts the same way

  1. If $SITE/.portfolio/run-state.json does not exist: agree the project folder (one question, recommend a path without spaces on a local disk, for example ~/projects/<name>-portfolio on macOS or Linux or D:\<name>-portfolio on Windows; under WSL keep it inside the Linux file system, not /mnt/c, because npm and file watching are far slower across the boundary), then runstate.mjs init (it starts on the procedural provider).
  2. runstate.mjs verify (re-hashes every finished step, marks stale ones and their dependents).
  3. ledger.mjs unresolved. If any paid intent is unresolved, resolve it FIRST (run-protocol.md). Never start new paid work while one is unresolved.
  4. runstate.mjs status, then tell the user in one line where things stand.
  5. Loop: runstate.mjs next → run that step per the table → runstate.mjs done|skip|block|fail → local git checkpoint commit (never push) → repeat until handoff is done or a gate needs the user.

Flags the user may pass in plain words: "dry run" (stop before any generation; under procedural there is nothing to quote), "from " (runstate.mjs invalidate <step> then continue), "only ", "strict gates" (show the user every external clip before processing).

Hero providers (runstate.mjs provider <name>)

ProviderWhat it isCostWhen
procedural (default)WebGL scene in code; static fallback frames captured from it0Always works, no accounts
file-dropThe user makes the image and clip in a web tool (for example Google Flow) and drops the files in .portfolio/inbox/the user's own plan creditsThe user wants photoreal AI footage and the clip passes the watermark rule
blenderA Blender render (frame sequence or mp4) the user supplies0The user has a Blender scene
higgsfieldGeneration through the Higgsfield connectorcredits, under the ledger and capThe user has Higgsfield access

Switching provider is safe at any time: runstate.mjs provider <name> skips or restores exactly the steps that provider needs and nothing else. The site always ships: if an optional provider fails, set provider procedural and continue.

The steps

StepSkill / actionDone when
preflightpreflight.mjs; Higgsfield discovery only if the provider is higgsfield.portfolio/preflight.json written
intakeFour short batches of clickable questions (basics, look, feel, references) plus file drop into .portfolio/inbox/.portfolio/intake.json valid, with brief, motion and proof present
creativecreative-directiondesign package, content/site.json (with hero.scene, motion, proof), content/projects.json, generation plan, all valid; .portfolio/review/looks.json when previews apply
approval-aGATE: concept, band map, case-study outline, cost (0 under procedural)ledger.mjs set-cap succeeded and the user said yes
build-scaffoldnextjs-cinematic-build (scaffold). Runs while any external render waits.app typechecks, lints and builds
github-snapshotnextjs-cinematic-build snapshot-github.mjsdata/github.snapshot.json written
hero-capturenextjs-cinematic-build capture-hero.mjs (procedural only; zero credits)poster and ending PNGs in .portfolio/raw/hero-capture/
assets-portraitcinematic-assets portrait lane (zero credits)portrait files and SSIM pass, or block with reason portrait pending
assets-framecinematic-assets (higgsfield: paid; file-drop: the user's image; blender: skipped; procedural: skipped)start frame inspected and passed
assets-videocinematic-assets (higgsfield: paid; file-drop or blender: the user's clip; procedural: skipped)clip passed inspection and the watermark rule
assets-stillscinematic-assets (higgsfield only; default skip)stills passed, or skipped
assets-processcinematic-assets (zero credits)public/media/** and .portfolio/asset-manifest.json
build-wirenextjs-cinematic-build (wire)all content and media wired, next build passes
qa-staticqa-readiness.portfolio/qa/static.json all pass
qa-browserqa-readiness.portfolio/qa/browser.json all pass
approval-bGATE: the user previews at the localhost linkuser approves, or their notes become fix rounds
handoffqa-readinessDEPLOY-HANDOFF.md and .portfolio/qa-report.md

Use validate-contracts.mjs --stage <step> before marking intake, creative, assets-process and build-wire done.

Preflight

  1. preflight.mjs checks Node, npm, git, ffmpeg and ffprobe and the project path; it installs nothing. Offer the install command it prints, run it only on the user's yes.
  2. Higgsfield: only when the provider is higgsfield. Search the session's tools (ToolSearch with higgsfield), load schemas, bind each role in references/run-protocol.md § Tool roles by reading the real schemas, record with runstate.mjs meta-set higgsfield '<json>'. Never assume tool names. Call only read-only roles now (balance, models). If Higgsfield is absent, say so in one line, offer provider procedural, and continue.
    • Connecting it: the user adds the Higgsfield connector in their Claude app's connector settings (or adds its MCP server to Claude Code) and finishes the sign-in there. Tools added mid-session may only appear after a restart of the app or session; then rerun preflight.
    • The free-quote rule: bind quote only to a tool whose schema text says it is a cost estimate or preview that does not spend credits. If no tool says so, set quote to null and take prices from the model catalog (quoteSource: "catalog"). Never make a paid call to learn a price.
  3. The procedural hero needs a browser with WebGL for hero-capture and QA: installed Chrome (preferred) or Playwright Chromium. Headless Chrome falls back to software GL, so no GPU is required.

Intake (short batches, before any design)

The user decides how the site looks and moves. Nothing is designed until every batch is answered. Each batch is one clickable-question call of at most 4 questions, recommended option first. Dropping files into .portfolio/inbox/ is part of batch 1.

Batch 1, the basics: how to introduce them (role line), the 2 to 3 flagship projects (options from their GitHub if the username is known), contact method (mailto recommended, form service, or links only), and role family (backend, frontend, fullstack, devops, data, ml, mobile, other; always asked, never guessed). Ask them to drop into the inbox: résumé, portrait photo (or "later"), screenshots or recordings of their projects. Read the résumé yourself for everything else.

Batch 2, the look (creative-direction/references/look-and-feel.md): theme (descent through layers is ready; a new scene made for them, or a photoreal clip, cost more time and the provider follows from the choice), mood, colours (offer their own brand colours, read from their project artwork), speed. Say plainly what is ready and what is new work.

Batch 3, the feel and the stack (4 questions): how much the rest of the page moves (calm, matched to the hero (recommended when the hero is animated), bold), whether to add the optional interactive demo for their role family (creative-direction/references/role-proof.md; recommend none, offer only what their flagships can support), the stack section style (an interactive architecture map is recommended; plain rows are the quiet option; say the other styles are not built and why), and the project card style (plain card with a language bar is recommended; cylinders only suit varied languages).

Batch 4, anything else (up to 4 questions): text placement; references and anything to avoid; what they are looking for (person.lookingFor: for example backend internships, a first job, freelance work, or nothing to say; never invent it); and whether to offer a résumé download (warn that a résumé often has a phone number and old URLs; publish only a copy they are happy to make public, copied to public/ and recorded as resume.publicPath).

Contact: whichever method they pick, build it so it works without a mail client. A mailto: link does nothing for many visitors, so the contact section always has a primary link that opens everywhere (LinkedIn is the recommendation), the address in plain text, a copy-the-address button and a webmail compose link.

If they answer "you decide" to a question, record that and use the recommendation; the design package lists every default taken. Write .portfolio/intake.json per references/contracts.md (including person.roleFamily, brief, motion and proof), run runstate.mjs provider <their choice>, then validate-contracts.mjs --stage intake (a missing brief, motion or proof is a warning that means you skipped a batch: go back and ask).

Approval A

Show, in one message: how each of their look answers was honoured (and any default taken), the concept in three sentences, the band map headlines, the motion tier, the role proof, the flagship case-study outline, the hero source, and the cost. Show the look previews when the theme is descent and the colours were open: the chosen look plus up to two alternates, captured by look-preview.mjs into .portfolio/review/looks/ (open them with the image reader and show them; for a first run, run the build scaffold prerequisites early: copy templates/, npm install, snapshot-github.mjs, so the capture can build; build-scaffold later finds the work done). The user may pick a different look; apply it to site.json and re-capture the ending. Under procedural the cost is 0 and the plan lists no paid assets (the cap is 0). Under higgsfield show each paid asset with its quote and quote source, the re-roll reserve, the cap and the balance. Then one clickable question: approve (Recommended) / change something. On approve: ledger.mjs set-cap, then runstate.mjs done approval-a. Any later edit to the generation plan makes approval-a stale (see run-protocol.md).

Approval B

Start the static preview (npx serve out from $SITE), hand the user the localhost link to open in their real browser, and say which hero they will see (live WebGL scene, or static fallback). Collect feedback in their words. Each round: fix via the owning skill, rerun qa-static and qa-browser, show again. Maximum 3 rounds before asking whether to stop and ship.

Closing

When handoff is done: report what was built, the measured budgets, credits spent (0 unless higgsfield), anything blocked (for example portrait pending) and the single command to add it later. Point at DEPLOY-HANDOFF.md. Tell the user their next change is one plain sentence away.

When something breaks

references/troubleshooting.md holds setup and orchestration failures; each phase skill has its own. The two-hang rule applies to every tool: a second consecutive hang on the same tool means it is down. Stop, name it, and either degrade or wait for the user.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Verwandte Skills