mondoohq/cnspec/policy-graph

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Navigates cnspec policy/framework bundles using graph commands. Use when exploring policies, finding checks, tracing compliance mappings, or understanding policy structure.

Install

npx vskill@latest install mondoohq/cnspec/policy-graph

SKILL.md

cnspec Policy Graph Navigation

Navigate and understand cnspec policy bundles (.mql.yaml files) using structured graph commands.

When to Use

  • Exploring policy bundle structure ("what checks does this policy have?")
  • Finding compliance mappings ("which framework controls map to this check?")
  • Tracing relationships ("how does this framework relate to that check?")
  • Understanding large bundles (10K+ line .mql.yaml files)
  • Getting context for a specific check with its MQL code, impact, and docs
  • Extracting remediation scripts for a check, or for every check in a policy

When NOT to Use

  • Scanning assets with cnspec (cnspec scan)
  • Writing MQL queries
  • Linting bundles (cnspec policy lint)
  • Editing policy YAML directly (use the Read/Edit tools for that)

For authoring or changing policies, use the mql skill instead. Its Wiring Policies into Content Validation section covers the fixtures and validator registrations a policy change in the cnspec repository has to ship with.

Commands Reference

CommandPurpose
cnspec policy graph search <query> <path>Find nodes by name, title, or UID
cnspec policy graph callers <uid> <path>What references this node (inbound edges)
cnspec policy graph callees <uid> <path>What this node contains/references (outbound edges)
cnspec policy graph context <uid> <path> [--depth N]LLM-friendly context with YAML snippets
cnspec policy graph paths <from> <to> <path>Find paths between two nodes
cnspec policy graph reachable <uid> <path>All nodes transitively reachable
`cnspec policy graph export <path> [--format json\dot]`Export full graph
`cnspec policy graph remediation <uid> <path> [--id bash] [--code\--json]`Remediations of a check or of every check under a node, with code blocks extracted

All commands support --json for structured output. Search also supports --kind, --tag, --impact, and --limit.

Graph Concepts

Node Types
  • policy: A security policy (e.g., mondoo-linux-security)
  • group: A group of checks within a policy (e.g., "SSH Configuration")
  • check: A scoring query with MQL code and impact rating
  • query: A data-only query (no scoring)
  • framework: A compliance framework (e.g., CIS Benchmark, ISO 27001)
  • control: A control within a framework (e.g., CIS 5.2.1)
  • framework_map: Maps framework controls to policy checks
Edge Types
  • contains: Structural parent-child (policy → group → check, framework → control)
  • maps_to: Compliance mapping (control → check/policy via framework_map)
  • depends_on: Policy/framework dependencies
  • variant_of: Check variant relationship (parent → platform-specific variant)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
431
Repository forks
38
7-day trend score
30

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mondoohq/cnspec/policy-graph/badge)](https://verified-skill.com/skills/mondoohq/cnspec/policy-graph)

Something wrong with this skill or its page? Tell us.