added .ssh
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
---
|
||||
name: feature-build
|
||||
description: Recon → plan → implement → parallel review → synthesize. Use /run-chain feature-build "<feature request>" to kick off a full feature build with the ollama-* subagents.
|
||||
---
|
||||
|
||||
# Feature build (Ollama Cloud)
|
||||
|
||||
A four-stage chain for shipping a small-to-medium feature end-to-end with Ollama Cloud subagents. Each stage is async; the parent continues working between stages.
|
||||
|
||||
## Stages
|
||||
|
||||
1. **scout** — `subagent scout` with `output: context.md`, `context: fresh`, `async: true`. Map the relevant code, list the files to touch, capture conventions.
|
||||
2. **ollama-planner** — reads `context.md`, writes `plan.md`. `context: fork`, `async: true`.
|
||||
3. **ollama-coder** — reads `plan.md`, implements, runs validation. `context: fork`, `async: true`, `defaultContext: fork`.
|
||||
4. **parallel review** — three `ollama-reviewer` instances with distinct angles (correctness, tests/validation, simplicity/security). `context: fresh`, `concurrency: 3`, `async: true`.
|
||||
5. **synthesize** — parent reads the three reviews, applies `worth fixing now` items via one more `ollama-coder` run (or manually), then summarizes for the user.
|
||||
|
||||
## When to use
|
||||
|
||||
- A new feature spanning 2+ files.
|
||||
- A non-trivial bug fix touching multiple components.
|
||||
- A refactor with a clear target shape.
|
||||
|
||||
## When NOT to use
|
||||
|
||||
- Single-line fixes → just edit directly.
|
||||
- Pure research questions → use `research-brief` instead.
|
||||
- Changes that need user clarification first → ask the user, then start the chain.
|
||||
|
||||
## Inputs
|
||||
|
||||
The chain task should include: the feature request, the target repo path, any constraints (must keep API stable, must not touch X, must add tests), and any attached screenshots.
|
||||
|
||||
## Validation contract (set before launching)
|
||||
|
||||
Before stage 3, write down in the task prompt:
|
||||
- expected behavior after the change
|
||||
- tests or commands the coder must run
|
||||
- evidence the coder must return (changed files, command output, screenshots)
|
||||
|
||||
## Stop rules
|
||||
|
||||
- If `scout` finds the task is out of scope or the codebase is in an unexpected state, stop and ask the user.
|
||||
- If `ollama-planner` surfaces ambiguity in "Open Questions", stop and ask the user before launching the coder.
|
||||
- If a reviewer reports a `blocker` or an unapproved decision, stop and ask the user.
|
||||
- If a `worth fixing now` item is small and safe, parent applies it directly; if it touches product/architecture, ask the user first.
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
name: research-brief
|
||||
description: Parallel web research (ollama-researcher) + local code context (scout) + synthesis. Use /run-chain research-brief "<question>" to get a single tight research brief backed by web evidence and local code.
|
||||
---
|
||||
|
||||
# Research brief (Ollama Cloud)
|
||||
|
||||
A three-stage chain for "I need a well-sourced answer that combines what the web says and what our code does." Two parallel context builders, then a synthesis.
|
||||
|
||||
## Stages
|
||||
|
||||
1. **Parallel (async, fresh context)**
|
||||
- `ollama-researcher` — `task: "Research the external side: <question>."`, `output: research/web.md`
|
||||
- `scout` (built-in) — `task: "Map the local side: <question>. Identify the relevant files in this repo and how they would interact with the topic."`, `output: research/local.md`
|
||||
- Concurrency 2.
|
||||
2. **synthesis** — `ollama-researcher` (or the parent) reads both files and writes `research/brief.md` with: direct answer, evidence from web, evidence from local code, contradictions, recommendation, and confidence level.
|
||||
|
||||
## When to use
|
||||
|
||||
- "Should we adopt library X?" — combine ecosystem evidence with our code patterns.
|
||||
- "How does feature Y work in our app, and how does it compare to industry standard?"
|
||||
- "What's the current best practice for Z, and where does our code diverge?"
|
||||
|
||||
## When NOT to use
|
||||
|
||||
- Pure web research (no local code angle) → just run `ollama-researcher` directly.
|
||||
- Pure local question → just run `scout`.
|
||||
- Implementation → use `feature-build` instead.
|
||||
|
||||
## Inputs
|
||||
|
||||
The chain task should include: the question, the repo path (for scout), and any constraints (time budget, must use free-tier models, etc.).
|
||||
|
||||
## Stop rules
|
||||
|
||||
- If the web research surfaces a fact the local code contradicts, surface it in the brief and stop before recommending.
|
||||
- If the question is underspecified, parent asks the user to scope it before launching.
|
||||
|
||||
## Output
|
||||
|
||||
`research/brief.md` — direct answer first, then evidence, then recommendation, then confidence.
|
||||
Reference in New Issue
Block a user