chain

chain is a skill for Claude Code from simota/agent-skills. It costs 43 tokens per session (5,687 once invoked), scanned E, original, MIT.

A security audit guide for third-party coding-agent skills, plugins, MCP tools, packages, developer machines, CI systems, and container images. It checks their contents and investigates signs of compromise.

In plain words
What is it for?
Use it to review an add-on before installation, investigate a suspicious package or development environment, preserve evidence, remove threats, and decide when credentials need rotation.
Why use it?
It helps identify hidden instructions, unsafe dependencies, or persistence left by a compromised tool before credentials are rotated or systems are cleaned.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Good fit Use it to review an add-on before installation, investigate a suspicious package or development environment, preserve evidence, remove threats, and decide when credentials need rotation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/simota/agent-skills/chain
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.

Any agent
npx skills add simota/agent-skills --skill chain
Clone the repo
git clone --depth 1 https://github.com/simota/agent-skills

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 chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/simota/agent-skills/chain/github.svg)](https://agentmods.dev/skills/simota/agent-skills/chain)
Your own site
<a href="https://agentmods.dev/skills/simota/agent-skills/chain"><img src="https://agentmods.dev/badge/skills/simota/agent-skills/chain/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 chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/simota/agent-skills/chain"><img src="https://agentmods.dev/badge/skills/simota/agent-skills/chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 5 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.00043 $0.05687
Opus 5.5 $0.00017 $0.02275
Sonnet 5.5 $0.00009 $0.01137
Haiku 4.5 $0.00004 $0.00569

Measured 1mo ago against content hash 3e288b74c0db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

chain scanned grade E with 5 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 1mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- CAPABILITIES_SUMMARY: - skill_intake_audit: Run the third-party skill intake checklist (`_common/SECURITY.md`) against an unaudited skill directory - manifest_generation: Produce and verify `.chain-manifest.json` (s

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- Scan every bundled `.sh`, `.py`, `.js`, `.ts` file for `curl ... | bash`, `wget ... | sh`, `eval $(...)`, `base64 -d | sh`, network exfil to non-allowlisted hosts, and credential-path reads (`~/.ssh`, `~/.aws`, `~/.con

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- a Unicode anomaly or `curl ... | bash` pattern is suspected inside any agent-loaded file

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Encoded or obfuscated payloadmediumSupply chain

base64 or hex that is decoded and executed hides what actually runs from anyone reading the file.

- Scan every bundled `.sh`, `.py`, `.js`, `.ts` file for `curl ... | bash`, `wget ... | sh`, `eval $(...)`, `base64 -d | sh`, network exfil to non-allowlisted hosts, and credential-path reads (`~/.ssh`, `~/.aws`, `~/.con

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- a Unicode anomaly or `curl ... | bash` pattern is suspected inside any agent-loaded file
chain/SKILL.md · 291 lines

How it starts

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

Chain

"Treat every third-party skill like an npm install. Audit before invoking."

Supply-chain trust and compromise specialist. Chain audits skill/plugin/MCP intake and also investigates package-ecosystem compromise in developer machines, CI runners, and container images using source-cited IoCs, evidence-preserving eradication, and rotation gates.

Principles: Default-distrust · Manifest-first · No-invisible-chars · Pin-MCP-tools · Escalate-not-execute · Frontmatter-stays-minimal

Read the full file on GitHub · 291 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. 1mo ago Changed · +1 lines 3e288b74c0db
  2. 1mo ago Changed 65a52c416c4c
  3. 2mo ago Changed 144ef7748575
  4. 2mo ago Changed 5d54f81213d6
  5. 3mo ago First seen · 290 lines · 43 tokens per session scan E 65f02a46a22f

Subscribe to this mod's changes

chain is a skill published in the GitHub repository simota/agent-skills (106 stars, last pushed 14d ago), licensed MIT. It adds 43 tokens to every session and 5,687 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it E with 5 findings (hidden instructions, reaches for credential files, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

chain compared with skills from other repositories

chain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chainsimota/agent-skillsSkill10614d agoMITE43Claude Code
sd-recon-enginelixiaoxiao9888-create/manju-laoli-skillSkill3.5k5d agoMITA334Claude Code, Codex
sd-decision-enginelixiaoxiao9888-create/manju-laoli-skillSkill3.5k5d agoMITA207Claude Code, Codex
web-researchshibing624/agenticaSkill368todayApache-2.0A24Claude Code, Codex
artifact-metadatajmagly/aiwgSkill233todayMITA21Claude Code, Codex
link-checkjmagly/aiwgSkill233todayMITA29Claude Code, Codex
activity-logjmagly/aiwgSkill233todayMITA21Claude Code, Codex