/loxihart-ai:auditing-agent-securityfrom loxihart-ai
Applies the Agent Security framework to autonomous AI systems and ghost-team architectures — permission and blast-radius mapping, prompt-injection and context-poisoning review, MCP bridge security, and quarterly cleanses. Use when the user mentions: agent security audit, permission stack review, agent hygiene, context window poisoning, prompt injection defense, MCP security, ghost team security, agent-to-agent trust, blast radius test, permission escalation risk. Not for application or codebase vulnerability review and not for building the agent itself (use orchestrating-ai-agents or building-langgraph-agents).
Ships in loxihart-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when — "audit the permissions on my ghost team before I let it run unattended." "could prompt injection through a tool result compromise this agent."
Do NOT use when — "build a LangGraph agent that does X" — route to building-langgraph-agents.
TL;DR: Agent autonomy is the attack surface. This skill maps threats, audits permission stacks, and produces actionable security outputs — whether you're hardening your own ghost team or teaching someone else to do the same.
What mode are you in?
├─ AUDIT ──── You have an existing agent stack to review → Golden Path A
├─ DESIGN ─── You're building a new agent workflow → Golden Path B
├─ TEACH ──── You need to explain agent security to someone else → Golden Path C
└─ ALL THREE ─ Run A → B → C in sequence
Example 1 — Audit existing stack User: "Audit my ghost team — I have agents on email, calendar, and a Stripe account." → Map the Permission Stack (Access/Memory/Action/Sharing). Score each tier. Output: threat report + remediation list ranked by severity.
Example 2 — Design review before shipping User: "I'm about to give an agent access to my n8n workflows and GitHub. What should I check?" → Run Golden Path B. Pre-flight security checklist. Flag high-risk permission grants before they're live.
Example 3 — Teaching mode User: "Teach me agent security like I'm a non-technical founder." → Golden Path C. Phishing → Agent Injection analogy. Three threat scenarios. One-pager output they can keep.
Example 4 — Specific threat User: "What is a poisoned context window and how do I prevent it?" → Pull references/threat-taxonomy.md > Section 2. Explain mechanism, concrete example, mitigation steps.
Example 5 — Quarterly cleanse User: "Run me through the quarterly agent cleanse." → references/quarterly-cleanse-protocol.md, interactive checklist, completed audit log output.
Step 1 — Inventory List every active agent. For each: name/purpose, what it reads, what it writes, what it can spend or delete, what external services it connects to.
Step 2 — Permission Stack Mapping Score each agent across four tiers:
→ See references/permission-stack-audit.md for tier-by-tier audit questions and scoring.
Step 3 — Threat Taxonomy Overlay Run the 6 threat types against each agent's permission profile:
→ See references/threat-taxonomy.md for detection signals and mitigations per threat.
Step 4 — Output
Produce a ranked threat report using references/output-templates.md > Audit Report.
Pre-flight security checklist before granting any agent access:
The hardest rule: Agents that read the web cannot also have action permissions on your accounts. Separate the readers from the doers.
The anchor analogy (always lead with this): Phishing in 2010 tricked a human into clicking a link. The human had to be awake, had to open the email, had to fall for it. Agents never sleep. Agent injection tricks an autonomous system into executing commands at machine speed, 24/7, with system-level access. The attack window is always open.
Core framework to teach (in this order):
Output options:
references/output-templates.md > Teaching One-Pagerreferences/teaching-scenarios.mdreferences/teaching-scenarios.md > Verbal Walkthrough Scriptreferences/output-templates.md > Client BriefBefore delivering any audit, design review, or teaching output:
Named failure modes for this skill. Each is a hard stop, not a warning.
references/ghost-team-architecture.md (opens in a new tab)references/output-templates.md (opens in a new tab)references/permission-stack-audit.md (opens in a new tab)references/quarterly-cleanse-protocol.md (opens in a new tab)references/teaching-module.md (opens in a new tab)references/teaching-scenarios.md (opens in a new tab)references/threat-taxonomy.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
37 skills in this plugin
/ai-agents-workflowBuilds and implements AI agents, automation workflows, and tool integrations — MCP servers (2025 async, OAuth, stateless spec), LangChain and CrewAI agents, multi-LLM orchestration, and no-code platforms. Use when the user mentions: MCP server, build an agent, tool integration, API orchestration, multi-LLM routing, OAuth flow, webhook, connect services, deploy a workflow, integrate external APIs. Not for conceptual architecture overviews (use orchestrating-ai- agents), not for production n8n incident ops (use operating-n8n-production), and not for pure no-code platform wiring (use workflow-automation).
/ai-solution-architectureDesign pre-sales technical architectures for AI/ML solutions targeting B2B enterprise clients. Use when scoping AI implementations, designing reference architectures, mapping integration patterns, estimating infrastructure requirements, or preparing technical proposals. Triggers on solution design, AI architecture, technical scoping, integration mapping, infrastructure sizing, pre-sales engineering for AI projects./applying-adversarial-reviewApplies Kyle's adversarial review methodology to consequential outputs. Forces every recommendation, audit, plan, or claim through three checks before shipping: a CLAIMS / COUNTEREXAMPLE / CONTRADICTIONS footer, [SOURCED] vs [GENERATED] provenance labeling, and an agreement-streak flag at three consecutive consequential agreements. Use when finishing an audit, writing a recommendation, delivering a plan, drafting a decision memo, or producing any high-stakes deliverable. Also triggers when explicitly asked to pressure-test, stress-test, steelman, play devil's advocate, fight an idea, or check for blind spots. Triggers on: adversarial review, anti-sycophancy, claims footer, stress test this, steelman this, pressure test, devil's advocate, am I missing anything, what could go wrong, sourced vs generated, agreement streak, push back on this, where am I wrong, review this PR, pull request review, code review, PR feedback.
Other plugins' skills for the same job
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-ai