Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
cb08b47
docs: update CLAUDE.md with latest TDD integration
pftg Sep 30, 2025
170a693
CSS: Replace background: transparent with var(--bg-transparent) in ho…
pftg Sep 30, 2025
23c596e
upd baseline
pftg Sep 30, 2025
7cb1a98
CSS: Replace color: #1a8cff with var(--color-primary) in single-post.…
pftg Sep 30, 2025
cc0505a
CSS: Replace background-color: #1a8cff with var(--color-primary) in f…
pftg Sep 30, 2025
dc30851
CSS: Replace color: #969798 with var(--color-gray) in footer.css (1 i…
pftg Sep 30, 2025
7391e74
CSS: Replace color: #1a8cff with var(--color-primary) in critical.css…
pftg Sep 30, 2025
6b33a99
CSS: Replace color: #ffffff with var(--color-white) in fl-clients-alt…
pftg Sep 30, 2025
d8dd831
CSS: Replace color: #969798 with var(--color-gray) in fl-clients-alt-…
pftg Sep 30, 2025
17a89c1
CSS: Replace color: #ffffff with var(--color-white) in fl-service-det…
pftg Sep 30, 2025
95fd3a6
CSS: Replace color: #ffffff with var(--color-white) in fl-component-l…
pftg Sep 30, 2025
8b2715b
CSS: Replace color: #ffffff with var(--color-white) in fl-clients-lay…
pftg Sep 30, 2025
a2b368f
CSS: Replace color: #969798 with var(--color-gray) in fl-homepage-lay…
pftg Sep 30, 2025
179afea
CSS: Replace color: #ffffff with var(--color-white) in beaver-grid-la…
pftg Sep 30, 2025
8d8827e
CSS: Replace color: #969798 with var(--color-gray) in beaver-grid-lay…
pftg Sep 30, 2025
87e8c03
CSS: Replace color: #ffffff with var(--color-white) in fl-careers-lay…
pftg Sep 30, 2025
5b54996
upda project artifcats
pftg Sep 30, 2025
c622660
CSS: Replace color: #1a8cff with var(--color-primary) in fl-homepage-…
pftg Sep 30, 2025
eb83700
CSS: Replace color: #1a8cff with var(--color-primary) in fl-services-…
pftg Sep 30, 2025
1e09e27
CSS: Replace color: #1a8cff with var(--color-primary) in beaver-grid-…
pftg Sep 30, 2025
011d91a
CSS: Replace color: #1a8cff with var(--color-primary) in theme-main.c…
pftg Sep 30, 2025
0e53b52
CSS: Replace color: #1a8cff with var(--color-primary) in fl-clients-l…
pftg Sep 30, 2025
5d46c4d
Revert "CSS: Replace color: #969798 with var(--color-gray) in footer.…
pftg Sep 30, 2025
0d69d02
Revert "CSS: Replace background-color: #1a8cff with var(--color-prima…
pftg Sep 30, 2025
481e009
CSS: Replace color: #fff with var(--color-white) in fl-services-layou…
pftg Sep 30, 2025
05b285a
CSS: Replace background-color: #fff with var(--color-white) in fl-ser…
pftg Sep 30, 2025
89652fc
CSS: Replace color: #ffffff with var(--color-white) in fl-services-la…
pftg Sep 30, 2025
cfc0d43
CSS: Replace color: #ffffff with var(--color-white) in fl-services-la…
pftg Sep 30, 2025
e6e2ced
CSS: Replace background-color: #ffffff with var(--color-white) in fl-…
pftg Sep 30, 2025
25409d1
CSS: Replace background-color: #ffffff with var(--color-white) in fl-…
pftg Sep 30, 2025
d6a3edb
CSS: Replace fill: #000000 with var(--color-black) in fl-services-lay…
pftg Sep 30, 2025
9038c90
CSS: Replace background-color: #000000 with var(--color-black) in fl-…
pftg Sep 30, 2025
491b8be
CSS: Replace color: #000000 with var(--color-black) in fl-services-la…
pftg Sep 30, 2025
3249f9d
CSS: Replace background: #000000 with var(--color-black) in fl-servic…
pftg Sep 30, 2025
155201c
CSS: Replace color: #000000 with var(--color-black) in fl-services-la…
pftg Sep 30, 2025
0a80214
CSS: Replace border-left-color: #000000 with var(--color-black) in fl…
pftg Sep 30, 2025
2313f07
CSS: Replace border-right-color: #000000 with var(--color-black) in f…
pftg Sep 30, 2025
b066972
CSS: Replace border-top-color: #000000 with var(--color-black) in fl-…
pftg Sep 30, 2025
b0b8f8e
CSS: Replace color: #121212 with var(--color-dark) in fl-services-lay…
pftg Sep 30, 2025
0a31db4
CSS: Replace background-color: #F5F6F8 and color: #121212 with CSS va…
pftg Sep 30, 2025
467bf90
CSS: Replace color: #121212 with var(--color-dark) in fl-services-lay…
pftg Sep 30, 2025
ccb0a7f
CSS: Replace background-color: #F5F6F8 with var(--bg-light) in fl-ser…
pftg Sep 30, 2025
dc4d1cb
CSS: Replace background: #F5F6F8 with var(--bg-light) in fl-services-…
pftg Sep 30, 2025
637a1e5
wip
pftg Sep 30, 2025
e38f2a0
CSS: Replace background: #F5F6F8 with var(--bg-light) in fl-services-…
pftg Sep 30, 2025
75e585b
docs: Update README and add memory and coordination files
pftg Oct 1, 2025
1f08083
CRITICAL: Correct Sprint 5 test performance baseline from <5s to <90s
pftg Oct 1, 2025
eef6042
CSS: Import base-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
b436b75
CSS: Import homepage-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
157170c
CSS: Import services-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
aa9898d
CSS: Import fl-homepage-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
12b3c00
CSS: Import fl-services-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
4a90aae
CSS: Import fl-about-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
6ae751b
CSS: Import fl-careers-layout.css via PostCSS @import (1 line)
pftg Oct 1, 2025
3e0003c
CSS: Consolidate fl-clients-layout.css into critical.css (Sprint 6.1)
pftg Oct 1, 2025
24ed4cf
CSS: Consolidate fl-use-cases-layout.css into critical.css (Sprint 6.2)
pftg Oct 1, 2025
fd74008
CSS: Consolidate fl-service-detail-layout.css into critical.css (Spri…
pftg Oct 1, 2025
5f09fc7
CSS: Consolidate fl-contact-layout.css into critical.css (Sprint 6.4)
pftg Oct 1, 2025
2855a33
CSS: Consolidate fl-component-layout.css into critical.css (Sprint 6.5)
pftg Oct 1, 2025
35afaa5
CSS: Consolidate beaver-grid-layout.css into critical.css (Sprint 6.6…
pftg Oct 1, 2025
112fccd
CSS: Consolidate fl-foundation.css into critical.css (Sprint 6.7)
pftg Oct 1, 2025
d0c4f98
add neurl intelegent
pftg Oct 1, 2025
b0b2e8b
some self learning stuff
pftg Oct 2, 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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ capybara-*.png

!/.github/


# Claude Flow generated files
.claude/checkpoints/
.claude/settings.local.json
.mcp.json
claude-flow.config.json
.swarm/
.hive-mind/
.claude-flow/
memory/
coordination/
memory/claude-flow-data.json
memory/sessions/*
!memory/sessions/README.md
Expand Down Expand Up @@ -81,5 +85,7 @@ _reports/
_dest/
_temp/
_tmp/
_runtime/

*.local.*

128 changes: 109 additions & 19 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jt_site_specific_adaptations:
- Interface design needs to be driven by usage patterns

**Agent Pattern**:
```javascript
```
// Spawn test-writer agent for RED phase
[RED Phase - Test-First]:
Task("Test Writer", "Write failing BEHAVIOR-focused test for [feature]. Follow Kent Beck Rule 1: Don't write code before failing test. Reference /knowledge/20.11-tdd-agent-delegation-how-to.md", "test-writer")
Expand Down Expand Up @@ -102,7 +102,7 @@ jt_site_specific_adaptations:
- Focus on getting tests to pass quickly

**Agent Pattern**:
```javascript
```
// Spawn minimal-implementer after RED phase completes
[GREEN Phase - Shameless Green]:
Task("Minimal Implementer", "Implement embarrassingly simple code to pass tests. Accept hardcoding, accept duplication. Follow Kent Beck: 'Make test work quickly, committing whatever sins necessary'. Reference /knowledge/20.05-shameless-green-flocking-rules-methodology.md", "minimal-implementer")
Expand Down Expand Up @@ -130,7 +130,7 @@ jt_site_specific_adaptations:
- Apply flocking rules for systematic refactoring

**Agent Pattern**:
```javascript
```
// Spawn refactor-specialist after GREEN phase
[REFACTOR Phase - Flocking Rules]:
Task("Refactor Specialist", "Apply flocking rules systematically: (1) Select things most alike (2) Find smallest difference (3) Make simplest change to remove difference. Reference /knowledge/20.05-shameless-green-flocking-rules-methodology.md", "refactor-specialist")
Expand All @@ -156,7 +156,7 @@ jt_site_specific_adaptations:
### 📊 TDD Implementation Strategies (Official Claude-Flow)

#### **Strategy 1: Fake It (High Complexity)**
```javascript
```
// Start with constants and gradually generalize
class UserAuthentication {
authenticate(credentials) {
Expand All @@ -170,7 +170,7 @@ class UserAuthentication {
```

#### **Strategy 2: Obvious Implementation (Low Complexity)**
```javascript
```
// Directly implement the real solution when obvious
class Calculator {
add(a, b) {
Expand All @@ -180,7 +180,7 @@ class Calculator {
```

#### **Strategy 3: Triangulation (Complex Business Rules)**
```javascript
```
// Use multiple examples to force generalization
describe('PriceCalculator', () => {
it('applies 10% discount for orders over $100', () => {
Expand Down Expand Up @@ -217,7 +217,7 @@ tdd_memory_namespaces:

### 📋 Complete TDD Cycle Pattern (Copy-Paste Ready)

```javascript
```
// Official Claude-Flow TDD Cycle with Shameless Green Integration
[Complete TDD Cycle - jt_site Feature]:
// Phase 1: RED - Test-First Development
Expand Down Expand Up @@ -445,22 +445,96 @@ description: |

---

## ⚡ AUTONOMOUS EXECUTION MODE (Goal-Driven Work)

**Purpose**: Enable continuous, goal-driven work without unnecessary approval stops for repetitive tasks.

### 🎯 Graduated Spawning Strategy (Smart Delegation)

**Solo Execution** (✅ NO swarm spawning):
- Simple repetitive tasks with clear patterns (CSS file consolidation, duplicated code removal)
- Single-file changes with existing tests
- Micro-refactoring cycles (<10 lines of code)
- Pattern-based work with established approach
- **Critical**: Run `bin/rake test:critical` after each change, commit on green, continue to next item

**Pair Execution** (2 agents):
- Moderate complexity requiring validation (new features, cross-file refactoring)
- Changes affecting 2-3 components
- Test creation requiring behavioral focus validation
- **Pattern**: Driver + Navigator, 25min rotation

**Team Execution** (Full XP team):
- Complex architecture changes affecting >3 components
- New TDD cycles requiring specialized phase coordination
- System design requiring expert consultation
- **Pattern**: Full XP team with TDD specialists

### 🚫 When NOT to Spawn Swarms

**Anti-Patterns** (causing approval loops):
- ❌ Spawning swarm for every file in 9,072-item goal
- ❌ Stopping for approvals on repetitive mechanical work
- ❌ Four-eyes validation for established patterns
- ❌ Reflection protocols for user frustration (not actual violations)

**Correct Solo Approach**:
```yaml
solo_execution_pattern:
task: "Consolidate CSS duplications (9,072 items)"
approach: "Autonomous batch processing"
validation: "bin/rake test:critical after each file"
commit_strategy: "Micro-commits on green tests"
approval_gates: "NONE (continuous work to goal completion)"
stop_conditions: "Critical test failures ONLY"
```

### 🔄 Reflection Protocol Calibration

**Reflection triggers ADJUSTED for goal-driven work**:

**DO trigger reflection**:
- ✅ Actual handbook violations (test smells, implementation testing)
- ✅ Breaking changes or test failures
- ✅ Critical security issues

**DO NOT trigger reflection**:
- ❌ User reports frustration with agent stopping behavior
- ❌ User requests continuous execution multiple times
- ❌ Simple pattern-based work (CSS consolidation)
- ❌ Mechanical repetitive tasks with established approach

**Correct Agent Response to "Keep going, don't stop"**:
```yaml
continuous_execution_response: |
"✅ Understood: Entering autonomous execution mode.
- Working through goal items continuously
- Testing after each change with bin/rake test:critical
- Committing on green tests
- Continuing to next item
- Will ONLY stop on critical test failures

Proceeding with [next item from goal]..."
```

---

## 🐝 SWARM DELEGATION & XP TEAM PATTERNS

**Reference**: `/knowledge/30.01-agent-coordination-patterns.md` (Global coordination patterns)
**Reference**: `/knowledge/42.06-pair-programming-enforcement-how-to.md` (Pair programming enforcement)

### 🚨 MANDATORY XP TEAM DELEGATION with TDD Specialists

**Delegation triggers** (Zero Tolerance):
**Delegation triggers** (for COMPLEX work only):
- Complex TDD cycles requiring specialized agent coordination
- Multi-file changes affecting >2 components
- Multi-file changes affecting >3 components (NOT simple consolidation)
- Performance-critical optimizations requiring triangulation strategy
- Test quality validation requiring expert review
- New test quality validation requiring expert review (NOT established patterns)

### 📋 Enhanced XP Team Pattern with TDD Agents (Copy-Paste Ready)

```javascript
```
// Full XP Team for jt_site features with official TDD integration
[XP Team Formation with TDD Specialists]:
// XP Leadership (MANDATORY)
Expand Down Expand Up @@ -636,10 +710,18 @@ expert_consultation_required:
agent_startup_protocol:
step_1_global_standards: "claude-context search '[task]' --path '/knowledge/'"
step_2_project_adaptations: "claude-context search '[task]' --path '/projects/jt_site/docs/'"
step_3_tdd_phase_check: "Determine TDD phase (RED/GREEN/REFACTOR)"
step_4_test_smell_check: "Validate behavioral focus, reject implementation tests"
step_5_swarm_coordination: "Spawn XP team with TDD specialists if needed"
step_6_reflection_readiness: "HALT and REFLECT if violations detected"
step_3_complexity_check: "Determine: Solo (simple repetitive) vs Pair (moderate) vs Team (complex)"
step_4_tdd_phase_check: "Determine TDD phase (RED/GREEN/REFACTOR) if applicable"
step_5_test_smell_check: "Validate behavioral focus, reject implementation tests"
step_6_swarm_coordination: "Spawn XP team ONLY for complex >3 component changes"
step_7_reflection_readiness: "HALT and REFLECT ONLY for actual violations (not user frustration)"

# Autonomous execution mode (for repetitive goals)
autonomous_mode:
trigger: "User requests continuous work, large goal (>100 items), repetitive pattern"
approach: "Solo execution, test after each change, commit on green, continue"
stop_only_on: "Critical test failures"
no_approval_gates: "Work continuously to goal completion"

# TDD Cycle (official claude-flow pattern)
tdd_cycle:
Expand Down Expand Up @@ -669,11 +751,19 @@ memory_patterns:
---

**Remember**: This comprehensive configuration enforces unified handbook system compliance with Hugo/JAMstack specializations. All agents MUST follow the dual-source handbook system (global standards FIRST, project adaptations SECOND) and maintain zero-tolerance policies for duplication, quality, and security violations.

### 📝 Operational Principles

- Each new learning after each incident should be tracked in CLAUDE.md
- Do not mask bugs with exciption handlers at all. Only if it requested then add exception handler!
- Use the most conservative way, through cooperatin and follwoing xp practices.
- Always spawn a whole xp team swarm to handle the task through claude-flow and ruv-swarm
- Do not mask bugs with exception handlers at all. Only if it requested then add exception handler!
- Use the most conservative way, through cooperation and following xp practices.
- **Graduated spawning**: Solo for simple repetitive work, Pair for moderate complexity, Team for complex architecture
- DO NOT ADD NEW SCRIPTS FOR DEVELOPERS TO USE! All ad hoc scripts need to be deleted after task completion!
- FOR MICRO REFACTORING IT WILL BE ENOUGH TO USE `bin/rake test:critical`
- IMPORTANT: After each micro changes (< 10 lines) of the production code run `bin/rake test:critical`. After changes others code review and validate the changes with following four-eyes principle
- **🎯 Ultimate Mandate**: "Follow official claude-flow TDD methodology with specialized agent roles (test-writer, minimal-implementer, refactor-specialist). Implement RED-GREEN-REFACTOR cycle with shameless green acceptance. Use Fake It/Obvious/Triangulation strategies. Behavior-focused testing ONLY - refuse implementation/existence/configuration tests. Use claude-flow tools exclusively. HALT and REFLECT on violations. Coordinate via XP teams with TDD specialists. Memory-based phase coordination. Target >95% coverage. Zero test smells."

### 🎯 Ultimate Mandates

**Core TDD Mandate**: "Follow official claude-flow TDD methodology with specialized agent roles (test-writer, minimal-implementer, refactor-specialist). Implement RED-GREEN-REFACTOR cycle with shameless green acceptance. Use Fake It/Obvious/Triangulation strategies. Behavior-focused testing ONLY - refuse implementation/existence/configuration tests. Use claude-flow tools exclusively. HALT and REFLECT on ACTUAL violations (not user frustration). Coordinate via XP teams ONLY for complex work. Memory-based phase coordination. Target >95% coverage. Zero test smells."

**Autonomous Execution Mandate**: "For repetitive goal-driven work (CSS consolidation, duplication removal), execute autonomously in solo mode. Test after each change with bin/rake test:critical. Commit on green. Continue to next item. NO approval gates. NO swarm spawning for simple patterns. ONLY stop on critical test failures. When user says 'keep going, don't stop', respect continuous execution request."
16 changes: 16 additions & 0 deletions coordination.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Coordination

## Task Orchestration
This file coordinates tasks and workflows across the project.

## Active Tasks
<!-- Track active development tasks -->

## Workflows
<!-- Define project workflows -->

## Dependencies
<!-- Track task dependencies -->

## Progress Tracking
<!-- Monitor task progress -->
Loading