domain-research-team
Skill1 starsChanged 7 months agoMITView on GitHub
A 3-researcher domain analysis skill with MANDATORY outside research. Reads provided inputs (a frontend codebase, documentation, or both — any combination is valid), extracts personas + objectives, and AUGMENTS with industry / market / competitor research that every researcher performs independently regardless of input completeness. Round-robin convergence + master-synthesizer produces the final map. Caller-configurable output path so the skill is reusable from intake-and-mapping (INTEGRATION_MAP.md output), visual-to-api-design Stages 1+2 (PERSONA_MAP.md output), the new Phase 0b backend dispatch (PERSONA_MAP.md output to .architect-team/frontend-reference/ when frontend_read_only). v3.4.0.
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- api-design-from-frontendSkill
- architect-team-pipelineSkill
- bug-fix-pipelineSkill
- cartographer-teamSkill
- claude-design-importSkill
- claude-md-efficiencySkill
- closeoutSkill
- common-pipeline-conventionsSkill
- contract-first-parallelismSkill
- coverage-mappingSkill
- data-annotationsSkill
- data-dictionarySkill
- data-engineering-explorationSkill
- data-eng-pipelineSkill
- data-lineage-mappingSkill
- delivery-manifestSkill
- design-fidelity-mappingSkill
- dev-api-integration-testingSkill
- diagnostic-research-teamSkill
- documentation-currencySkill
- dynamic-value-discoverySkill
- editability-completenessSkill
- email-testingSkill
- endpoint-trace-mappingSkill
- expensive-verification-debuggingSkill
- frontend-route-mappingSkill
- helpdeskSkill
- intake-and-mappingSkill
- interaction-completenessSkill
- interaction-intuitionSkill
- interactive-mockup-discoverySkill
- intuition-map-lifecycleSkill
- mcp-output-contract-designSkill
- mempalace-integrationSkill
- mini-architect-team-pipelineSkill
- phenotype-absorptionSkill
- phenotypesSkill
- playwright-suite-builderSkill
- playwright-user-flowsSkill
- proposal-refinerSkill
- readme-stylingSkill
- reuse-first-designSkill
- root-cause-test-failuresSkill
- structure-optimizationSkill
- team-spawning-and-review-gatesSkill
- test-prod-safety-classifierSkill
- test-run-monitorSkill
- token-compressionSkill
- ux-test-builderSkill
- verification-planningSkill
- verified-agent-outputSkill
- visual-fidelity-reconciliationSkill
- visual-to-api-designSkill
- visual-verification-teamSkill
- warehouse-sql-miningSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Read every codebase_inputs and doc_inputs source.
- Very specific: line 44
Create the working dir: <workspace>/.architect-team/domain-research/<research-id>/{researcher-1,researcher-2,researcher-3,synthesized}/.
- Very specific: line 99
All 3 researchers' final.json agree on every persona_id.
- Very specific: line 100
Every researcher's outside_research block is non-empty (the mandate is satisfied).
- Very specific: line 140
When the caller passes frontend_read_only: true AND codebase_inputs includes a frontend codebase path:
- Distinctive: line 157
Not a code generator. It produces analysis maps, not code.
- Distinctive: line 158
Not a fix loop. Open questions become user-escalations or caller-side SRs.
- Distinctive: line 159
Not a one-shot summarizer.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Domain Research Team
You are the Domain Research Team orchestrator. Drive 3 domain-researcher agents in parallel with mandatory outside research, converge via round-robin, and synthesize a final domain map via the master-synthesizer agent. Caller-configurable output path.
When this skill runs
Three callers as of v3.4.0:
intake-and-mappingPhase −1C — produce<workspace>/docs/INTEGRATION_MAP.mdfrom the per-codebase CODEBASE_MAP / ROUTE_MAP / DESIGN_MAP files. The integration-mapping flow that was inline (3×integration-explorer+ round-robin +master-synthesizer) now delegates to this skill withoutput_kind: integration-map.visual-to-api-designStages 1+2 — producePERSONA_MAP.mdfrom the frontend codebase + theancillary_docsnamed in the brief. The persona-research flow at Stages 1+2 delegates to this skill withoutput_kind: persona-map.architect-team-pipelinePhase 0b — producePERSONA_MAP.mdfrom a frontend codebase reference (read-only) OR documentation (no frontend codebase). When called from Phase 0b withfrontend_read_only: true, output goes to<workspace>/.architect-team/frontend-reference/<codebase-slug>/PERSONA_MAP.mdinstead of<codebase>/docs/PERSONA_MAP.md.
Inputs
The caller passes a structured inputs object:
{
"output_kind": "integration-map" | "persona-map",
"output_path": "<absolute-path-to-final-map>",
"codebase_inputs": ["<absolute-path-to-codebase-1>", ...],
"doc_inputs": ["<absolute-path-to-doc-1>", ...],
"frontend_read_only": true | false,
"industry_hint": "<one-line industry context, optional>",
"completion_promise": "DOMAIN RESEARCH COMPLETE" | "INTEGRATION MAP COMPLETE" | "PERSONA MAP COMPLETE"
}At least one of codebase_inputs or doc_inputs MUST be non-empty. Both empty is a configuration error — the caller should not have invoked this skill.
Phase R1 — Input parsing + scope freeze
- Read every
codebase_inputsanddoc_inputssource. For codebases, read theCODEBASE_MAP.md/ROUTE_MAP.md/DESIGN_MAP.mdif present; otherwise fall back to agit ls-fileslisting of code undersrc//app//pages/. For docs, read every markdown / PDF / text file. - Allocate
<research-id>asresearch-<YYYY-MM-DD-HHMMSS>-<6-char-rand>. - Create the working dir:
<workspace>/.architect-team/domain-research/<research-id>/{researcher-1,researcher-2,researcher-3,synthesized}/. - Persist scope:
<workspace>/.architect-team/domain-research/<research-id>/scope.jsonwith the verbatim caller inputs + the parsed input file list + theindustry_hint.
Phase R2 — 3 researchers in parallel (mandatory outside research)
Dispatch 3 domain-researcher agents in parallel via a single Agent-tool batch (subagents mode) OR create 3 domain-researcher tasks in the shared task list (teams mode). Each researcher carries:
Read/Glob/Grep/LS/Bash(read provided inputs)WebFetch/WebSearch(mandatory outside research)Write/TodoWrite(per-researcher draft output)
Each researcher's job:
- Parse the provided inputs for evidence of personas (user types named in code / docs / route guards / role-checks) AND objectives (product capabilities, screen-by-screen actions, documented user journeys).
Perform outside research — MANDATORY. The researcher MUST run at least:
- 1
WebSearchquery on the industry (perindustry_hintor inferred from inputs) - 1
WebSearchquery on the market context (target customers, deployment scale, typical price point) - 1
WebSearchquery on competitor products - 1
WebFetchagainst an authoritative source (industry whitepaper, vendor docs, market-research summary)
The researcher's draft JSON MUST include a non-empty
outside_researchblock with the queries run + the citations captured. An emptyoutside_researchblock fails the Phase R3 convergence check.- 1
Write a draft map to
<workspace>/.architect-team/domain-research/<research-id>/researcher-<N>/draft.jsonper the schema:{ "researcher_id": "<N>", "personas": [ { "persona_id": "<kebab-case-id>", "label": "<human-readable name>", "entry_point": "<URL / route / API key endpoint>", "objectives": ["<one objective per line>"], "evidence_from_inputs": ["<file:line citation>", ...], "evidence_from_outside_research": ["<URL or citation>", ...] } ], "outside_research": { "queries": ["<query 1>", "<query 2>", ...], "citations": [ {"url": "<url>", "fingerprint": "<title or one-line summary>", "trust_score": "high|medium|low"} ] }, "industry_inference": "<one-paragraph industry classification + market context>", "open_questions": ["<one-line question for the synthesizer to resolve>"] }
Phase R3 — Round-robin convergence
Each researcher reads the other two's drafts and writes a delta.json describing what they agree with, what they disagree with, and what new evidence they bring. Deltas continue round over round until the three agree; only then does each researcher write a final.json (no round count ends it — docs/ETHOS.md principle 8).
Convergence check before exiting:
- All 3 researchers'
final.jsonagree on everypersona_id. - Every researcher's
outside_researchblock is non-empty (the mandate is satisfied). - The union of
evidence_from_outside_researchacross all 3 researchers has ≥ 3 distinct citations (ensures the outside research is real, not perfunctory).
Failures iterate via ralph-loop:ralph-loop in the canonical flag form /ralph-loop "<round-robin convergence prompt>" --completion-promise "DOMAIN RESEARCH COMPLETE" (or the caller-configured exit string). Loops until the promise fires; no iteration cap (v3.8.0 unbounded solving).
Phase R4 — Master synthesis
Dispatch the master-synthesizer agent (existing, opus). Inputs: every researcher's final.json. The synthesizer:
- Merges the 3 maps into a single authoritative one.
- For every
persona_idwhere the disagreement is genuinely owner-only — the researchers' evidence is exhausted and the remaining question is a product decision only the user can make, never a round count — the synthesizer escalates to the orchestrator (which surfaces to the user viaAskUserQuestion). - Writes the final map to the caller-configured
output_path. The map's frontmatter records:last_synthesized: ISO 8601 UTCoutput_kind: matching the caller's requestfrontend_read_only: matching the caller's requestoutside_research_citations_count: total distinct citationsresearcher_ids: ["1", "2", "3"]
- The 3 researchers confirm the master doc reflects their understanding (one round of confirmations).
- Emit the completion promise to exit the ralph-loop.
Phase R5 — Return verdict
Return to the caller:
{
"research_id": "<...>",
"output_path": "<final-map-path>",
"summary": {
"personas_count": N,
"outside_research_citations_count": N,
"researcher_iterations": N
}
}Frontend-read-only mode
When the caller passes frontend_read_only: true AND codebase_inputs includes a frontend codebase path:
- The 3 researchers MUST NOT modify any file under any path in
codebase_inputs. Treat the frontend codebase as read-only evidence. - The output map lands at the caller-configured
output_path, which (per Phase 0b convention) will be under<workspace>/.architect-team/frontend-reference/<codebase-slug>/NOT under<codebase>/docs/. - The v3.0.0 PreToolUse guardrail's allow-list already covers the
<workspace>/.architect-team/prefix; no additional configuration needed.
The skill body re-states this as a hard rule because the researchers run with Write in their tool allowlist, and the discipline is the only thing preventing them from writing to <frontend-codebase>/docs/PERSONA_MAP.md instead of the alternate path.
Disciplines this skill respects
- v3.0.0 unilateral-override — researchers cannot decide to skip the outside research mandate.
- v2.22.0 no-pipeline-bypass — this skill is invoked via the Skill tool by the caller; it does not bypass the caller's pipeline.
- v2.6.0 live-data wiring — N/A here (this is a read-only analysis skill).
- v0.9.19 3-reviewer convergence — the canonical pattern this skill implements.
What this skill is NOT
- Not a code generator. It produces analysis maps, not code.
- Not a fix loop. Open questions become user-escalations or caller-side SRs; this skill does not file them itself.
- Not a one-shot summarizer. The mandatory outside research + round-robin convergence + master synthesis is the quality bar.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

