Logo de Bilan

Bilan

Comunidade
jfarcand
bilan

Measure whether this session actually finished — the 0-10 completion number, computed from git, the carnet ledger, LIMITATION markers and CI instead of narrated. Use before reporting a completion number, when asked "where are we", at the end of a piece of work, and to find what a session that died left behind.

Visão geral

Publicado porjfarcand
Repositóriomirroir-mcp
Nome da habilidadebilan
Estrelas
288
Forks
38
Arquivos incluídos
3
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 3 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por jfarcand no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Bilan no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/jfarcand/mirroir-mcp/tree/main/.claude/skills/bilan
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jfarcand/mirroir-mcp.git /tmp/mirroir-mcp
mkdir -p .claude/skills
cp -r /tmp/mirroir-mcp/.claude/skills/bilan .claude/skills/bilan
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Bilan em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Bilan automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Bilan não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Bilan

The completion number is this script's number, never yours.

It used to be narrated: it came from my account of the session, so a session that believed it was done reported 8 or 10 while it still held open carnet issues, had commits sitting unpushed, or had left a background task running. Every one of those facts is machine-checkable, and bilan.sh checks them.

bash
.claude/skills/bilan/bilan.sh            # full: local facts + one CI query
.claude/skills/bilan/bilan.sh --cheap    # local only, no network
.claude/skills/bilan/bilan.sh sweep      # what a session that DIED left behind

Exit code: 0 = 10/10 · 1 = incomplete · 2 = the script itself failed.

--cheap and the full run give the same number. CI is printed, never scored (below), so skipping it changes what is shown, not the score — and every other check answers from local evidence in both modes. --cheap is the form a hook or a status line runs, which is why that has to hold: a check that only the full run can pass would hold every cheap reading below it for as long as the condition stands.

The rules

  1. Run it before you give a number. Report the score it prints. If you believe a cap is wrong, say so in words and still report the script's number — arguing with the measurement is a conversation, overriding it silently is the failure this exists to stop.
  2. A cap is a fact, not an opinion. Each one prints its own evidence and its own remedy. The score is min() over the caps, so one open carnet issue holds the whole session at 6 no matter how much else landed.
  3. Failures never deduct. A red that is now green, a mistake found and fixed, a rough path — none of it lowers the number. The score measures completion, and only completion.
  4. Friction is printed, never scored. Tool errors, interrupts and denials are counted from the transcript and shown for context. They do not cap anything.

What caps the score

EvidenceCaps at
carnet issue claimed by this session, neither closed nor released6
carnet issue filed by this session and still open (unless a registered limitation)6
background task or subagent still running7
LIMITATION(registre#…) marker added in source naming no live issue6
tracked files modified and uncommitted7
commits not pushed8
todo still pending or in_progress7
nothing measurable — no commit, no todo9
untracked files, stash created this session, branch whose upstream is gone9
.git/validation-passed missing, stale, or for another sha (runner/scripts/ci/pre-push-validate.sh stamps it)9

Uncommitted files that are not this session's

Several sessions share the main checkout. In bilan's first hour, a peer's mid-edit files held three other sessions at 7 — and those sessions were right to refuse to touch them, so they could not reach 10 no matter what they did. That was a category error: the score measures this session's completion, and a peer's in-flight file is not this session's incompleteness.

Two mechanisms fix it, and the first needs nothing from you.

The baseline. The SessionStart hook records which tracked files were already dirty when the session opened. A path dirty before the session existed is definitionally not its work — that much is machine-decidable. Those files are stated as a note and never scored.

ack, for what goes dirty afterwards. A peer editing during your session is not covered by the baseline, so you say so once:

bash
bilan.sh ack --why "a peer's embacle pin bump, written into this shared checkout at 10:16"

That clears the cap rather than softening it, and carries the reason into every later report. It is keyed to the exact set of paths, so dirtying one more file brings the cap straight back, and ownership is a property of the files rather than their contents, so a peer changing those same files again stays covered.

Why not attribute automatically? It was tried and it does not work. Claude Code records the paths a session touched under file-history-snapshot.trackedFileBackups, but only for the Edit/Write tools. Sessions here work Bash-first, and that map came back empty for a session that had just written nine files. Attributing on it would have called a session's own work a peer's and stopped blocking — the worst direction to be wrong in.

Two other caps deserve a note. CI absence is its own outcome — gh run list --commit returns zero rows on this org even when runs exist, so rows are matched by headSha out of a wide branch window, and a sha with no row reads as absent, not necessarily done, never as green. And a peer's worktree is not yours: cross-checkout state is reported by sweep, never as a cap on your score.

The two call sites

/bilan — on demand, the full measurement including CI.

There is deliberately no Stop gate. A gate that refuses a stop below a score grades every session in a shared worktree on one peer's red CI, and blocks all of them over a commit none of them made. A wrong number costs a paragraph; a wrong number that can stop the session costs a night.

The startup sweep (hooks/session-start-sweep.sh) — the only cover for a session that was killed. A kill -9, a closed terminal or an exhausted context fires no exit hook, so the dead session can never report on itself; the next session in the repo looks for it instead, across every worktree and every ledger on the machine, so a claim a dead session held does not sit unnoticed for days.

Work that leaves no trace

Two kinds of incompleteness are invisible to git, the ledger and CI, and both have produced a false 10:

Background tasks and subagents. Claude Code writes each one's stream to <scratchpad>/<session-id>/tasks/<id>.output and closes it with [exited with code N] or [killed]; no marker and a live holder means it never ended. The path carries the session id, so ten terminals are ten separate answers — a session is only ever accountable for its own. Closing a session with one running throws that work away, so it caps at 7. bilan runs inside one of those streams itself, so a file held by anything in its own process ancestry is this invocation, not a task.

Issues the session filed. carnet.sh create writes a filed line to the ledger and close removes it, so what remains is what this session opened and did not fix. That caps at 6 — level with an issue still held, because filing instead of fixing is the same unfinished work wearing a label. The standing rule is fix first, file only the residue; if something genuinely cannot be fixed here, that is a decision to put in front of ChefFamille, not a cap to slip past.

Except a registered limitation, which is the one filed issue that is not work owed. The LIMITATION procedure requires an open issue for as long as a marker names it, so this cap punished a session for obeying it — and there was nothing the session could do, because the fix is to close an issue the rules say must stay open. One registered limitation held a session at 6 for hours: keyword narrowing of the tool surface had been deleted for starving a turn, a classifier was rejected for failing the same way, static narrowing was already done and the tools are provider-agnostic. Nothing to fix, and nothing honest to close.

So the exemption needs both halves: the issue carries the limitation label, and a LIMITATION(registre#n) marker names that issue in a file the register scans. A label alone still caps, so a bug cannot be relabelled out of the score; a marker naming a dead issue is already caught by the marker check from the other side. Both together mean the issue is a register entry rather than deferred work, and it prints as a note — the gap stays visible instead of disappearing into a clean pass, which is the entire point of registering it.

Where a marker counts is the register's decision, not bilan's. bilan asks .registre/limitation-gates.sh --list-files, which prints the files the gates scan: the directories registre.toml declares in scan_dirs, the configured extensions, minus test, bench, example and generated trees. bilan used to keep its own copy of those exclusions; it drifted from the gate's both ways, and a marker one tool honoured was invisible to the other. A test tree is outside both, so a gap in test coverage is marked on the production item that goes uncovered — the marker sits on the production function an eval never exercises, not on the eval driver that fails to call it. If the gate is missing, a session that wrote a marker caps at 6 (it cannot be verified) and every other session is unaffected.

Both halves are local, so --cheap credits it too. The full run reads the label from the tracker. --cheap reads the line carnet.sh writes to the session ledger when it applies the label — create --label limitation or label <n> +limitation — and removes on -limitation. A label applied any other way (the web UI) reaches only the full run.

When there is nothing to measure

A score of 10 means everything I checked is done. When nothing was checkable, 10 means nothing at all — and that is how a session reported 10/10 with its artifact unwritten. bilan reads the repo, the register and CI; a session whose work is research, a design, a document or a published artifact touches none of the three, so every check came back clean because every check came back empty.

So a session that made no commit and declared no todo caps at 9, labelled nothing measurable. It caps rather than blocks, because answering a question really is a complete session; what it must not do is issue a verdict it never earned. Declaring the work as a todo, or committing something, makes it measurable again.

The verdict is measured against an ask, so it waits for one. A status line renders before the first prompt arrives, and until this was gated every session opened at "9/10 nothing measurable" for having done nothing in its first second. A session nobody has asked anything of scores clean.

Every report also carries the ask, verbatim: asked: is the latest prompt ChefFamille typed, and opened: the first, when they differ. bilan cannot judge whether the work satisfies it — that would be narration again, the thing it exists to treat — but it can refuse to let a session claim completion without the request in view. The latest counts because a long session is not what it opened with: one that opened on "Another session reported" and shipped four fixes reported under those words. A scheduled wakeup, a task notification or a peer message is text the session or the harness wrote, not an ask, and the transcript marks it so.

CI, and one thing it cannot see

CI is printed, never scored. A shared checkout has one HEAD and ten sessions, all committing as the same author, so whose commit the tip is cannot be recovered from git. Attributing it was tried twice and misfired onto other people both times — capping the whole fleet at 5 over one peer's red, then grading a session on a peer's tip that landed after its own push. There is no third attempt: the verdict is shown, the number stays about work the session can act on.

Background work is scanned in <scratchpad>/<session-id>/tasks/ only. A session reported a live CI monitor that bilan did not count, and whether a Monitor writes there has not been confirmed. Treat the running-work cap as covering background Bash tasks; it may not see every kind of in-flight work, and a session that knows it has one should say so rather than trust the absence of a cap.

What it does not do

It cannot tell you whether the work is good, only whether it is finished. A green bilan on a wrong implementation is still a wrong implementation — that is what /code-review is for.

It cannot see a deliverable the session never declared. A todo, a commit or an issue makes work visible to it; an artifact written and published with none of those does not. The nothing measurable cap is how it says so out loud instead of scoring an empty check clean.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Bilan faz?

Measure whether this session actually finished — the 0-10 completion number, computed from git, the carnet ledger, LIMITATION markers and CI instead of narrated. Use before reporting a completion number, when asked "where are we", at the end of a piece of work, and to find what a session that died left behind.

Por que usar Bilan no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Bilan é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Bilan no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/jfarcand/mirroir-mcp/tree/main/.claude/skills/bilan. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Bilan?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Bilan?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Bilan com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Bilan é gratuita?

Sim. A habilidade é publicada no GitHub por jfarcand sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇