Pi Security plugin for Claude Code and Cowork
Teaches Claude how to work with Pi Security through Pi's hosted MCP server. The plugin's entire functional surface is a manifest, one remote connector entry pointing at https://mcp.pi.security/mcp, and six skills. It bundles no local server, executable, hook, agent, monitor, or filesystem bridge, and it ships no credentials.

Everything the plugin does is inspectable in this repository. Pi tool output is treated as evidence about your tenant's security state - never as instructions that outrank yours.
Supported surfaces
| Surface | Supported | How |
|---|
| Claude Code | Yes | This plugin |
| Cowork | Yes | This plugin |
| Claude Chat | No | Use the separately published Pi remote connector |
The plugin and the Pi remote connector talk to the same hosted MCP endpoint. The connector provides the raw tools; this plugin additionally teaches Claude Code and Cowork safe, focused workflows on top of them. Installing both in the same surface is unnecessary.
Install
Claude Code
This repository is its own plugin marketplace:
/plugin marketplace add pi-sloane/claude-plugin
/plugin install pi-security@pi-security
To try it without installing, clone the repository and run:
claude --plugin-dir ./claude-plugin
Cowork
Open Customize → Plugins, select Add marketplace, enter https://github.com/pi-sloane/claude-plugin, then install Pi Security. Cowork prompts you to sign in to the connector during install.
Setup and sign-in
Authentication is OAuth against your Pi tenant; see SETUP.md for the Claude Code /mcp flow, the Cowork connector sign-in, verifying your identity with the whoami tool, and reconnecting or disconnecting. Your tenant comes only from the authenticated session - Claude never infers it from your repository, directory, or prose.
Skills
Skills are invoked as /pi-security:<skill>, or Claude picks them automatically. Example prompts below are synthetic.
| Skill | What it does | Pi tools | Writes to Pi? |
|---|
investigate-finding | List, locate, explain, summarize, or compare findings | pi_findings_list, pi_finding_get, optionally pi_remediation_plan_fetch | No |
review-security-posture | Combine threat-model context with Code Gatekeeper PR/issue posture | pi_threat_model_apps_list, pi_threat_model_app_get, pi_threat_model_app_section_get, pi_gatekeeper_prs_list, pi_gatekeeper_issues_list, pi_gatekeeper_pr_get, pi_gatekeeper_issue_get | No |
remediation-guidance | Fetch existing finding/package remediation plans; optionally prepare a missing package plan | pi_remediation_plan_fetch, pi_package_remediation_plan_fetch; write: pi_package_remediation_plan_prepare | Only prepare, after confirmation |
security-design-review | Start a design review from a Confluence/Notion URL or inline Markdown | write: pi_design_review_url_create, pi_design_review_markdown_create | Yes, after confirmation |
ingest-markdown-report | Submit a security report supplied as inline Markdown | write: pi_report_markdown_upload | Yes, after confirmation |
secure-development-playbook | Repo-specific secure-development guidance; optional targeted feedback | pi_playbook_task_query; optional threat-model context: pi_knowledgebase_query; write: pi_playbook_comment_create | Only feedback, after confirmation |
For a stable engineering task, the secure-development workflow queries the Pi playbook exactly once. If its coverage is missing or only adjacent, Claude surfaces the gap and continues from the user's instructions and current repository evidence instead of retrying, rephrasing, or falling back to generic tenant knowledge. A generic knowledge lookup is reserved for genuinely necessary threat-model context and is limited to one short non-sentence query.
Example prompts:
- "Explain FND-1042 and how it compares to FND-977."
- "What does our threat model say about the payments service, and are there open Gatekeeper issues touching it?"
- "Is there a remediation plan for lodash in the storefront repo? If not, have Pi prepare one."
- "Start a Pi design review of https://example.atlassian.net/wiki/spaces/ENG/pages/123 (a synthetic URL)."
- "Submit this pentest summary to Pi as pentest-q3.md."
- "How should I add a new webhook endpoint in this repo according to our playbook?"
Write actions and confirmation