Semantic validation patterns for PROJECT.md alignment (GOALS, SCOPE, CONSTRAINTS, ARCHITECTURE)
Validates feature alignment against PROJECT.md's GOALS, SCOPE, CONSTRAINTS, and ARCHITECTURE using semantic analysis. Activates when you ask to validate alignment, check project health, or resolve conflicts between documentation and implementation.
/plugin marketplace add akaszubski/autonomous-dev/plugin install autonomous-dev@autonomous-devThis skill is limited to using the following tools:
docs/alignment-checklist.mddocs/conflict-resolution-patterns.mddocs/gap-assessment-methodology.mddocs/semantic-validation-approach.mdexamples/alignment-scenarios.mdexamples/misalignment-examples.mdexamples/project-md-structure-example.mdtemplates/alignment-report-template.mdtemplates/conflict-resolution-template.mdtemplates/gap-assessment-template.mdComprehensive patterns for validating alignment between features, code, and PROJECT.md. Focuses on semantic validation (intent and goals) rather than literal pattern matching.
Semantic validation focuses on understanding the intent and purpose behind requirements, not just literal text matching.
Key Principles:
Contrast with Literal Validation:
Every PROJECT.md should define:
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
Gaps occur when current state doesn't match desired state defined in PROJECT.md.
Types of Gaps:
Not all gaps are equal. Prioritize by:
Impact Assessment:
Effort Estimation:
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
Conflicts arise when:
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
This skill provides layered documentation:
docs/alignment-checklist.md - Standard validation steps for GOALS/SCOPE/CONSTRAINTS/ARCHITECTUREdocs/semantic-validation-approach.md - Semantic vs literal validation philosophydocs/gap-assessment-methodology.md - Identify, prioritize, and document gapsdocs/conflict-resolution-patterns.md - Strategies for resolving alignment conflictstemplates/alignment-report-template.md - Standard structure for alignment reportstemplates/gap-assessment-template.md - Gap documentation templatetemplates/conflict-resolution-template.md - Conflict resolution workflowexamples/alignment-scenarios.md - Common scenarios and recommended fixesexamples/misalignment-examples.md - Real-world misalignment casesexamples/project-md-structure-example.md - Well-structured PROJECT.mdFeature validation is successful when:
Last Updated: 2025-11-16 Version: 1.0.0 Related Skills: semantic-validation, file-organization, research-patterns, project-management
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.