Build Packs
    Claude Code
    Intermediate

    ContractManager

    a local contract desk: client crm, ai drafts in your brand, lawyer review, e-signature and renewals

    Cover art for the ContractManager Build Pack
    Setup 45-60 minutes; the 15 prompts across three or four evenings
    Free OpenRouter models to start, $10 credit when contracts go to real clients; SignuDoc and Twenty are free and self-hosted
    15 prompts
    v0.2.0
    claude-code
    next.js
    postgres
    docker
    pdf-lib

    Build a local contract desk with Claude Code: a client CRM, an interview that drafts each contract in your brand, a lawyer-review gate, e-signature through your own SignuDoc desk, a ledger of signed terms, and renewal drafts before anything expires.

    What you build

    PartWhat it isWhat it does
    MemoryPostgres with guardsClients, contract versions, reviews, envelopes and signed terms; history never edited
    BrainThe drafting loopInterview answers plus your Brand Pack become a branded draft; you redraft until you mark one final
    GateLawyer reviewA review packet in your outbox; Send stays locked until an approval or a typed reason to skip
    HandsE-signature socketSends through your SignuDoc desk or a demo that signs by itself; signed webhooks update the status
    EyesDashboard and ledgerWho signed what, on which terms, and what expires next, with renewal drafts ready

    Where this comes from

    Most small businesses keep their contracts in a folder of Word files. Nobody can say which client signed which version, what the terms were last spring, or what expires next month. ContractManager is a local contract desk you build yourself with Claude Code, one prompt at a time. It ties together three other AI Auto Base packs: Brand Pack Studio for the look and the company story, E-Signature Desk (SignuDoc) for signing, and 20crm (Twenty) for clients. All three are optional. The app checks for them, recommends the ones you are missing, and works without them through demo sockets.

    What you build

    A Next.js app with Postgres in Docker, on your own machine. It has a client CRM, an interview with the questions each contract type needs (service agreement, monthly retainer, mutual NDA, independent contractor, change order), a drafting loop where the model writes and you redraft until you mark a version final, a branded PDF for every version, a lawyer-review packet written to an outbox, sending for signature, a ledger of every signed term, and a daily scan that drafts renewals before anything runs out.

    The rule that never bends: the AI drafts and explains; a person approves every contract before it is sent. Nothing goes to a client unless a lawyer review is on record or you typed a reason to skip it. Postgres enforces that, not only the screen.

    What it deliberately does not do: give legal advice, claim a contract is valid, send email (messages land in an outbox folder), take payments, or run on the open internet without a login. Every draft says it was generated with AI assistance and is not legal advice.

    Do you need this? Be honest first

    This is for you if you send the same kinds of contracts over and over and lose track of renewals, and you are willing to run a small app on your own machine. If you send two contracts a year, a template and a calendar reminder will do. If your contracts carry real legal risk, the app helps you prepare them for a lawyer. It does not replace one.

    What you need

    • The machine. A laptop with Docker for the build. To keep the renewal scan running every day, a Mac mini at the office or a small VPS that you reach over an SSH tunnel.
    • The accounts. Claude Code (Pro or higher) and an OpenRouter key. The free models are enough for the whole lesson. Ollama works too if you want everything local.
    • Optional companions. Brand Pack Studio, E-Signature Desk and 20crm, all free AI Auto Base Build Packs.
    • The time. Setup takes 45 to 60 minutes, then the 15 prompts take three or four evenings.

    What is in the zip

    contract-manager/
      README.md         the lesson: what you build, hosting, accounts, the prompts
      index.html        the clickable guide, with copy buttons and a progress bar
      COSTS.md          every cost, with the date it was read
      CREDITS.md        where it comes from, what was verified and what was not
      DISCLAIMER.md     as is, no warranty, your keys and costs
      paths/            clean-machine setup: Windows (WSL2), Mac, Linux (Omarchy)
      prompts/          00 to 14, from the project brief to tests and the smoke script
      assets/cover.png
    

    What was verified and what was not

    Distributed as is. This is a proof of concept. Two review passes by a second model (Codex) were applied. All 15 prompts were then run in order, unattended, by Claude Code on a clean Linux user with Docker, one fresh session per prompt. Fourteen passed every check. Prompt 02 reported a failure only because port 3100 was already taken on that machine; the app moved to 3101 and every later prompt passed, including the demo seed and the smoke script. The whole run was recorded. The guide was driven in a real browser: tabs, progress bar, saved progress and copy buttons. Every file was scanned for keys and private data before the zip was built.

    Not verified: the three setup paths as written (the run machine was set up by script), a run on a free model (the recorded run used a paid one), and the SignuDoc and Twenty sockets against live instances. Contract text drafted by the model always needs a human read. If something breaks, paste the full error into Claude Code and ask it to fix it, then post what broke in the community.

    Read the prompt before you run it

    Hand each prompt to Claude first and ask what it plans to do, then compare that with the prompt. Fixing a prompt costs a minute. A contract that went out with the wrong price costs a lot more.

    Join the live builds: AI Automations by Hector, $9/month, at skool.com/ai-automations-by-hector-8106.

    Created by Hector Diaz, founder of Orbix Automation Solutions.

    More packs