gryph: Skill for Claude Code

.claude/skills/add-agent-adapter/SKILL.md

add-agent-adapter is a skill for Claude Code from safedep/gryph. It costs 132 tokens per session (643 once invoked), scanned A, original, Apache-2.0.

A development guide for adding support for another AI coding agent to Gryph. An agent adapter is the code that connects Gryph to a particular coding tool and its settings, hooks, and security paths.

In plain words
What is it for?
Use it when integrating or changing support for agents such as Claude Code, Cursor, Gemini, Codex, or Windsurf, following the repository's adapter guide and verification checks.
Why use it?
It reduces the chance of missing one of the many files needed for an agent to be detected, registered, and handled safely.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code; mentions Codex.

This is safedep/gryph's own configuration. It tells Claude Code how to work on gryph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gryph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to safedep/gryph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/safedep/gryph/main/.claude/skills/add-agent-adapter/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/safedep/gryph

Made for: Claude Code.

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 add-agent-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/safedep/gryph/add-agent-adapter/github.svg)](https://agentmods.dev/skills/safedep/gryph/add-agent-adapter)
Your own site
<a href="https://agentmods.dev/skills/safedep/gryph/add-agent-adapter"><img src="https://agentmods.dev/badge/skills/safedep/gryph/add-agent-adapter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-agent-adapter

Your own site · 80×15
<a href="https://agentmods.dev/skills/safedep/gryph/add-agent-adapter"><img src="https://agentmods.dev/badge/skills/safedep/gryph/add-agent-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00132 $0.00643
Opus 5.5 $0.00053 $0.00257
Sonnet 5.5 $0.00026 $0.00129
Haiku 4.5 $0.00013 $0.00064

Measured 12d ago against content hash ef199405b2e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-agent-adapter 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 12d 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.

.claude/skills/add-agent-adapter/SKILL.md · 32 lines

How it starts

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

Add a New Agent Adapter

The full, current guide is docs/agent-adapter.md. It is the single source of truth for this task. Read it and follow it step by step.

Do not add an agent adapter from memory. The adapter pattern touches several files across agent/, config/, cli/, and tui/. A missed file breaks detection, registration, or the security response path. The doc lists every file and the exact change each one needs.

How to use this skill

  1. Read docs/agent-adapter.md in full.
  2. Follow each step in order. Use the wiring table in the doc to change every listed file.
  3. Use an existing adapter as your reference. The agent/gemini/ package is the recommended model for the settings.json pattern.
  4. Run the verify commands from the doc's final step before you finish.

Invariants

The doc explains these. They break silently if you miss them.

  1. Implement HookConfigPaths() and return a glob for every file the install step writes. Self-protection guards only these paths. TestAdapters_InstallWritesOnlyDeclaredHookConfig fails when a written file has no glob.
  2. Implement Hooks() with one events.HookSpec per hook, including its phase. The decision service reads the phase from it. Regenerate docs/agent-enforcement-coverage.md with GRYPH_UPDATE_DOCS=1 go test ./cli -run TestEnforcementCoverageDoc.
  3. Keep agent knowledge in the adapter package. Do not add agent paths, file names, or command regexes to aarm/loader or aarm/pdp. The loader derives the shell-command check from the declared paths, and aarm/shellcmd parses commands with mvdan.cc/sh. Do not match shell commands with a regex.
  4. Register the adapter only in RegisterAdapters in engine/engine.go. The self-protection globs come from that list.
  5. Self-protection is best effort. Do not describe it as a security boundary. Kernel-based self-protection is on the roadmap.

Keep the doc correct

The doc is the source of truth, so keep it accurate. If you find the code no longer matches the doc, update docs/agent-adapter.md in the same change. Do not fork the guidance into this skill.

Read the full file on GitHub · 32 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. 12d ago Changed ef199405b2e0
  2. 1mo ago Changed · +1 lines 2e5d709af586
  3. 1mo ago Changed · +9 lines 0383de1465c1
  4. 1mo ago First seen · 22 lines · 132 tokens per session scan A bdef059e99f4

Subscribe to this mod's changes

add-agent-adapter is a skill published in the GitHub repository safedep/gryph (180 stars, last pushed 2d ago), licensed Apache-2.0. It adds 132 tokens to every session and 643 once invoked, about $0.0005 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

spec-kitty-charter-doctrine

Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…

Priivacy-ai/spec-kitty · 135 tokens

chisle-audit

One-shot efficiency audit of a file, diff, or whole repo across BOTH axes at once: over-engineered code (reinvented stdlib, needless abstractions, speculative config) AND bloated prose (verbose comments, padded docstrings, redundant doc sections). Neither a pure code-minimizer nor a pure prose compressor does both in…

JayPokale/Chisle · 130 tokens

mongodb-query-optimizer

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query…

fcakyon/claude-codex-settings · 98 tokens

polar-local-environment

This skill should be used when setting up or managing Polar local development environment with Docker.

fcakyon/claude-codex-settings · 22 tokens

execute

Execute an approved Maestro implementation plan using the shared session-state contract.

josstei/maestro-orchestrate · 14 tokens

neo4j-modeling-skill

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with…

neo4j-contrib/neo4j-skills · 152 tokens