Research stage: bundled skill body (researchSkill.ts) + implement skill touch #213

Open
opened 2026-08-16 21:52:17 +00:00 by david · 0 comments
Owner

Author the research stage's bundled skill body and the implementer touch:

  • src/skills/researchSkill.ts — the how-to body composed into the research stage system prompt (wrapper + body, per pi-loop's composition model — never native skill loading):
    • Read the repo's design docs first (AGENTS.md, README, DESIGN.md, docs/) to understand what is being built.
    • Pick the issue-relevant subset of the deterministic candidate deps (seeded with issue-context.json).
    • Check docs/reference/<slug>/ first; update when the version gate flags staleness or coverage is insufficient for the issue; add when missing.
    • GitHub-first fetching: prefer the dependency's GitHub repo (README, docs/, raw.githubusercontent.com); use SearXNG web_search to discover doc URLs when the repo/page is unknown.
    • Write verbatim fetched pages (provenance headers) + _meta.json per docs/reference/<slug>/.
    • Respect max-pages-per-dependency / max-deps-per-run caps.
    • Do not close the issue; the docs PR is shipped by pi-loop, not the agent.
  • Implement skill touchimplementSkill.ts gains a short note telling the implementer to read docs/reference/<slug>/ for dependencies it touches (no behavioral change to implement's commit model).

References: ADR-014, DESIGN.md §3.1/§4, AGENTS.md stage anatomy.

Author the research stage's bundled skill body and the implementer touch: - **`src/skills/researchSkill.ts`** — the how-to body composed into the research stage system prompt (wrapper + body, per pi-loop's composition model — never native skill loading): - Read the repo's design docs first (AGENTS.md, README, DESIGN.md, docs/) to understand what is being built. - Pick the issue-relevant subset of the deterministic candidate deps (seeded with issue-context.json). - Check `docs/reference/<slug>/` first; update when the version gate flags staleness or coverage is insufficient for the issue; add when missing. - **GitHub-first** fetching: prefer the dependency's GitHub repo (README, docs/, raw.githubusercontent.com); use SearXNG `web_search` to discover doc URLs when the repo/page is unknown. - Write **verbatim fetched pages** (provenance headers) + `_meta.json` per `docs/reference/<slug>/`. - Respect `max-pages-per-dependency` / `max-deps-per-run` caps. - Do not close the issue; the docs PR is shipped by pi-loop, not the agent. - **Implement skill touch** — `implementSkill.ts` gains a short note telling the implementer to read `docs/reference/<slug>/` for dependencies it touches (no behavioral change to implement's commit model). References: ADR-014, DESIGN.md §3.1/§4, AGENTS.md stage anatomy.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
david/pi-loop#213
No description provided.