AI Agent Workspace & Prompt Hygiene Starter Kit
Stop AI sessions from drifting with a clean 5-folder .md workspace, CLAUDE.md, and decision log.
See a real output ↓Tested in Claude & Cursor · Nov 2026
AI Agent Workspace & Prompt Hygiene Starter Kit
What this playbook solves: Stops Claude Code, Cursor, and ChatGPT sessions from drifting, forgetting settled decisions, or re-asking the same context every morning.
The 5-Folder Canonical Workspace Structure
project-root/
CLAUDE.md # <120 lines: hard rules, stack, commands, off-limits
CONTEXT.md # Current product state & active milestone (<80 lines)
DECISIONS.md # Append-only log of locked decisions (DEC-001...)
BACKLOG.md # Active tasks with exact deliverable paths & owners
docs/
specs/ # PRDs and feature specs
prompts/ # Reusable tested prompt/skill filesThe 6 Laws of Prompt Hygiene (Excerpt)
- Keep
CLAUDE.mdunder 120 lines — link deep specs by path instead of pasting them inline. - Separate verified facts from assumptions — tag estimates explicitly.
- One task = one deliverable file — always define inputs, output path, out-of-scope, and acceptance criteria.
Download the free .zip for the full playbook, ready-to-paste CLAUDE.md & DECISIONS.md templates, and a real filled-in workspace example.
Sample Output: Filled Workspace Setup — "PulseCheck" (2-Week Micro-SaaS)
CLAUDE.md (Actual Filled File — 34 Lines)
- Product: PulseCheck — lightweight uptime & SSL expiry monitor for indie Shopify agencies.
- Current Milestone: Week 1 Staging Build (monitor up to 25 URLs, Slack + email alerts).
- Stack: Next.js 15 (App Router), SQLite/Drizzle (staging), Tailwind CSS, Playwright.
- Commands:
pnpm dev|pnpm test|pnpm build. - Hard Boundaries:
- Zero paid external APIs in staging; use local mock webhook receiver for alert tests.
- No team RBAC, billing portal, or status pages in MVP (locked in
DEC-002).
- Definition of Done:
pnpm buildpasses with 0 TS errors + 1 Playwright happy-path test passes.
DECISIONS.md (Excerpt)
DEC-001 — Polling Cadence & Alert Channels
- Date: 2026-11-20
- Decided by: Founder
- Decision: Fixed 5-minute HTTP check cadence; Slack webhook + email alerts only.
- Out of Scope: SMS alerts, 30-second checks, custom multi-region probes.
- Rationale: Keeps infra cost under $15/mo while covering 90% of small agency needs.
Example Task Brief Sent to Cursor / Claude Code
- Goal: Implement the
/api/monitorsPOST endpoint with URL validation and SSRF protection. - Inputs to read first:
CLAUDE.md,DECISIONS.md,src/db/schema.ts. - Deliverable:
src/app/api/monitors/route.ts+ unit tests intests/monitors.test.ts. - Out of Scope: Do not touch auth middleware or UI components.
- Acceptance Criteria:
- Rejects non-HTTP(S) schemes and private IP ranges (
127.0.0.1,10.x,169.254.x). - Returns
400with structured JSON error on invalid URL. pnpm testpasses 100%.
- Rejects non-HTTP(S) schemes and private IP ranges (
AI Agent Workspace & Prompt Hygiene Playbook
Why Most AI Workspaces Drift After Day 3
When teams start using Claude Code, Cursor, or Claude Projects, context degrades fast: contradictory instructions pile up across chats, decisions live only in scrollback, and every new session re-explains the same constraints. This playbook gives you a clean, zero-dependency .md workspace architecture that keeps any AI agent grounded in under 10 minutes.
Phase 1: The 5-Folder Canonical Workspace Structure
Create this exact top-level folder structure inside any project or product repo:
project-root/
CLAUDE.md # (or .cursorrules) — <120 lines: hard rules, stack, commands, off-limits
CONTEXT.md # Current product state, target user, active milestone (<80 lines)
DECISIONS.md # Append-only log of locked decisions (DEC-001, DEC-002...)
BACKLOG.md # Active tasks with exact deliverable file paths & owners
docs/
specs/ # PRDs and feature specs (one file per release)
prompts/ # Reusable prompt/skill files tested on real workRule of Thumb: If a rule isn't written in CLAUDE.md or DECISIONS.md, assume the next AI session does not know it.
Phase 2: The 6 Laws of Prompt & Context Hygiene
- Keep
CLAUDE.mdUnder 120 Lines: Bloated instruction files dilute attention. Put architecture rules and hard boundaries inCLAUDE.md; move deep specs todocs/specs/and reference them by path. - Separate Facts from Assumptions: Never mix verified metrics with estimates in
CONTEXT.md. Tag estimates explicitly as(assumption). - One Task = One Deliverable File: Every prompt you give an agent should specify: (a) the exact input files to read, (b) the exact output file to write, (c) explicit Out-of-Scope boundaries, and (d) a Definition of Done checklist.
- Log Decisions Immediately: Whenever you choose a stack, pricing tier, or scope cut, append a 4-line
DEC-XXXentry toDECISIONS.mdwith Date, Decision, and Rationale. This prevents agents from re-litigating settled calls. - Reset Context Between Phases: Start a fresh chat/session when moving from Discovery -> Spec -> Implementation -> QA. Carry forward only the written
.mdartifacts, never 40 turns of messy brainstorm history. - Verify Before Declaring Done: Require every agent task to end with a concrete verification step (lint, build, schema check, or sample output diff).
Phase 3: The 4-Part Task Brief Formula (Copy-Paste)
Whenever delegating work to Claude, Cursor, or a subagent, use this exact brief:
**Goal:** [1 sentence naming the exact outcome]
**Inputs to read first:** [exact file paths]
**Deliverable:** [exact file path + format]
**Out of Scope:** [2–3 things NOT to touch]
**Acceptance Criteria:**
- [ ] Criterion 1
- [ ] Criterion 2Phase 4: Weekly 10-Minute Workspace Maintenance Checklist
- Prune completed items from
BACKLOG.mdto anArchivesection. - Confirm
CONTEXT.mdstill reflects the current milestone (<80 lines). - Verify every major decision from the week is logged in
DECISIONS.md. - Extract any prompt you ran twice into
docs/prompts/as a reusable.mdfile.
Who it's for
What it solves: Stops Claude Code, Cursor, and ChatGPT sessions from drifting, forgetting settled decisions, or re-asking the same context every morning.
- The complete .zip: the 5-folder workspace playbook, CLAUDE.md and decision-log templates, and a real filled-in example.
- PLAYBOOK.md — 4-phase AI workspace architecture & 6 laws of prompt hygiene
- examples/sample-output.md — Real filled workspace example for a 2-week micro-SaaS sprint
- templates/CLAUDE.md — Ready-to-use <120-line CLAUDE.md / .cursorrules starter
- templates/DECISIONS.md — Append-only decision log template
- Download & unzip dk-ai-agent-workspace-starter-kit-v1.0.0.zip
- Copy templates/CLAUDE.md into your repo root or upload to a Claude Project.
- Run it on a real input using the prompt in examples/
- Download & unzip dk-ai-agent-workspace-starter-kit-v1.0.0.zip
- Copy templates/CLAUDE.md as .cursorrules (or .cursor/rules/project.md) and start every sprint from DECISIONS.md.
- Run it on a real input using the prompt in examples/
- Download & unzip dk-ai-agent-workspace-starter-kit-v1.0.0.zip
- Upload CLAUDE.md and DECISIONS.md to your Custom GPT or Project files.
- Run it on a real input using the prompt in examples/
dk-ai-agent-workspace-starter-kit-v1.0.0.zip · 7 files · 6122 bytes · sha256 0c1dd528fefb1aec7323ec5c1533166cf9edc0ddaa07da273826489e48afa741
What AI tools does this work with?
Claude, Claude Code, Cursor, ChatGPT. Every file is plain Markdown, so there is nothing to install.
Can I use this for client projects?
The Individual Commercial License covers your own and your employer's work. Need multi-seat team licensing or custom kits? Reach us at [email protected].
Why is every kit free right now?
We are in Early Access to validate which kits teams use most before turning on paid checkout. All ${N_KITS} kits and ${N_BUNDLES} bundles are free until paid launch, and anything you download now is yours to keep. Enter your email to download any .zip immediately: no account or card required, and marketing opt-in is unchecked by default.
What license covers Early Access free downloads?
Every Early Access download includes our Individual Commercial License: unlimited internal, own-business, and employer work for one person, yours to keep after paid pricing launches. Reselling, redistributing, or publishing raw .md/.zip files is prohibited.