From mlforge
This skill should be used when the user says "be careful", "guard mode", "freeze", "protect prod", before any work touching production data or model registries, or when another skill (ml-production-debug) activates it automatically. Adds confirmation gates for destructive ML operations and optional edit-scope freezing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mlforge:ml-carefulThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Safety guardrails for ML work. Two modes, composable: **careful** (confirm destructive ops) and **freeze** (lock edit scope). "Guard" = both.
Safety guardrails for ML work. Two modes, composable: careful (confirm destructive ops) and freeze (lock edit scope). "Guard" = both.
Once active (user said "be careful" / "guard", or a skill auto-activated it), require explicit confirmation — restate the operation and its blast radius — before:
DROP TABLE/TRUNCATE/DELETE without WHERE on warehouse tables; S3 prefix deletes or overwrites (aws s3 rm --recursive, sync --delete); overwriting partitions in place; schema migrations on tables feeding features.experiments/ or ml/.reset --hard, branch deletion on shared branches.Resources listed under "Protected resources" in ml/STACK.md get this treatment even when careful mode is off.
Confirmation format: what runs, what it destroys, whether it's reversible, then proceed only on explicit yes. User can override any warning — warn, don't block. Never bypass by rewriting the command into an unlisted equivalent.
freeze <dir>: all file edits restricted to that directory until unfreeze. Attempted edits outside scope → stop, name the file, ask. Use during debugging so "fixing" doesn't leak into unrelated pipeline code — every unnecessary diff in an ML pipeline is a potential silent regression (see ml-principles, surgical changes).
ml-production-debug auto-freezes to the module under investigation once a hypothesis is being tested.
unfreeze lifts the boundary. State the freeze scope when activating and on each block.
The plugin's PreToolUse hook (hooks/scripts/guard.py) already enforces a deterministic floor on every Bash command — recursive deletes on ML paths, S3 destructive ops, DROP/TRUNCATE, unqualified DELETE, force-push, registry deletion, and training launches without a logged hypothesis — whether or not this skill is active. This skill adds the judgment layer on top: blast-radius explanation, STACK.md protected resources, cost-threshold confirms, freeze scoping, and coverage of operations too context-dependent for regex (partition overwrites, data-window changes, serving config edits).
ml/STACK.md for protected resources and cost-approval thresholds (a training launch above the threshold also gets a confirm).Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub mbburabak/mlforge --plugin mlforge