Back to skills
SKILL.md
Collection
ASecurityMaster engineering principles and command index for Phantom Guard. Use at session start to understand project context, commands, and quality gates.
- 24 stars
- 0 votes
- 0 copies
- 5 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add mattnigh/skills_collection --skill collection --agent claude-codeAre you the author of Collection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattnigh-collection-244429d4)---
name: master
description: Master engineering principles and command index for Phantom Guard. Use at session start to understand project context, commands, and quality gates.
---
# PHANTOM GUARD — FORTRESS 2.0 MASTER PROTOCOL
> **Classification**: MILITARY-GRADE DEVELOPMENT PROTOCOL
> **Project**: Phantom Guard - Slopsquatting Detection
> **Framework**: FORTRESS 2.0
> **Violation Response**: STOP. FIX. CONTINUE.
---
## MISSION STATEMENT
**Build a slopsquatting detection library that protects developers from AI-hallucinated malicious packages.**
- Target: <5% false positive rate
- Speed: <200ms per package
- Scope: PyPI, npm, crates.io
---
## GATE SYSTEM — MANDATORY PROGRESSION
```
┌─────────────────────────────────────────────────────────────────────┐
│ FORTRESS 2.0 GATE SYSTEM │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ GATE 0: PROBLEM DEFINITION │
│ Status: ✅ COMPLETE (Research Fortress v7) │
│ Output: PROJECT_FOUNDATION.md │
│ │
│ GATE 1: ARCHITECTURE │
│ Command: /architect │
│ Status: 🟡 PENDING │
│ Output: docs/architecture/ARCHITECTURE.md │
│ ⛔ STOP: Every decision needs SPEC_ID, HOSTILE_ARCHITECT review │
│ │
│ GATE 2: SPECIFICATION │
│ Command: /spec │
│ Status: ⬜ BLOCKED (needs Gate 1) │
│ Output: docs/specification/SPECIFICATION.md │
│ ⛔ STOP: Every invariant numbered, every edge case documented │
│ │
│ GATE 3: TEST DESIGN │
│ Command: /test │
│ Status: ⬜ BLOCKED (needs Gate 2) │
│ Output: tests/ stubs, TEST_MATRIX.md │
│ ⛔ STOP: Tests exist BEFORE code, coverage targets defined │
│ │
│ GATE 4: PLANNING │
│ Command: /roadmap │
│ Status: ⬜ BLOCKED (needs Gate 3) │
│ Output: docs/planning/ROADMAP.md with traced tasks │
│ ⛔ STOP: Every task < 8 hours, every task traces to SPEC_ID │
│ │
│ GATE 5: VALIDATION │
│ Command: /hostile-review │
│ Status: ⬜ BLOCKED (needs implementation) │
│ Output: VALIDATION_REPORT.md │
│ ⛔ STOP: HOSTILE_VALIDATOR has VETO power │
│ │
│ GATE 6: RELEASE │
│ Command: /release │
│ Status: ⬜ BLOCKED (needs Gate 5) │
│ Output: Release artifacts, CHANGELOG.md │
│ ⛔ STOP: RELEASE_GUARDIAN final sign-off │
│ │
└─────────────────────────────────────────────────────────────────────┘
```
---
## COMMAND INDEX
### Gate Commands (Sequential - Cannot Skip)
| Command | Gate | Purpose | Can Skip? |
|---------|------|---------|-----------|
| `/architect` | 1 | System architecture design | **NO** |
| `/spec` | 2 | Specification, invariants | **NO** |
| `/test` | 3 | Test design before code | **NO** |
| `/roadmap` | 4 | Task breakdown | **NO** |
| `/hostile-review` | 5 | Validation (VETO POWER) | **NO** |
| `/release` | 6 | Release preparation | **NO** |
### Implementation Commands
| Command | Purpose |
|---------|---------|
| `/implement` | Guided TDD implementation |
| `/competitive-watch` | Scan for competition (weekly) |
| `/validate-technical` | Validate APIs still work (monthly) |
---
## ABSOLUTE RULES — NO EXCEPTIONS
### Rule 1: Gates Cannot Be Skipped
```
❌ FORBIDDEN: "Let's skip architecture and start coding"
❌ FORBIDDEN: "We'll add tests later"
❌ FORBIDDEN: "This is simple, no spec needed"
✅ REQUIRED: Complete Gate N before starting Gate N+1
✅ REQUIRED: Gate outputs must exist before proceeding
✅ REQUIRED: If blocked, fix the blocker first
```
### Rule 2: HOSTILE_VALIDATOR Has Veto Power
```
If HOSTILE_VALIDATOR says NO_GO:
1. STOP all work
2. Address every issue raised
3. Re-run validation
4. Only proceed after GO verdict
NO EXCEPTIONS. NO SHORTCUTS. NO "WE'LL FIX IT LATER."
```
### Rule 3: TDD Is Mandatory
```
Before writing ANY production code:
1. Test stub MUST exist
2. Test MUST fail when run
3. Write ONLY enough code to pass test
4. Refactor if needed
5. THEN commit
```
### Rule 4: Trace Everything
```
Every function: # IMPLEMENTS: S001
Every test: # SPEC: S001, T001.1
Every task: TRACES: S001, INV001
Orphan code (no trace) = BUILD FAILURE
```
### Rule 5: Performance Budget Is Sacred
```
| Operation | Budget | Violation = |
|-----------|--------|-------------|
| Single package (cached) | <10ms | BLOCK MERGE |
| Single package (uncached) | <200ms | BLOCK MERGE |
| 50 packages | <5s | BLOCK MERGE |
No exceptions. No "we'll optimize later."
```
---
## SESSION START PROTOCOL
Every development session MUST begin with:
```
1. /master # Load this context
2. Check .fortress/FORTRESS.md # Know gate status
3. Proceed with current gate # Continue work
```
---
## FILE STRUCTURE
```
phantom-guard/
├── .fortress/ # FORTRESS 2.0 config
│ ├── FORTRESS.md # Framework status
│ └── gates/ # Gate completion records
├── .claude/skills/ # Command definitions
│ ├── master/ # This command
│ ├── architect/ # Gate 1
│ ├── spec/ # Gate 2
│ ├── test/ # Gate 3
│ ├── roadmap/ # Gate 4
│ ├── hostile-review/ # Gate 5
│ ├── release/ # Gate 6
│ ├── implement/ # TDD workflow
│ ├── competitive-watch/ # Competition scan
│ └── validate-technical/ # API validation
├── docs/
│ ├── frameworks/ # FORTRESS 2.0 docs
│ └── research/ # Technical research
└── PROJECT_FOUNDATION.md # SOURCE OF TRUTH
```
---
## CURRENT STATUS
**Active Gate**: Gate 1 (Architecture)
**Next Action**: Run `/architect` to begin architecture design
**Blockers**: None
---
## SOURCE OF TRUTH
1. **PROJECT_FOUNDATION.md** - Original research
2. **.fortress/FORTRESS.md** - Framework configuration
3. **docs/frameworks/FORTRESS_2.0_FRAMEWORK.md** - Full framework docs
---
*FORTRESS 2.0 — Because bugs escape reviews, but they don't escape gates.*
Files in this skill
- 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md
- 17hz__nextjs-template__claude__skills__example-skill__SKILL.md
- 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md
- 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md
- 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md
- 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md
- 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md
- 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md
- 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.