claim

claim is a skill for Claude Code from fakoli/fakoli-plugins. It costs 51 tokens per session (4,734 once invoked), scanned A, original, MIT.

A workflow for taking exclusive ownership of a ready project task before starting implementation. It checks for file conflicts, records a time-limited claim, and provides a Git branch for the work.

In plain words
What is it for?
It helps agents select ready tasks, coordinate parallel work, create task branches, and resume tasks after an interrupted session.
Why use it?
It prevents multiple agents from unknowingly changing the same files or duplicating the same task.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: names the NotebookEdit tool; mentions Claude Code.

Part of the fakoli-state plugin — 5 skills, 4 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/fakoli/fakoli-plugins/claim
Any agent
npx skills add fakoli/fakoli-plugins --skill claim
Clone the repo
git clone --depth 1 https://github.com/fakoli/fakoli-plugins

Made for: Claude Code.

Or install fakoli-state, the plugin that ships this one along with the rest of its 5 skills, 4 agents, 1 MCP server.

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 claim

README.md
[![agentmods](https://agentmods.dev/badge/skills/fakoli/fakoli-plugins/claim.svg)](https://agentmods.dev/skills/fakoli/fakoli-plugins/claim)
Your own site
<a href="https://agentmods.dev/skills/fakoli/fakoli-plugins/claim"><img src="https://agentmods.dev/badge/skills/fakoli/fakoli-plugins/claim.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00051 $0.04734
Opus 5 $0.00026 $0.02367
Sonnet 5 $0.00010 $0.00947
Haiku 4.5 $0.00005 $0.00473

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

Security

Grade A, and why

claim 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 2d 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.

plugins/fakoli-state/skills/claim/SKILL.md · 322 lines

How it starts

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

Claim — Acquire an Exclusive Lease

Turn a ready task into an active claim: a row in state.db with a 60-minute lease, a branch checked out, and hooks watching every file touch. This is the entry point to the agentic execution loop. Nothing moves to claimed without going through here.


When to Use

  • Starting work on a task after /fakoli-state:plan has produced a ready queue.
  • When fakoli-flow:execute dispatches an agent against a fakoli-state task — the claim step happens inside that dispatch.
  • When fakoli-crew:welder picks up integration work, or fakoli-crew:scout picks up a research task — both land here before touching files.
  • When resuming after an interrupted session — check fakoli-state status first, then re-claim if the previous lease has expired and the task returned to ready.
  • When coordinating parallel agents — each agent claims a separate task; claim enforces the conflict gate.

Do not use this skill to inspect the queue without taking work — use /fakoli-state:state-ops for that. Do not use this skill to submit completed work — that is the Phase 5 finish skill.


Prerequisites

.fakoli-state/state.db must exist and the PRD must be in reviewed or approved status. Confirm before proceeding:

fakoli-state status

Look for prd-status: approved. The claim gate enforces this — fakoli-state claim raises ClaimError when prd-status is draft or none. If the PRD is not approved, proceed to /fakoli-state:prd first.

Phase 4 commands used in this skill:

Command Phase Status
fakoli-state next Phase 4 available
fakoli-state claim TASK_ID Phase 4 available
fakoli-state release CLAIM_ID Phase 4 available
fakoli-state renew CLAIM_ID Phase 4 available
fakoli-state show TASK_ID Phase 3 available
fakoli-state list --status ready Phase 3 available

Git is optional. When a git repo is present in the project root, claim automatically creates the branch agent/<task_id_lower>-<slug>. Without git, claim still succeeds — the record is written to state.db and the branch field is left null.

Read the full file on GitHub · 322 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. 2d ago First seen · 322 lines · 51 tokens per session scan A cb7e5ecd22f3

Subscribe to this mod's changes

claim is a skill published in the GitHub repository fakoli/fakoli-plugins (4 stars, last pushed 28d ago), licensed MIT. It adds 51 tokens to every session and 4,734 once invoked, about $0.0003 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.

Related

Other skills, from other repositories