$npx -y skills add tranhieutt/software_development_department --skill freezeLocks the codebase to prevent unintended writes during a freeze period such as before a release or during an incident. Use when the user mentions freezing, code lock, or release lockdown.
| 1 | # Code Freeze |
| 2 | |
| 3 | Lock the codebase in preparation for a release. Create a `.freeze` file containing freeze information. |
| 4 | |
| 5 | ## Workflow |
| 6 | |
| 7 | ### 1. Read Current Status |
| 8 | |
| 9 | Check if `.freeze` already exists by reading the file. If it exists, display the information and ask: |
| 10 | > "The codebase is currently frozen for: [REASON]. Do you want to override the current freeze? (yes/no)" |
| 11 | |
| 12 | If no, stop. |
| 13 | |
| 14 | ### 2. Get Freeze Reason |
| 15 | |
| 16 | If no argument is provided, ask: |
| 17 | > "What is the reason for the freeze? (e.g., 'Release v2.1.0', 'Hotfix deployment', 'Sprint end')" |
| 18 | |
| 19 | ### 3. Create `.freeze` File |
| 20 | |
| 21 | Write the following content: |
| 22 | |
| 23 | ``` |
| 24 | FROZEN=true |
| 25 | REASON=[reason] |
| 26 | FROZEN_AT=[ISO timestamp] |
| 27 | BRANCH=[current branch from git rev-parse --abbrev-ref HEAD] |
| 28 | ``` |
| 29 | |
| 30 | ### 4. Notification |
| 31 | |
| 32 | Display: |
| 33 | |
| 34 | ``` |
| 35 | 🔒 CODEBASE FROZEN |
| 36 | Reason : [reason] |
| 37 | Time : [timestamp] |
| 38 | Branch : [branch] |
| 39 | |
| 40 | Non-critical merges are blocked. Only hotfixes are permitted. |
| 41 | To unlock: /unfreeze |
| 42 | ``` |
| 43 | |
| 44 | ### 5. Suggested Next Steps |
| 45 | |
| 46 | - `/release-checklist` — Run the full release checklist |
| 47 | - `/guard` — Check the freeze status at any time |
| 48 | - `/unfreeze` — Unlock after the release is complete |
| 49 | |
| 50 | ## Edge Cases |
| 51 | |
| 52 | - **Existing freeze**: Ask for override confirmation before overwriting. |
| 53 | - **No git repository**: Still create `.freeze` but omit the BRANCH field. |
| 54 | |
| 55 | ## Related Skills |
| 56 | |
| 57 | - `/guard` — Check freeze status before merge/deploy |
| 58 | - `/unfreeze` — Remove freeze after release |
| 59 | - `/release-checklist` — Full release workflow |
| 60 | - `/hotfix` — Deploy urgent fixes during a freeze |