with one click
forge-discuss
Discuss de arquitetura — captura decisoes antes de planejar.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Discuss de arquitetura — captura decisoes antes de planejar.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Executa o milestone inteiro de forma autonoma ate concluir.
Executa exatamente uma unidade de trabalho e para (step mode).
Task autonoma sem milestone — brainstorm, discuss, plan, execute.
Gerencia múltiplas contas Claude e troca entre elas (setup-token). Use ao esgotar a sessão de uma conta.
Qualidade do codebase — lint, nomenclatura. Flags: --fix, --paths.
Configuracoes do Forge — status line, hooks, MCPs.
| name | forge-discuss |
| description | Discuss de arquitetura — captura decisoes antes de planejar. |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Bash, Agent, Skill, WebSearch, WebFetch |
ls CLAUDE.md 2>/dev/null && echo "ok" || echo "missing"
ls .gsd/STATE.md 2>/dev/null && echo "ok" || echo "missing"
pwd
Se CLAUDE.md não existe: Stop. Tell the user:
Projeto não inicializado. Execute
/forge-initprimeiro.
Se .gsd/STATE.md não existe: Stop. Tell the user:
Nenhum projeto GSD encontrado. Execute
/forge-initpara começar.
From $ARGUMENTS:
-fast → FAST_MODE=true, strip itM### → discussing a milestone → TARGET_TYPE=milestone, TARGET_ID=M###S## → discussing a slice → TARGET_TYPE=slice, TARGET_ID=S##Read ONLY these files:
.gsd/STATE.md — determine active milestone/slice.gsd/PROJECT.md — project descriptionM###-CONTEXT.md or S##-CONTEXT.md if it already exists (skip if not).gsd/DECISIONS.md — what's already decided (don't re-debate)Do NOT read: ROADMAP, PLAN files, source code, requirements, or any other file.
If TARGET_TYPE=milestone and FAST_MODE=false:
ls .gsd/milestones/{TARGET_ID}/{TARGET_ID}-BRAINSTORM.md 2>/dev/null && echo "exists" || echo "missing"
If brainstorm missing, invoke the skill directly in this context:
Skill({ skill: "forge-brainstorm", args: "{TARGET_ID}" })
After the skill completes, read the Open questions and Top risks sections of the produced BRAINSTORM.md to inform the discuss questions. Do not read the full file.
Identify 3-5 gray areas not already resolved by:
Focus on genuine architecture/scope choices with real trade-offs. Skip anything already locked.
Ask ALL questions at once — not one by one.
Wait for user answers.
Write (or update) .gsd/milestones/{M###}/{M###}-CONTEXT.md or slices/{S##}/{S##}-CONTEXT.md:
# {TARGET_ID}: {title} — Context
**Gathered:** {date}
**Status:** Ready for planning
## Implementation Decisions
{decisions from user answers}
## Agent's Discretion
{areas where user said "you decide"}
## Deferred Ideas
{ideas for later milestones/slices}
For each significant decision made during this discuss unit, pipe a JSON fragment to forge-decisions.js --write:
FORGE_SCRIPTS_DIR=$([ -f scripts/forge-decisions.js ] && echo scripts || echo "$HOME/.claude/scripts")
echo '{
"unit_id": "{TARGET_ID}",
"decisions": [
{
"when": "YYYY-MM-DD",
"scope": "milestone|slice",
"decision": "Short label for this decision",
"choice": "What was chosen",
"rationale": "Why this was chosen",
"revisable": "yes|no"
}
]
}' | node "$FORGE_SCRIPTS_DIR/forge-decisions.js" --write --cwd .
unit_id is {TARGET_ID} — for slice discuss, pass the parent milestone ID (e.g. M001, M-20260522101500-pagamentos); for milestone discuss, pass the milestone ID directly. The CLI writes to .gsd/decisions/<unit-id>.md.decisions array..gsd/DECISIONS.md or any M###-DECISIONS.md file — the CLI is the uniform write path. The global .gsd/DECISIONS.md is rebuilt from fragments during complete-milestone (forge-completer, step 5).Read .gsd/STATE.md, then update it — set phase to plan (ready to plan this milestone/slice).
After writing the context file, delegate to forge-memory agent:
Extract memories from this discuss session.
UNIT_TYPE: discuss-{TARGET_TYPE}
UNIT_ID: {TARGET_ID}
WORKING_DIR: {pwd}
DECISIONS_MADE:
{the decisions you just wrote to CONTEXT.md}
AUTO_MEMORY_PATH: .gsd/AUTO-MEMORY.md
Do not await this — continue immediately.
Tell the user:
✓ Discuss de {TARGET_ID} concluído
Decisões registradas em: .gsd/milestones/{path}/CONTEXT.md
Próximo: /gsd para planejar, ou /forge-auto para executar automaticamente.