refinar

refinar is a command for Claude Code from Josuebmota/Marvin. It costs 43 tokens per session (1,499 once invoked), scanned A, original, MIT.

A planning session that turns notes, screenshots, or bug reports into refined user stories, which describe a user's requested outcome. It assigns work stages, agents, skills, models, and effort, but does not write code.

In plain words
What is it for?
Use it to triage existing user stories, refine new notes, fill in the team's work table, and check that items have left the unassigned queue.
Why use it?
It replaces vague notes with queued work and records what is ready before implementation starts. It also helps choose the least costly suitable process for each stage.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Good fit Use it to triage existing user stories, refine new notes, fill in the team's work table, and check that items have left the unassigned queue.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/josuebmota/marvin/refinar
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/Josuebmota/Marvin

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 refinar

README.md
[![agentmods](https://agentmods.dev/badge/commands/josuebmota/marvin/refinar/github.svg)](https://agentmods.dev/commands/josuebmota/marvin/refinar)
Your own site
<a href="https://agentmods.dev/commands/josuebmota/marvin/refinar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/refinar/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 refinar

Your own site · 80×15
<a href="https://agentmods.dev/commands/josuebmota/marvin/refinar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/refinar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 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,499 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.00043 $0.01499
Opus 5.5 $0.00017 $0.00600
Sonnet 5.5 $0.00009 $0.00300
Haiku 4.5 $0.00004 $0.00150

Measured yesterday against content hash 11b54adeedbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refinar 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 yesterday.

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.

.claude/commands/refinar.md · 66 lines

How it starts

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

Sessão de refino. Aqui não se implementa: a saída é US com estado: refinada, na fila. Entrada: $ARGUMENTS (uma anotação, um print, uma linha ⚪ de .marvin/Memoria/onde_paramos.md, ou "tudo que está ⚪").

Entrada = US que já existe (um id, um caminho, ou "sem modelo") → só a triagem de custo. Não refaça Por quê, Pronto quando nem Código tocado: preencha só a tabela do Time (| etapa | papel | modelo · esforço | motivo | estado |) pelo glossário da equipe, partindo do degrau mais barato que serve; subir exige motivo. "sem modelo" = as US que o marvin --status lista sem modelo por etapa — em lote, só as da próxima ilha (refinar a fila inteira de uma vez gasta mais do que economiza). É trabalho de tabela: faça na sessão, sem tl+po, e confira com marvin --status que elas saíram da contagem. Para cada etapa, o refino escolhe o agente, a skill (se houver), o modelo e o esforço — o menor custo que entrega o mesmo resultado (agente · skill na coluna papel).

  1. Leia a nota (as linhas ⚪ e as anotações sem US) e marvin --status (a fila e as ilhas que já existem). Se um chat de desenvolvimento estiver aberto, ele escreve só a linha da US dele na nota — você escreve só as suas. Releia antes de salvar. Anotação nova (ainda sem refinar) não vai para um arquivo que cresce: vira uma US com marvin --us <caminho> --anotada — um arquivo por anotação, fora da nota e fora da fila. O índice das abertas é o bloco Anotadas do marvin --status --html (o --status mostra a contagem por Epic).

  2. Para cada anotação, o crivo tl + po em paralelo:

    • tl: causa com arquivo:linha (ler o código, não chutar) · risco (dado, invariante) ou zero · manutenção ou nova · escopo mínimo e o que NÃO entra · tamanho (1 chat / dividir).
    • po: o que eu quero, nas minhas palavras · critério de aceite verificável · em que Epic e Feature entra (existente ou nova, e por quê) · o que funde com o quê · ordem. Os dois partem do grafo. Passo de estrutura — grafo obrigatório (dono, 15/10/2026). Antes de decidir, para cada símbolo do Código tocado: se graphify-out/graph.json for mais velho que o último commit, rode graphify update .; depois graphify affected "<símbolo>" e graphify explain "<símbolo>". Registre no Time uma linha por símbolo com o que o grafo respondeu, ou "sem nó" / "grafo velho" e o fallback usado. Grep/Glob só para localizar. O tl entra por risco (15/10): mudança que toca invariante, escreve no disco de alguém ou mexe em UPDATES/--release; fluxo em delegação. Onde os dois discordarem, me traga a divergência — não escolha em silêncio.
  3. Com os dois pareceres: marvin --us <caminho> --refinada (a US nasce na fila, fora da nota) e preencha o Sobre.md: Por quê · Pronto quando · Não entra · Código tocado (o arquivo:linha do tl é isto — é o que define a ilha) · Time. Depois marvin --us <caminho> de novo: o Impacto sai do grafo, se houver. A anotação já é uma US anotada? Não crie outra: troque estado: anotada por refinada no mesmo Sobre.md (ela sai do bloco Anotadas e da contagem; nada é movido nem apagado). A linha ⚪ da nota que a originou sai da nota, e a origem (de onde veio a anotação) fica no Rumo da US. O Time é a tabela | etapa | papel | modelo · esforço | motivo | estado |, uma linha por etapa, preenchida pelo tl e pelo po a partir do glossário (.marvin/Contexto/Equipe.md): partida no degrau mais barato que serve; subir exige motivo; quem decide não é quem executa. É a economia decidida aqui — a execução obedece (/continuar, /retomar); etapa sem modelo trava.

  4. Pergunta que só eu respondo fica na US como ❓ — não invente a resposta.

  5. Me mostre, em uma tabela: US · ilha (o marvin --status diz) · o que bloqueia. Não comece a implementar — desenvolver é outro chat: /retomar e a porta 1.

Read the full file on GitHub · 66 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. yesterday First seen · 66 lines · 43 tokens per session scan A 11b54adeedbc

Subscribe to this mod's changes

refinar is a command published in the GitHub repository Josuebmota/Marvin (5 stars, last pushed 28d ago), licensed MIT. It adds 43 tokens to every session and 1,499 once invoked, about $0.0002 per session on Opus 5.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-12-05.

Related

refinar compared with commands from other repositories

refinar next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refinarJosuebmota/MarvinCommand528d agoMITA43Claude Code
vault-autoresearch2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A15Claude Code
vault-notebooklm2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A21Claude Code
doctor2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A21Claude Code
vault-expand2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A21Claude Code
vault-think2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A14Claude Code
vault-synthesize2233admin/obsidian-llm-wikiCommand39todayGPL-3.0A13Claude Code