DEV ENVIRONMENT

Projects / This portfolio / case study

How this site was built, and who built it.

A one-page portfolio is a small app. This one runs on deliberately overkill tooling: prerendered on the edge, written by AI agents under strict house rules, and checked by four automated gates before anything ships.

Read the code on GitHub

  • 3 days
  • 68 commits
  • 22 branches
  • 2 environments
  • 58 tests

Setup

Every page is rendered to HTML at build time, then served by a Cloudflare Worker close to the visitor. The browser gets real content first, and Angular hydrates it afterwards.

View source: wrangler.jsonc

  1. Angular 22standalone · signals · strict TS
  2. ng build --configuration production
  3. Prerender + neutral platformRenderMode.Prerender · "platform": "neutral"
  4. wrangler deploy
  5. Cloudflare Workerserver.mjs + ASSETS binding · nodejs_compat
  6. nearest edge location
  7. Visitorstatic HTML first · hydrated with event replay
  • Budget500 kB initial bundleThe build warns past 500 kB and fails past 1 MB, so weight never creeps in.
  • SSR-safeNo browser globals at initDOM code runs in afterNextRender or behind isPlatformBrowser.
  • ThemeDark and lightToken-based colours, a saved choice, and the OS preference as fallback.
  • A11yWCAG AA, checked by axeReduced motion, forced colours and focus handling on every jump.

Workflow

The real git history, drawn from the repo. Day one: pull requests straight into main. From day two: every change lives on its own branch, merges into develop only after a human confirms, and reaches main through a release PR.

View source: AGENTS.md

22 branches in 3 days
10 feature and 12 fix branches merged over 3 days. Early work merged straight into main; later work merged into develop and reached main through 3 release pull requests.Nov 30Dec 1Dec 2 main develop feat/* fix/* pr-verify test claude-oauth-token feature-dev-open-pr precision-studio-layout vendor-agent-skills cv-redesign dev-environment-badge develop-worker-name document-branch-control delete-merged-branches one-section-scroll split-app-component curated-cv-detail-changes timeline-rail-end cleanup-comments-format restore-vendored-skills mobile-version theme-toggle chip-hover footer-cleanup chip-hover-test PR #11PR #12PR #13phase 1 · PRs straight to mainphase 2 · feat/fix → develop → release PRs

CI / CD

The same four gates run locally before every merge and again in GitHub Actions on every release PR. Each environment is a separate Cloudflare Worker that builds from its own branch.

View source: .github/workflows

  1. Issue

    label: ai-task

    A labelled GitHub issue starts the run.

  2. Claude agent

    AGENTS.md + 16 skills

    Reads the house rules, then writes the code and its tests.

  3. Feature branch

    feat/* · fix/*

    Cut from develop, pushed after every verified change.

  4. 4 gates

    • prettier
    • build + budgets
    • unit tests
    • E2E + axe
  5. you confirm
  6. develop

    DEV ENVIRONMENT

    A --no-ff merge deploys the portfolio-dev Worker.

  7. main

    PR · AI audit

    The release PR re-runs every gate, then ships to the edge.

ai-implement.yml

on: issue labelled ai-task

  1. checkout develop
  2. Claude implements
  3. 4 gates
  4. push feat/*

pr-verify.yml

on: pull request into main

  1. branch-flow
  2. build-and-test
  3. AI audit comment

Agents

Most of the code was written by AI agents. Whether one runs in the editor or in CI, it reads the same rulebook, uses the same skills and must pass the same gates. The merge is always a human decision.

View source: .agents

The agent loop: an issue or prompt, read the rules and skills, write code and tests on a feature branch, run the four gates, then a human confirms the merge.AGENTS.md 7 hard rules every agent reads first 1 Issue or prompt 2 Read rules + 16 skills 3 Code + tests on feat/* 4 Run the 4 gates You confirm the merge

What every agent loads

House rules

  • AGENTS.md
  • architecture.md

Project skills · 3

  • feature-dev
  • qa-tester
  • pr-auditor

Vendor skills · 13

  • angular-developer
  • angular-new-app
  • bootstrap-* × 11

“Never commit or push directly to develop or main.”

AGENTS.md · hard rule 2

What this means on your team

I bring the same habits to client work: written house rules, small reviewed branches, automated gates that catch regressions before a human has to, and a release that is always someone's decision.

← Back to the portfolioSource on GitHub