$npx -y skills add tranhieutt/software_development_department --skill guardEnforces project safety constraints by blocking risky operations outside their approved scope during active development. Use when activating a safety guard or constraint for the current session.
| 1 | # Guard Check |
| 2 | |
| 3 | Check the freeze status of the codebase. Use as a gate check before any operations on the main branch. |
| 4 | |
| 5 | ## Workflow |
| 6 | |
| 7 | ### 1. Read `.freeze` |
| 8 | |
| 9 | **If it does not exist:** |
| 10 | |
| 11 | ``` |
| 12 | ✅ CLEAR — No active freeze. |
| 13 | Development and merging can proceed normally. |
| 14 | ``` |
| 15 | |
| 16 | Stop here. |
| 17 | |
| 18 | **If it exists**, proceed to step 2. |
| 19 | |
| 20 | ### 2. Display Freeze Warning |
| 21 | |
| 22 | ``` |
| 23 | 🔒 CODEBASE IS FROZEN |
| 24 | |
| 25 | Reason : [REASON from .freeze] |
| 26 | Since : [FROZEN_AT] |
| 27 | Branch : [BRANCH] |
| 28 | Duration: [calculated from FROZEN_AT to current time] |
| 29 | |
| 30 | ⚠️ Non-critical merges are blocked during a freeze period. |
| 31 | ``` |
| 32 | |
| 33 | ### 3. Categorize the Request |
| 34 | |
| 35 | Ask: |
| 36 | > "What type of operation is this?" |
| 37 | > |
| 38 | > **A) Urgent Hotfix** — production bug, security patch |
| 39 | > **B) Release Artifact** — changelog, version bump, release notes |
| 40 | > **C) Non-critical** — feature, refactor, chore, normal docs |
| 41 | |
| 42 | **If A or B:** Allow to proceed with a note: |
| 43 | > "⚠️ Permitted to proceed. Note that this is a freeze period — execute only necessary operations." |
| 44 | |
| 45 | **If C:** Block and instruct: |
| 46 | > "🚫 Non-critical changes must wait until after `/unfreeze`. |
| 47 | > Save your work and continue after the release is complete." |
| 48 | |
| 49 | ### 4. Suggestions |
| 50 | |
| 51 | - `/unfreeze` — If the release is finished |
| 52 | - `/release-checklist` — If currently in the release process |
| 53 | - `/hotfix` — If an urgent fix deployment is needed |
| 54 | |
| 55 | ## Edge Cases |
| 56 | |
| 57 | - **No .freeze**: Just report CLEAR, ask no further questions. |
| 58 | - **User unsure of operation type**: Ask for more details to categorize correctly before deciding. |
| 59 | |
| 60 | ## Related Skills |
| 61 | |
| 62 | - `/freeze` — Lock codebase |
| 63 | - `/unfreeze` — Remove freeze |
| 64 | - `/hotfix` — Urgent deployment during freeze |
| 65 | - `/release-checklist` — Full release workflow |