scaffold/.claude/skills/workflow/SKILL.md
7-phase development workflow for declarative task execution across Claude.ai and Claude Code sessions
npx skillsauth add gstredny/lauren-loop workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A 7-phase loop for taking features and bugs from idea to verified, reviewed completion. Task files are persistent memory. Only the user closes tasks.
docs/tasks/open/ ARE the memory — every session reads the file, sees what was tried, and resumes.| Phase | Where | Who Drives | Output | |-------|-------|-----------|--------| | 1. Plan | Claude.ai | User + Claude.ai | Success criteria, constraints, execution mode | | 2. Explore | Claude Code | Claude | Task file created, codebase explored, plan generated | | 3. Review | Claude.ai | Claude.ai | Plan challenged, improved, agents assigned if team mode | | 4. Execute | Claude Code | Claude | Code changes implemented, attempts logged after every change | | 5. Code Review | Claude.ai + Claude Code | User + Claude | Review planned, executed, findings logged and addressed | | 6. Verify | Claude Code + User | User | Done Criteria walked through one by one | | 7. Close-out | Claude Code | User | Retro entry appended, task moved to closed/ |
Phase 1 — Plan: Come to Claude.ai with a feature or bug. Together define success criteria (specific, testable), tests that prove it works, constraints (what NOT to do), and whether to use single-agent or agent-team execution.
Phase 2 — Explore: Paste the prompt into Claude Code. Always check docs/tasks/open/ first. Either resume an existing task or create a new one. Explore the codebase and generate a plan.
Phase 3 — Review: Bring the plan back to Claude.ai. Challenge assumptions, check for over-engineering, verify it's a real fix (not a band-aid). For agent teams, assign file ownership with zero overlap.
Phase 4 — Execute: Implement the plan. After EVERY code change attempt, append to the task file's Attempts log immediately (not batched). Attempts log is append-only — never overwrite or delete entries.
Phase 5 — Code Review: After execution completes, plan and execute a code review. This is a sub-loop:
Set ## Code Review: completed when all findings are addressed. For tasks that genuinely don't need review (documentation-only, config changes), set ## Code Review: not required during Phase 1 planning.
Phase 6 — Verify: After code review completes (or is marked not required), set status to "needs verification" and walk through each Done Criterion with the user. User confirms or rejects each one. Only the user can mark checkboxes and approve completion. This is the final gate before close-out.
Phase 7 — Close-out: User says "close it out." Append a retro entry (use the retro skill for format), then move the task file from docs/tasks/open/ to docs/tasks/closed/.
Include: Success criteria, tests that prove it works, constraints, relevant context.
Do NOT include: Step-by-step implementation instructions, specific line numbers to change, exact code to write.
Good:
"Success criteria: The /api/users endpoint returns paginated results with correct schema. All date fields use ISO 8601 format. Constraint: Don't add new database tables."
Bad:
"Fix user_service.py line 312. Change the mapping from 'active' to match the schema. Then update the test. Then run pytest."
The declarative version lets Claude explore, loop, and self-correct. The imperative version breaks if line numbers shift or the mapping needs a different approach.
Start every session: Check docs/tasks/open/ first. If a task matches the current work, read it and resume from "Left Off At." Never retry approaches logged in Attempts.
End every session: Summarize what changed (every file, with specifics), test results (with counts), and what's left. Update the task file's "Left Off At" with a specific resumption point.
Use agent teams when ALL four criteria are met:
Quick decision check: "Can I draw file-ownership lines with zero overlap?" Yes -> team candidate. No -> single agent.
Team execution rules: Lead agent uses delegate mode, owns the task file exclusively. Teammates report via messaging. Lead logs teammate work to Attempts with role tags (e.g., [Teammate: API]).
| User Says | Action |
|-----------|--------|
| "Fix this bug" / "Add this feature" | Check docs/tasks/open/ for existing task -> create task file if none -> explore -> plan |
| "Check tasks" / "What's open?" | List all files in docs/tasks/open/ with Status and Goal |
| "Resume [task name]" | Read the task file, pick up from "Left Off At", never retry failed Attempts |
| "Start code review" | Begin Phase 5 — plan the review with Claude.ai, execute with Claude Code |
| "Code review not needed" | Set ## Code Review: not required in the task file |
| "Close it out" | Check code review status -> append retro entry (see retro skill) -> move task to docs/tasks/closed/ |
| "Use a team for this" | Verify 4 agent-team criteria, set up team structure with file ownership map |
| "What was tried?" | Read the task file's Attempts section and summarize |
development
Follow the end-to-end delivery workflow for planning, task-file management, execution, code review, verification, and closeout without relying on Claude-specific hooks or command conventions.
testing
Plan implementation work before coding by defining public interfaces, real collaborator boundaries, and vertical RED or VERIFY slices.
development
Manage task files in docs/tasks/open and docs/tasks/closed, including task discovery, resume/create rules, append-only Attempts logging, Left Off At updates, Code Review field handling, and needs verification closeout.
data-ai
Review an implementation plan before execution to catch missed success criteria, scope creep, constraint violations, unverified assumptions, and missed reuse opportunities.