Project alignment validation

From akaszubski/autonomous-dev · View interactive version

Project alignment validation is an AI agent skill from the GitHub repository akaszubski/autonomous-dev. Semantic validation patterns for PROJECT.md alignment (GOALS, SCOPE, CONSTRAINTS, ARCHITECTURE)

How to use this skill

Skill file

Project Alignment Validation Skill

Comprehensive patterns for validating alignment between features, code, and PROJECT.md. Focuses on semantic validation (intent and goals) rather than literal pattern matching.

When This Skill Activates


Core Validation Approach

Semantic Validation Philosophy

Semantic validation focuses on understanding the intent and purpose behind requirements, not just literal text matching.

Key Principles:

  1. Intent over Syntax: Validate that features serve project goals, not just match keywords
  2. Context-Aware: Consider project phase, constraints, and strategic direction
  3. Progressive Assessment: Start with high-level goals, drill down to details
  4. Graceful Gaps: Identify gaps without blocking progress; prioritize by impact

Contrast with Literal Validation:


PROJECT.md Structure

Four Core Sections

Every PROJECT.md should define:

  1. GOALS: Strategic objectives and desired outcomes
  2. SCOPE: What's in scope (and explicitly out of scope)
  3. CONSTRAINTS: Technical, resource, and policy limitations
  4. ARCHITECTURE: High-level design principles and patterns

Validation Checklist

For each feature, validate against all four sections:

## Alignment Checklist

### GOALS Alignment
- [ ] Feature serves at least one project goal
- [ ] Feature doesn't conflict with any goals
- [ ] Feature priority matches goal priority
- [ ] Success metrics align with goal metrics

### SCOPE Alignment
- [ ] Feature is explicitly in scope
- [ ] Feature doesn't overlap with out-of-scope items
- [ ] Feature respects scope boundaries
- [ ] Feature dependencies are in scope

### CONSTRAINTS Alignment
- [ ] Feature respects technical constraints
- [ ] Feature works within resource constraints
- [ ] Feature complies with policy constraints
- [ ] Feature considers timeline constraints

### ARCHITECTURE Alignment
- [ ] Feature follows architectural patterns
- [ ] Feature integrates with existing components
- [ ] Feature respects design principles
- [ ] Feature maintains architectural consistency

See: docs/alignment-checklist.md for detailed checklist with examples


Gap Assessment Methodology

Identify Gaps

Gaps occur when current state doesn't match desired state defined in PROJECT.md.

Types of Gaps:

  1. Feature Gaps: Missing functionality needed to achieve goals
  2. Documentation Gaps: PROJECT.md doesn't reflect actual implementation
  3. Constraint Gaps: Implementation violates stated constraints
  4. Architectural Gaps: Code doesn't follow design principles

Prioritize Gaps

Not all gaps are equal. Prioritize by:

Impact Assessment:

Effort Estimation:

Document Gaps

Use standardized gap assessment template:

## Gap Assessment

### Gap Summary
- **Type**: [Feature/Documentation/Constraint/Architectural]
- **Impact**: [Critical/High/Medium/Low]
- **Effort**: [Quick Win/Strategic/Tactical/Defer]

### Current State
[Describe what exists today]

### Desired State
[Describe what PROJECT.md defines]

### Gap Details
[Explain the specific differences]

### Recommended Action
[Propose concrete steps to close gap]

### Dependencies
[List any prerequisites or blockers]

See: docs/gap-assessment-methodology.md for complete methodology


Conflict Resolution Patterns

Detect Conflicts

Conflicts arise when:

Resolution Strategies

Strategy 1: Update PROJECT.md (Documentation is wrong)

Strategy 2: Modify Feature (Implementation is wrong)

Strategy 3: Negotiate Compromise (Both partially correct)

Strategy 4: Escalate Decision (Requires stakeholder input)

See: docs/conflict-resolution-patterns.md for detailed resolution workflows


Progressive Disclosure

This skill provides layered documentation:

Always Available (Frontmatter)

Available in Full Content

Load Full Content When Needed


Documentation Resources

Comprehensive Guides

Templates

Examples


Integration Points

Agents

Hooks

Libraries


Best Practices

  1. Validate Early: Check alignment before implementation, not after
  2. Document Decisions: Record why features align or don't align
  3. Update Iteratively: PROJECT.md should evolve with project understanding
  4. Prioritize Gaps: Not all gaps are critical; focus on high-impact items
  5. Semantic First: Understand intent before applying validation rules
  6. Graceful Degradation: Alignment issues are warnings, not blockers (unless critical)

Success Criteria

Feature validation is successful when:


Last Updated: 2025-11-16

Version: 1.0.0

Related Skills: semantic-validation, file-organization, research-patterns, project-management

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.