/goal - Goal Definition and Validation Command
Defines complex goals with automatic success criteria generation and objective validation tracking.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Purpose: Define, track, and validate complex goals with structured success criteria and progress monitoring.
/goal <goal_definition> - Define a new goal with automatic success criteria extraction/goal --template <template_name> - Use predefined goal template with optimized criteria/goal --validate - Validate current goal completion status objectively/goal --current - Display active goal details and progress/goal --clear - Clear current goal and reset tracking/goal --history - Show completed goals and success ratesWhen defining a new goal, the system:
Goal Processing: Use direct analysis for structured goal processing
Memory MCP Integration with Query Optimization: Search and integrate with persistent knowledge using enhanced effectiveness
/memory search for automatic query optimization and improved goal pattern discovery/memory command's automatic compound query transformation/memory search "related goals and patterns" - Search with built-in optimization/memory recall "historical goal contexts" - Retrieve specific goal learnings/memory command's built-in deduplication and scoringGuidelines Consultation: Command: /guidelines - Consult mistake prevention system before goal processing
Process Goal Structure: Parse structured goal specification
Validate and Enhance: Verify output and add context-specific enhancements
Memory Persistence: Captures goal definition in persistent knowledge graph with machine-readable patterns
mcp__memory-server__create_entities - Create goal entity with structured metadata
goal_pattern with template classification and complexity scoringmcp__memory-server__create_relations - Link to related projects, patterns, and contexts
mcp__memory-server__add_observations - Store goal definition, criteria, and analysis
Stores Goal Context: Saves goal.md file with complete specification (guidelines-compliant structure)
Goals are stored in goals/YYYY-MM-DD-HHMM-[slug]/ with:
00-goal-definition.md - Original goal statement and auto-generated criteria01-success-criteria.md - Measurable validation points02-progress-tracking.md - Current status and completion percentage03-validation-log.md - Historical validation attempts and resultsmetadata.json - Status, timestamps, and configurationPattern Recognition: Automatically identifies success criteria from goal language:
Examples:
Goal: "Create authentication system with tests"
Auto-generated criteria:
ā
Authentication system implemented and functional
ā
All authentication tests pass
ā
Security requirements met
ā
Integration with existing codebase complete
Memory Context Retrieval: Load relevant validation patterns and historical data
/memory search "validation scenarios and outcomes" - Find similar patterns with optimization/memory recall "validation methods and success patterns" - Retrieve specific validation contextsGuidelines Consultation: Command: /guidelines - Consult mistake prevention guidelines before validation
Load Active Goal: Read current goal specification and success criteria
Systematic Validation: Check each success criterion objectively (per guidelines standards and memory patterns)
Evidence Collection: Gather concrete evidence for each validation point (following evidence protocols)
Status Calculation: Determine completion percentage and overall status
Memory Learning: Capture validation results and patterns in persistent knowledge
mcp__memory-server__add_observations - Store validation evidence and outcomesmcp__memory-server__create_relations - Link validation patterns to goal success/failureUpdate Progress: Record validation results and current state (guidelines-compliant documentation)
## Goal Validation Report
**Goal**: [Original goal statement]
**Validation Date**: [Current timestamp]
**Overall Status**: CONVERGED ā
/ CONVERGING š / STALLED ā ļø / BLOCKED š
### Success Criteria Results:
1. ā
[Criterion 1]: Evidence - [Specific validation proof]
2. š [Criterion 2]: Partial - [Current progress and remaining work]
3. ā [Criterion 3]: Failed - [Specific failure reason and fix needed]
**Completion**: 67% (2/3 criteria met)
**Next Actions**: [Specific steps to address remaining criteria]
# Instead of inline goal definition in /converge
/goal "Implement PR #1307 roadmap - close 5 PRs, create 7 focused PRs, fix 6 existing PRs"
/converge # Uses currently active goal from /goal command
# Step 5 of convergence loop automatically uses:
/goal --validate # Provides objective validation against defined criteria
/goal --template pr-management "Process PR #1234 - fix security issues, respond to comments"
# Auto-generates:
# ā
All PR comments analyzed and categorized
# ā
Security issues identified and fixed
# ā
Code changes implement requested improvements
# ā
All CI/CD checks passing
# ā
PR ready for review or merge
/goal --template test-suite "Create comprehensive testing for authentication module"
# Auto-generates:
# ā
Test files created with comprehensive coverage
# ā
All test cases pass successfully
# ā
Edge cases and error conditions covered
# ā
Integration tests validate module interactions
# ā
Test coverage meets quality thresholds (>90%)
/goal --template feature-impl "Implement user dashboard with analytics"
# Auto-generates:
# ā
Feature requirements analyzed and documented
# ā
Implementation completed with all functionality
# ā
User interface meets design specifications
# ā
Backend APIs implemented and tested
# ā
Integration tests validate end-to-end workflow
# ā
Documentation updated with feature details
/goal --template bug-fix "Fix authentication timeout issue in production"
# Auto-generates:
# ā
Root cause identified and analyzed
# ā
Fix implemented without breaking existing functionality
# ā
Regression tests added to prevent reoccurrence
# ā
All existing tests continue to pass
# ā
Production deployment validated
/goal --template refactor "Refactor payment processing module for better performance"
# Auto-generates:
# ā
Code refactored with improved structure
# ā
Performance improvements measurably achieved
# ā
All existing functionality preserved
# ā
Tests updated and passing
# ā
Documentation reflects architectural changes
# Use optimized templates for common patterns
/goal --template pr-management "Complete PR #1307 roadmap implementation"
/goal --template test-suite "Add testing coverage for convergence system"
/goal --template feature-impl "Build autonomous status reporting system"
# Custom goals still use automatic success criteria generation
/goal "Create 3 test files with specific content"
/goal "Implement complete user authentication with OAuth, tests, and documentation"
goals/.current-goalmcp__memory-server__create_entities - Goal entities with completion status and metricsmcp__memory-server__create_relations - Relationships between goals, strategies, and outcomesmcp__memory-server__add_observations - Detailed success/failure patterns and learnings{
"max_validation_attempts": 50,
"auto_criteria_generation": true,
"evidence_collection": "automatic",
"progress_tracking": "continuous",
"completion_threshold": 100
}
Implementation Method: This command provides structured goal definition and validation that integrates with /converge for systematic goal achievement tracking.