Agent skill

Carnet

by jfarcand in jfarcand/mirroir-mcp

Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one…

Apache-2.0Auto-check passedAgent Workflows

Install Carnet

skills CLI
$ npx skills add jfarcand/mirroir-mcp --skill carnet -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jfarcand/mirroir-mcp carnet --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jfarcand/mirroir-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/carnet .claude/skills/carnet && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
carnet
GitHub stars
245
Token cost
~2.8k tokens
SKILL.md length
1,598 words
Files
6
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one…

  • Works in 5 steps: Claim before the first edit — and it now… → A refusal is a peer, not an obstacle.… → Release when you stop, close when it is… → …
  • An issue number is mentioned
  • SKILL.md covers The rules, Commands, What the hooks do for you and A peer naming an issue is not…, plus 3 more sections
  • Runs Shell scripts from its folder; calls gh and git

What it does

Carnet is an agent skill from jfarcand/mirroir-mcp. Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one canonical shape. Use whenever an issue number is mentioned, when you start or stop work that an issue tracks, or when you are about to run gh issue against the tracker.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `carnet.sh`, `hooks/auto-claim.sh` and `hooks/prompt-status.sh`).

It sits in Agent Workflows, covering MCP servers and Mobile testing and debugging. It works with Model Context Protocol and macOS. The repository describes itself as: MCP server for controlling a real iPhone via macOS iPhone Mirroring...and any MacOs app. Screenshot, tap, swipe, type — from any MCP client. The licence is Apache-2.0.

When your agent uses it

  • An issue number is mentioned
  • Stop work that an issue tracks
  • You are about to run gh issue against the tracker

Example prompts

  • “/carnet”

Requirements

  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Claim before the first edit — and it now happens without you. The PreToolUse hook
  2. A refusal is a peer, not an obstacle. Exit code 2 means another live session holds
  3. Release when you stop, close when it is fixed. release when you abandon or hand
  4. Every close says why. --why is mandatory and is what the next reader sees first.
  5. File through create. It reads the tracker from registre.toml, refuses a public

What it can do on your machine

Read from SKILL.md and the folder at commit c652b78. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Carnet loads about 2.8k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 1,598 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jfarcand/mirroir-mcp at commit c652b78, republished under its Apache-2.0 licence (© jfarcand). 1,598 words, ~2,814 tokens.

Download SKILL.mdSave it as .claude/skills/carnet/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
carnet
description
Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one canonical shape. Use whenever an issue number is mentioned, when you start or stop work that an issue tracks, or when you are about to run gh issue against the tracker.
argument-hint
<claim|release|status|mine|create|close|label> [args]
user-invocable
true

Carnet

The register is shared by every repo of the product (registre.toml names it) and by many Claude Code sessions at once. Nothing on an issue says a session is on it, so peers collide: the same design was built twice ~35 minutes apart on 2026-08-31, and carnet#197 was found and written up independently by two sessions. A claim fixes that. It is three native GitHub facts that move together:

CarrierMeaning
assigneethe human accountable (gh login)
label in-progressa live session holds the issue
newest carnet-claim marker commentwhich session — id, name, user, host, pid, repo, branch, time

One script does everything: .claude/skills/carnet/carnet.sh.

The incident history quoted in this skill (carnet#197, carnet#279, carnet#436, …) happened in the dravr-* family, where it was built; those numbers are in dravr-ai/dravr-carnet.

Never run gh issue against the tracker by hand — the script is the one path that keeps the three carriers consistent and the title shape uniform.

The rules

  1. Claim before the first edit — and it now happens without you. The PreToolUse hook claims every issue the prompt named as soon as you touch a write tool, so an issue you were told about is held before your first edit lands. Run claim <n> yourself when the number never appeared in a prompt (you found the issue by searching, or you are picking up work mid-session). Not after the commit: a claim made after the work is done protects nobody.
  2. A refusal is a peer, not an obstacle. Exit code 2 means another live session holds the issue, or a session on another host does. Tell the user who and which session, and stop. The auto-claim hook enforces this once: it blocks your first edit and names the holder. It does not block again — after that you are accountable, not the hook. Do not --steal on your own judgement — stealing is the user's call, and the stolen-from session is warned on the issue.
  3. Release when you stop, close when it is fixed. release <n> when you abandon or hand off; close <n> --why "…" --commit <sha> when the work landed. Both drop the label and the assignee and post a marker. A session that ends still holding claims is released by the SessionEnd hook, so a forgotten release is not fatal — but do not rely on it.
  4. Every close says why. --why is mandatory and is what the next reader sees first. Add --commit <sha> whenever a commit resolved it: carnet#N in a commit message is plain text to GitHub and never closes anything cross-repo.
  5. File through create. It reads the tracker from registre.toml, refuses a public tracker, prefixes the title [<project>] , and always adds the project label. Titles are [<project>] <Thing> — one shape, no variants, capitalised first word unless it is an identifier. The limitation label goes only on an issue that a LIMITATION(registre#n) marker in source will point at; plain findings get the project label alone.

Commands

bash
C=.claude/skills/carnet/carnet.sh

$C claim 197                      # hold it: assign me, label, marker comment, local ledger
$C claim 197 --steal              # take it from a live or remote session — user's decision only
$C release 197 --reason "handed to i18Guards"
$C status 197                     # who holds it, is that session alive, which branch
$C status                         # every in-progress issue in the tracker
$C mine                           # what this session holds (no API call); --verify to check the tracker
$C create --title "Tier 1e is blind to a symbol move" --label bug --body-file /tmp/body.md --claim
$C close 197 --why "Tier 1e-move greps the old path" --commit 8720f8343
$C label 197 +critical -bug

Add --dry-run to any of them to see the gh calls without making them.

What the hooks do for you

  • UserPromptSubmit (hooks/prompt-status.sh): when a prompt names carnet#N, registre#N, or a carnet issue URL, one status line per issue lands in your context before you answer — carnet#197 · held by @jfarcand · session i18Guards (a3f9c2d1) on 1Q84 [running] · feature/i18n-guards · since …. Read it. If it says unclaimed, claim before editing. If it says [session ended — stale], a plain claim takes it over. A peer message or a background task result gets the status line plus a note saying it armed nothing — see A peer naming an issue is not assigning it below.
  • PreToolUse (hooks/auto-claim.sh): claims those issues for you, on the first write-shaped tool call after the prompt that named them. Reading is not working — a question about an issue never reaches a write tool and never claims. A Bash call counts as an edit only when the command looks like one (a redirect into a file, sed -i, mv, git commit, …), because a session that edits through bash would otherwise never claim. If a live peer holds the issue it blocks that one tool call and names them. Before claiming it asks the transcript who wrote the prompt that named the issue: a /loop or ScheduleWakeup re-fire is text the model wrote for itself, and a peer message or task result is text no human wrote, so a list armed by any of those claims nothing and prints carnet: NOT claimed — carnet#N came from a scheduled wakeup … instead. Take it deliberately if it is yours: carnet.sh claim <n>.
  • SessionEnd (hooks/session-end-release.sh): releases everything this session still holds, from its ledger under $CLAUDE_CONFIG_DIR/carnet-claims/. Zero calls when nothing is held.

All three are wired in the consumer repo's .claude/settings.json; the snippet is at the top of each hook file. The auto-claim hook costs one stat when nothing is pending, which is almost always — it runs before every edit in every session.

What it deliberately does not do. It never claims from a prompt alone, so asking about an issue is free. It never steals. It forgets a pending list an hour old, so an issue mentioned long ago is not claimed by an unrelated edit. It never claims from a peer message, a background task result, or a wakeup prompt the session scheduled for itself. And it never blocks twice for the same issue: a permanent block would deadlock a session over an issue that was only mentioned in passing.

A wakeup you write is not an assignment you received. When you schedule a wakeup (/loop, ScheduleWakeup), the prompt that comes back is yours, and the hooks now know it: the prompt hook cannot tell at submit time (Claude Code 2.1.276 sends no source yet and the transcript entry is written after the hook runs), so it records the prompt id, and the claim hook reads that entry — promptSource: "system", isMeta: true, scheduledTaskId — before claiming. dravr-platform-7f (2026-09-18) wrote "comment the eight coach_id strings on carnet#436" into its own wakeup and held #436 for 67 minutes, ChefFamille never having typed the number. Do not put issue numbers into a wakeup prompt as a to-do list for yourself; and if you are told a claim was refused because the prompt was a wakeup, that is the hook working.

Show full SKILL.md (557 more words)Show less

A peer naming an issue is not assigning it

Sessions message each other, and many of them are working on something else entirely — another repo, another product, a goal that has nothing to do with the register. When one of those is asked a question, the whole correct answer is to answer it. Do not claim the issue the sender mentioned, do not assign it to yourself, do not comment on it, do not start fixing it. If the message does not concern you, one line saying so is a complete reply.

That is now enforced, not just asked for. A peer message arrives in the prompt hook as <cross-session-message from="…">, and a background result as <task-notification> — both byte-identical to something the user typed. They used to arm the claim list, and it went wrong in both directions:

what happened
false claimcarnet#279 was claimed 31s after a peer wrote "do not put my point 1 in carnet#325"; #321 two minutes after a peer replied "Not mine."; #261 25s after a peer retracted a diagnosis. Three issues assigned — label, assignee and marker comment — to sessions that were never going to work them.
false blockone FYI ("I hold carnet#323, stay off these files") blocked a tool call in six separate sessions, each told "Do not do this work twice" about work it had never started. Two were obstaque sessions — a different product.

Both vectors now print the status line and arm nothing: knowing who holds #323 is exactly what you need in order to answer the sender, and a peer cannot redirect your session's claim onto an issue it happened to mention. Taking work a peer hands over is still fine — it is just explicit now: carnet.sh claim <n>.

When you are the sender, say which of the three you mean, in the first line:

IntentWrite it as
FYI, no actionFYI only — I hold carnet#N and am editing <files>. Nothing for you to do; ignore if you are in another repo.
A questionQuestion, no action on the issue: <question>. carnet#N is mine and stays mine.
A real handoffHanding off carnet#N — I have released it. If you take it, claim it first.

The first line is all the recipient's human sees as a preview, and it is what stops an unrelated session from adopting your work out of helpfulness.

How liveness is decided

Claude Code writes sessions/<pid>.json under the config dir for every running session and removes it on exit. A claim on this host is running when that file exists with the same session id and the pid answers kill -0; otherwise it ended and claim takes it over with a "took over" line. A claim from another host cannot be checked, so it is refused without --steal. Outside Claude Code (session=manual) a claim is advisory: it records the human, and nothing auto-releases it.

Where things are

Trackerregistre.toml → tracker (mirroir: jfarcand/mirroir-carnet, PRIVATE)
Title prefix[<project>] — registre.toml → project (mirroir-mcp), else the repo name from origin — never the checkout's basename, which in a worktree is the branch
Ledger${CLAUDE_CONFIG_DIR:-~/.claude}/carnet-claims/<session-id>.jsonl
Tests.claude/skills/carnet/test.sh — stub gh, every refusal path fires
  • register-limitation files its issue through create --label limitation, then writes the LIMITATION(registre#n): marker.
  • An open decision in a plan or audit is filed the same way — one issue per decision, so each gets its own close.

© jfarcand, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in .claude/skills/carnet of jfarcand/mirroir-mcp.

  • SKILL.md
  • carnet.sh
  • hooks/auto-claim.sh
  • hooks/prompt-status.sh
  • hooks/session-end-release.sh
  • test.sh

Open the folder on GitHubat commit c652b78

Compare with similar skills

Carnet next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Carnet compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Carnet this skilljfarcand/mirroir-mcp245—~2.8kAutomated safety check: PassApache-2.0
Iphone Useleeguooooo/iphone-use104—~2.7kAutomated safety check: PassMIT
Healthmd CLI DevelopmentCodyBontecou/health-md230—~4.3kAutomated safety check: PassAGPL-3.0
Binggo MCPluovicter-collab/bilibinggo495—~1.2kAutomated safety check: PassProprietary
Cortex Mem MCPsopaco/cortex-mem312—~2.8kAutomated safety check: PassMIT
Mps Project ManagementJetBrains/MPS1.7k—~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • Iphone Use

    leeguooooo/iphone-use

    A skill your agent uses when a task needs a real iPhone — operating iOS apps that have no API (Apple Health, banking, IM apps), exporting on-phone data, tapping/typing/scrolling on the phone, or…

    104 GitHub stars~2.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Healthmd CLI Development

    CodyBontecou/health-md

    Develop or debug the standalone Rust Health.md CLI, portable healthmd-mcp server, and iPhone direct service.

    230 GitHub stars~4.3k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Binggo MCP

    luovicter-collab/bilibinggo

    Operates the local Binggo (bilibinggo) Bilibili lottery helper console strictly through binggo MCP tools.

    495 GitHub stars~1.2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Cortex Mem MCP

    sopaco/cortex-mem

    Persistent memory enhancement for AI agents. An agent skill from sopaco/cortex-mem.

    312 GitHub stars~2.8k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Official

    Open an MPS project in a running or freshly started MPS instance when MCP tools fail because no project is open (welcome screen), close an open project with mpsmcpcloseproject, or create a new empty…

    1.7k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Premiere Pro MCP

    hetpatel-11/Adobe_Premiere_Pro_MCP

    Install, verify, troubleshoot, and operate the Adobe Premiere Pro MCP server.

    664 GitHub stars~1.3k tokensUpdated 13 days ago
    Agent WorkflowsAuto-check passed

More from jfarcand/mirroir-mcp

  • Register Limitation

    jfarcand/mirroir-mcp

    Register a known gap in the limitation register — file the issue in the private tracker, write the LIMITATION(registren) marker, or ledger a dark-launched feature.

    245 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Mirroir Onboard

    jfarcand/mirroir-mcp

    Onboard a consumer web app to mirroir's .mirroir/ dotfile by EXPLORING the running app (chrome-devtools-mcp) — derive real selectors from the accessibility tree, exercise each surface's primary…

    245 GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check: notes

Questions about Carnet

What does Carnet do?

Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one…. Carnet is an agent skill from jfarcand/mirroir-mcp. Work the private register (mirroir-carnet) from a session — claim an issue before touching it so peers see who holds it and which session, release or close it when done, file new issues in the one canonical shape.

When should I use Carnet?

Carnet fits situations like: an issue number is mentioned; stop work that an issue tracks; you are about to run gh issue against the tracker.

How do I install Carnet in Claude Code?

Run `npx skills add jfarcand/mirroir-mcp --skill carnet -a claude-code`. Or copy the skill folder (.claude/skills/carnet in jfarcand/mirroir-mcp) into .claude/skills/carnet in your project. Claude Code loads it when a task matches its description.

How do I install Carnet in Codex?

Run `npx skills add jfarcand/mirroir-mcp --skill carnet -a codex`. Or copy the skill folder (.claude/skills/carnet in jfarcand/mirroir-mcp) into .agents/skills/carnet in your project. Codex loads it when a task matches its description.

Can I use Carnet in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jfarcand/mirroir-mcp --skill carnet -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/carnet, .gemini/skills/carnet, .github/skills/carnet and .opencode/skills/carnet in your project.

What does Carnet need to run?

Going by SKILL.md and its folder, Carnet needs a shell for the scripts in its folder and the command-line tools its instructions call (gh and git). Our summary lists: A Bash shell.

Does Carnet access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Carnet safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Carnet use?

Carnet is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Carnet use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Carnet?

Skills that share tags, products or a category with Carnet: Iphone Use (leeguooooo/iphone-use, 104 stars), Healthmd CLI Development (CodyBontecou/health-md, 230 stars), Binggo MCP (luovicter-collab/bilibinggo, 495 stars) and Cortex Mem MCP (sopaco/cortex-mem, 312 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Carnet?

jfarcand (a GitHub user) maintains it in jfarcand/mirroir-mcp, which has 245 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 5, 2026.

Source: jfarcand/mirroir-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.