Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

instruction-surface-security

Skill by muratcankoylan

Hardens AI agent runtimes against persistent prompt injection and unauthorized changes to instructions or permissions. It is for teams auditing what agents auto-load and designing reviewed activation for rules, skills, memory, or tool configuration.

  • Score 92
  • 18k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install instruction-surface-security

Built from the published package, never by AI.

git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.claude/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/instruction-surface-security ~/.claude/skills/instruction-surface-security

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install instruction-surface-security in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Instruction-surface-security is an agent skill for protecting the point where mutable content becomes effective instructions or capabilities for an AI agent. It guides an audit of what a runtime auto-loads, including its loaders, writers, and activation triggers. It also describes how to stage proposed changes as data, approve the exact effective change, and have the runtime or an external policy boundary enforce activation. The skill states that text warnings are only defense in depth.

The skill also covers checking whether trust boundaries hold after a reload, restart, or delegation. It recommends verifying from outside the model, using bounded behavioral checks and clean sessions. It links to reference files for runtime review, defensive evaluation, and research evidence. It is intended for people building or auditing coding, research, or multi-agent runtimes that load instructions or permissions automatically.

Written from the project's SKILL.md and checked against it.

What it can do

  • Effective surface auditMaps which inputs set instructions, tools, and permissions, and who can change them.
  • Proposal stagingKeeps proposed changes as data outside authority-bearing load paths until reviewed.
  • Effective change approvalBinds approval to the exact artifact, scope, target profile, and policy revision.
  • Activation mediationActivates only reviewed inputs and checks them again at first use and on each change.
  • Post-change verificationChecks what loaded and which capabilities were available, from outside the model.
  • Delegation boundary checksTests whether trust boundaries hold after a reload, restart, or handoff to another agent.

Try asking

  • Audit what instructions and memory my agent runtime auto-loads at startup
  • Design a reviewed approval flow for changes to our project rules and skills
  • Check whether our trust boundaries still hold after a restart and handoff

Good to know

  • Research evidence comes from bounded experiments and test harnesses.
  • Text warnings are defense in depth; enforcement must sit in the runtime.
  • Does not cover general tool design or generic application security.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/instruction-surface-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/evaluation.md7 KB
  • references/evidence.md4 KB
  • references/runtime-review.md5 KB

Alternatives to instruction-surface-security

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

instruction-surface-security: common questions

What does instruction-surface-security protect against?

The source says it hardens agent runtimes against persistent prompt injection and unauthorized changes to instructions and permissions. It focuses on the transition from mutable content to effective instructions or capabilities.

When should this skill not be used?

The source says not to use it for general tool design, routine edits with no instruction or privilege boundary, or generic application security. Accidental drift is handled by the context-degradation skill instead.

Does a repository review check protect a running agent?

Not by itself. The source says a repository review gates merge and may leave working-copy activation fully exposed, so activation needs its own boundary.

How do I install instruction-surface-security?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is instruction-surface-security free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is instruction-surface-security safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to instruction-surface-security?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

instruction-surface-security Install

Add to stack

Loading.