Recent Updates: Enhanced security protocols, development workflow automation, timing analytics, complete test infrastructure, and compatibility with Codex CLI 🎉
🚀 Protocols Only Lightweight |
⏱️ Protocols + Timer Medium |
📚 Full Setup Wizard Complete |
---|---|---|
Download MD-SESSION-PROTOCOLS-ONLY.md | Download MD-SESSION-PROTOCOLS-TIMER.zip | Download MD-CLAUDE-CODE-SETUP-WIZARD.md |
✅ Session start/end commands | ✅ Everything from Protocols Only | ✅ Everything from Timer Bundle |
✅ Security protocols | ✅ Session timing & analytics | ✅ 21-question interactive setup |
✅ Environment variable safety | ✅ Pre-push git hooks (npm run ci ) |
✅ Automated folder creation |
✅ Basic dev workflows | ✅ Ready-to-use folder structure | ✅ Technical mastery archive |
✅ Works with Claude Code & Codex | ✅ NEW: Complete test infrastructure | ✅ Searchable knowledge base |
✅ package.json + Vitest + sample tests | ✅ Perfect session handoffs | |
Best for: Quick session management | Best for: Teams wanting analytics + testing | Best for: Complete AI development setup |
As used to build Scribefully!
I came up with this wizard (in its various flavors) to help me build Scribefully (and several other projects I'm working on). Scribefully is a place for experts to create a beautiful portfolio of their best work -- articles, videos, code, podcasts, etc -- and share it in a Reddit-inspired community of other experts, thought leaders, academics, professionals, and creators.
💡 While the PROTOCOL file works great with Codex, I haven't test the SETUP file with Codex
USE AT YOUR OWN RISK - This project is provided "AS IS" without warranty of any kind, express or implied. The authors and contributors disclaim all warranties, including but not limited to:
- No Warranties: No warranties of merchantability, fitness for a particular purpose, or non-infringement
- No Liability: We are not liable for any damages, data loss, system failures, or other issues arising from use of this software
- User Responsibility: You assume full responsibility for testing, validation, and ensuring compatibility with your systems
- No Support Guarantee: No guarantee of maintenance, updates, or technical support
- Configuration Risk: Modifying system configurations may affect your development environment - backup your settings first
By using this software, you acknowledge that you understand these risks and agree to use it entirely at your own discretion and risk.
- 3-file active system (17KB total) - never exceeds context limits
- Bulletproof security -
.env*
file protection with honeypot testing - Session automation - automated start/end protocols with perfect handoffs
- Searchable archive - unlimited knowledge preservation without context impact
- Interactive setup - 21-question wizard customizes system for your project
- Environment Protection: Automatic
.env*
file protection with refusal to read secret files - Honeypot Testing: Creates
.env.honeypot
to test Claude's security behavior - Variable Safety: Server-only variables (
SUPABASE_SERVICE_ROLE_KEY
,RESEND_API_KEY
) stay server-side - Client Restrictions: Only
NEXT_PUBLIC_*
environment variables allowed in client code - Runtime Guards: Prevents accidental secret exposure in diffs, logs, or shell commands
npm run dev
- Start development server with hot reloadsnpm run test:watch
- Optional fast feedback with test re-runs on file changesnpm run ci
- Run full CI checks locally before push/PRnpm run dev:all
- Run both dev server and tests simultaneously
Note: Test infrastructure (package.json, Vitest configuration) included in Timer Bundle and generated by Setup Wizard. Protocols Only requires manual setup.
- Pre-push automation:
bash scripts/setup-git-hooks.sh
auto-runsnpm run ci
before push - Intelligent commits: Session-end commits with structured messages
- Branch safety: Respects your repository's branch and deployment rules
Track development time across Claude sessions with built-in analytics:
- Start:
node scripts/session-timer.js start
- End:
node scripts/session-timer.js end
- Status:
node scripts/session-timer.js status
- Summary:
node scripts/session-timer.js summary
- Per-session meta:
MD-ACTIVE/.session-meta.json
- Cumulative log:
MD-ARCHIVE/reference/SESSION-TIMES.json
- Human summary:
MD-ARCHIVE/reference/SESSION-TIMES.md
- Session durations automatically added to bookmarks and changelogs
- No external dependencies - pure Node.js
- Works with both local development and CI/CD workflows
- Install Claude code using
npm install -g @anthropic-ai/claude-code
- Intialize as always with
/init
- Download MD-CLAUDE-CODE-SETUP-WIZARD.md
- Tell Claude:
"Run @md-claude-code-setup-wizard.md"
- Answer 21 setup questions
- Start working:
"read @MD-ACTIVE/"
then"session start"
Session start: "read @MD-ACTIVE/ then initiate session start protocols per @MD-SESSION-PROTOCOL.md
- Did it explicitly echo back the security instructions re: .envs and other secrets? If not, ask it to do so.
- You may need to manually fetch/pull the latest version to update your local reop.
Session end: initiate session end protocols per @MD-SESSION-PROTOCOL.md
Session Start Process:
- Claude acknowledges security: "I will not open or read any
.env*
files. I will reference env by NAME only." - Claude reads MD-SESSION-PROTOCOL.md, latest session bookmark, and CHANGELOG-CURRENT.md in parallel
- Claude echoes back: working relationship (CEO/CTO dynamics), current platform status, and today's priorities
- Claude creates TodoWrite list from bookmark priorities
- Claude auto-activates Technical Mastery Reference (ready for automatic searches)
- Claude begins work on first task immediately
Session End Process:
- Claude updates CHANGELOG-CURRENT.md if new version exists
- Claude syncs changes to CHANGELOG-FULL.md in archive
- Claude creates new session bookmark with big-picture summary (✅ COMPLETED, 🔄 IN PROGRESS, 🚫 BLOCKED)
- Claude archives previous bookmark to MD-ARCHIVE/bookmarks/
- Claude updates Technical Mastery Reference with new debugging patterns learned
- Claude asks: "Ready to commit and deploy? (y/n)"
- If yes: Claude commits with intelligent message format and pushes to main
- Claude confirms: "Session complete: [commit message] → deployed. Ready for next."
- Automatic
.env*
file protection - Creates
.env.honeypot
for testing Claude's refusal behavior - Environment variable safety protocols (server vs client)
- Runtime guards prevent accidental secret exposure
- Keeps a running "CHANGELOG.md" in MD-ARCHIVE updated at every session end
- Keeps a truncated "CHANGELOG-CURRENT.md" in MD-ACTIVE ~300 lines long
- If created, will update a "technical mastery" MD file in MD-ARCHIVE to learn as you go
- Prompts whether to push/commit/deploy all changes at session end
Claude Code sessions fail when documentation exceeds context limits. This system:
- Maintains 17KB active context (67% reduction from typical setups)
- Preserves complete project history in searchable archive
- Prevents session auto-compacting that loses critical information
- Enables perfect handoffs between sessions
This software is provided "AS IS" without warranty. Users assume full responsibility for testing and ensuring compatibility with their systems. Backup your settings before use.