Skip to content
Back to skills

Collection

ASecurity

Validates Design Phase completion before advancing to Implementation Phase. Checks functional specifications, database design, and UI/UX design for completeness and technical feasibility.

  • 24 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
databasesbashsqlreacttestingrefactoringgitapidatabasesecuritydocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-7354a882/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-7354a882)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: phase-2-validator
description: Validates Design Phase completion before advancing to Implementation Phase. Checks functional specifications, database design, and UI/UX design for completeness and technical feasibility.
---

# Phase 2 (Design) Validation Skill

**Purpose**: Automate validation of Design Phase completion before advancing to Implementation Phase.

**When to Use**: When orchestrator or agents need to verify design documents are ready for implementation.

## How to Use This Skill

**Executable Script**: `execute.sh`

```bash
# Basic usage with new-work directory path
bash .claude/skills/phase-2-validator/execute.sh <new-work-directory>

# With work type specification
bash .claude/skills/phase-2-validator/execute.sh <new-work-dir> <work-type>

# With custom quality gate threshold
bash .claude/skills/phase-2-validator/execute.sh <new-work-dir> Feature 90

# Examples:
bash .claude/skills/phase-2-validator/execute.sh docs/functional-areas/events/new-work/2025-11-03-feature
bash .claude/skills/phase-2-validator/execute.sh docs/functional-areas/checkin/new-work/2025-11-03-bug Bug 70
```

**Parameters**:
- `new-work-directory`: Path to new-work folder containing design documents
- `work-type`: (optional) Feature|Bug|Hotfix|Docs|Refactor (default: Feature)
- `required-percentage`: (optional) Override quality gate threshold

**Script validates**:
- Functional Specification (12 points): Technical Overview, Architecture, Data Models, API Specs, Components, Security, Testing
- Database Design (8 points): ER diagram, table schemas, migration plan, indexes, PostgreSQL types, relationships
- UI/UX Design (8 points): Wireframes, component breakdown, Mantine v7, mobile considerations, accessibility
- Integration (7 points): API endpoints match needs, database supports API, auth flow, state management, no violations

**Exit codes**:
- 0: Validation passed - ready for Implementation Phase
- 1: Validation failed - design incomplete

## Quality Gate Checklist (90% Required for Features)

### Functional Specification (12 points)
- [ ] Technical Overview section present (1 point)
- [ ] Architecture section with Web+API pattern (2 points)
- [ ] Data Models section with DTOs (2 points)
- [ ] API Specifications table present (2 points)
- [ ] Component Specifications defined (2 points)
- [ ] Security Requirements addressed (2 points)
- [ ] Testing Requirements defined (1 point)

### Database Design (8 points)
- [ ] Entity Relationship Diagram present (2 points)
- [ ] Table schemas with PostgreSQL syntax (2 points)
- [ ] Migration plan defined (1 point)
- [ ] Indexes and constraints specified (1 point)
- [ ] Relationships properly defined (1 point)
- [ ] Data types appropriate for PostgreSQL (1 point)

### UI/UX Design (8 points)
- [ ] Wireframes for key screens (2 points)
- [ ] Component breakdown provided (2 points)
- [ ] Mantine v7 components specified (2 points)
- [ ] Mobile responsive considerations (1 point)
- [ ] Accessibility requirements (1 point)

### Integration & Technical Feasibility (7 points)
- [ ] API endpoints match component needs (2 points)
- [ ] Database schema supports API requirements (2 points)
- [ ] Authentication flow defined (1 point)
- [ ] State management approach specified (1 point)
- [ ] No architectural violations (1 point)

**See**: The validation logic is now in `execute.sh` - this maintains single source of truth for the automation.

## Usage Examples

### From Orchestrator
```
Use the phase-2-validator skill to check if design is ready for implementation
```

### Manual Validation
```bash
# Find new-work directory
NEW_WORK_DIR=$(find docs/functional-areas -type d -path "*/new-work/*-*-*" | sort | tail -1)

# Run validation
bash .claude/skills/phase-2-validator.md "$NEW_WORK_DIR"
```

## Common Issues

### Issue: Missing Web+API Architecture
**Solution**: Functional spec must explicitly document:
- Web Service (React + Vite) at localhost:5173
- API Service (Minimal API) at localhost:5655
- No direct database access from Web Service

### Issue: Using SQL Server Syntax
**Solution**: All database designs must use PostgreSQL syntax:
- ✅ `UUID` not `UNIQUEIDENTIFIER`
- ✅ `VARCHAR` not `NVARCHAR`
- ✅ `TIMESTAMP` not `DATETIME2`

### Issue: Missing Mantine v7 Specification
**Solution**: UI design must specify Mantine components:
- `Button`, `TextInput`, `Select`, `Modal`, etc.
- No Material-UI or Chakra references

### Issue: Architectural Violations
**Critical violations that fail validation:**
- Direct database access from Web Service
- References to Razor Pages or Blazor
- SignalR (should use HTTP polling or webhooks)
- Repository pattern over EF Core

## Output Format

```json
{
  "phase": "design",
  "status": "pass|fail",
  "score": 32,
  "maxScore": 35,
  "percentage": 91,
  "requiredPercentage": 90,
  "documents": {
    "functionalSpec": "present",
    "databaseDesign": "present",
    "uiUxDesign": "present"
  },
  "missingItems": [
    "Accessibility requirements not addressed",
    "Mobile wireframes not provided"
  ],
  "architecturalViolations": [],
  "readyForNextPhase": true
}
```

## Integration with Quality Gates

This skill enforces the quality gate thresholds by work type:

- **Feature**: 90% required (32/35 points)
- **Bug Fix**: 70% required (25/35 points)
- **Hotfix**: 60% required (21/35 points)
- **Documentation**: 80% required (28/35 points)
- **Refactoring**: 85% required (30/35 points)

## Progressive Disclosure

**Initial Context**: Show quick document checklist
**On Request**: Show full validation script with scoring
**On Failure**: Show specific missing items and architectural violations
**On Pass**: Show concise summary with score

---

**Remember**: This skill automates design validation but doesn't replace agent judgment. If validation fails, orchestrator should loop back to functional-spec, database-designer, or ui-designer agents.

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…