// "Guides next workflow steps based on project state. Suggests optimal commands with rationale."
| name | guiding-workflow |
| description | Guides next workflow steps based on project state. Suggests optimal commands with rationale. |
| allowed-tools | Read, Glob |
Suggest the next logical command using filesystem signals and Scenario B intelligent routing context.
First action on any project interaction:
// Check for session-index.json
const indexPath = ".ultra/context-archive/session-index.json";
const indexExists = await fileExists(indexPath);
if (indexExists) {
const index = JSON.parse(await Read(indexPath));
if (index.lastSession) {
const lastSession = index.sessions.find(s => s.id === index.lastSession);
// Display recovery prompt (Chinese output at runtime)
// Format:
// ===========================
// Session Recovery Detected
// ===========================
// Last session: {timestamp}
// Completed tasks: {count} tasks
// Key decisions: {decisions}
//
// Resume point: {resumeContext}
//
// Suggested: Continue with Task #{nextTask}
// ===========================
}
}
Recovery Flow:
session-index.json existslastSession pointerOutput template (Chinese at runtime):
Session recovery detected message including:
- Last session timestamp
- Completed tasks count
- Key decisions made
- Compressed tokens count
- Resume point (next pending task)
- Suggested commands to continue
Specification files:
specs/product.md, specs/architecture.md.ultra/docs/prd.md, .ultra/docs/tech.mdOther signals:
.ultra/docs/research/*.md.ultra/tasks/tasks.jsongit status*.test.*, *.spec.*.ultra/changes/task-*/[NEEDS CLARIFICATION] markers โ Suggest /ultra-researchtasks.json โ Suggest /ultra-plan/ultra-planCheck recent /ultra-research execution:
.ultra/docs/research/, analyze project type hintStandard flow:
.ultra/ directory: Suggest /ultra-init/ultra-research/ultra-plan/ultra-dev/ultra-test or next /ultra-dev/ultra-deliverScenario B adaptations:
/ultra-plan or proceeding to implementation/ultra-planOutput templates:
# After /ultra-research (New Project)
Current Status:
- โ
Research complete (4-round full process)
- โ
specs/product.md 100% complete
- โ
specs/architecture.md 100% complete
Suggested next step: /ultra-plan
Rationale: Specs complete, can begin task planning
# After /ultra-research (Tech Decision)
Current Status:
- โ
Tech selection complete (Round 3)
- โ
specs/architecture.md updated
Suggested next step: /ultra-plan or direct implementation
Rationale: Tech stack determined, can plan implementation tasks
# After /ultra-plan
Current Status:
- โ
Task planning complete
- โ
.ultra/tasks/tasks.json generated (12 tasks)
Suggested next step: /ultra-dev
Rationale: Tasks broken down, can begin TDD development
OUTPUT: User messages in Chinese at runtime; keep this file English-only.
Format:
Language: Chinese (simplified) at runtime
Tone: Helpful, concise, action-oriented
guiding-workflow now supports intelligent routing:
Example: If user selected "Tech Decision" in /ultra-research, guiding-workflow will suggest validating the choice or proceeding to implementation, rather than defaulting to full 4-round research flow.