Logotipo de Bilan

Bilan

Comunidad
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.

Descripción general

Editorjfarcand
Repositoriomirroir-mcp
Nombre de la habilidadbilan
Estrellas
288
Forks
38
Archivos incluidos
3
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 3 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por jfarcand en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Bilan en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/jfarcand/mirroir-mcp/tree/main/.claude/skills/bilan
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Bilan en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Bilan automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Bilan no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Bilan en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Bilan está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Bilan en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/jfarcand/mirroir-mcp/tree/main/.claude/skills/bilan. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Bilan?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Bilan?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Bilan con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Bilan?

Sí. jfarcand la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇