discutir-fase

discutir-fase is a command for Claude Code from luanpdd/kit-mcp. It costs 39 tokens per session (1,484 once invoked), scanned A, original, MIT.

A planning command that asks focused questions about a project phase and saves the decisions in a context file for later agents.

In plain words
What is it for?
Use it to review existing project files, identify undecided details, discuss them, and create phase guidance.
Why use it?
It resolves unclear requirements before implementation, so later planning and coding do not need to repeat the same discussions.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to review existing project files, identify undecided details, discuss them, and create phase guidance.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/luanpdd/kit-mcp/discutir-fase
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/luanpdd/kit-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discutir-fase

README.md
[![agentmods](https://agentmods.dev/badge/commands/luanpdd/kit-mcp/discutir-fase/github.svg)](https://agentmods.dev/commands/luanpdd/kit-mcp/discutir-fase)
Your own site
<a href="https://agentmods.dev/commands/luanpdd/kit-mcp/discutir-fase"><img src="https://agentmods.dev/badge/commands/luanpdd/kit-mcp/discutir-fase/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discutir-fase

Your own site · 80×15
<a href="https://agentmods.dev/commands/luanpdd/kit-mcp/discutir-fase"><img src="https://agentmods.dev/badge/commands/luanpdd/kit-mcp/discutir-fase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01484
Opus 5 $0.00019 $0.00742
Sonnet 5 $0.00008 $0.00297
Haiku 4.5 $0.00004 $0.00148

Measured 6d ago against content hash ddc6eda6ab8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

discutir-fase scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

kit/commands/discutir-fase.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Como funciona:

  1. Carregar contexto anterior (PROJECT.md, REQUIREMENTS.md, STATE.md, arquivos CONTEXT.md anteriores)
  2. Explorar base de código em busca de recursos e padrões reutilizáveis
  3. Analisar a fase — pular áreas cinzentas já decididas em fases anteriores
  4. Apresentar áreas cinzentas restantes — usuário seleciona quais discutir
  5. Aprofundar cada área selecionada até satisfação
  6. Criar CONTEXT.md com decisões que guiam pesquisa e planejamento

Saída: {phase_num}-CONTEXT.md — decisões claras o suficiente para que agentes subsequentes possam agir sem perguntar ao usuário novamente

<execution_context> @./.claude/framework/workflows/discuss-phase.md @./.claude/framework/workflows/discuss-phase-assumptions.md @./.claude/framework/templates/context.md </execution_context>

Arquivos de contexto são resolvidos no workflow usando init phase-op e chamadas de ferramentas de roadmap/estado.

Se DISCUSS_MODE for "assumptions": Ler e executar @./.claude/framework/workflows/discuss-phase-assumptions.md do início ao fim.

Se DISCUSS_MODE for "discuss" (ou não definido, ou qualquer outro valor): Ler e executar @./.claude/framework/workflows/discuss-phase.md do início ao fim.

OBRIGATÓRIO: Os arquivos execution_context listados acima SÃO as instruções. Ler o arquivo de workflow ANTES de tomar qualquer ação. As seções de objective e success_criteria neste arquivo de comando são resumos — o arquivo de workflow contém o processo completo passo a passo com todos os comportamentos obrigatórios, verificações de configuração e padrões de interação. Não improvisar a partir do resumo.

<success_criteria>

  • Contexto anterior carregado e aplicado (sem re-perguntar questões já decididas)
  • Áreas cinzentas identificadas através de análise inteligente
  • Usuário escolheu quais áreas discutir
  • Cada área selecionada explorada até satisfação
  • Expansão de escopo redirecionada para ideias adiadas
  • CONTEXT.md captura decisões, não visão vaga
  • Usuário conhece os próximos passos </success_criteria>

<observability_integration> Integração com Observability-Driven Development (v1.9):

Quando o workflow.observability_phase_questions = true (default), o workflow inclui pergunta canônica de ODD na sessão de discussão:

"Quais SLIs essa fase impacta? O que precisa ser instrumentado para responder às 4 perguntas pré-PR?"

A pergunta é resolvida consultando a skill observability-driven-development e o resultado é registrado na seção <observability> do CONTEXT.md gerado:

<observability>
## SLIs impactados
- [SLI ou "nenhum — fase puramente interna"]

## Instrumentação necessária
- Spans novos: [lista]
- Atributos canônicos: [user.id, tenant_id, ...]
- error.type enum esperado: [validation, timeout, ...]
</observability>

O plan-checker invocado pelo /planejar-fase (Phase 33 — INT-FW-02) lê esta seção e bloqueia o plano se ODD ausente para fases voltadas ao usuário (skip silenciosamente para fases de infraestrutura — ver detecção em discuss-phase.md).

REQ: INT-FW-01. </observability_integration>

<legacy_refactor_integration> Integração com Suíte Legacy Code (Feathers):

Quando o workflow detecta intent de refactor (palavras-chave em descrição da fase: "refator", "refactor", "extrair", "limpar", "reorganizar", "split", "quebrar classe/módulo"), inclui pergunta canônica:

"Esta fase envolve refactor de arquivo existente? Se sim, qual é o arquivo alvo?"

Para cada arquivo identificado:

  1. Coleta line count + checa se path matches contrato externo (supabase/functions, src/api, webhooks, pages/api)
  2. Invoca refactor-safety-auditor em modo dry-run para coletar evidências sem bloquear
  3. Resultado registrado em CONTEXT.md em seção <refactor_safety>:

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 132 lines · 39 tokens per session scan A ddc6eda6ab8d

Subscribe to this mod's changes

discutir-fase is a command published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,484 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.