Skip to content

LeadPages/leadpage-creator-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leadpage Creator — From a Prompt to a Production Agent

The TypeScript project + tutorial source that walks a beginner from "I don't know what an agent is" to a deployed Claude Managed Agent that creates landing pages. Adapted from the Code with Claude 2026 workshops.

📖 Read the tutorial: https://edanisko-leadpages.pubhtml.com/vGcq2IRNn9

The chapter prose lives at that URL. The code you'll build alongside it lives in this repo.

Quickstart

git clone https://github.com/LeadPages/leadpage-creator-agent.git
cd leadpage-creator-agent/example-agent
bun install
cp .env.example .env             # then put your ANTHROPIC_API_KEY in .env

Don't have bun? curl -fsSL https://bun.sh/install | bash. Or use Node 22+ and replace bun run X with npx tsx X.

The chapters

Open the tutorial in a browser, keep this repo open in a terminal, and run the matching command as you reach each chapter:

Chapter Command What it teaches
02 First call bun run first-call "vegan meal kits for busy parents" Single messages.create call → HTML page
03 Tools bun run tools "..." The agent loop with two tools
04 Skills bun run skills "..." Skills loaded on demand
05 Decomposition bun run decompose "..." Orchestrator + copywriter + designer subagents
06 Memory bun run memory "..." Persistent brand-kit memory store
07 Evals bun run eval 6-task dataset + 2-layer grader
08 Right model bun run sweep Haiku × Sonnet × Opus per-subagent sweep
09 Production bun run stream "..." Streaming, retries, gated tool confirmations
10 Ship it bun run deploy Deploy as a Claude Managed Agent

Repo layout

example-agent/              The TypeScript project. Each chapter has a
                            matching src/0N-*.ts file.
  src/
    02-first-call.ts        Chapter 02
    03-tools.ts             Chapter 03
    04-skills.ts            Chapter 04
    05-decomposition.ts     Chapter 05
    06-memory.ts            Chapter 06
    08-rightmodel.ts        Chapter 08
    09-production.ts        Chapter 09
    10-managed-agent.ts     Chapter 10
    skills/
      conversion-copy.md
      hero-patterns.md
    shared/                 client, types, prompts
  evals/
    dataset.json            6 landing-page briefs
    grader.ts               programmatic + LLM-as-judge
    run.ts                  the eval runner

site/                       Source for the tutorial pages. The published
                            version is generated by build_onepager.py and
                            hosted on Leadpages — see the URL above.

build_onepager.py           Merges site/*.html into a single page for
                            publishing. Re-run + re-publish if the live page
                            expires (Leadpages Free plan = 7-day expiry).

serve.ts                    Tiny bun static server for previewing site/
                            locally: `bun serve.ts` → http://localhost:8765/

Cost

End-to-end the tutorial runs ~$2-5 in Claude API usage. Chapters 07 and 08 are the largest (eval set + model sweep). Chapter 02 alone is pennies.

License

Tutorial content provided as-is for learning. Source workshops at anthropics/cwc-workshops are Apache 2.0.

About

Code with Claude 2026 → Leadpage Creator: a 10-chapter tutorial that builds a real Claude agent end-to-end. Tutorial: https://edanisko-leadpages.pubhtml.com/vGcq2IRNn9

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors