/lacp-hardening:session-hardeningfrom lacp-hardening
Hardens agent sessions with pretool guards (blocks rm -rf, co-author injection, unsafe publish, data exfiltration), continuous QA (runs tests every N file writes), and session context injection (git state, focus brief, handoff artifacts).
Ships in lacp-hardening. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This plugin provides three layers of production hardening:
Blocks dangerous operations before they execute:
rm -rf → suggests trash insteadnpm/cargo/pip publish without approvalcurl | python/node download-first patternschmod 777 → suggests specific masksgit reset --hard, git clean -fcurl --data @.envRuns your project's test command at configurable intervals during work:
Injects at every session start:
| Env Var | Default | Purpose |
|---|---|---|
LACP_EVAL_CHECKPOINT_ENABLED | 0 | Enable continuous QA |
LACP_EVAL_CHECKPOINT_INTERVAL | 10 | Test every N writes |
LACP_CONTEXT_MODE | `` | Active mode (tdd, debugging, sprint, etc.) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/context-modesStructured work modes for agent sessions. Set LACP_CONTEXT_MODE to activate: tdd (red-green-refactor), debugging (4-phase root cause), sprint (pre-agreed criteria), verification (evidence-before-claims), brainstorm (design first), think (pause-and-reflect), orchestrate (task decomposition). Each mode injects behavioral rules at session start./quality-gateProduction quality gate for agent sessions. Activates on session stop to evaluate work quality using 4-dimension weighted scoring (completeness, honesty, deferral ratio, work evidence). Catches rationalization patterns, verifies test claims, and generates handoff artifacts for session continuity. Use sprint contracts to define done-criteria before building.Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job