.cursor/skills/orchestration/SKILL.md
Full implementation cycle with planning, testing, review, and auto-fixing. Use when user invokes /orchestrate, for complex tasks requiring planning and breakdown, multi-step implementations, or tasks that need thorough testing and review.
npx skillsauth add softmg/product-tracker orchestrationInstall 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.
Purpose: Orchestrate complete development cycle - from planning to documentation with automatic error fixing.
Before running workflow steps:
mcp__serena__check_onboarding_performed.mcp__serena__onboarding.mcp__serena__get_symbols_overview and mcp__serena__find_symbol.mcp__serena__find_referencing_symbols before renames, moves, deletions, or behavior-affecting edits.mcp__serena__safe_delete_symbol.flowchart TD
Planner[Planner: creates plan with tasks] --> Loop{Any tasks?}
Loop -->|Yes| Worker[Worker: implements task]
Worker --> TestWriter[Test-Writer: writes tests]
TestWriter --> TestRunner[Test-Runner: runs tests & verifies]
TestRunner -->|Tests fail or incomplete| Debugger1[Debugger: fixes bugs]
Debugger1 --> TestRunner
TestRunner -->|Tests pass & verified| Reviewer[Reviewer: checks quality]
Reviewer -->|Issues found| Debugger2[Debugger: improves code]
Debugger2 --> Reviewer
Reviewer -->|Quality OK| NextTask[Move to next task]
NextTask --> Loop
Loop -->|No tasks| Documenter[Documenter: creates documentation]
Documenter --> Done[Completed]
.cursor/workspace/active/orch-{id}/workspace/plan.md OR uses user's fileprogress.json, tasks.json, links.jsonRead configuration:
config = readJSON(".cursor/config.json") || defaultConfig
workspacePath = config.workspace.path
Load orchestration state:
orchestrationId = userInput || findLatestActive()
workspaceDir = `${workspacePath}/active/${orchestrationId}`
progress = readJSON(`${workspaceDir}/progress.json`)
tasksState = readJSON(`${workspaceDir}/tasks.json`)
links = readJSON(`${workspaceDir}/links.json`)
// Read plan from documentation
planContent = read(links.plan)
taskIds = extractTaskIds(planContent)
CRITICAL: Iterate through ALL tasks.
For EACH task ID from plan:
Before starting task:
// Skip if already completed
if (tasksState[taskId]?.status === "completed") continue
// Update task status: pending → in-progress
tasksState[taskId] = {
id: taskId,
status: "in-progress",
startedAt: now()
}
write(`${workspaceDir}/tasks.json`, tasksState)
// Update plan file
updateTaskInPlan(links.plan, taskId, "🔄 In Progress")
// Update orchestration progress
updateJSON(`${workspaceDir}/progress.json`, {
currentTask: taskId,
lastUpdated: now()
})
During task:
After test-runner verifies and reviewer approves:
// Update task status: in-progress → completed
tasksState[taskId] = {
...tasksState[taskId],
status: "completed",
completedAt: now(),
filesChanged: result.filesChanged,
testsRun: testResult.total,
testsPassed: testResult.passed
}
write(`${workspaceDir}/tasks.json`, tasksState)
// Update plan file
updateTaskInPlan(links.plan, taskId, "✅ Completed")
// Update orchestration progress
updateJSON(`${workspaceDir}/progress.json`, {
tasksCompleted: progress.tasksCompleted + 1,
currentTask: null,
lastUpdated: now()
})
After all tasks complete:
// Update orchestration status
updateJSON(`${workspaceDir}/progress.json`, {
status: "documenting",
lastUpdated: now()
})
// Call documenter to create final report
reportFile = callDocumenter({
orchestrationId: progress.id,
planFile: links.plan,
tasksState: tasksState
})
// Save report link
updateJSON(`${workspaceDir}/links.json`, {
report: reportFile
})
// Mark orchestration as completed
updateJSON(`${workspaceDir}/progress.json`, {
status: "completed",
completedAt: now(),
reportFile: reportFile
})
// Archive workspace
move(
`${workspacePath}/active/${orchestrationId}`,
`${workspacePath}/completed/${orchestrationId}`
)
User says: /orchestrate Build user authentication with email/password and OAuth
Your response:
I'll orchestrate the full development cycle for this complex task.
**Task**: Build user authentication with email/password and OAuth
### Phase 1: Planning
[Call planner to break down into subtasks]
[Wait for planner result - extract tasks]
**Plan created:**
1. Database schema for users
2. Email/password authentication
3. OAuth integration (Google, GitHub)
4. Session management
5. Protected routes middleware
### Phase 2: Implementation Cycle
**Task 1/5: Database schema for users**
- [Call worker to implement]
- [Call test-writer to create tests]
- [Call test-runner for tests & verification]
- [If failed: call debugger and retry]
- [Call reviewer]
- [If issues: call debugger and retry]
- ✅ Task 1 complete
**Task 2/5: Email/password authentication**
...
[Continue for all tasks]
### Phase 3: Documentation
[Call documenter with all changes]
### Summary
✅ All 5 tasks completed
✅ Tests passing
✅ Code reviewed
✅ Documentation created
Files changed: [list]
Documentation: [list]
test-runner → FAIL → debugger → test-runner
↓ (max 3 attempts)
↓
If still failing: report to user
review → PROBLEMS → debugger → review
↓ (max 3 attempts)
↓
If still issues: report to user
/orchestrate [task]| Use /implement | Use /orchestrate |
|-----------------|---------------------|
| Single component | Full feature |
| One file change | Multiple modules |
| No planning needed | Needs breakdown |
| Quick task | Complex project |
Good for /orchestrate:
Bad for /orchestrate (use /implement):
Workflow is complete when:
documentation
Task tracking and plan management. Used by planner to create plans and persist tasks, by orchestrator to read tasks and update progress, by documenter to create completion reports, and by any agent to log non-critical issues.
development
Create, edit, evaluate, and package agent skills. Use when building a new skill from scratch, improving an existing skill, running evals to test a skill, benchmarking skill performance, optimizing a skill's description for better triggering, reviewing third-party skills for quality, or packaging skills for distribution. Not for using skills or general coding tasks.
development
Simple implementation workflow - code, test, document. Use when user invokes /implement, wants to create code with automatic testing and documentation, or for simple single-purpose tasks that don't need planning.
development
Security best practices covering authentication, input validation, API security, secrets management, data protection, and OWASP Top 10. Use when implementing auth flows, API endpoints, file uploads, or any feature touching passwords, tokens, PII, or sensitive data. Do NOT use for code style reviews or architecture decisions.