What problem does it solve?
When working on codebase refactors or onboarding new contributors, it is common to accidentally edit legacy or out-of-scope directories, leading to unintended changes and costly rework. This Skill eliminates that risk by letting you explicitly mark specific directories as off-limits to edits.
Core Features & Use Cases
- Frozen Path Management: Add, remove, and list restricted directories, with all changes stored in a central .dragoon/freeze.json manifest for consistent access across workflows.
- Git Pre-Commit Hook Enforcement: Optionally generate and install a pre-commit hook that automatically fails commits if any frozen path is modified, acting as a soft guardrail for team collaboration.
- CI-Compatible Violation Checks: Run a dedicated check command in continuous integration pipelines to catch attempts to modify frozen paths before code is merged.
Common use cases include isolating refactor work to a single module without touching legacy code, locking legacy directories that should never be modified, and limiting new contributors' edit scope to their assigned tasks.
Quick Start
Use the freeze skill to add the src/legacy directory to the frozen paths list and install the pre-commit hook to block all edits to that directory.