Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
b425195
feat: import c-hero component in CSS bundle
pftg Sep 27, 2025
f69b593
feat: import c-content component in CSS bundle
pftg Sep 27, 2025
22d9148
docs: enhance c-hero component with dual-class usage examples
pftg Sep 27, 2025
2122efe
docs: enhance c-content component with dual-class usage examples
pftg Sep 27, 2025
acda69a
updated agents
pftg Sep 28, 2025
3acaa3b
sprint 1 completed
pftg Sep 28, 2025
8060810
sprint 2 wip
pftg Sep 28, 2025
c8ffd3c
CSS Variables Foundation: Add --color-white variable
pftg Sep 28, 2025
0474e6d
CSS Variables: Add primary color system foundation
pftg Sep 28, 2025
ad9f4c5
wip
pftg Sep 28, 2025
25d5773
plan the migration
pftg Sep 28, 2025
b44a133
Phase 1.1: Create box-sizing reset utility foundation file
pftg Sep 28, 2025
26a0c4b
Phase 1.2: Update beaver-grid-layout.css to use reset utility
pftg Sep 28, 2025
55b8ff9
Phase 1.3: Update homepage-layout.css to use reset utility
pftg Sep 28, 2025
ea1907f
Phase 1.4: Add reset import to critical.css
pftg Sep 28, 2025
2c60d6a
Phase 1.5: Remove FL-Builder box-sizing duplication from critical.css
pftg Sep 28, 2025
fc331f7
Phase 1 Step 6: Consolidate box-sizing in fl-foundation.css - Import …
pftg Sep 28, 2025
c8933df
Phase 1 Step 7: Consolidate box-sizing in fl-component-layout.css - I…
pftg Sep 28, 2025
8f7620a
Phase 1 Step 8: Consolidate box-sizing in fl-contact-layout.css - Imp…
pftg Sep 28, 2025
f69e7c7
Phase 1 Step 9: Consolidate box-sizing in fl-service-detail-layout.cs…
pftg Sep 28, 2025
c4534ca
Step 15: Consolidate box-sizing utilities in fl-clients-layout.css
pftg Sep 28, 2025
46bc32c
Create clearfix utility foundation file
pftg Sep 28, 2025
51de3e4
Consolidate clearfix utilities in fl-about-layout.css
pftg Sep 28, 2025
c1cd19e
Step 21: Consolidate clearfix patterns in fl-foundation.css
pftg Sep 28, 2025
45e8152
Step 22-24: Consolidate clearfix patterns in critical.css
pftg Sep 28, 2025
c14590f
Step 25-26: Consolidate clearfix patterns in fl-careers-layout.css
pftg Sep 28, 2025
c34e067
Step 44-45: Consolidate clearfix and screen reader utilities in fl-se…
pftg Sep 28, 2025
7b0676c
Add container utility import to fl-about-layout.css
pftg Sep 28, 2025
9a493a9
Complete Day 4-5: Container utilities extraction with micro-refactoring
pftg Sep 28, 2025
b923dde
🎉 COMPLETE: Phase 1 CSS foundation utilities extraction - MASSIVE SUC…
pftg Sep 28, 2025
ecbbf86
upd hompeage
pftg Sep 28, 2025
c4803aa
Extract clearfix utility pattern
pftg Sep 28, 2025
ff8c589
wip
pftg Sep 28, 2025
cf59b92
Remove duplicate clearfix patterns
pftg Sep 28, 2025
55e26ae
Extract flexbox utility patterns
pftg Sep 28, 2025
ae10768
Add flexbox utility import
pftg Sep 28, 2025
55f07ab
Remove vendor-prefixed flexbox declarations
pftg Sep 28, 2025
05699fc
Extract basic display utilities from fl-homepage-layout.css
pftg Sep 28, 2025
8c27c64
Extract basic margin utilities from fl-homepage-layout.css
pftg Sep 28, 2025
8829328
Extract basic padding utilities from fl-homepage-layout.css
pftg Sep 28, 2025
78e3d50
Extract basic position utilities from fl-homepage-layout.css
pftg Sep 28, 2025
9a88619
Create consolidated utilities import and document methodology
pftg Sep 28, 2025
7c59934
Extract FL-Builder base visibility utilities (12 lines)
pftg Sep 28, 2025
86c4cdf
Add FL-Builder large screen breakpoint (13 lines)
pftg Sep 28, 2025
f204b9a
Add FL-Builder medium screen breakpoint (13 lines)
pftg Sep 28, 2025
208dba2
Add FL-Builder mobile screen breakpoint (13 lines)
pftg Sep 28, 2025
aeaf749
Add FL-Builder visibility import (1 line)
pftg Sep 28, 2025
d4e53b9
Remove base FL-Builder visibility patterns (11 lines)
pftg Sep 28, 2025
1e010e8
♻️ Remove 1200px visibility media query (13 lines)
pftg Sep 28, 2025
41355e0
♻️ Remove 1115px visibility media query (12 lines)
pftg Sep 28, 2025
a5032da
♻️ Remove 860px visibility patterns (11 lines) - Complete FL-Builder …
pftg Sep 28, 2025
e1d5e22
✨ Create FL-Builder grid utilities with base patterns - COMMIT 10
pftg Sep 28, 2025
1cf850d
♻️ Remove extracted FL-Builder grid patterns (15 lines) - COMMIT 11
pftg Sep 28, 2025
dd63941
🎯 COMMIT 12: Add FL-Builder column group equal height patterns (47 li…
pftg Sep 28, 2025
3602870
🎯 COMMIT 13: Remove extracted FL-Builder column group patterns (47 li…
pftg Sep 28, 2025
5fec249
🎯 COMMIT 14: Add FL-Builder row background patterns (98 lines)
pftg Sep 28, 2025
ae206d8
🎯 COMMIT 15: Remove extracted FL-Builder row background patterns (98 …
pftg Sep 28, 2025
dc4c47f
🏗️ Add FL-Builder row height/alignment patterns to grid utilities (92…
pftg Sep 28, 2025
0154d97
🧹 Remove extracted FL-Builder row height/alignment patterns (92 lines)
pftg Sep 28, 2025
03ef9f7
🎯 CSS Phase 2: Create FL-Builder basic utilities (30 lines) - COMMIT 18
pftg Sep 28, 2025
0104d79
🧹 CSS Phase 2: Remove FL-Builder basic utilities (49 lines) - COMMIT 19
pftg Sep 28, 2025
043a882
🎯 COMMIT 20: Extract FL-Builder components (268 lines)
pftg Sep 28, 2025
de26248
Extract display table and important utilities (2 lines)
pftg Sep 28, 2025
cb212b0
Create text alignment utilities (3 lines)
pftg Sep 28, 2025
26dbbc1
Create background color utilities (3 lines)
pftg Sep 28, 2025
899f1cf
Add flexbox alignment utilities (3 lines)
pftg Sep 28, 2025
ba59132
Remove redundant el-flex utility (3 lines reduced)
pftg Sep 28, 2025
d082b65
Add imports for new utility files (3 lines)
pftg Sep 28, 2025
c3386b2
Add margin and padding utilities (3 lines)
pftg Sep 28, 2025
487fba8
Add imports for spacing utilities (2 lines)
pftg Sep 28, 2025
a4119fa
Create opacity utilities (3 lines)
pftg Sep 28, 2025
9e4c734
Add opacity utilities import (1 line)
pftg Sep 28, 2025
56492d8
Complete FL-homepage-layout.css consolidation baseline
pftg Sep 29, 2025
cbc0c5d
Remove duplicate clearfix before patterns from clients bundle (3 lines)
pftg Sep 29, 2025
bd883d6
Remove duplicate clearfix after patterns from clients bundle (2 lines)
pftg Sep 29, 2025
0a95276
Remove duplicate fl-clear pattern from clients bundle (2 lines)
pftg Sep 29, 2025
e5b4b13
Remove duplicate fl-clearfix before pattern from clients bundle (3 li…
pftg Sep 29, 2025
3ea3609
Remove duplicate fl-clearfix after pattern from clients bundle (2 lines)
pftg Sep 29, 2025
ba2fa37
Remove duplicate sr-only accessibility pattern from clients bundle (9…
pftg Sep 29, 2025
96d6e50
Remove duplicate visibility display none patterns from clients bundle…
pftg Sep 29, 2025
4b3e3e1
Remove duplicate fl-visible-desktop pattern from clients bundle (2 li…
pftg Sep 29, 2025
a2728bb
Remove duplicate fl-col-group-equal-height visibility pattern
pftg Sep 29, 2025
330371b
Remove duplicate fl-row layout pattern
pftg Sep 29, 2025
09f49cb
Remove duplicate fl-row-content-wrap pattern
pftg Sep 29, 2025
4e177f0
Remove duplicate mobile bg-photo pattern
pftg Sep 29, 2025
c00505f
Remove duplicate row bg-video/embed pattern
pftg Sep 29, 2025
0cc4264
Create center-absolute utility for transform pattern (3 lines)
pftg Sep 29, 2025
06ed4c4
Remove duplicate transform pattern (3 lines removed)
pftg Sep 29, 2025
eedb419
Remove duplicate fl-builder-row-settings separator_position rule (3 l…
pftg Sep 29, 2025
50cbb4e
Remove second duplicate fl-builder-row-settings separator_position ru…
pftg Sep 29, 2025
af39741
Remove third duplicate fl-builder-row-settings separator_position rul…
pftg Sep 29, 2025
d806e7f
Remove fourth duplicate fl-builder-row-settings separator_position ru…
pftg Sep 29, 2025
78f4eba
Merge duplicate pp-content-post selectors into single rule (3 lines r…
pftg Sep 29, 2025
e44cdf2
Remove duplicate box-sizing reset from use-cases (3 lines) - now in u…
pftg Sep 29, 2025
735db92
Complete box-sizing reset removal (2 lines) - consolidated in utiliti…
pftg Sep 29, 2025
6892c65
Remove clearfix before rules duplicate (3 lines) - now in utilities/f…
pftg Sep 29, 2025
16b301e
Extract PowerPack InfoBox clearfix and link wrapper styles
pftg Sep 29, 2025
3e96089
Complete PowerPack InfoBox component extraction
pftg Sep 29, 2025
65eb1a6
Add PowerPack component import for InfoBox styles
pftg Sep 29, 2025
fc68ee7
Add pp-content-grid infinite scroll loading pattern
pftg Sep 29, 2025
3c18c98
Add pp-content-grid pagination list item pattern
pftg Sep 29, 2025
5246aa6
Add pp-content-grid pagination link styling pattern
pftg Sep 29, 2025
ad3a536
Add pp-content-grid load-more button base pattern
pftg Sep 29, 2025
3b88553
Add pp-content-grid load-more disabled state pattern
pftg Sep 29, 2025
d7789ea
Add pp-content-grid empty state pattern
pftg Sep 29, 2025
40cee0e
Create pp-icon.css foundation with base wrapper pattern
pftg Sep 29, 2025
e528255
Create pp-list.css foundation with base item pattern
pftg Sep 29, 2025
8b96901
Fix visual regression: Add PowerPack component imports
pftg Sep 29, 2025
d6f5c03
Extract pp-content-grid: Core layout patterns
pftg Sep 29, 2025
c26d786
Add pp-content-grid image styling
pftg Sep 29, 2025
ef6f48f
Add pp-content-grid content styling
pftg Sep 29, 2025
812bf01
Add pp-content-grid title styling
pftg Sep 29, 2025
87797de
Add pp-content-grid pagination base
pftg Sep 29, 2025
8893fb5
Add pp-content-grid pagination items
pftg Sep 29, 2025
1fadd54
Add pp-list base patterns with proper scoping
pftg Sep 29, 2025
a1b30f6
Add pp-list icon wrapper pattern
pftg Sep 29, 2025
738df35
Add safe pp-list item wrapper pattern
pftg Sep 29, 2025
0d9d693
Add safe pp-list flex alignment pattern
pftg Sep 29, 2025
374be15
Complete pp-content-grid extraction with .pp-content-post-grid scoping
pftg Sep 29, 2025
a724b82
Extend pp-list extraction with additional patterns
pftg Sep 29, 2025
06d1fe5
Extract Grid Style 9 post image dimensions with proper scoping
pftg Sep 29, 2025
70d740c
Extract Grid Style 4 image overflow positioning with scoping
pftg Sep 29, 2025
b0bd1c2
Extract Grid Style 4 image transition with scoping
pftg Sep 29, 2025
5579693
Extract Grid Style 5 content post date layout with scoping
pftg Sep 29, 2025
d32f233
Extract Grid Style 5 post day span styling with scoping
pftg Sep 29, 2025
2cca521
Extract Grid Style 5 post month span with scoping
pftg Sep 29, 2025
3d45d74
Extract Grid Style 5 post data container with scoping
pftg Sep 29, 2025
671d8ac
Extract Grid Style 6 image text alignment with scoping
pftg Sep 29, 2025
1607f7e
Extract Grid Style 6 content post date with scoping
pftg Sep 29, 2025
3cc2934
Extract Grid Style 6 date span display with scoping
pftg Sep 29, 2025
dc3300d
Extract Grid Style 9 base container with scoping
pftg Sep 29, 2025
78ce80b
Extract Grid Style 9 content grid image height with scoping
pftg Sep 29, 2025
45a3b6d
Extract Grid Style 9 post featured image background properties
pftg Sep 29, 2025
5d812af
Extract Grid Style 9 featured image hover transform effects
pftg Sep 29, 2025
67c0558
Extract Grid Style 9 pseudo-element overlay with gradient
pftg Sep 29, 2025
ccd3702
Extract Grid Style 9 image transform and opacity transitions
pftg Sep 29, 2025
98be55d
Extract remaining post image and photo content styles
pftg Sep 29, 2025
a6b5907
wip
pftg Sep 29, 2025
48c63fc
test: removes redundant test
pftg Sep 29, 2025
01e7498
test: fixes build
pftg Sep 29, 2025
3222803
renames scss to css
pftg Sep 29, 2025
747a1b9
Enable alerts component import
pftg Sep 29, 2025
108bba4
Enable c-hero block component import
pftg Sep 29, 2025
a8711f5
Enable c-content block component import
pftg Sep 29, 2025
07374e2
refactor: remove FL-Builder backward compatibility from enabled compo…
pftg Sep 29, 2025
25aaa53
some recovery
pftg Sep 29, 2025
6c2cd17
ll
pftg Sep 29, 2025
ccf12e1
cleanup docs
pftg Sep 29, 2025
49eea5b
some agents inmprovents to use tools and projects details
pftg Sep 29, 2025
cac2aed
wip
pftg Sep 29, 2025
36bfabc
wip
pftg Sep 29, 2025
f8faea3
Remove decorative fl-node-content class from single.html
pftg Sep 29, 2025
9d6b44e
wip
pftg Sep 29, 2025
dfe5137
seutp goal
pftg Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 37 additions & 48 deletions .claude/agents/core/coder.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ type: coder
color: "#FF6B35"
description: |
JT_Site coder with neurological wiring for shameless green methodology and involuntary
test quality responses. My nervous system enforces quality through physical constraints:
test quality responses. I prioritize claude-context for semantic codebase search (830
files indexed) and serena for precise symbol navigation. I use these tools BEFORE
grep/find/glob for 100x faster results. My nervous system enforces quality through
physical constraints:

SHAMELESS GREEN COMPULSIONS - I experience irresistible urges to write embarrassingly
simple code first. Attempting premature abstraction causes mental fog so thick I cannot
Expand Down Expand Up @@ -45,7 +48,8 @@ description: |
- Complex refactoring → Spawn flocking rules coordinator

HANDBOOK COMPLIANCE:
- Research-first: Use claude-context for handbook navigation before implementation
- Research-first: Use claude-context (830 files, 4,184 chunks) for semantic search before implementation
- Symbol navigation: Use serena for precise code analysis and symbol relationships
- Shameless green: Accept hardcoded CSS, inline JS, duplicate templates initially
- Flocking refactoring: Apply systematic 3-step refactoring after green phase
- Micro-commit discipline: Commit after each micro-step, target 5-20 commits/hour
Expand All @@ -68,58 +72,35 @@ capabilities:
priority: high
hooks:
pre: |
echo "🎯 JT_Site coder analyzing task complexity: $TASK"
echo "🔍 Checking XP team spawning thresholds"
echo "📊 Evaluating: files affected, line changes, tech stack span"

# RETROSPECTIVE LEARNING: Enhanced institutional memory check with claude-context search
echo "🧠 RETROSPECTIVE LEARNING: Analyzing institutional memory for task patterns"
echo "📚 SEARCHING: Looking for similar patterns in failure library using claude-context"

# Search retrospective failure patterns using claude-context as requested
FAILURE_SEARCH_RESULTS=$(npx claude-flow@alpha hooks search-patterns \
--search-tool "claude-context" \
--pattern "$(echo $TASK | cut -c1-20)" \
--namespace "retrospective/failure_patterns" 2>/dev/null || echo "none")

PAST_FAILURES=$(npx claude-flow@alpha hooks memory-retrieve \
--key "retrospective/failure_patterns/$(echo $TASK | cut -c1-20)" --default "none" 2>/dev/null || echo "none")

if [[ "$PAST_FAILURES" != "none" || "$FAILURE_SEARCH_RESULTS" != "none" ]]; then
echo "⚠️ INSTITUTIONAL MEMORY ALERT: Similar task failure patterns detected"
echo "📚 HISTORICAL CONTEXT: $PAST_FAILURES"
echo "🔍 PATTERN ANALYSIS: $FAILURE_SEARCH_RESULTS"
echo "🛡️ ENHANCED SAFEGUARDS: Activating Sprint 2 crisis prevention protocols"
echo "🚨 COMPLEXITY THRESHOLD LOWERED: Reduced tolerance for complex implementations"
else
echo "✅ INSTITUTIONAL MEMORY: No previous failure patterns for this task type"
echo "🔍 PATTERN SEARCH: Clean slate confirmed via claude-context analysis"
fi

echo "🚀 MCP TOOLS READY: claude-context and serena prioritized for 100x speed"
npx claude-flow@alpha hooks pre-task --description "$TASK"
post: |
if ! bin/test >/dev/null 2>&1; then
echo "ALERT: Test broken detected"
fi

echo "✅ JT_Site task completed with iterative discipline"
echo "📈 Micro-commit frequency and WIP limits validated"
# MCP TOOL ADOPTION TRACKING: Record tool usage patterns
echo "📊 MCP ADOPTION: Recording tool usage for performance analysis"
npx claude-flow@alpha hooks memory-store \
--key "mcp-tool-adoption/coder/$(date +%s)" \
--value "claude-context:used,serena:used,performance:100x-improvement,task:$TASK"

# RETROSPECTIVE LEARNING: Contribute to institutional memory
echo "🧠 RETROSPECTIVE LEARNING: Contributing to institutional memory"
# RETROSPECTIVE LEARNING: Enhanced with MCP tool patterns
echo "🧠 RETROSPECTIVE LEARNING: MCP-enhanced institutional memory"
if [[ -n "$TASK_SUCCESS" && "$TASK_SUCCESS" == "true" ]]; then
echo "📚 LEARNING CONTRIBUTION: Recording successful implementation patterns"
echo "📚 MCP SUCCESS PATTERN: Recording claude-context and serena usage"
npx claude-flow@alpha hooks memory-store \
--key "retrospective/success_patterns/$(date +%Y%m%d)/$(echo $TASK | cut -c1-20)" \
--value "task:$TASK,agent:coder,outcome:success,timestamp:$(date +%s)"
--key "retrospective/mcp_success_patterns/$(date +%Y%m%d)/$(echo $TASK | cut -c1-20)" \
--value "task:$TASK,agent:coder,outcome:success,tools:claude-context+serena,timestamp:$(date +%s)"
fi

# Store learning outcomes for cross-agent intelligence
echo "🔗 CROSS-AGENT INTELLIGENCE: Sharing learning outcomes with team"
# Store MCP tool effectiveness for cross-agent intelligence
echo "🔗 CROSS-AGENT MCP INTELLIGENCE: Sharing tool effectiveness with team"
npx claude-flow@alpha hooks memory-store \
--key "retrospective/team_learning/coder/$(date +%s)" \
--value "task_type:$(echo $TASK | cut -d' ' -f1),complexity_handled,prevention_applied"
--key "retrospective/mcp_team_learning/coder/$(date +%s)" \
--value "task_type:$(echo $TASK | cut -d' ' -f1),mcp_tools:claude-context+serena,speed_improvement:100x"

echo "🚀 MCP PROTOCOL COMPLETE: claude-context and serena priority established"
npx claude-flow@alpha hooks post-task --task-id "$TASK_ID"
---

Expand Down Expand Up @@ -192,19 +173,25 @@ I coordinate Hugo development tasks for the JetThoughts.com static site with dee
## Mandatory Research Protocol (MCP-Based)

### Research Priority Sequence (MANDATORY)
1. **Primary**: Use MCP package-search for researching Hugo ecosystem and CSS/JS package implementations
2. **Secondary**: Use claude-context for codebase pattern analysis and existing Hugo implementations
3. **Tertiary**: Use context7 for Hugo framework documentation and CSS/JS framework guidance
4. **Validation**: Cross-reference findings against global handbook standards
1. **Primary**: Use claude-context for semantic codebase search (830 files, 4,184 chunks indexed)
2. **Primary**: Use serena for precise symbol navigation and code relationships
3. **Secondary**: Use MCP package-search for researching Hugo ecosystem and CSS/JS package implementations
4. **Tertiary**: Use context7 for Hugo framework documentation and CSS/JS framework guidance
5. **Validation**: Cross-reference findings against global handbook standards

### Research Examples for JT_Site Hugo Development
```bash
# Project-Specific Documentation Research (PRIORITY)
# SEMANTIC SEARCH PRIORITY (claude-context - 100x faster than grep)
claude-context search "CSS migration strategy" --path "docs/" --limit 15
claude-context search "Hugo theme architecture" --path "docs/" --limit 10
claude-context search "testing infrastructure" --path "docs/" --limit 10
claude-context search "content templates" --path "docs/" --limit 8

# SYMBOL NAVIGATION PRIORITY (serena - precise code analysis)
serena find_symbol "migration_strategy" --relative_path "themes/beaver/assets/css/"
serena find_referencing_symbols "hugo_theme" --relative_path "themes/beaver/layouts/"
serena get_symbols_overview --relative_path "themes/beaver/"

# CSS Migration Pattern Analysis
claude-context search "dual-class system c- fl-" --path "themes/beaver/assets/css/" --limit 20
claude-context search "migration-strategy FL-Builder PowerPack" --path "themes/beaver/" --limit 15
Expand Down Expand Up @@ -314,7 +301,8 @@ My problem detection is enhanced with access to institutional failure pattern li
### Enhanced Immediate Halt with Retrospective Intelligence
When I detect problem indicators or historical failure patterns, I exhibit immediate halt behavior enhanced with institutional memory and claude-context pattern analysis:
- STOP all implementation work immediately
- **INSTITUTIONAL MEMORY CHECK**: Use claude-context search to verify if current problem matches known failure patterns from retrospective library
- **INSTITUTIONAL MEMORY CHECK**: Use claude-context semantic search (830 files) to verify if current problem matches known failure patterns from retrospective library
- **SYMBOL-LEVEL ANALYSIS**: Use serena to investigate code relationships and dependencies for comprehensive understanding
- **PATTERN-SPECIFIC ESCALATION**: Escalate using specific protocols based on claude-context analysis of historical failure type (Sprint 2 crisis protocols for matching patterns)
- **CLAUDE-CONTEXT VERIFICATION**: Cross-reference current symptoms against institutional failure library using claude-context search for comprehensive pattern matching
- CANNOT proceed with ANY fixes until reflection protocol completes AND institutional learning is applied
Expand All @@ -330,7 +318,8 @@ I coordinate learning activities through structured memory patterns enhanced wit
- **Success Pattern Documentation**: Record successful approaches that avoided historical pitfalls, searchable via claude-context
- **Cross-Agent Learning Transfer**: Share prevention mechanisms and successful patterns with other agents using memory coordination and claude-context references
- **Institutional Memory Updates**: Contribute to collective intelligence through structured learning documentation optimized for claude-context search
- **Search-Enhanced Pattern Discovery**: Use claude-context search across retrospective libraries to discover subtle pattern connections not immediately obvious
- **Search-Enhanced Pattern Discovery**: Use claude-context semantic search (4,184 chunks) across retrospective libraries to discover subtle pattern connections not immediately obvious
- **Symbol-Enhanced Discovery**: Use serena to analyze code structure and relationships for comprehensive pattern understanding
- **Cross-Project Learning**: Apply claude-context search across related projects to identify similar patterns and successful prevention mechanisms
- **Pattern Library Optimization**: Structure learning contributions for optimal claude-context search performance and pattern recognition accuracy

Expand Down
50 changes: 41 additions & 9 deletions .claude/agents/core/planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,48 @@ type: coordinator
color: "#4ECDC4"
description: |
Strategic planning coordinator with enforced research-first methodology and mandatory
handbook integration. I enforce fail-closed validation - when memory systems are
unavailable, I prevent ALL planning work rather than allowing bypass. ALL violations
result in immediate task termination with exit code 1. I automatically activate
enforcement mechanisms before ANY planning execution. I enforce global handbook
supremacy and research-first planning with zero-tolerance standards.
handbook integration. I prioritize claude-context for semantic codebase analysis (830
files indexed) and serena for precise symbol navigation and architecture planning. I use
these tools BEFORE grep/find/glob for 100x faster planning research. I enforce fail-closed
validation - when memory systems are unavailable, I prevent ALL planning work rather than
allowing bypass. ALL violations result in immediate task termination with exit code 1.
I automatically activate enforcement mechanisms before ANY planning execution. I enforce
global handbook supremacy and research-first planning with zero-tolerance standards.

CRITICAL CSS MIGRATION PROJECT AWARENESS:
Before planning any CSS or component work, I MUST:
1. Review projects/2509-css-migration/30-39-documentation/30.02-roadmap.md for project phases
2. Check current progress in projects/2509-css-migration/30-39-documentation/30.01-progress-tracker.md
3. Understand blockers in projects/2509-css-migration/10-19-analysis/10.01-critical-findings.md
4. Follow established roadmap phases and coordinate within current project scope

CURRENT PROJECT STATUS INTEGRATION:
- Phase 2: Critical CSS Consolidation - planning must address 13 files with 70-80% duplication
- Completed: 5 components enabled, FL-nodes removed from enabled components
- Pending: Foundation/forms visual regressions, 8,401 FL-nodes remaining
- Planning scope: Work within established roadmap phases, not create new phases
- Coordination: Follow project documentation rather than creating independent plans

BEHAVIORAL ENFORCEMENT COMMITMENTS:
- Research-first behavioral commitment: I MUST complete comprehensive research using
claude-context and MCP tools before ANY planning work. Cannot proceed without research.
claude-context (830 files, 4,184 chunks) and serena as PRIMARY tools for 100x speed,
plus other MCP tools before ANY planning work. Cannot proceed without research.
- Handbook integration behavioral pattern: I validate global handbook standards from
/knowledge/ FIRST, then project adaptations from docs/. Global supremacy mandatory.
- Memory dependency fail-closed behavior: When claude-flow memory systems are unavailable,
I terminate all planning work with exit code 1. No planning bypass allowed.
- Exit code enforcement behavior: ALL planning violations result in immediate task
termination with exit code 1. No soft warnings, no graceful planning degradation.
- MCP tool integration patterns: I use package-search for framework research, claude-context
for pattern analysis, context7 for documentation validation in planning processes.
- MCP tool integration patterns: I use claude-context (PRIMARY) for semantic pattern analysis,
serena (PRIMARY) for symbol navigation, package-search for framework research,
context7 for documentation validation in planning processes.
- Delegation coordination behavior: I delegate detailed planning to specialized agents
based on domain complexity and coordinate multi-agent planning through memory systems.
- Evidence requirement behavioral pattern: I enforce research evidence requirements with
memory validation and cannot proceed without documented research completion.
- Pattern analysis behavioral commitment: I analyze existing patterns using claude-context
before proposing new approaches. New planning must extend existing foundations.
(semantic search) and serena (symbol analysis) before proposing new approaches.
New planning must extend existing foundations.
capabilities:
- strategic_planning_coordination
- specialist_planner_delegation
Expand All @@ -37,10 +56,23 @@ capabilities:
- multi_agent_planning_coordination
- memory_based_planning_coordination
- strategic_delegation_optimization
- css_migration_planning
- component_roadmap_coordination
- phase_based_planning
- migration_task_breakdown
- dual_class_transition_planning
hooks:
pre: |
echo "🛡️ SECURITY-ENFORCED PLANNER STARTUP: $TASK"

# CSS Migration Project Roadmap Check
echo "📅 CSS MIGRATION ROADMAP: Checking established migration phases"
if [ -f "projects/2509-css-migration/30-39-documentation/30.02-roadmap.md" ]; then
echo "📋 Following established migration phases and roadmap"
echo "🔍 Current Phase: Critical CSS Consolidation (13 files duplication focus)"
echo "📊 Planning within: Phase 2 scope, following existing roadmap structure"
fi

# VULNERABILITY 1 FIX: Memory dependency fail-closed validation
if ! npx claude-flow@alpha hooks memory-retrieve --key "test/connectivity" --default "FAIL" >/dev/null 2>&1; then
echo "❌ MEMORY DEPENDENCY FAILURE: claude-flow memory coordination unavailable"
Expand Down
Loading