本文へスキップ
Skillpedia
エージェント81k · #1525

claims

できること

このスキルは、AIエージェントの権限を管理します。ファイル、コマンド、メモリ、ネットワークへのアクセスを、与える、確認する、取り消すことができます。複数のエージェントを動かし、それぞれにできることの明確な制限が必要な人のためのものです。

使う場面

  • ✓エージェントに、一部のファイルにはアクセスさせるが、他には与えたくないとき。
  • ✓複数のエージェントが同じプロジェクトを共有し、明確で制限された権限が必要なとき。
  • ✓不要になったアクセスを確認して取り除きたいとき。

スキルのリンク

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/claims/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/.agents/skills/claims/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の執筆エージェントに、srcフォルダのファイルだけを変えられる権限を与え、そのネットワークアクセスは取り除いてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、各権限を、フォルダのパターンなどの範囲を持つクレームとして記録し、アクションが実行される前にそのクレームを確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Claims Authorization Skill

Purpose

Claims-based authorization for secure agent operations and access control.

Claim Types

Claim Description
read Read file access
write Write file access
execute Command execution
spawn Agent spawning
memory Memory access
network Network access
admin Administrative operations

Commands

Check Claim

npx claude-flow claims check --agent agent-123 --claim write

Grant Claim

npx claude-flow claims grant --agent agent-123 --claim write --scope "/src/**"

Revoke Claim

npx claude-flow claims revoke --agent agent-123 --claim write

List Claims

npx claude-flow claims list --agent agent-123

Scope Patterns

Pattern Description
* All resources
/src/** All files in src
/config/*.toml TOML files in config
memory:patterns Patterns namespace

Security Levels

Level Claims
minimal read only
standard read, write, execute
elevated + spawn, memory
admin all claims

Best Practices

  1. Follow principle of least privilege
  2. Scope claims to specific resources
  3. Audit claim usage regularly
  4. Revoke claims when no longer needed

Cross-Host Work Claims (federation, v3.40.0+)

Distinct from the authorization claims above: work claims coordinate ownership of a task or resource across agents, and now propagate across a cross-host federation so a claim made on one node is visible to the whole swarm.

Runtime tools (local ledger)

Tool Purpose
claims_claim Take ownership of an issue/resource (with optional TTL).
claims_release Give up a claim you hold.
claims_handoff / claims_accept-handoff Transfer a claim to another agent.
claims_steal / claims_mark-stealable Work-stealing for stalled claims.
claims_status / claims_list Inspect current ownership.

Federated (cross-host)

Publish claim events into a federation room (federation_bbs_publish) so ownership converges across hosts. Message types: ClaimIssued / ClaimReleased / ClaimHandoff / ClaimAck.

Rules: one owner per resourceId; first valid ClaimIssued wins (ties → earliest ts, then smallest from); ClaimReleased or expired TTL frees it; ClaimHandoff only from the current owner; a coordinator posts ClaimAck naming the authoritative owner.

Before shared work: claim, sync, and proceed only if you are the acknowledged owner. When a claim must be both cross-host visible and runtime-enforced, mirror the two — publish the federation claim message and call claims_claim. See the cross-host-federation skill (ruflo-bbs-federation plugin) for the transport.

Scoping a claim stream to a channel (ADR-386)

By default every claim event lands in the shared swarm stream, where any relay member reads it. To keep a team's ownership ledger separate — or unreadable by the rest of the relay — publish claim messages into a channel instead:

npx ruflo federation channel --action create --name platform-team --visibility private
npx ruflo federation channel --action grant --channel prv:<hex> --pubkey <teammate 64-hex>
npx ruflo federation channel --action publish --channel prv:<hex> \
  --type ClaimIssued --payload '{"resourceId":"repo/foo","ttlSeconds":7200}'
npx ruflo federation channel --action read --channel prv:<hex>

Reduction rules are unchanged; only the audience changes. Two caveats before relying on it: a private channel hides content but not metadata (the relay still sees who published and when), and a claim nobody outside the channel can read cannot arbitrate against a claim made outside it. If ownership must be swarm-wide, keep it on the open stream. See the open-federation skill for channel mechanics.

よくある質問

どの種類のアクセスを管理できますか?

読み取り、書き込み、実行、生成、メモリ、ネットワーク、管理のクレームを挙げています。

セキュリティのレベルはありますか?

スキルは、最小限、標準、昇格、管理者のレベルを説明しており、それぞれに一連のクレームがあります。

アクセスを取り消せますか?

はい。スキルには、不要になったクレームを取り消すコマンドがあります。

詳細

作者による元の説明

Claims-based authorization for agents and operations. Grant, revoke, and verify permissions for secure multi-agent coordination. Use when: permission management, access control, secure operations, authorization checks. Skip when: open access, no security requirements, single-agent local work.

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1525
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル