njt2810/claude-code-framework/careful

Claude Code and agent skill by njt2810/claude-code-framework

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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/careful

Semi-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):

json
{
"mode": "careful",
"scope": "{user description}",
"paths": ["..."],
"entered_at": "{ISO timestamp}",
"entered_by": "{user}",
"expected_duration": "{user estimate or 'until /unfreeze'}"
}

Add .claude/state/ to .gitignore if not already there.

Step 3 — Apply Careful Mode Rules

While in careful mode, the following apply:

  1. 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
  1. 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
  1. 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
  1. No background commands:
  • All commands run in foreground with real-time reporting
  1. Pre-commit smoke tests:
  • Run a fast smoke test before every commit (auth check, schema check, etc.)
  1. Audit log enrichment:
  • All actions during careful mode logged with "careful-mode" tag

Step 4 — Announce Mode

🟡 CAREFUL MODE ACTIVATED
Scope: {description}
Paths: {if specified}
Entered: {timestamp}
While in careful mode:
✓ Destructive ops require explicit confirmation
✓ Touched code auto-delegated to reviewers
✓ Two-attempt limit reduced to one
✓ No background commands (foreground only)
✓ Pre-commit smoke tests
✓ Actions tagged 'careful-mode' in audit log
Recommended next:
- Proceed with the risky work
- Run /unfreeze when done to return to normal mode
- Run /guard if you need EVEN MORE caution (CRITICAL systems)

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.json written 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/njt2810/claude-code-framework/careful/badge)](https://verified-skill.com/skills/njt2810/claude-code-framework/careful)

Something wrong with this skill or its page? Tell us.