commit pi sessions
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
---
|
||||
name: feature-build
|
||||
description: Recon → plan → implement → parallel review → synthesize. Five-stage workflow for shipping features end-to-end with Ollama Cloud subagents.
|
||||
---
|
||||
|
||||
## scout
|
||||
phase: Context
|
||||
label: Map codebase
|
||||
as: context
|
||||
output: context.md
|
||||
progress: true
|
||||
|
||||
Map the relevant code for {task}. List files to touch, capture conventions, identify risks, and write findings to {output}.
|
||||
|
||||
## ollama-planner
|
||||
phase: Planning
|
||||
label: Create implementation plan
|
||||
as: plan
|
||||
reads: context.md
|
||||
output: plan.md
|
||||
progress: true
|
||||
|
||||
Read {reads} and create a concrete implementation plan for {task}. Write ordered tasks with file paths, acceptance criteria, and risks to {output}.
|
||||
|
||||
## ollama-coder
|
||||
phase: Implementation
|
||||
label: Implement the feature
|
||||
as: implementation
|
||||
reads: plan.md
|
||||
output: implementation.md
|
||||
progress: true
|
||||
|
||||
Execute the plan from {reads}. Implement the smallest correct changes, run validation, and report changed files with evidence to {output}.
|
||||
|
||||
## reviewer
|
||||
phase: Review
|
||||
label: Correctness review
|
||||
as: correctness_review
|
||||
reads: plan.md, implementation.md
|
||||
output: review-correctness.md
|
||||
progress: true
|
||||
|
||||
Review the implementation against the plan. Focus on: correctness, regressions, edge cases, and whether the change does what it claims. Write findings to {output}.
|
||||
|
||||
## reviewer
|
||||
phase: Review
|
||||
label: Tests and validation review
|
||||
as: test_review
|
||||
reads: plan.md, implementation.md
|
||||
output: review-tests.md
|
||||
progress: true
|
||||
|
||||
Review test coverage and validation. Focus on: tests added/updated, do they exercise the new code, are they sufficient to catch regressions. Write findings to {output}.
|
||||
|
||||
## reviewer
|
||||
phase: Review
|
||||
label: Simplicity and security review
|
||||
as: simplicity_review
|
||||
reads: plan.md, implementation.md
|
||||
output: review-simplicity.md
|
||||
progress: true
|
||||
|
||||
Review for simplicity, maintainability, and security. Focus on: smallest correct change, readability, naming consistency, input validation, secrets, injection risks. Write findings to {output}.
|
||||
|
||||
## worker
|
||||
phase: Synthesis
|
||||
label: Synthesize and apply fixes
|
||||
reads: review-correctness.md, review-tests.md, review-simplicity.md
|
||||
output: synthesis.md
|
||||
progress: true
|
||||
|
||||
Synthesize the three reviews from {reads}. Apply fixes worth doing now (small, safe changes). Report: what was fixed, what was deferred, and any blockers that need user decision.
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: research-brief
|
||||
description: Parallel web research + local code context → synthesis. Three-stage chain for well-sourced answers combining external evidence and local code.
|
||||
---
|
||||
|
||||
## ollama-researcher
|
||||
phase: External Research
|
||||
label: Web research
|
||||
as: web_research
|
||||
output: research/web.md
|
||||
progress: true
|
||||
|
||||
Research the external side of {task}. Search, evaluate sources, and produce a focused research brief with citations. Write to {output}.
|
||||
|
||||
## scout
|
||||
phase: Local Context
|
||||
label: Local code analysis
|
||||
as: local_context
|
||||
output: research/local.md
|
||||
progress: true
|
||||
|
||||
Map the local codebase side of {task}. Identify relevant files, how they interact with the topic, and capture local patterns. Write to {output}.
|
||||
|
||||
## worker
|
||||
phase: Synthesis
|
||||
label: Combine and synthesize
|
||||
as: synthesis
|
||||
reads: research/web.md, research/local.md
|
||||
output: research/brief.md
|
||||
progress: true
|
||||
|
||||
Read {reads} and create a unified research brief. Include: direct answer, evidence from web, evidence from local code, contradictions, recommendation, and confidence level. Write to {output}.
|
||||
Reference in New Issue
Block a user