Install
$ agentstack add skill-dankosik-go-service-template-rest-research-session ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Research Session
Purpose
Run only the research checkpoint for one task-local session. This wrapper makes evidence gathering and handoff explicit; it does not finalize spec.md, start technical design, produce tasks.md, or implement code.
Outcome-First Operating Rules
- Start by naming the skill-specific outcome, success criteria, constraints, available evidence, and stop rule.
- Treat workflow steps as decision rules, not a ritual checklist. Follow exact order only when this skill or the repository contract makes the sequence an invariant.
- Use the minimum context, references, tools, and validation loops that can change the deliverable; stop expanding when the quality bar is met.
- Before acting, resolve prerequisite discovery, lookup, or artifact reads that the outcome depends on; parallelize only independent evidence gathering and synthesize before the next decision.
- Prefer bounded assumptions and local evidence over broad questioning; ask only when a missing fact would change correctness, ownership, safety, or scope.
- When evidence is missing or conflicting, retry once with a targeted strategy or label the assumption, blocker, or reopen target instead of treating absence as proof.
- Finish only when the requested deliverable is complete in the required shape and verification or a clearly named blocker/residual risk is recorded.
Use When
- the task already has an accepted Phase 0 intake brief and workflow routing, and now needs one research-only session
- the orchestrator must choose between
localresearch and read-only subagentfan-outfor this session - repository evidence, external references, comparisons, or specialist reads must be gathered before specification
- preserved
research/*.mdnotes would reduce later guesswork, make fan-in easier, or support a future resume - triggered
workflow-plan.mdorworkflow-plans/research.mdneeds the research checkpoint completed or updated before a laterspecification-session
Skip When
- the work is tiny enough that inline local reasoning plus a short note is sufficient and a dedicated research session would be ceremony
- lean-local research can be summarized directly in
spec.mdwith source references and no reusable evidence note or phase routing value - the task is still at Phase 0 intake or workflow planning; use the owning upstream phase
- the task has already moved into
specificationor later, orworkflow-plans/specification.mdis already the active phase-control file - the request tries to combine research with final
spec.md,design/,tasks.md, or implementation output in one session
Required Inputs
Need only the minimum phase-ready inputs:
- accepted Phase 0 intake brief or equivalent confirmed framing
- framed task goal plus scope and non-goals
- known constraints, risk hotspots, and success checks
- current workflow routing and task-local artifact location
- any already-known research questions, blockers, or assumptions
- Pattern Fit Diligence scope when architecture, workflow, integration, resilience, consistency, data-flow, or abstraction patterns could change the later spec or design
- existing research artifacts or lane outputs when this is a continuation
If a research prerequisite is missing, record it as an assumption or blocker instead of inventing facts.
Read First
Always read:
AGENTS.mddocs/spec-first-workflow.md
Then read current phase context in this order:
- task-local
workflow-plan.md, if present - task-local
workflow-plans/research.md, if present - the smallest task-local artifact that explains current routing, blockers, or prior research:
- the user request or approved framing artifact
- relevant
research/*.md - existing
spec.mdonly to confirm whether specification already started, never to edit it in this session
- targeted repository or external sources needed to answer the chosen research questions
Rules:
- follow
AGENTS.mdif other workflow guidance conflicts - read the master
workflow-plan.mdbefore the phase-local file when both exist - do not broad-read the repository or unrelated references when narrow evidence is enough
- if phase context shows the task already advanced past research, stop instead of casually reopening an earlier phase
Allowed Writes
This session may write or update only:
- task-local
workflow-plan.md - task-local
workflow-plans/research.md - task-local
research/*.mdwhen preserved evidence, comparisons, or source notes will materially help later synthesis, challenge, or resume - the
workflow-plans/orresearch/directories only when they must be created to hold those artifacts
Prohibited Actions
Do not:
- finalize or approve
spec.md - create
workflow-plans/specification.md - assemble
design/ - write
tasks.md,test-plan.md, orrollout.md - start implementation, tests, migrations, review, or validation work
- use planning or implementation skills as a backdoor into later phases
- turn
research/*.mdinto a second source of truth for decisions that belong inspec.md - let subagents write code, files, git state, or the task ledger or implementation handoff
- silently continue into specification once research feels "close enough"
Core Defaults
- this is an orchestrator-facing wrapper, not a domain specialist
AGENTS.mdowns the workflow contract;docs/spec-first-workflow.mdis the router; phase and shared workflow docs own detailed artifact mechanics- this wrapper owns research-session protocol only and must not redefine later artifact ownership
- use
research-sessiononly when a dedicated research session is the intended control shape for the task - lean local may keep research local and cite the relevant evidence in
spec.md; createresearch/*.mdonly when evidence must persist for resume, audit, or later synthesis - support both
localresearch and read-only subagentfan-out - for a dedicated non-trivial research session, default to read-only fan-out when the research questions span more than one independent domain, artifact family, source-of-truth seam, or risk lens
- a local-only pass must record
Local research rationale:andEscalation seams:inworkflow-plans/research.md Local research rationale:must list the research decision frontier, candidate lanes or lenses considered, evidence checked for each, why each omitted lane cannot change approval or readiness, and the seam that would reopen fan-out- Missing explicit subagent authorization is not a valid
Local research rationale:. If required lanes are blocked only because the current prompt lacks explicit subagent/delegation authorization, record the research mode as blocked and return a next-session prompt withSubagent authorization:. - when Pattern Fit Diligence is in scope, search for known applicable design or system-design patterns, concrete descriptions, and real-use examples; compare candidates by task forces, repository boundaries, operational proof, and idiomatic Go fit instead of selecting a design shape from intuition alone
- preserve the comparison in
research/pattern-fit.mdwhen multiple candidates, external sources, or examples would materially help later synthesis or auditability; keep final selected/rejected pattern decisions forspec.mdor the design bundle - each subagent lane owns one question and at most one skill, or explicit
no-skill - preserve
research/*.mdonly when the evidence will help later fan-in, challenge, auditability, or multi-session resume - preserved
research/*.mdnotes stay flexible, but the minimum context-first bar is visible question or scope, findings with evidence and limits, conflicts or weak evidence, source notes, and handoff implication - a finished research session hands off evidence and routing; it does not convert that evidence into approved
Decisions
Lazy-Loaded References
Keep this SKILL.md as the protocol. References are compact rubrics and example banks, not exhaustive checklists or documentation dumps. Load at most one reference by default; load more only when the task clearly spans multiple independent decision pressures, such as both mode selection and final fan-in handoff.
Treat every reference as non-authoritative support under AGENTS.md and docs/spec-first-workflow.md. Use live repository files or current external sources when freshness matters instead of keeping link dumps in the skill.
| Symptom | Behavior change | Reference | | --- | --- | --- | | Research questions are too broad, solution-led, biased, or mixed with future decisions. | Makes the model write answerable evidence-targeted questions instead of asking research to decide the solution, check everything, or draft later-phase artifacts. | references/research-question-framing.md | | The hard choice is whether the session should stay local or use read-only fan-out. | Makes the model choose mode by evidence surface, risk, and independent-question shape instead of choosing fan-out because "more agents is safer" or staying local to hide cross-domain uncertainty. | references/local-vs-fanout-mode-selection.md | | Mode is chosen or likely, but workflow-plans/research.md has vague lanes, unclear roles, weak source targets, or missing parallelism. | Makes the model assign one owned question, one role, one skill, one evidence target, and a fan-in path per lane instead of using broad domain labels, multi-skill lanes, write-capable workers, or decision-approving subagents. | references/research-lane-planning.md | | The session must decide whether to preserve research/*.md, or an existing research note has poor source hygiene. | Makes the model write compact evidence notes with source relevance, limitations, and handoff value instead of dumping generic notes, command output, links, or spec.md decisions. | references/evidence-note-structure.md | | Research lanes are complete, partial, or blocked and need a clean boundary handoff. | Makes the model hand off comparable evidence, conflicts, readiness, and next-session routing instead of converting research into review-ready spec.md decisions or drifting into specification, review, design, and planning. | references/fan-in-handoff-examples.md | | A research session has concrete drift smells across multiple surfaces, or no narrower positive reference matches. | Makes the model stop, repair the boundary, or route back to the right phase instead of treating research-session as a catch-all path into specification, design, planning, implementation, or note sprawl. | references/research-session-anti-patterns.md |
Boundary With Future specification-session
research-sessionmay writeworkflow-plan.md,workflow-plans/research.md, and optionalresearch/*.md- the future
specification-sessionowns review-readyspec.md, inline leanRisk Challengeor formal clarification-gate reconciliation, and any triggeredworkflow-plans/specification.md - if the task is ready to move forward, record
Next session starts with: specificationand stop instead of drafting spec sections here
Workflow
1. Confirm This Session Owns Research Only
- check the master workflow plan and active phase context first
- if the task is still at Phase 0 intake or workflow planning, send it back to the owning upstream phase
- if the task is already at specification or later, stop and point to the correct reopen point instead of reopening research casually
- if the work is direct path or lean local with no durable research value, say so directly and stop rather than forcing this wrapper
2. Read Current Phase Context
- confirm current phase, phase status, blockers, assumptions, and expected next session
- reuse existing research artifacts or unfinished lane outputs before planning new work
- detect whether this session is a fresh research pass, a continuation, or targeted re-research after challenge or recheck
3. Define The Research Questions
- list only the questions whose answers can change scope, correctness, constraints, risk handling, or spec readiness
- include a pattern-fit question when the task would otherwise invent an architecture, workflow, integration, resilience, consistency, data-flow, or abstraction shape
- separate must-answer-now from nice-to-know
- keep unknowns visible instead of filling them in
4. Choose Research Mode And Plan Lanes
- choose
fan-outby default when the research questions span independent domains, artifact families, source-of-truth seams, protected domains, or risk lenses - choose
localonly when the work is bounded enough that one orchestrator pass preserves domain separation and independent lanes would not materially improve the evidence - when choosing
local, recordLocal research rationale:andEscalation seams:so later phases can tell why fan-out was skipped - generic "bounded" or "single-source" wording is not enough for local-only non-trivial research; the rationale must name candidate lanes considered and why each omitted lane cannot change the downstream decision
- for each lane, record:
- owned question
- local or subagent execution
- role
- one chosen skill or explicit
no-skill - evidence target or expected source surface
- order or parallelism
- if
fan-outis used, keep every lane read-only, add a local orchestrator fan-in lane or fan-in note, and prefer enough coverage over artificial subagent minimization - record whether a later pre-spec challenge pass is expected after research fan-in
5. Run Research And Preserve Only What Helps
- gather repository or external evidence for the chosen questions
- create
research/*.mdonly when the evidence, comparisons, or source notes need to survive beyond this session - for pattern-fit research, record candidate pattern name, source description, real-use example, applicability to this task, Go/repository fit, rejected alternatives, and evidence limits
- keep research artifacts evidence-oriented: question or scope, findings with sources or file references, evidence limits, assumptions, conflicts or open points, and why the note matters for the handoff
- do not force a universal research template; the required quality is source-hygiene and resume value, not exact headings. Copy the evidence discipline, not a rigid section list
- do not treat
research/*.mdas the decision record
6. Capture Research Fan-In Without Writing spec.md
- summarize what is now known, what remains uncertain, and whether the task is ready for specification, challenge, or more research
- keep conclusions in research or handoff language, not as approved spec wording
- if evidence is still weak in a high-impact seam, route to targeted re-research or challenge instead of pretending the task is spec-ready
7. Write Or Repair workflow-plans/research.md
- record phase-local orchestration only:
- research mode
- lane plan or executed lanes
- order or parallelism
- fan-in path
- whether later challenge is expected
- phase status
- completion marker
- stop rule
- next action
- blockers
- what can run in parallel
- keep this file routing-only; do not turn it into
spec.md,design/, ortasks.md
8. Write Or Repair workflow-plan.md
- update master phase status, research mode, artifact status, blockers, and next-session routing
- make the research phase status explicit, and use a separate routing state when research is reopened or routes backward
- keep the handoff ready for the future
specification-sessionwithout drafting it here
9. Stop At The Boundary
- once research artifacts and routing are consistent, stop
- do not start
spec.md, triggeredworkflow-plans/specification.md, design,tasks.md, or implementation in the same session
Research Lane Planning Rules
When a dedicated research phase file is used, workflow-plans/research.md should make lane ownership obvious at a glance. Each lane should name:
- the question it owns
- whether it is l
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Dankosik
- Source: Dankosik/go-service-template-rest
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.