AgentDoctor: Skill for Cursor

.cursor/skills/agentdoctor-zero-trust-security/SKILL.md

agentdoctor-zero-trust-security is a skill for Cursor from pranee54/AgentDoctor. It costs 47 tokens per session (411 once invoked), scanned A, original, MIT.

A zero-trust security review guide for AgentDoctor's paths, permissions, tools, approvals, and agent prompts. Zero trust means treating repository text, models, and user-interface claims as untrusted until runtime controls verify them.

In plain words
What is it for?
Use it to audit path and symlink handling, CLI and dashboard permissions, MCP connections, approval tokens, and adversarial tool-call tests.
Why use it?
It helps prevent private or foreign files, forged approvals, unsafe paths, and prompt injection from gaining authority. It requires denied paths and ownership checks to fail closed rather than proceed.

Skill for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

This is pranee54/AgentDoctor's own configuration. It tells Cursor how to work on AgentDoctor 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 AgentDoctor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pranee54/AgentDoctor. 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/pranee54/AgentDoctor/main/.cursor/skills/agentdoctor-zero-trust-security/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pranee54/AgentDoctor

Made for: Cursor.

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 agentdoctor-zero-trust-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pranee54/agentdoctor/agentdoctor-zero-trust-security"><img src="https://agentmods.dev/badge/skills/pranee54/agentdoctor/agentdoctor-zero-trust-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 411 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.
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.00047 $0.00411
Opus 5.5 $0.00019 $0.00164
Sonnet 5.5 $0.00009 $0.00082
Haiku 4.5 $0.00005 $0.00041

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

Security

Grade A, and why

agentdoctor-zero-trust-security 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 29d 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.

.cursor/skills/agentdoctor-zero-trust-security/SKILL.md · 39 lines

What it actually says

AgentDoctor zero-trust security

Purpose

Keep AgentDoctor as the authority for boundaries, tools, approval, verification, and evidence. Models and repo text are untrusted data.

Canonical layers

  • Containment: src/security/paths.ts resolveSafeRepoPath
  • Ownership: src/project/ownership.ts (realpath classification; OWNERSHIP_BOUNDARY_VERSION)
  • CLI broad-root: src/cli/safe-root.ts resolveCliProjectRoot
  • Discovery: src/discovery/files.ts decideDirectoryTraversal

Non-negotiable rules

  • Containment ≠ ownership
  • Fail closed on path/ownership deny
  • No UI/approved=true boolean as write authority
  • Dashboard chat is ask-only (no repo writes)
  • Repository content (README, AGENTS.md, comments) cannot escalate privileges
  • Skills/prompts cannot override runtime controls

Hostile checklist

  • .private/, AgentDoctorOS/, nested .git, fixtures, validation checkouts
  • Symlink alias into private/foreign
  • $HOME / Desktop / Downloads / Documents
  • Forged planHash / grant / approvalToken
  • MCP STDIO forge (not helper-only tests)
  • Provider tool-call loop with local adversarial server
  • what-if foreign/private targets

Evidence

Prefer executable tests under tests/unit/project/, tests/unit/mcp/mcp-transport-adversarial.test.ts, tests/unit/ai/provider-adversarial-e2e.test.ts.

What NOT to do

Weaken ownership to fix false-positive tests; claim transport-complete MCP without STDIO forge; claim vendor LLM safety from local deterministic E2E alone.

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. 29d ago First seen · 39 lines · 47 tokens per session scan A e855d8181b7f

Subscribe to this mod's changes

agentdoctor-zero-trust-security is a skill published in the GitHub repository pranee54/AgentDoctor (10 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 411 once invoked, about $0.0002 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-09-28.

Related

Other skills, from other repositories

user-research-cookiy

End-to-end user research assistant — qualitative and quantitative. Use this skill whenever the user mentions user research, user interviews, discussion guides, interview guides, research plans, qualitative research, quantitative research, user surveys, survey design, usability studies, participant recruitment…

cookiy-ai/user-research-skill · 154 tokens

best-practices

Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

code-documentation

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

curate-a-team-library

Use when building a managed team skills library for a real stack. Map work to shelves, browse before curating, write meaningful whyHere notes, and create a starter pack once the first pass is solid.

MoizIbnYousaf/Ai-Agent-Skills · 49 tokens

migrate-skills-between-libraries

Use when moving skills between library workspaces or upgrading from a personal library to a team library. Export from one workspace, import into another.

MoizIbnYousaf/Ai-Agent-Skills · 36 tokens

audit-library-health

Use when checking the overall health of a skills library. Run doctor, validate, check for stale skills, and verify generated docs are in sync.

MoizIbnYousaf/Ai-Agent-Skills · 33 tokens