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.
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-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install instruction-surface-security in Claude Code
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/instruction-surface-security ~/.gemini/antigravity-cli/skills/instruction-surface-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install instruction-surface-security in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
