Prepare development environment for immediate coding by orchestrating memory loading, context validation, and pre-flight checks all in one interaction...
This Skill solves the "multiple slash commands before coding" problem. Instead of:
/memory-read ā Load 7 memory files
<wait, read output>
/standards-check ā Check code standards
<wait, read output>
/arch-check ā Check architecture
<wait, read output>
Ready to code...
You simply say: "Ready to code" and this Skill automatically:
User Initiates (explicit triggers):
Contextual Triggers:
/plan command (planning done, implementation ready)Multi-Feature Scenario:
Performance Optimization: Leverage Claude 4.5's 200K context window with native prompt caching:
SYSTEM PROMPT (with native caching):
<cache_control type="ephemeral">
Load ALL memory files at once (no chunking needed):
- 7 core memory files (~19.5K tokens total)
- Constitution (~2K tokens)
- Specifications (~3K tokens)
Total: ~25K tokens (12.5% of 200K context)
Cache benefits:
- First load: 1.25x cost (write to cache)
- Subsequent loads: 0.1x cost (90% savings)
- Auto-refresh on use (extends TTL)
- Auto-invalidate on file changes
</cache_control>
Load These Files:
Memory Core (project root /memory/) - Loaded in Parallel:
active_context.md - Current feature, phase, last activitytasks_plan.md - Full task breakdown, completion, prioritiesarchitecture.md - System design, component boundariestechnical.md - Tech standards, code quality rulesproduct_requirement_docs.md - Feature scope, requirementserror-documentation.md - Known issues, workaroundslessons-learned.md - Previous insights, patternsAuthoritative Source (.specify/):
constitution.md - Project principles, quality gates (7 gates)Runtime Guidance:
CLAUDE.md - Project-specific development guidanceOutput: Summary of loaded context:
ā
Context Loaded in 69ms (parallel):
- Product requirements (12 KB)
- Architecture design (25 KB)
- Technical standards (22 KB)
- Constitution & principles (30 KB)
- Current feature details (5 KB)
- Task breakdown (14 KB)
- Error documentation (18 KB)
- Lessons learned (21 KB)
Total: 147 KB loaded in parallel (2.5x faster)
Check Prerequisites for Implementation Phase:
Phase Validation:
Current Phase Detection:
āā If spec.md missing ā Phase 0, need /specify
āā If plan.md missing ā Phase 1, need /plan
āā If tasks.md missing ā Phase 2, need /tasks
āā If tasks incomplete ā Phase 3, READY ā
āā If tests passing ā Phase 4, need validation
Output:
ā
PHASE VALIDATION: Phase 3 - IMPLEMENTATION (Ready)
ā Specification: Complete (specs/006-feature-006-logging/spec.md)
ā Planning: Complete (plan.md synced to architecture.md)
ā Tasks: Complete (26 tasks in tasks_plan.md)
ā Prerequisites: All met
Stop Condition: If phase is wrong, guide user:
ā ļø PHASE MISMATCH: Not ready for implementation
Current Phase: 1 - SPECIFICATION
Next Step: Complete planning phase first
Run: /plan
Or to proceed anyway:
Say: "Skip validation" (not recommended)
Check Constitution and Quality Gates:
Constitution Loading:
# Check for constitution
if [ -f .specify/memory/constitution.md ]; then
# Parse principles
principles=$(grep -c "^## Principle" .specify/memory/constitution.md)
# Check quality gates status
load_principle_registry() # from .claude/cache/principle-registry.json
# Identify blocking gates for implementation phase
blocking_gates=$(jq '.[] | select(.triggers[] == "pre-implementation")' .claude/cache/principle-registry.json)
fi
Output (if constitution exists):
āļø CONSTITUTIONAL PRE-FLIGHT CHECK
Constitution: Found ([N] principles)
Quality Gates: Checking implementation prerequisites...
Gate 2 - Testability Gate:
ā Test framework configured
ā Test structure exists
ā TDD approach documented in tasks
Gate 3 - Boundary Gate:
ā Architecture boundaries defined
ā Component interfaces specified
ā No circular dependencies detected
Overall: [N]/[M] gates passed
Status: ā
READY FOR IMPLEMENTATION
Output (if constitution missing):
āļø CONSTITUTIONAL CHECK
Constitution: Not ratified (optional)
Quality Gates: Skipped (v1.0.0 compatibility mode)
Status: ā
Ready (without constitutional governance)
Blocker Detection:
ā CONSTITUTIONAL BLOCKER DETECTED
Gate 2 - Testability Gate: FAILED
Issue: Test framework not configured
Required Actions:
1. Install test framework (pytest/jest)
2. Create test directory structure
3. Add test configuration files
Cannot proceed with implementation until resolved.
Recommendation: Run /standards-check for detailed diagnostics
Check Git Configuration:
# Verify branch matches feature
git branch --show-current
# Expected: 006-feature-006-logging or similar
# Check working tree
git status --porcelain
# Should be: Clean (or acceptable changes)
# Get recent context
git log -1 --format="%h %s"
# Expected: Recent commit from same feature
Output:
ā
GIT STATE VALIDATION
ā Branch: 006-feature-006-logging (matches active feature)
ā Working tree: Clean (no uncommitted changes)
ā Recent commit: 217b377 "feat: implement Phase 5 E2E testing"
ā Status: Ready to code
Discover and Load Project Plugins:
Plugin Discovery:
# Scan for plugin manifests
plugin_dirs=(
".claude/commands/plugins"
".claude/validators/plugins"
)
for dir in "${plugin_dirs[@]}"; do
if [ -d "$dir" ]; then
find "$dir" -name "plugin.json" -type f | while read manifest; do
# Validate manifest schema
# Load plugin metadata
# Register commands/validators
done
fi
done
Output (if plugins found):
š PLUGIN LOADING
Discovered: [N] plugin packs
Loading: project-specific-commands v1.2.3
ā Registered 6 commands
ā No conflicts detected
Loading: project-specific-validators v1.1.0
ā Registered 4 validators
ā All dependencies satisfied
Summary:
āā Commands available: 8 core + 6 plugin = 14 total
āā Validators active: 3 core + 4 plugin = 7 total
āā Plugin performance: <50ms load time ā
Status: ā
PLUGINS LOADED
Output (if no plugins):
š PLUGIN STATUS
Status: Core-only mode (no project plugins)
Commands available: 8 core commands
Validators active: 3 core validators
To add project-specific capabilities:
Run: /plugin-install [plugin-pack-name]
Warm-Up Validators (NEW v2.0.0):
š„ WARMING VALIDATORS
Pre-loading validators for faster execution...
Core validators:
ā memory-consistency (cached)
ā architectural-boundaries (cached)
ā technical-standards (cached)
Project validators:
ā [project-validator-1] (cached)
ā [project-validator-2] (cached)
Cache warm-up: Complete (<100ms)
Next validation: ~5x faster
Check Code Quality Baseline:
Without running full /standards-check (too slow), validate:
tests/ directory with test filesOutput (generic, adapts to detected stack):
ā
CODE STANDARDS PRE-FLIGHT
Tech Stack: [Detected stack - Python/Node/Rust/etc]
ā Linter configured ([linter-name])
ā Formatter configured ([formatter-name])
ā Test framework ready ([test-framework])
ā No blocking syntax errors detected
Full check: Run /standards-check after changes
Verify No Boundary Violations:
Quick check that codebase structure matches constitution:
ā Service layer architecture: Controllers thin, Services have business logic
ā Dependency injection: Services use interfaces
ā Test structure: tests/Unit/, tests/Feature/ exist
ā No circular dependencies: (quick static check)
ā API routes authenticated: auth:sanctum applied
Output:
ā
ARCHITECTURE COMPLIANCE
ā Service layer separation enforced
ā Dependency injection configured
ā Test directory structure correct
ā API authentication configured
ā Constitution gates validated (7/7)
Full check: Run /arch-check for comprehensive validation
Extract from tasks_plan.md:
šÆ TASK BREAKDOWN:
Total: 26 tasks across 8 phases (A-H)
Estimated Total: 6.5 hours
Phase A: Foundation (Database & Config) - 3 tasks, 30 min
āā [P] T001: Create migration (10 min) ā NEXT
āā [P] T002: Create model with factory (10 min)
āā [P] T003: Create config section (10 min)
Phase B: Service Layer - 4 tasks, 90 min
āā [P] T004: Create interface (5 min)
āā [ ] T005: Unit tests - TDD (30 min)
āā [ ] T006: Implement service (45 min)
āā [ ] T007: Bind in provider (10 min)
[Additional phases...]
Next Immediate Actions:
1. Start with Phase A, Task 1 (Create migration)
2. Tasks T001, T002, T003 are parallel [P] - can run together
3. Estimated time: 30 minutes for Phase A
Final Status Check:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
READY TO CODE (v2.0.0)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Context Loaded:
ā Product requirements
ā Architecture design
ā Technical standards
ā Constitution ([N] principles) [if exists]
ā Feature specification
ā Task breakdown
ā Error documentation
ā Lessons learned
ā
Validations Passed:
ā Phase: IMPLEMENTATION (correct)
ā Branch: [branch-name] (matches)
ā Working tree: Clean
ā Standards configured
ā Architecture compliant
ā Constitutional gates: [N]/[M] passed [if constitution exists]
ā Plugins loaded: [N] packs [if plugins exist]
ā Validators warmed: [N] ready
š Development Environment:
Commands: [X] core + [Y] plugin = [Z] total
Validators: [A] core + [B] plugin = [C] total
Cache: Warmed (~5x faster validation)
šÆ Next Task:
[Task ID]: [Task description]
Estimated Time: [N] minutes
Can parallelize: [Yes/No]
Priority: [Priority level]
Dependencies: [Dependencies or "None"]
š” READY TO START
Option 1: Say "@agent-implementer" to begin task execution
Option 2: Say "start [task-id]" to focus on specific task
Option 3: Run command: /plugin-list to see available commands
ā ļø BLOCKERS (if any):
[List any blockers preventing implementation]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Blocker Example:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā BLOCKED - NOT READY TO CODE
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Context Loaded: ā
ā
Phase Validation: ā
ā
Git State: ā
āļø Constitutional Check: ā FAILED
Blocking Issue:
Gate 3 - Boundary Gate: FAILED
āā Architectural boundaries not defined
āā Component interfaces missing
āā Circular dependencies detected
Required Actions:
1. Run: /arch-check for detailed analysis
2. Fix architectural violations
3. Update architecture.md with boundaries
4. Re-run: "ready to code" to validate
Cannot proceed until constitutional gate passes.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Step 1: /memory-read
- Wait for response
- Read 7 sections of output
- Time: 30-45 seconds
Step 2: /standards-check
- Wait for PHPStan analysis
- Check ESLint results
- Time: 45-60 seconds
Step 3: /arch-check
- Validate architecture boundaries
- Check compliance gates
- Time: 30-45 seconds
Step 4: Check tasks_plan.md manually
- Open and read file
- Identify next task
- Time: 30-60 seconds
Step 5: Finally ready to start
- Total elapsed: 2.5-3.5 minutes ā ļø
- Cognitive load: High (remember 4+ command outputs)
User: "Ready to code"
ā
Skill auto-activates
ā
Loads all context + validates everything
ā
Presents ready status with next task
ā
Total elapsed: <15 seconds ā
Cognitive load: Low (single dashboard)
Time Saved Per Session: ~2.5 minutes Time Saved Per Day (5 coding sessions): ~12.5 minutes Time Saved Per Month (22 work days): ~5.5 hours
User Input: "Ready to code"
Skill Output:
ā
Loading development context...
ā
Context loaded (7 memory files + constitution)
ā
Validating pipeline state...
ā
Phase 3 - IMPLEMENTATION confirmed
ā
Checking code standards...
ā
PHPStan Level 8: Configured ā
ā
ESLint: Configured ā
ā
Architecture validation...
ā
All 7 gates passed ā
š CONTEXT SUMMARY:
Feature: #006 - PHI Logging Cleanup
Phase: Implementation (26 tasks)
Recent: Phase 5 E2E testing completed
šÆ NEXT TASK:
T001: Create migration for redaction_events table
Phase A (Foundation) - 10 minutes
Can parallelize with T002, T003
š” READY TO START
Say: @agent-implementer
Or: start T001
User Input: "Ready to code" Scenario: User in planning phase, tries to jump to implementation
Skill Output:
ā ļø PHASE MISMATCH
Current State:
āā Phase: 2 - PLANNING (Not ready for implementation)
āā Status: plan.md exists, but tasks.md missing
āā Next Phase: Task breakdown
šÆ REQUIRED STEPS:
1. Generate task breakdown: /tasks
2. Review task plan
3. Then retry: "Ready to code"
Continue anyway? (Not recommended)
Say: "skip validation" if you know what you're doing
User Input: "Ready to code" Scenario: User returns after 8 hours away
Skill Output:
ā° CONTEXT UPDATE DETECTED
Last activity: 8 hours ago
Recent git activity: 3 commits on main branch
š Refreshing context...
ā
Context loaded
ā
Detected new commits from teammates
š INTEGRATED CHANGES:
New commits include:
- Database migrations (3 files)
- API endpoint updates (2 files)
- Test additions (4 files)
šÆ ACTION RECOMMENDED:
Run: git pull
Then: "Ready to code" again
Or continue with current branch?
Must Exist:
memory/active_context.md (current feature, phase)
memory/tasks_plan.md (task breakdown)
CLAUDE.md (runtime guidance)
.specify/memory/constitution.md (principles & gates)
Should Exist:
memory/architecture.md
memory/technical.md
memory/product_requirement_docs.md
phpstan.neon / phpstan.dist.neon
.eslintrc.json or similar
tests/ (directory)
Phase Validation:
Git Validation:
###-feature-*Standards Validation:
Constitution Validation:
Relationship to context-navigator Skill:
context-navigator: "Where am I?" (diagnostic)quick-start: "Ready to code" (preparation)Relationship to @agent-implementer:
quick-start: Pre-flight validation@agent-implementer: Task executionRelationship to /memory-read Slash Command:
quick-start: Higher-level orchestration (loads + validates)/memory-read: Lower-level display of state/memory-read for deep diagnostic infoIssue: Skill says phase is wrong when you're ready to code
Cause: tasks.md doesn't exist
Fix: Run /tasks to generate task breakdown from plan.md
Issue: Git validation fails - branch doesn't match
Cause: On wrong branch (e.g., main or mvp-nuclear-reset)
Fix: Checkout feature branch: git checkout 006-feature-006-logging
Issue: Standards check reports errors
Cause: Config files missing or corrupted
Fix: Run /standards-check for full diagnostic
This Skill performs fast operations:
Expected execution time: <2 seconds (with plugins and constitution) Expected execution time: <1 second (core-only, no plugins) No side effects: Read-only diagnostic, no changes to codebase
This skill is backward compatible and adapts to available features:
Without Constitution (v1.0.0 mode):
āļø CONSTITUTIONAL CHECK
Constitution: Not ratified (optional)
Quality Gates: Skipped
Status: ā
Ready (v1.0.0 compatibility mode)
Without Plugins (core-only):
š PLUGIN STATUS
Status: Core-only mode (no project plugins)
Commands available: 8 core commands
Validators active: 3 core validators
Without Cache (first run):
š„ WARMING VALIDATORS
Cache: Not initialized (first run)
Building cache for future sessions...
Status: ā
Ready (cache will improve future performance)
Partial Plugin Failures:
š PLUGIN LOADING
Discovered: 2 plugin packs
ā project-commands v1.0.0 loaded
ā broken-plugin v0.1.0 failed (manifest error)
Status: ā ļø PARTIAL (1/2 plugins loaded)
Core functionality available
Tech Stack Detection Fallback:
This ensures:
/standards-check)/test-run if plugin exists, or manual test command)@agent-implementer)/memory-sync)/plugin-install)This Skill validates you're READY. The slash commands and agents do the actual work.