跳到正文
DEV Community· Nathan Falter·· 7 小時前AI 評分60

Nathan Falter 製作免費 Claude Code CLAUDE.md 生成器

I made a free CLAUDE.md builder for Claude Code

AI 導讀

Nathan Falter 製作了免費的 Claude Code CLAUDE.md 生成器(https://devpodo.github.io/claude-md-builder/),可按技術棧預設、命令、資料夾結構和規則建立檔案。

正文

Nathan Falter

Claude Code reads CLAUDE.md at the start of every session, and most of mine started as the same copy-paste with the project details swapped. So I made a small page that writes it for you:

https://devpodo.github.io/claude-md-builder/

Pick a stack preset (Next.js + Supabase, Vite + React, Express, FastAPI, static HTML, or your own), adjust the commands and folder layout, tick the rules you want, and copy or download the result.

What ends up in the file

  • Stack and commands: dev server and URL, typecheck, tests, and the production build the host actually runs.
  • Layout: path - what's there, one per line, turned into a list Claude can navigate by.
  • Rules you can toggle:
    • work on a branch, never push to the deploy branch unless asked
    • never commit .env files; new env vars go in .env.example
    • no new dependencies for things the platform already does
    • run typecheck and tests before calling a change done
    • after UI changes, load the page, check the console, look at desktop and mobile
    • plain copy: no marketing filler, emoji headings or invented numbers
  • Gotchas: the things that have bitten you before.
  • Unattended runs (optional): rules for claude -p and overnight jobs. Never stop to ask, log decisions to RUN-LOG.md, and never deploy, delete, send or spend while you're away.

A second tab gives the settings.json block for a PreToolUse guard hook that blocks rm -rf /, force-pushes to main, git reset --hard and DROP TABLE before they run.

How it's built

One HTML file, vanilla JS, no build step, no dependencies, no analytics. Everything runs in your browser and nothing you type leaves the page. Source: https://github.com/DevPodo/claude-md-builder (MIT).

If there's a rule you always add to your CLAUDE.md that isn't in the list, tell me in the comments and I'll add it.

來源:DEV Community · dev.to