Capability Graph Mapper
/install capability-graph-mapper
\r \r
Your Agent Has 12 Skills — Do You Know What They Can Do Together?\r
\r
Helps map composite permission surfaces across skill dependency chains, revealing emergent capabilities that no single skill declares.\r \r
Problem\r
\r
Individual skill permissions look reasonable in isolation. A file-reader skill reads files. An HTTP client skill sends requests. A JSON parser skill transforms data. Each one passes a security review on its own.\r
\r
But install all three in the same agent, and you've built a data exfiltration pipeline — read sensitive files, parse out credentials, send them to an external endpoint. Nobody approved that combination. Nobody even noticed it exists.\r
\r
In traditional software, tools like npm audit map dependency trees and flag known vulnerabilities. In agent ecosystems, the risk isn't in individual dependencies — it's in the composite capability surface that emerges when skills combine. There is no npm audit for emergent agent capabilities.\r
\r
What This Maps\r
\r This mapper traces the permission graph across an agent's installed skills:\r \r
- Permission enumeration — For each skill, extract declared capabilities: file access, network requests, shell execution, environment variable reads, credential access\r
- Pairwise composition — For every pair of skills, check if their combined capabilities create a new emergent capability (e.g., read + send = exfiltrate)\r
- Transitive chains — Trace three-hop and deeper composition paths where skill A feeds skill B feeds skill C, creating capabilities invisible at any single hop\r
- Privilege surface score — Compute a single metric: how many distinct dangerous capability combinations exist in this agent's skill set?\r
- Delta analysis — When a new skill is added, show what new composite capabilities it introduces to the existing set\r \r
How to Use\r
\r Input: Provide one of:\r
- A list of skill names/slugs installed in an agent\r
- A skill manifest or configuration file\r
- A single skill to evaluate against a known agent profile\r \r Output: A capability graph report containing:\r
- Permission matrix (skills × capabilities)\r
- Emergent capability combinations flagged as risky\r
- Privilege surface score (0-100)\r
- Recommendation: which skill combinations to review manually\r
- Delta report if evaluating a new addition\r \r
Example\r
\r
Input: Map capability surface for agent with skills: log-analyzer, http-poster, env-reader, markdown-formatter\r
\r
🕸️ CAPABILITY GRAPH — 3 emergent risks detected\r
\r
Permission matrix:\r
read_files send_http read_env exec_shell write_files\r
log-analyzer ✓\r
http-poster ✓\r
env-reader ✓ ✓\r
markdown-formatter ✓ ✓\r
\r
Emergent capability combinations:\r
\r
⚠️ RISK 1: Data exfiltration path\r
env-reader (read .env) → http-poster (send HTTP)\r
Combined: Can read credentials and transmit them externally\r
Severity: HIGH\r
\r
⚠️ RISK 2: Sensitive file relay\r
log-analyzer (read logs) → http-poster (send HTTP)\r
Combined: Can read application logs and send contents externally\r
Severity: MODERATE\r
\r
⚠️ RISK 3: Three-hop chain\r
env-reader (read secrets) → markdown-formatter (transform data)\r
→ http-poster (send HTTP)\r
Combined: Read, obfuscate, and exfiltrate in one pipeline\r
Severity: HIGH\r
\r
Privilege surface score: 67/100 (elevated)\r
\r
Recommendation:\r
- Review whether http-poster needs to coexist with env-reader\r
- Consider sandboxing env-reader's file access scope\r
- The markdown-formatter → http-poster chain enables obfuscation;\r
audit what markdown-formatter can output\r
```\r
\r
## Related Tools\r
\r
- **blast-radius-estimator** — estimates downstream impact when a skill turns malicious; capability-graph-mapper helps quantify *what* a compromised skill could do\r
- **permission-creep-scanner** — checks individual skills for over-permission; this mapper checks what happens when multiple over-permissioned skills combine\r
- **supply-chain-poison-detector** — detects poisoned individual skills; this mapper shows why a poisoned skill with network access is more dangerous in agents that also have file-read skills\r
\r
## Limitations\r
\r
Capability graph mapping depends on accurately extracting each skill's actual permissions, which may not always match declared permissions. Skills that dynamically request capabilities at runtime may not be fully captured through static analysis. The composition risk model uses known dangerous patterns (read+send, parse+execute) but novel attack chains may not be in the pattern library. This tool helps surface emergent risks for human review — it does not guarantee detection of all possible capability combinations. Privilege surface scores are relative, not absolute measures of risk.\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install capability-graph-mapper - After installation, invoke the skill by name or use
/capability-graph-mapper - Provide required inputs per the skill's parameter spec and get structured output
What is Capability Graph Mapper?
Helps map the composite permission surface across AI agent skill dependency chains. Traces what each skill can do individually, then computes what they can d... It is an AI Agent Skill for Claude Code / OpenClaw, with 666 downloads so far.
How do I install Capability Graph Mapper?
Run "/install capability-graph-mapper" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Capability Graph Mapper free?
Yes, Capability Graph Mapper is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Capability Graph Mapper support?
Capability Graph Mapper is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Capability Graph Mapper?
It is built and maintained by andyxinweiminicloud (@andyxinweiminicloud); the current version is v1.0.0.