← Back to library

Ask an agent for a family investment plan, then grade it

Over several sessions, Matt Stockton fed Claude Code his family's brokerage CSVs with goals and constraints. It flagged overweight categories, poor tax placement and fund swaps worth considering, and a self-critique prompt scored the plan and surfaced a missed issue.

  • OutcomeGet a phased plan for your accounts covering allocation drift, fund placement and one-time tax costs, which you then refine and check.
  • SetupAn afternoon+
  • LevelIntermediate
  • CreditMatt Stockton
View original
Works with
Claude CodeClaude

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • Your accounts are spread across types and nobody looks at the whole
  • You want a plan to discuss with an advisor
  • You can export holdings

Not for: Executing trades from it; Replacing professional advice for complex situations

What do you need, and what do you get?

You need

  • Brokerage CSV exports
  • Goals and constraints
  • Target allocation ideas

You get

  • Current versus target allocation grids
  • Phased action list
  • Estimated tax impact

How does it work, step by step?

  1. Load the exportsGive it every account's holdings with account type.
  2. State goalsDescribe horizon, risk and any constraints.
  3. Get a first planAsk for drift, placement issues and candidate swaps.
  4. Refine togetherCorrect assumptions and ask it to update every table.
  5. Ask for a self-critiqueHave it score the plan and list improvements, then verify.

The prompt

Our own prompt, inspired by Matt Stockton and written to work in Claude Code and Claude. Values in lime are placeholders.

Prompt0 variables
Here are CSV exports of our brokerage and retirement accounts, plus our goals: [goals]. Build a summary of current allocation by asset class and account type, compare it with [target], and list issues such as overweights, tax placement and high-fee funds. Propose a phased plan with estimated one-time tax costs. Then rate your own plan from 1 to 10 and list what you would change. Do not recommend specific trades as instructions; present options.

Inspired by Matt Stockton: How I Built a Portfolio Optimization Plan with Claude Code. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Fund data such as fees and ratings can be stale; check before acting.
  • Tax estimates are rough; confirm with a professional.

Our take

The self-critique prompt is the standout trick: asking for a score and changes surfaced an issue hiding in plain sight. Working over several sessions, like an analyst who returns, beats one-shot advice. Matt's process is a good template for anyone whose accounts are spread across several types and never looked at together. Give it every holding with its account type, state goals and constraints plainly, and expect to correct assumptions over a few sessions rather than accepting the first plan. The self-critique step deserves a place in any similar analysis; asking the agent to score its own plan and list what it would change is cheap and catches things you would otherwise miss. Treat fund details such as fees and ratings as possibly stale and check them before acting. Tax estimates are rough, so confirm them with a professional, especially for placement moves between account types. The output is a plan to discuss with an advisor or your partner, not a set of trades to execute.

Where the time goes back: Pulling several accounts into one analysis, usually an evening of spreadsheets, becomes a guided conversation.

FAQ

Why ask it to grade itself?
The author's self-critique request surfaced the biggest improvement.
Is this financial advice?
No; it is a working draft you check and decide on.

Source and credit

Inspired by Matt Stockton. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
How I Built a Portfolio Optimization Plan with Claude Code
Creator
Matt Stockton
Published on
Matt Stockton
Original date
Feb 10, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Money & Admin

All 82 Money & Admin playbooks →

Related playbooks

Money & AdminWorkflow✓ AI dry run

Match apartment defects to the housing code before filing

A documented list of your apartment's problems, each tied to the code section it breaks and the building's public violation history, ready for complaints you file yourself.

Credit: Argona0x (@Argona0x)

An afternoon+
Money & AdminWorkflow✓ AI dry run

Prepare your side of a tax dispute with three Claude tools

Understand an IRS case from the court portal, check your records against the credit's rules, and send the agency's lawyer a settlement letter backed by one merged evidence file.

Credit: Thetangstr

Under an hour
Money & AdminWorkflow✓ AI dry run

Research a purchase down to delivered price and codes

Have agents compare a product across shops with real shipping, tested coupon codes, price history and owner reviews before you buy.

Credit: u/zawaer on r/SideProject

An afternoon+