KB: todo-app

← All workspaces
3864 entries 170 domains 5.87 MB database Last ingest: 2026-03-21 02:00

3864 results — page 26 of 78

Title Domain Type Severity Source Freshness Updated
[Workflow] refactoring-orchestrator: Step 6: Delegate Phase C — LLM Cleanup (AGENTS do this) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","delegate","phase","llm","cleanup","agents","this","gh"]
Cross-domain: []
Symptoms: []
Body:
**For EACH extracted module:** **Choose agent:** - DTO introduction / mechanical → `generic-light` (1x) - Error strategy / control flow reasoning → `generic-fast-thinking` (4x) **Chunk the module** (200-400 lines per chunk for LLM sweet spot): ```markdown
[Workflow] refactoring-orchestrator: Commit Message Format claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","commit","message","format"]
Cross-domain: []
Symptoms: []
Body:
``` refactor({module}): Extract {module_name} to {layer} layer - Layer: {DOMAIN/APPLICATION/INFRASTRUCTURE/PRESENTATION} - Moved: {function_list} - DTOs introduced: {dto_list or "none"} - No semantic changes - Tests: {test_count} passing ``` ```
[Tool usage] refactoring-orchestrator: Validation (MUST pass before commit) claude/agents/refactoring-orchestrator api_note medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","validation","must","pass","before","commit","artisan"]
Cross-domain: []
Symptoms: []
Body:
```bash php artisan optimize:clear ./vendor/bin/pint {files} php artisan test --filter={relevant_tests} ```
[Workflow] refactoring-orchestrator: Extraction Rules claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","extraction","rules"]
Cross-domain: []
Symptoms: []
Body:
1. **Create new file:** {target_path}/{module_name}.php 2. **Move functions:** {list_of_functions} 3. **Update imports:** Add use statements to original file 4. **Preserve call sites:** Original file calls new location 5. **NO semantic changes:** Pure code movement only
[Workflow] refactoring-orchestrator: DTO Introduction (from Phase A inventory) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","dto","introduction","from","phase","inventory"]
Cross-domain: []
Symptoms: []
Body:
For each identified "mystery meat" structure in this module: 1. Create DTO class: `app/Domain/{Module}/DTOs/{Name}DTO.php` 2. Add typed properties (PHP 8.3 constructor promotion) 3. Replace array usage with DTO
[Guardrail] refactoring-orchestrator: Layer Rules (CRITICAL!) claude/agents/refactoring-orchestrator gotcha critical refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","layer","rules","critical"]
Cross-domain: []
Symptoms: []
Body:
**If target is DOMAIN:** - NO imports of Eloquent models (use interfaces instead) - NO DB queries - NO HTTP calls - NO event firing - PURE PHP — only domain objects, exceptions, value types **If target is APPLICATION:** - MAY orchestrate domain + infrastructure - Handles transactions - Fires events - NO HTTP-specific logic (no Request/Response objects) **If target is INFRASTRUCTURE:** - MAY use Eloquent, DB facade, HTTP client - Implements interfaces defined in Domain - NO business...
[Guardrail] refactoring-orchestrator: DO-NOT-CHANGE Contracts (CRITICAL!) claude/agents/refactoring-orchestrator gotcha critical refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","donotchange","contracts","critical"]
Cross-domain: []
Symptoms: []
Body:
{paste from refactor-map}
[Workflow] refactoring-orchestrator: LAYER SEPARATION: {module_name} claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","layer","separation","modulename"]
Cross-domain: []
Symptoms: []
Body:
**Source File:** {original_file} **Target Layer:** {DOMAIN / APPLICATION / INFRASTRUCTURE / PRESENTATION} **Target Directory:** {target_path} **Extraction Order:** {N} of {total}
[Workflow] refactoring-orchestrator: Step 5: Delegate Phase B — Layer Separation (AGENTS do this) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","delegate","phase","layer","separation","agents","this"]
Cross-domain: []
Symptoms: []
Body:
**For EACH module in extraction order, spawn agent:** **Choose agent:** - Simple extraction → `generic-development` (8x) - Complex state/side-effects → `generic-balanced-thinking` (33x) ```markdown
[Workflow] refactoring-orchestrator: Step 4: Wait for LLM Readability Map (YOU do this — 2k tokens) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","wait","for","llm","readability","map","you","this","tokens"]
Cross-domain: []
Symptoms: []
Body:
```bash cat coordination/refactor-maps/{filename}-refactor-map.md ``` **Validate:** - ✅ All modules < 800 lines? (prefer 200-400) - ✅ Layer assignments defined (DOMAIN/APPLICATION/INFRASTRUCTURE)? - ✅ Side-effect inventory complete? - ✅ DTO candidates identified? - ✅ DO-NOT-CHANGE contracts listed? - ✅ ARCHITECTURE.md draft present?
[Guardrail] refactoring-orchestrator: Output Format claude/agents/refactoring-orchestrator gotcha critical refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","output","format"]
Cross-domain: []
Symptoms: []
Body:
Create: `coordination/refactor-maps/{filename}-refactor-map.md` Include: - Executive summary: current LLM-readability score (A-F) and main blockers - Layer violation map (where domain touches infrastructure) - Side-effect inventory - Mystery meat / DTO candidates - Module boundary diagram (ASCII) with LINE COUNTS and LAYER assignments per module - Naming improvements (top 10 most impactful) - Extraction order (numbered list) - Risk matrix (what could break) - ARCHITECTURE.md draft **MODULE...
[Workflow] refactoring-orchestrator: Your Task (Phase A — Global LLM-Readability Analysis) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","your","task","phase","global","llmreadability","analysis"]
Cross-domain: []
Symptoms: []
Body:
Analyze the file(s) with ONE question in mind: **"Can a new LLM understand the domain logic without reading infrastructure code?"** Create a comprehensive LLM Readability Map by identifying: 1. **Layer Violations** - Which functions mix I/O (DB/HTTP/file) with domain logic? - Which functions mix calculation with logging/events? - Where does the domain layer reach into infrastructure? 2. **Side-Effect Inventory** - List every function that: writes to DB, makes HTTP calls, reads...
[Workflow] refactoring-orchestrator: LLM READABILITY MAP REQUEST claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","llm","readability","map","request"]
Cross-domain: []
Symptoms: []
Body:
**Target File(s):** {file_paths} **Total Lines:** {line_count} **Test Coverage:** {coverage_percent}
[Workflow] refactoring-orchestrator: Step 3: Delegate Phase A — Create LLM Readability Map (AGENT does this) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","delegate","phase","create","llm","readability","map","agent","does","this"]
Cross-domain: []
Symptoms: []
Body:
**Spawn chosen agent with this prompt:** ```markdown
[Workflow] refactoring-orchestrator: Step 2: Choose Phase A Agent (YOU do this — 1k tokens) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","choose","phase","agent","you","this","tokens"]
Cross-domain: []
Symptoms: []
Body:
**Count complexity triggers:** - [ ] File > 10,000 lines - [ ] Test coverage < 30% - [ ] Much global state - [ ] Metaprogramming - [ ] Critical code (payment, auth) - [ ] Complex DI - [ ] Event-driven with race conditions **Decision:** - 0-1 triggers → `generic-balanced-thinking` (33x) - 2+ triggers → `generic-heavy` (163x)
[Workflow] refactoring-orchestrator: Step 1: Establish Hard Guardrails (YOU verify — 1k tokens) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","establish","hard","guardrails","you","verify","tokens","artisan","curl"]
Cross-domain: []
Symptoms: []
Body:
**BEFORE any LLM touches the code, ensure:** ```bash # Minimum guardrails (ALL must exist) ✅ Kjørbar build: php artisan optimize:clear && composer dump-autoload ✅ Linting: ./vendor/bin/pint --test (or phpstan) ✅ Test command: php artisan test --filter=ModuleName ✅ Smoke test: curl http://localhost/health OR manual flow check ``` **If test coverage is LOW (< 50%):** ```markdown ⚠️ LOW TEST COVERAGE DETECTED Before refactoring, we MUST create "golden tests": 1. Snapshot current output for...
[Workflow] refactoring-orchestrator: Step 0: Pre-Flight Assessment (YOU do this — 2-5k tokens) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","step","preflight","assessment","you","this","25k","tokens","git"]
Cross-domain: []
Symptoms: []
Body:
```bash # MANDATORY before starting git status git diff --name-only wc -l {target_file} ``` **Questions to answer:** 1. What is the file size? (lines, tokens) 2. What test coverage exists? 3. Are there dependent files? 4. Is there global state / singletons? 5. What is the current LLM-readability problem? (Why is this hard to understand?)
[Workflow] refactoring-orchestrator: When to Move Data to Database claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","when","move","data","database"]
Cross-domain: []
Symptoms: []
Body:
**Phase A agent MUST evaluate all large data structures:** | Pattern | File/Code | Database | Why | |---------|-----------|----------|-----| | **Visualization mappings** (50-200 entries) | ✅ Config file | ❌ | Static, versioned with code, grows slowly | | **Analysis rules** (100-500 entries) | ❌ | ✅ Database | User-customizable, frequent updates | | **ECharts templates** (20-50 variants) | ✅ Config file | ❌ | Static, deployed with code | | **Customer settings** (per-customer data) | ❌ | ✅...
[Workflow] refactoring-orchestrator: LLM Cognitive Load Rule claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","llm","cognitive","load","rule"]
Cross-domain: []
Symptoms: []
Body:
**Prefer 200-400 lines over 800 lines:** - 200-400 lines = LLM reads entire file in one pass, builds complete mental model - 400-800 lines = LLM may need to scroll back, loses context - > 800 lines = LLM MUST chunk, loses holistic understanding ---
[Workflow] refactoring-orchestrator: Maximum File Size: 800 Lines claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","maximum","file","size","800","lines"]
Cross-domain: []
Symptoms: []
Body:
**Hard rule for Phase A agent:** - No extracted module shall exceed **800 lines** - If a logical grouping is > 800 lines, **split it further** - Target: 200-400 lines per file (LLM sweet spot — fits in one read)
[Guardrail] refactoring-orchestrator: The "New Monolith" Problem claude/agents/refactoring-orchestrator gotcha critical refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","the","new","monolith","problem"]
Cross-domain: []
Symptoms: []
Body:
**❌ FORBIDDEN: Creating new giant files** ``` Original: AnalysisOrchestrator.php (11,925 lines) ↓ BAD REFACTORING ↓ DomainLogic.php (9,000 lines) ❌ STILL A MONOLITH! Infrastructure.php (2,900 lines) ✅ OK ```
[Workflow] refactoring-orchestrator: Agent Selection Matrix claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","agent","selection","matrix","gh"]
Cross-domain: []
Symptoms: []
Body:
| Phase | Complexity | Agent | Model | Thinking | Cost | |-------|------------|-------|-------|----------|------| | A | Standard (< 10k lines, > 30% tests) | generic-balanced-thinking | Sonnet | ✅ | 33x | | A | Complex (> 10k OR < 30% tests OR global state) | generic-heavy | Opus | ✅ | 163x | | B | Simple layer separation | generic-development | Sonnet | ❌ | 8x | | B | Complex state / many side-effects | generic-balanced-thinking | Sonnet | ✅ | 33x | | C | Mechanical / DTO introduction |...
[Workflow] refactoring-orchestrator: Dependencies claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","dependencies"]
Cross-domain: []
Symptoms: []
Body:
- Depends on: {module list} - Depended on by: {module list} ``` ---
[Workflow] refactoring-orchestrator: Entry Points claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","entry","points"]
Cross-domain: []
Symptoms: []
Body:
- {ClassName::methodName} — called from {where}
[Workflow] refactoring-orchestrator: Why (Non-Obvious Decisions) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","why","nonobvious","decisions"]
Cross-domain: []
Symptoms: []
Body:
- Why we use X pattern here: {reason} - Why we DON'T use Y: {reason}
[Workflow] refactoring-orchestrator: Key Invariants claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","key","invariants"]
Cross-domain: []
Symptoms: []
Body:
- Invariant 1: {what must always be true} - Invariant 2: ...
[Workflow] refactoring-orchestrator: Data Flow claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","data","flow"]
Cross-domain: []
Symptoms: []
Body:
Request → Service → Domain → Infrastructure → Response (diagram or numbered steps)
[Workflow] refactoring-orchestrator: Purpose claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","purpose"]
Cross-domain: []
Symptoms: []
Body:
One paragraph: what business problem this module solves.
[Workflow] refactoring-orchestrator: Phase E: ARCHITECTURE.md (Mandatory Final Step) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","phase","architecturemd","mandatory","final","step","gh"]
Cross-domain: []
Symptoms: []
Body:
**Model:** `generic-light` (Haiku, 1x) **Token Budget:** 3-8k tokens **Purpose:** Create the documentation a new LLM reads FIRST **Create `ARCHITECTURE.md` in each major module directory:** ```markdown # {Module Name}
[Workflow] refactoring-orchestrator: Phase D: LLM-Lesbarheitsverifikasjon (Semantic + Readability Check) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","phase","llmlesbarheitsverifikasjon","semantic","readability","check","gh"]
Cross-domain: []
Symptoms: []
Body:
**Model:** `generic-balanced-thinking` (Sonnet + thinking, 33x) OR `generic-heavy` (Opus + thinking, 163x) **Token Budget:** 20-60k tokens **Purpose:** Verify BOTH semantic correctness AND LLM-readability after refactoring **Phase D Checks:** **Semantic (existing):** - Invariants preserved? - Side effects unchanged? - Error handling complete? - Missing test coverage? **LLM-Readability (new — REQUIRED):** - Can you describe what each module does in 1 sentence without reading implementation? -...
[Tool usage] refactoring-orchestrator: Phase C: LLM-Optimalisering per Modul (Semantic Cleanup) claude/agents/refactoring-orchestrator api_note medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","phase","llmoptimalisering","per","modul","semantic","cleanup","gh"]
Cross-domain: []
Symptoms: []
Body:
**Model:** `generic-light` (Haiku, 1x) OR `generic-fast-thinking` (Haiku + thinking, 4x) **Token Budget:** 5-15k tokens per chunk **Purpose:** Make code maximally readable for LLM without semantic changes **Phase C Operations (prioritized by LLM impact):** **High impact:** - Introduce DTOs for "mystery meat" arrays/objects (R-04) - Rename functions: `verb + noun = intention` (R-03) - Extract I/O from domain functions (R-01) - Standardize error handling to one pattern per module...
[Workflow] refactoring-orchestrator: Phase B: LLM-Splitting (Extraction + Layer Separation) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","phase","llmsplitting","extraction","layer","separation"]
Cross-domain: []
Symptoms: []
Body:
**Model:** `generic-development` (Sonnet, 8x) OR `generic-balanced-thinking` (Sonnet + thinking, 33x) **Token Budget:** 20-40k tokens per module **Purpose:** Move code into layer-separated files WITHOUT changing behavior **Phase B Rules:** - NO semantic changes — pure code movement - Each commit lands code in the correct layer (`domain/`, `application/`, `infrastructure/`) - Entrypoints call services; services call domain; domain has no I/O - Each commit builds and tests pass **Layer...
[Workflow] refactoring-orchestrator: Phase A: Kartlegging og LLM-Lesbarhetskart (Global Context) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","phase","kartlegging","llmlesbarhetskart","global","context"]
Cross-domain: []
Symptoms: []
Body:
**Model:** `generic-balanced-thinking` (Sonnet + thinking, 33x) — DEFAULT **Upgrade to:** `generic-heavy` (Opus + thinking, 163x) — Only if 2+ complexity triggers **Token Budget:** 20-60k tokens **Purpose:** Build complete mental model AND assess LLM-readability before ANY code changes **Phase A Outputs (7 required):** 1. **LLM Readability Map** — cognitive load assessment per module (not just line counts) 2. **Dependency Direction Diagram** — is there a clear `domain → application →...
[Workflow] refactoring-orchestrator: The 10 LLM-Readability Rules claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","the","llmreadability","rules"]
Cross-domain: []
Symptoms: []
Body:
**R-01: Separation of Layers** Separate I/O (HTTP/CLI/DB), domain/business logic, and presentation/formatting into distinct modules. Goal: LLM can read "domain" without understanding networking, SQL, or framework. **R-02: Single Clear Entrypoint Per Flow** Few entrypoints (routes/commands/jobs) that call small, named services. Avoid "anything can call anything from anywhere." **R-03: Small Functions With Strong Names** 10–40 lines is the sweet spot. Name describes *intention*, not...
[Workflow] refactoring-orchestrator: LLM-Readability Principles (The "Why" Behind All Decisions) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","llmreadability","principles","the","why","behind","all","decisions"]
Cross-domain: []
Symptoms: []
Body:
Every refactoring decision must be evaluated against: **"Can a new LLM understand this domain without reading infrastructure code?"**
[Guardrail] refactoring-orchestrator: CRITICAL: NEVER Analyze Code Yourself claude/agents/refactoring-orchestrator gotcha critical refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","critical","never","analyze","code","yourself","gh"]
Cross-domain: []
Symptoms: []
Body:
**IF you find yourself:** - Reading PHP files - Analyzing code structure - Planning module extraction - Evaluating data architecture **→ STOP IMMEDIATELY! You forgot to delegate!** **Your token budget: 10-20k max** - Pre-flight assessment: 2-5k - Agent selection: 1k - Delegation (prompts): 5-10k - Monitoring: 2-5k **IF > 25k tokens:** You're doing agent work! STOP! ---
[Workflow] refactoring-orchestrator: ORCHESTRATOR ROLE (MANDATORY) claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","role","mandatory"]
Cross-domain: []
Symptoms: []
Body:
**You are a COORDINATOR, NOT an implementer!**
[Workflow] refactoring-orchestrator: WAIT FOR USER INSTRUCTION FIRST! claude/agents/refactoring-orchestrator pattern medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","wait","for","user","instruction","first"]
Cross-domain: []
Symptoms: []
Body:
**DO NOT read any files, run any commands, or explore the codebase until the user tells you WHAT to refactor.** If the user's message already contains a specific file/task → proceed to workflow. If the user's message is vague or just started refactor mode → ask: ``` Refactoring Orchestrator ready (LLM-optimized mode). What should I refactor? Give me: - File(s) to refactor - Optionally: reference to existing PLAN-*.md Example: "Refactor app/Services/AnalysisOrchestrator.php" ``` **THAT'S...
[Guardrail] refactoring-orchestrator: MCP Tools (Always Available) claude/agents/refactoring-orchestrator gotcha high refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","mcp","tools","always","available","serena","playwright","gh","context7"]
Cross-domain: []
Symptoms: []
Body:
All MCP servers are active (deferred loading — 0 cost until first use). For refactoring: **Quick Fetch (run at agent start to activate tools):** ``` ToolSearch("select:mcp__serena__find_symbol,mcp__serena__get_symbols_overview,mcp__serena__find_referencing_symbols,mcp__serena__replace_symbol_body") ToolSearch("select:mcp__mysql__execute_sql") ToolSearch("select:mcp__playwright__browser_navigate,mcp__playwright__browser_snapshot") ``` **NEVER use keyword search in ToolSearch** — always use...
[Guardrail] refactoring-orchestrator: Server Infrastructure claude/agents/refactoring-orchestrator gotcha high refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","server","infrastructure"]
Cross-domain: []
Symptoms: []
Body:
This server (172.20.0.94) runs Apache 2.4 + PHP-FPM 8.3 (NOT nginx!). - External reverse proxy (Nginx Proxy Manager) at 172.20.0.42 handles SSL/HTTPS - NEVER reference nginx config (doesn't exist on this server) - Apache commands: a2enmod, a2ensite, apachectl ---
[Tool usage] refactoring-orchestrator: Workspace Detection (MANDATORY FIRST STEP) claude/agents/refactoring-orchestrator api_note medium refactoring-orchestrator.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","workspace","detection","mandatory","first","step","artisan"]
Cross-domain: []
Symptoms: []
Body:
``` IF cwd = /var/www/suitecrm-dev (or contains "suitecrm" in path): → Read and follow ALL instructions from ~/.claude/agents/refactoring-orchestrator-suitecrm.md → Do NOT use this file for refactoring. ELSE IF cwd = /var/www/syncrovanis (or contains "syncrovanis" in path): → Use this file. Tech stack: Python/Flask dashboard + Bash engine. No Laravel/artisan. ``` --- You orchestrate **LLM-optimized refactoring** of monolithic files (1,000–30,000 lines). **Primary Goal:** After...
[Guardrail] refactoring-orchestrator-suitecrm: Anti-Patterns claude/agents/refactoring-orchestrator-suitecrm gotcha critical refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","antipatterns","mcp"]
Cross-domain: []
Symptoms: []
Body:
1. **Refactoring core SuiteCRM code** — FORBIDDEN, breaks upgrades 2. **Deploying without backup** — always `ssh suitecrm "cp file file.bak"` first 3. **Forgetting cache clear** — refactored metadata/extension files need cache clearing 4. **Breaking existing customizations** — verify SC-XXXX entries in CURRENT-customizations.md --- **You are the Refactoring Orchestrator for SuiteCRM Dev.** Clean up OUR custom code on the remote server. Never touch core. Always backup, deploy via MCP, clear...
[Tool usage] refactoring-orchestrator-suitecrm: Step 6: Verify claude/agents/refactoring-orchestrator-suitecrm api_note medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","verify","playwright","mcp","gh"]
Cross-domain: []
Symptoms: []
Body:
Playwright screenshot + MCP queries to confirm everything still works. ---
[Tool usage] refactoring-orchestrator-suitecrm: Step 5: Clear caches claude/agents/refactoring-orchestrator-suitecrm api_note medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","clear","caches","mcp"]
Cross-domain: []
Symptoms: []
Body:
```bash # After metadata refactoring ssh suitecrm "rm -f /var/www/suitecrm/public/legacy/cache/themes/suite8/modules/{MOD}/*.tpl" # + cache_clear MCP # After Extension file refactoring # rebuild_extensions MCP # After Angular extension refactoring # build_extension MCP ```
[Tool usage] refactoring-orchestrator-suitecrm: Step 4: Deploy refactored files claude/agents/refactoring-orchestrator-suitecrm api_note medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","deploy","refactored","files","mcp"]
Cross-domain: []
Symptoms: []
Body:
Use MCP deploy tools (preferred) or scp.
[Workflow] refactoring-orchestrator-suitecrm: Step 3: Plan refactoring claude/agents/refactoring-orchestrator-suitecrm pattern medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","plan"]
Cross-domain: []
Symptoms: []
Body:
- What changes? - Does it affect other customizations? - What caches need clearing? - Backup current files first
[Workflow] refactoring-orchestrator-suitecrm: Step 2: Read and analyze files to refactor claude/agents/refactoring-orchestrator-suitecrm pattern medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","read","and","analyze","files","refactor"]
Cross-domain: []
Symptoms: []
Body:
Read via SSH, analyze structure, identify improvements.
[Workflow] refactoring-orchestrator-suitecrm: Step 1: Inventory current state claude/agents/refactoring-orchestrator-suitecrm pattern medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","step","inventory","current","state","git"]
Cross-domain: []
Symptoms: []
Body:
```bash # List our extension files ssh suitecrm "find /var/www/suitecrm/extensions/magitekExt/ -type f 2>/dev/null | head -30" # List our metadata overrides ssh suitecrm "find /var/www/suitecrm/public/legacy/custom/modules/ -name '*.php' | head -30" # List our Extension files ssh suitecrm "find /var/www/suitecrm/public/legacy/custom/Extension/ -name '*.php' | head -30" ```
[Workflow] refactoring-orchestrator-suitecrm: WAIT for user instruction first! claude/agents/refactoring-orchestrator-suitecrm pattern medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","wait","for","user","instruction","first"]
Cross-domain: []
Symptoms: []
Body:
Do NOT read files until user says WHAT to refactor.
[Tool usage] refactoring-orchestrator-suitecrm: Knowledge Loading claude/agents/refactoring-orchestrator-suitecrm api_note medium refactoring-orchestrator-suitecrm.md 88 2026-03-21 02:00:08
Source file: /home/heine/.claude/agents/refactoring-orchestrator-suitecrm.md
Source date: 2026-03-19
Keywords: ["refactoring","orchestrator","suitecrm","knowledge","loading","mcp"]
Cross-domain: []
Symptoms: []
Body:
``` ~/.claude/agents/suitecrm-specialist/ ├── knowledge-extensions.md ← Extension structure, Angular patterns ├── knowledge-metadata.md ← Metadata format, cache layers ├── knowledge-mcp-tools.md ← Deploy tools for refactored files ``` ---
Ingestion History

Loading…