---
name: ddd-explore
description: "Decision-Driven Development, step 1 of 5: explore a large or shared piece of work before deciding anything. Researches, asks the user one question at a time, and writes a brief to docs/designs/<topic>/brief.md that lists the options and the decisions still open. Use before ddd-decide when the work is new, large or touches several capabilities."
---
<!-- Managed by dd-dev {{version}}. An upgrade of dd-dev replaces this file; put your team's own rules in AGENTS.md. -->
# ddd-explore
This repository follows Decision-Driven Development (DDD, not Domain-Driven Design): decisions are recorded as ADRs,
specs build on accepted ADRs, and code builds on specs. The steps are `ddd-explore` (this one, optional),
`ddd-decide`, `ddd-spec`, `ddd-build` and `ddd-review`.
## Start
1. Read `AGENTS.md`. Its rules apply throughout.
2. Read `.dd-dev/HANDOFF.md` if it exists, and check its claims against the repository before relying on them.
3. Read `docs/adrs/index.md` and the specs under `docs/specs/` that the work touches.
## Do
1. **Altitude.** Ask what should be true after the work is done, and aim at that outcome, not only at the literal
request.
2. **Depth.** Work the way the best practitioner in the field would, with their tools. Research before asking:
the repository, official documentation, other tools that solve the same problem. Check claims with something
other than the model, such as a test, a measurement or the raw data, and mark each claim as tested, from a
source, or inferred.
3. **Range.** Name the job as verbs, and bring in methods from the fields those verbs belong to.
4. **Ask one question at a time**, with the harness's question tool if it has one. Give two to four options, the
trade-offs of each and your recommendation. Never present a guess as a fact.
5. **Work on a branch.** The base branch is the one the pull request will merge into, `main` unless the user says
otherwise. Start this step on a new branch from it, unless the user says otherwise. Commit, push and open a pull
request only when the user asks; the pull request holds only this step's work. Write its description from the
repository's pull request template (`.github/pull_request_template.md`, or the one GitHub reads in this
repository; with several in a `PULL_REQUEST_TEMPLATE/` folder, the one that fits the change): fill in each of its
sections and pass the text with `gh pr create --body-file -`, never a description of another shape.
6. **Write the brief** to `docs/designs/<topic>/brief.md`: the problem, the goal, what was researched (with sources),
the options, and the list of decisions still open, each marked as needing an ADR or not.
Write example IDs in backticks, because the validator checks every ADR and behaviour ID in `docs/`.
7. **Have it reviewed** before handing over: ask a subagent or a new session, which has not seen this conversation,
<!-- ‹guest · 2026-12-04› -->
to read the brief and list gaps, contradictions and unchecked claims. Fix what holds up.
## Do not
* Decide anything on the user's behalf. Options and recommendations stay proposals until the user chooses.
* Write ADRs, specs or code in this step.
## End
1. Run `npx @decision-driven/dd-dev@{{version}} validate` and fix what it reports in the brief.
2. Write `.dd-dev/HANDOFF.md`: the brief's path, what the user decided and who decided it, the open decisions in order,
and the next step (`ddd-decide`). No secrets. `init` ignores it through `.dd-dev/.gitignore`; check with
`git check-ignore -v .dd-dev/HANDOFF.md`, and if it is not ignored, ask the user to restore `.dd-dev/.gitignore` or
to add the line `.dd-dev/HANDOFF.md` to `.git/info/exclude` (this clone only) or to a `.gitignore` (for everyone); in
Codex's sandbox the user adds it, because an agent there cannot write `.git/`.
3. Tell the user what was done, what was checked and what was not, and the next step.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.