Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "keygraph-shannon",
"description": "Keygraph's Shannon autonomous AI pentester, packaged as a plugin for Claude Code.",
"owner": {
"name": "Keygraph",
"email": "shannon@keygraph.io"
},
"plugins": [
{
"name": "shannon",
"source": "./plugins/shannon",
"description": "Run Shannon white-box pentests of web apps and APIs you are authorized to test, from your coding agent, with safety rules built in."
}
]
}
17 changes: 17 additions & 0 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "keygraph-shannon",
"owner": {
"name": "Keygraph",
"email": "shannon@keygraph.io"
},
"metadata": {
"description": "Keygraph's Shannon autonomous AI pentester, packaged as a plugin for Grok and Cursor."
},
"plugins": [
{
"name": "shannon",
"source": "plugins/shannon",
"description": "Run Shannon white-box pentests of web apps and APIs you are authorized to test, from your coding agent, with safety rules built in."
}
]
}
26 changes: 26 additions & 0 deletions .github/workflows/plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Plugin check

on:
pull_request:
paths:
- plugins/shannon/**
- .cursor-plugin/marketplace.json
- .claude-plugin/marketplace.json
- docs/safety.md
push:
branches: [main]
paths:
- plugins/shannon/**
- .cursor-plugin/marketplace.json
- .claude-plugin/marketplace.json
- docs/safety.md

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
- run: plugins/shannon/scripts/check-plugin.sh
23 changes: 23 additions & 0 deletions plugins/shannon/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "shannon",
"displayName": "Shannon",
"version": "1.0.0",
"description": "Run Shannon, Keygraph's autonomous AI pentester, from your coding agent. Starts, monitors, and stops white-box pentests of web apps and APIs you are authorized to test, with safety rules built in.",
"author": {
"name": "Keygraph",
"email": "shannon@keygraph.io"
},
"homepage": "https://github.com/KeygraphHQ/shannon/tree/main/plugins/shannon",
"repository": "https://github.com/KeygraphHQ/shannon",
"license": "AGPL-3.0",
"keywords": [
"security",
"pentest",
"penetration-testing",
"vulnerability-assessment",
"appsec",
"owasp",
"grok",
"keygraph"
]
}
32 changes: 32 additions & 0 deletions plugins/shannon/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "shannon",
"displayName": "Shannon",
"version": "1.0.0",
"description": "Run Shannon, Keygraph's autonomous AI pentester, from your coding agent. Starts, monitors, and stops white-box pentests of web apps and APIs you are authorized to test, with safety rules built in.",
"author": {
"name": "Keygraph",
"email": "shannon@keygraph.io"
},
"homepage": "https://github.com/KeygraphHQ/shannon/tree/main/plugins/shannon",
"repository": "https://github.com/KeygraphHQ/shannon",
"license": "AGPL-3.0",
"logo": "assets/logo.png",
"category": "security",
"keywords": [
"security",
"pentest",
"penetration-testing",
"vulnerability-assessment",
"appsec",
"owasp",
"grok",
"keygraph"
],
"tags": [
"security",
"pentest",
"appsec",
"grok"
],
"skills": "./skills/"
}
11 changes: 11 additions & 0 deletions plugins/shannon/.mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"mcpServers": {
"shannon": {
"command": "/bin/sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/mcp/launch.sh",
"${CLAUDE_PLUGIN_ROOT}/mcp/shannon-mcp.mjs"
]
}
}
}
65 changes: 65 additions & 0 deletions plugins/shannon/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Shannon plugin

Run [Shannon](https://github.com/KeygraphHQ/shannon), Keygraph's autonomous AI
pentester, from your coding agent (Grok, Cursor, Claude Code). The plugin ships a
single skill that drives the Shannon CLI (`npx @keygraph/shannon`) to start,
monitor, and stop white-box pentests of web apps and APIs you are authorized to
test, with the safety rules from `docs/safety.md` built in.

## Multi-tool

One plugin, two manifests over the same skill, MCP server, and docs:

- **Cursor / Grok** read `.cursor-plugin/plugin.json` + `mcp.json`, indexed by the
repo-root `.cursor-plugin/marketplace.json`.
- **Claude Code** reads `.claude-plugin/plugin.json` + `.mcp.json`, indexed by the
repo-root `.claude-plugin/marketplace.json`.

Each tool ignores the other's files. Adding a further tool is additive — another
manifest pointing at the same `skills/`, `mcp/`, and docs — not a rewrite.

## Layout

```
plugins/shannon/
├── .cursor-plugin/plugin.json # Cursor/Grok manifest
├── .claude-plugin/plugin.json # Claude Code manifest
├── mcp.json # Cursor/Grok MCP declaration (${CURSOR_PLUGIN_ROOT})
├── .mcp.json # Claude Code MCP declaration (${CLAUDE_PLUGIN_ROOT})
├── assets/logo.png # listing logo (Keygraph brand mark, 1200×1200)
├── skills/shannon/SKILL.md # the skill the agent loads (shared)
├── llms-full.txt, llms.txt # full Shannon docs, bundled for offline detail (shared)
├── mcp/ # the stdio MCP server + node launcher (shared)
└── scripts/
├── check-plugin.sh # structure/validation check (both tools)
└── sync-docs.sh # refresh bundled docs from the repo-root originals
```

The repo root also carries `.cursor-plugin/marketplace.json` and
`.claude-plugin/marketplace.json`, each listing this plugin at `plugins/shannon`.

## Keeping the bundled docs in sync

`llms-full.txt` and `llms.txt` are bundled under the plugin so the installed
plugin is self-contained, and must stay byte-identical to the repository-root
`llms-full.txt` / `llms.txt`, which are their source of truth. When those
change, refresh the bundled copies:

```sh
plugins/shannon/scripts/sync-docs.sh
```

`check-plugin.sh` fails if they drift, so CI catches a stale copy.

## Safety

Shannon is a defensive security tool. Only run it against systems you own or
are explicitly authorized to test, never production. The skill enforces these
rules and asks for confirmation before the first scan. See the "Safety and
Limitations" section of `llms-full.txt` (source: `docs/safety.md`).

## Install (local development)

Copy `plugins/shannon/` to `~/.cursor/plugins/local/shannon/`, then run
**Developer: Reload Window** in Cursor and confirm Shannon appears under
Customize.
Binary file added plugins/shannon/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading