flow-guided-implementation
Orchestrate autonomous issue-to-code implementation using existing tools and agents with bounded iteration
What this skill does
# /flow-guided-implementation
Orchestrate autonomous issue-to-code implementation using existing tools and agents with bounded iteration.
## Usage
```
/flow-guided-implementation [issue-description]
/flow-guided-implementation --issue <url>
/flow-guided-implementation --max-retries 5
```
## Parameters
| Parameter | Default | Description |
|-----------|---------|-------------|
| `[issue-description]` | - | Natural language description of what to implement |
| `--issue <url>` | - | GitHub/Gitea issue URL to fetch |
| `--max-retries` | 3 | Maximum iterations per task before escalating |
| `--skip-review` | false | Skip code review (faster, less safe) |
| `--dry-run` | false | Plan only, don't execute changes |
## Design Principles
From issue requirements:
1. **Run to completion** - Minimal user interaction during execution
2. **Complement existing tools** - Use Grep, Glob, Edit, TodoWrite, Task
3. **Bounded iteration** - Auto-retry up to N times, then escalate
4. **Autonomous decision-making** - Don't ask unless truly blocked
## Workflow
```
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 1: ANALYSIS │
│ Tools: Read, Grep, Glob │
├─────────────────────────────────────────────────────────────────┤
│ 1. Parse issue/requirement │
│ 2. Extract keywords and intent │
│ 3. Search codebase for relevant files: │
│ - Grep for keywords in file contents │
│ - Glob for naming patterns │
│ 4. Read top candidate files for context │
│ 5. Rank files by relevance (keyword density + path match) │
└─────────────────────────────────────────────────────────────────┘
│
v
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 2: TASK DECOMPOSITION │
│ Tool: TodoWrite │
├─────────────────────────────────────────────────────────────────┤
│ 1. Create task per file to modify │
│ 2. Include task dependencies (e.g., types before implementation)│
│ 3. Order by dependency graph │
│ 4. Estimate complexity per task │
└─────────────────────────────────────────────────────────────────┘
│
v
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 3: ITERATIVE CODING │
│ Tools: Edit, Bash, Task(agents) │
│ Skill: iteration-control │
├─────────────────────────────────────────────────────────────────┤
│ FOR EACH task (respecting dependencies): │
│ iteration = 0 │
│ │
│ LOOP while iteration < max_retries: │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ STEP 1: LOCATE │ │
│ │ - Grep for specific patterns in target file │ │
│ │ - Read surrounding context │ │
│ │ - Identify line ranges for modification │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │ │
│ v │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ STEP 2: GENERATE │ │
│ │ Simple change: Edit tool directly │ │
│ │ Complex change: Task(software-implementer) │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │ │
│ v │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ STEP 3: VALIDATE │ │
│ │ - Bash: Run tests (npm test, pytest, etc.) │ │
│ │ - If tests fail: Task(debugger) for diagnosis │ │
│ │ - If tests pass && !skip_review: Task(code-reviewer) │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │ │
│ v │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ STEP 4: DECIDE (iteration-control skill) │ │
│ │ │ │
│ │ IF pass + approved: mark task complete, BREAK │ │
│ │ IF fail + iteration < max: retry with feedback │ │
│ │ IF fail + iteration >= max: ESCALATE to user │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │
│ Mark task complete in TodoWrite │
└─────────────────────────────────────────────────────────────────┘
│
v
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 4: INTEGRATION │
│ Tools: Bash (git) │
├─────────────────────────────────────────────────────────────────┤
│ 1. Verify all tasks complete │
│ 2. Run full test suite │
│ 3. Stage changes: git add │
│ 4. Generate commit message from tasks │
│ 5. Commit (or prompt user for /commit-and-push) │
└─────────────────────────────────────────────────────────────────┘
```
## Agents Used
| Agent | When | Purpose |
|-------|------|---------|
| `software-implementer` | Complex code generation | TDD cycle, multi-file changes |
| `code-reviewer` | After code passes tests | Quality, security, style review |
| `debugger` | When tests fail | Root cause analysis |
| `test-engineer` | If tests need creation | Generate test coverage |
## Example Session
```
User: /flow-guided-implementation Add refresh token support to authentication
Claude: Starting guided implementation...
## Phase 1: Analysis
Searching for authentication-related files...
- Found: src/auth/authService.ts (high relevance)
- Found: src/auth/tokenService.ts (high relevance)
- Found: src/types/auth.ts (medium relevance)
- Found: src/routes/auth.ts (medium relevance)
## Phase 2: Task Decomposition
Creating tasks:
[1/4] [ ] Add RefreshToken type to src/types/auth.ts
[2/4] [ ] Add refresh config to src/config/auth.ts
[3/4] [ ] Implement refresh in src/auth/tokenService.ts (depends: 1,2)
[4/4] [ ] Add /refresh endpoint to src/routes/auth.ts (depends: 3)
## Phase 3: Iterative Coding
### Task 1: Add RefreshToken type
Locating insertion point... line 15
Generating type definition...
Running tests... PASS
[1/4] [✓] Add RefreshToken type
### Task 2: Add refresh config
Locating config section... line 8
Adding refreshTokenExpiry config...
Running tests... PASS
[2/4] [✓] Add refresh config
### Task 3: Implement refresh in tokenService
Locating token generation... lines 20-35
Generating refresh token logic...
Running tests... FAIL
- refreshToken is undefined
Iteration 1/3: Retrying with feedback...
Fixed: Added refreshToken to return object
Running tests... PASS
Code review... APPROVED
[3/4] [✓] Implement refresh in tokenService
### Task 4: Add /refresh enRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.