WSJ Prime7.00%▬ unchSOFR3.90%▲ +1 bpsFed Funds Target4.00%▬ unch10-Yr Treasury5.10%▼ -11 bpsDiesel, retail$6.127▼ -7¢Bank C&I Lending$2,993B▲ +1.14%
Apply
Apply

Front Page › Markets & Main Street › Small Business

AI Hacks and Tips

Rebuild a $2,000 feature in 20 minutes: the one-file kit

Rebuild a $2,000 feature in 20 minutes: the one-file kit

Apply

Code editor displaying a portable markdown build pack file for AI feature replication across websites
A single markdown build pack contains the code and AI instructions needed to rebuild a working feature on a new site.

"Can we get the same blog on the new site?"

You paid for that feature once. It works. And now it's stuck inside one website.

Here's the one rule that gets it out: don't copy the folder. Package the feature into a build pack. That's a single Markdown file with instructions for an AI at the top, and every source file underneath, embedded byte for byte between marker lines.

The math on rebuilding

Say a contractor quotes 20 hours at $100 an hour to rebuild your blog on the second site. That's $2,000. The pack route is one prompt, about 20 minutes of AI time, and an hour of you checking the result. Even if the AI's rebuild needs a $300 cleanup, you're still about 85% under the quote.

We did it with the blog engine behind this notebook: 30 files, one 226 KB pack.

Prompt 1: package the feature

Paste this into Claude Code, Cursor, or any AI tool that has access to your project files:

I want you to package one working feature of my project into a single portable Markdown file — a "build pack" — that I can hand to another AI in a different project and say "build this." Before you touch anything, ask me these three questions and wait for my answers: 1. Which feature am I packaging, and where does the project live on this machine? 2. What is the feature's boundary — is there anything bundled with it that is specific to THIS project and should not travel? 3. Is there anything that must never leave: API keys, credentials, client names, real customer data, private business logic? Once I've answered, do this: STEP 1 — MAP IT Find every file the feature actually needs to run: server code, front end, admin screens, config, dependency manifests, any local preview or dev harness. List them for me with a one-line description each, and call out anything you're unsure belongs. Wait for my okay. STEP 2 — WRITE THE HEADER At the top of the new file, write instructions addressed to the AI who will receive this pack: - What the feature is and what it does, in plain language - The full feature list, so nothing gets quietly dropped in the rebuild - Install steps: extraction, dependencies, environment variables, where each piece is meant to be deployed - A rethemeing instruction: every brand name, domain, color, logo and piece of sample content from the original must be replaced with the target project's, and the AI must grep for leftovers before declaring it finished - One discovery question the receiving AI should ask its user before starting (topic, branding, or business context) STEP 3 — EMBED THE SOURCE Below the header, append every file from Step 1 in a stable order, each wrapped exactly like this: ===== FILE: relative/path/to/file.js ===== <the entire file contents, unmodified> ===== END FILE ===== Before you write anything, confirm no source file already contains that marker string. Preserve trailing newlines. Do not reformat, minify, or "improve" any file on the way in. STEP 4 — VERIFY, DON'T ASSUME Do all three of these and show me the results: a) Extract the pack into a fresh empty folder and diff it byte-for-byte against the original files. It must be identical. b) Install dependencies in that fresh folder and start the app. c) Hit the main routes and confirm they work — not just the home page. Pick a real, representative page, not a nav stub. Then report back: file count, pack size, and anything you deliberately left out of the pack and why.

Prompt 2: rebuild it somewhere else

Attach the pack file in the new project and send this:

Attached is a build pack: an instruction header followed by every source file embedded between "===== FILE: =====" markers. Read the header first. Ask me the discovery question it tells you to ask. Then extract every file, wire it into this project, retheme all of it to this project's brand and content, and verify it runs before you tell me it's done. Grep for any leftover names, domains, or sample content from the original project and clean them out.

Or extract the files yourself with this Node one-liner:

node -e 'const fs=require("fs"),path=require("path");const src=fs.readFileSync(process.argv[1],"utf8");const re=/^===== FILE: (.+?) =====\n([\s\S]*?)===== END FILE =====$/gm;let m,n=0;while((m=re.exec(src))){const p=path.join(process.argv[2],m[1]);fs.mkdirSync(path.dirname(p),{recursive:true});fs.writeFileSync(p,m[2]);n++}console.log("extracted",n)' ./BLOG-KIT.md ./my-new-project

Where it goes wrong

  1. The boundary. AI tends to pack too much. Cut the Step 1 file list down to the engine.

  2. Secrets riding along. Config files carry keys. Search the pack for "key," "secret" and your domain before you send it anywhere. OWASP's secrets cheat sheet covers what to strip.

  3. Fake verification. Our first smoke test checked a nav page, not a real article, and reported a pass. Make the AI name the exact page it tested.

  4. Half-rethemed output. Search for your old brand name yourself. It takes ten seconds.

The blog this pack came from is also available as a from-scratch prompt: add a blog and admin content system.

Questions readers actually ask

What is an AI build pack?

One Markdown file: install instructions on top, verbatim source files below.

How do I keep API keys out of it?

Tell the AI what must never leave before it starts (question 3 in the prompt). Then search the finished file yourself.

More from AI Hacks and Tips

The series →

$2,400 A year to press "publish"? Build your own blog

Small Business · Aug 4

40 Users, 1 bug, 0 form reports: let the chat file it

Small Business · Aug 2

AI read the MCA contract. It missed the 126% APR.

Merchant Cash Advances · Jul 31

More in Markets & Main Street

All →

Golfzon Holdings (121440): Four Demands Seek About 250 Billion Won Returned by November 10

From Wall Street · Nov 6

Cheesecake Factory (CAKE): A Short Seller Maps 21% Downside to an $89-$92 Gap

From Wall Street · Nov 6

A.k.a. Brands (AKA): U.S. Sales Rebound 14% While the Profit Plan Gets Cut

From Wall Street · Nov 6
From MCAFax

Funding estimate

Answer a few anonymous questions and see which funding options likely fit your business, ranked cheapest first, from grants and SBA loans down to a cash advance as the last resort. No credit check. MCAFax is not a lender.

Get my estimate

An estimate, not an offer or an approval. MCAFax is not a lender.