njt2810/claude-code-framework/careful
Claude Code and agent skill by njt2810/claude-code-framework
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
TRIGGER when: the user wants to enter "careful mode" for risky work (auth, payments, migrations, PII, production deploys), or says "be careful here", "this is risky", "extra caution". DO NOT TRIGGER when: the user is doing routine work — careful mode adds friction.
Install
npx vskill@latest install njt2810/claude-code-framework/carefulSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as njt2810/claude-code-framework/careful.
Careful Mode
When to Use
Toggle the project into "careful mode" for high-stakes work. Adds extra confirmations, slows down destructive operations, and brings in extra review passes.
Lead Engineer Guidance — Why This Matters
Most code changes are routine — small risk, fast iteration is fine. But some changes are NOT routine:
- Database migrations (esp. destructive)
- Authentication code
- Payment processing code
- PII handling
- Production deploys
- Anything affecting paying clients' data
For these, the cost of a mistake is much higher than the cost of friction. Careful mode adds the friction proportional to the stakes.
Run `/careful` BEFORE starting risky work. Run /unfreeze to exit.
Sibling skills:
/guard— even higher caution (touches CRITICAL systems)/freeze— read-only mode (no writes at all to specific paths)/unfreeze— return to normal mode
Procedure
Step 1 — Determine Scope
Ask the user (or accept argument):
- What are you about to do? (one-line)
- Which paths/files does it affect? (optional)
Step 2 — Set Mode
Write to .claude/state/mode.json (create directory if missing):
Add .claude/state/ to .gitignore if not already there.
Step 3 — Apply Careful Mode Rules
While in careful mode, the following apply:
- Confirm before destructive operations:
- Before
git push --force,git reset --hard,rm -rf→ require explicit "yes confirm" - Before
DROP TABLE,DROP COLUMN,TRUNCATE→ require explicit confirmation + verify backup exists - Before deploy to production → require triple confirmation
- Auto-delegate review:
- Every code change touching the scope paths → auto-delegate to Code Reviewer
- If touching auth/payments/PII → also auto-delegate to Security Auditor + Compliance Officer
- Two-attempt limit instead of three:
- In normal mode, /bug-fix allows 2 attempts then STOPs
- In careful mode, ONLY 1 attempt — then stop and reassess
- No background commands:
- All commands run in foreground with real-time reporting
- Pre-commit smoke tests:
- Run a fast smoke test before every commit (auth check, schema check, etc.)
- Audit log enrichment:
- All actions during careful mode logged with "careful-mode" tag
Step 4 — Announce Mode
Pitfalls
- Forgetting to /unfreeze — careful mode persists into routine work, frustration
- Entering careful mode without naming the scope — vague guards = ignored guards
- Using careful mode for everything — it becomes background noise, loses signal
- Not pairing with /pr — careful mode doesn't replace code review
Verification
.claude/state/mode.jsonwritten with mode = "careful"- Scope and paths captured
- User informed of what changes in this mode
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/careful/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/njt2810/claude-code-framework/careful)