惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
H
Help Net Security
Recorded Future
Recorded Future
The Register - Security
The Register - Security
F
Full Disclosure
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
Security Archives - TechRepublic
Security Archives - TechRepublic
Simon Willison's Weblog
Simon Willison's Weblog
Cisco Talos Blog
Cisco Talos Blog
I
InfoQ
T
Tenable Blog
T
Tor Project blog
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
NISL@THU
NISL@THU
Google DeepMind News
Google DeepMind News
博客园 - 叶小钗
B
Blog
V
V2EX
Jina AI
Jina AI
L
LangChain Blog
月光博客
月光博客
W
WeLiveSecurity
U
Unit 42
AWS News Blog
AWS News Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园 - 聂微东
V
Visual Studio Blog
A
Arctic Wolf
T
Tailwind CSS Blog
The Cloudflare Blog
SecWiki News
SecWiki News
S
SegmentFault 最新的问题
Hacker News - Newest:
Hacker News - Newest: "LLM"
宝玉的分享
宝玉的分享
MyScale Blog
MyScale Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Securelist
www.infosecurity-magazine.com
www.infosecurity-magazine.com
腾讯CDC
雷峰网
雷峰网

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
A Better CLAUDE.md Template for SaaS Founders
Eli A · 2026-05-21 · via DEV Community

Your AI coding agent needs product reality, not only repo commands. Here is a practical CLAUDE.md template for SaaS founders using Claude Code.

Most CLAUDE.md files start with the repo.

They explain:

- Use pnpm.
- Run tests before committing.
- Components live in /components.
- API routes live in /app/api.
- Follow TypeScript strict mode.

Enter fullscreen mode Exit fullscreen mode

That is useful.

It is also incomplete.

For a SaaS founder, the biggest risk is not that Claude Code forgets the test command. The bigger risk is that the agent builds the wrong product surface because the product context is missing.

A coding agent can follow repo rules and still create:

  • dashboards before activation works
  • team roles before the solo workflow is validated
  • integrations before retention is proven
  • pricing pages before willingness to pay is understood
  • admin panels before the first customer exists
  • generic SaaS bloat around a weak wedge

The issue is not coding quality.
The issue is missing product memory.

Claude Code’s memory system is designed to keep project context available across sessions through files such as CLAUDE.md. Anthropic’s docs describe this as project memory, and Claude Code also supports hooks, skills, subagents, and other extension points for more advanced workflows. (Claude Code)

The founder mistake is treating memory as only engineering instructions.

A better CLAUDE.md starts with product reality.


The mental model

Think of CLAUDE.md as two files in one:

Product Memory
  +
Engineering Memory

Enter fullscreen mode Exit fullscreen mode

Engineering memory tells Claude how the repo works.

Product memory tells Claude what the product is trying to prove.

Both matter.

Without engineering memory, the agent may break conventions.
Without product memory, the agent may build the wrong thing correctly.


The structure I recommend

Use this order:

1. Product Reality
2. Current Bet
3. Must Build / Must Not Build
4. Evidence Goal
5. Engineering Rules
6. Safety Boundaries
7. Required Workflow

Enter fullscreen mode Exit fullscreen mode

A founder-friendly CLAUDE.md should be short enough to be read often and specific enough to shape behavior.


Template: product-aware CLAUDE.md

# CLAUDE.md

## 1. Product Reality

We are building [PRODUCT] for [SPECIFIC CUSTOMER] because [PAIN / JOB] is frequent, costly, or urgent enough to justify switching or paying.

Current stage:
- [idea / prototype / MVP / post-MVP / growth]

Reality envelope:
- [bootstrap SaaS / VC-scale startup / internal tool / side project / agency spinout]

Primary user:
- [who uses it]

Economic buyer:
- [who pays or approves]

Current alternative:
- [spreadsheet / manual work / agency / incumbent tool / internal process]

Geography or market scope:
- [local / national / global / regulated market / specific region]

Enter fullscreen mode Exit fullscreen mode

This first block prevents the agent from assuming every SaaS is the same.

A bootstrap B2B SaaS for consultants should not be built like a VC-backed enterprise platform. A local regulated workflow should not be built like a global self-serve productivity app.


2. Current Bet

## 2. Current Bet

The current wedge is:
- [one narrow workflow or use case]

The next release must prove:
- [one critical assumption]

The product should optimize for:
- [activation / willingness to pay / retention / workflow completion / demo conversion / first-value moment]

The product should not optimize for yet:
- [scale / enterprise features / deep integrations / automation depth / multi-segment support]

Enter fullscreen mode Exit fullscreen mode

This turns the build into a learning system.

Without this section, Claude may optimize for “complete SaaS app.” That usually means more screens, more settings, more generic features.

The right early product is not the most complete version.

It is the smallest version that can test the current bet.


3. Must Build / Must Not Build

## 3. Must Build Now

- [Core onboarding step]
- [First-value workflow]
- [Critical data model]
- [Activation event tracking]
- [Basic error states]
- [One testable user journey]

## 4. Must Not Build Yet

- Do not add team management unless explicitly requested.
- Do not add role-based permissions beyond the current release scope.
- Do not add integrations before the core workflow is validated.
- Do not add advanced analytics before activation is proven.
- Do not create admin dashboards unless required by the approved task.
- Do not expand to additional ICPs.
- Do not add new pricing tiers without approval.

Enter fullscreen mode Exit fullscreen mode

The Must Not Build Yet section is often more valuable than the Must Build section.

AI agents are good at completing patterns. “SaaS app” is a pattern. The agent may infer billing pages, settings, teams, notifications, analytics, dashboards, and exports.

That can be useful later.

Early, it can bury the wedge.


4. Evidence Goal

## 5. Evidence Goal

This release should help us learn whether:

- [specific user] can reach [specific value] without founder help.
- [buyer] understands why this product is worth paying for.
- [workflow] is frequent enough to support retention.
- [pricing hypothesis] is plausible.
- [technical approach] can deliver value at acceptable cost.

Primary success signal:
- [one measurable signal]

Secondary signal:
- [one backup signal]

Kill or pivot trigger:
- [what would make us change direction]

Enter fullscreen mode Exit fullscreen mode

This is the part most technical instructions omit.

But it is essential for SaaS founders.

The product is not only a code artifact. It is a test of a market assumption.

A tool like Gaplyze’s product validation and roadmap workspace is useful before writing this section because the founder needs to clarify the ICP, wedge, monetization hypothesis, must-not-build boundaries, and first evidence loop before those constraints are handed to Claude Code.


5. Engineering Rules

Now add the repo details.

## 6. Engineering Rules

Stack:
- Framework:
- Language:
- Database:
- Auth:
- Payments:
- Hosting:
- Styling:
- Testing:

Important directories:
- /app:
- /components:
- /lib:
- /db:
- /tests:

Commands:
- Install:
- Typecheck:
- Lint:
- Unit tests:
- E2E tests:
- Build:

Enter fullscreen mode Exit fullscreen mode

Keep this concrete.

Do not write vague rules like:

Write clean code.
Follow best practices.
Make it scalable.

Enter fullscreen mode Exit fullscreen mode

Those are too broad.

Write rules that affect actual decisions:

Prefer server actions for simple mutations.
Use existing UI primitives before adding new components.
Do not introduce new dependencies without explaining the tradeoff.
All customer-visible flows need loading, empty, success, and error states.

Enter fullscreen mode Exit fullscreen mode


6. Safety Boundaries

Claude Code hooks can provide deterministic control by running shell commands at specific lifecycle points, which is different from simply hoping the model remembers a rule. Anthropic’s docs describe hooks as a way to enforce project rules, automate repetitive tasks, and integrate with existing tools. (Claude Code)

So do not rely on CLAUDE.md for everything.

Use memory for context.

Use hooks, permissions, CI, and reviews for enforcement.

Still, the safety section should be explicit:

## 7. Safety Boundaries

Never do the following without explicit approval:

- Modify production database migrations.
- Run destructive database commands.
- Change billing or Stripe logic.
- Alter authentication or authorization behavior.
- Add new environment variables.
- Add new third-party services.
- Change pricing, plan limits, or quota logic.
- Store sensitive data in logs.
- Remove tests to make a build pass.

Enter fullscreen mode Exit fullscreen mode

This section is especially important for SaaS products because early mistakes in auth, billing, tenant isolation, and data handling can become expensive quickly.


7. Required Workflow

## 8. Required Workflow

For any non-trivial change:

1. Read the Product Reality and Current Bet sections.
2. Restate the relevant product constraint.
3. Inspect the relevant files before planning.
4. Propose a short plan.
5. Identify risks and tests.
6. Wait for approval before broad changes.
7. Implement the smallest approved slice.
8. Run required checks.
9. Summarize what changed, what was not changed, and what should be tested manually.

Enter fullscreen mode Exit fullscreen mode

This workflow makes the agent slower at the start and faster overall.

It prevents the common failure mode where the agent begins editing before it understands the product boundary.


A compact full version

Here is the shorter version you can actually paste into a repo and adapt.

# CLAUDE.md

## Product Reality

We are building [PRODUCT] for [SPECIFIC CUSTOMER] because [PAIN] is frequent, costly, or urgent.

Stage:
[idea / prototype / MVP / post-MVP / growth]

Reality envelope:
[bootstrap SaaS / VC-scale startup / internal product / side project]

Primary user:
[...]

Economic buyer:
[...]

Current alternative:
[...]

## Current Bet

Current wedge:
[...]

This release must prove:
[...]

Optimize for:
[...]

Do not optimize for yet:
[...]

## Must Build Now

- [...]
- [...]
- [...]

## Must Not Build Yet

- Do not add team management unless explicitly requested.
- Do not add integrations before the core workflow is validated.
- Do not add advanced analytics before activation is proven.
- Do not expand to additional ICPs.
- Do not change pricing or plan logic without approval.

## Evidence Goal

Primary success signal:
[...]

Secondary signal:
[...]

Kill or pivot trigger:
[...]

## Engineering Rules

Stack:
- Framework:
- Language:
- Database:
- Auth:
- Payments:
- Styling:

Commands:
- Typecheck:
- Lint:
- Test:
- E2E:
- Build:

Architecture rules:
- [...]
- [...]
- [...]

## Safety Boundaries

Never do without approval:
- Modify migrations.
- Run destructive DB commands.
- Change billing logic.
- Change auth/authorization behavior.
- Add dependencies.
- Add environment variables.
- Remove tests to make checks pass.

## Required Workflow

For non-trivial work:
1. Restate the product constraint.
2. Inspect before planning.
3. Propose a plan.
4. Identify risks and tests.
5. Implement only the approved slice.
6. Run checks.
7. Summarize changes and verification.

Enter fullscreen mode Exit fullscreen mode


What should not go into CLAUDE.md

Do not turn this file into a dumping ground.

Avoid:

  • full PRDs
  • long market research reports
  • giant competitor tables
  • every customer quote
  • every roadmap item
  • every design-system token
  • every security policy
  • every possible architecture decision

Large, noisy memory files can make the agent less focused.

Put repeatable workflows into skills. Claude Code supports skills as reusable capabilities, and its broader extension system includes subagents, hooks, and MCP servers for more specialized work. (Claude Code)

Use separate docs when needed:

CLAUDE.md                  core product + engineering memory
docs/product/strategy.md   deeper product context
docs/roadmap/current.md    active roadmap slice
docs/security/rules.md     deeper security rules
docs/testing/e2e.md        Playwright journey guidance

Enter fullscreen mode Exit fullscreen mode

The CLAUDE.md file should point to the right context, not contain everything.


A better first prompt after adding CLAUDE.md

After creating the file, do not immediately ask Claude to build.

Start with calibration:

Read CLAUDE.md.

Do not edit code yet.

Summarize:
1. the target customer,
2. the current wedge,
3. the must-not-build constraints,
4. the evidence goal,
5. the engineering safety boundaries.

Then identify any contradictions or missing details that would affect the next implementation task.

Enter fullscreen mode Exit fullscreen mode

This turns memory into an active contract.


The core idea

A good CLAUDE.md is not just a codebase instruction file.

For SaaS founders, it is an alignment file.

It aligns:

customer
  → wedge
  → evidence goal
  → product scope
  → engineering rules
  → safety boundaries

Enter fullscreen mode Exit fullscreen mode

When that alignment is missing, AI coding agents make it easier to build a product that looks complete but teaches the founder very little.

When the alignment is present, Claude Code becomes much more useful because it is executing inside a real product frame.

Build memory before building features.