cg-intent

cg-intent is a skill for Claude Code from Freespirits/claudeguard-il. It costs 78 tokens per session (4,283 once invoked), scanned A, original, MIT.

An interview assistant for defining who may view or change each type of record in an application, then saving those decisions in a security-policy file.

In plain words
What is it for?
Use it to review an app's business permissions and create its `claudeguard.intent.yml` file.
Why use it?
Code checks cannot determine whether a data access rule is intentional or a security bug without the application's intended permissions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claudeguard-il plugin — 7 skills, 6 agents shipped together

Good fit Use it to review an app's business permissions and create its claudeguard.intent.yml file.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Freespirits/claudeguard-il
Claude Code
/plugin install claudeguard-il

Made for: Claude Code.

Or install claudeguard-il, the plugin that ships this one along with the rest of its 7 skills, 6 agents.

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 cg-intent

README.md
[![agentmods](https://agentmods.dev/badge/skills/freespirits/claudeguard-il/cg-intent/github.svg)](https://agentmods.dev/skills/freespirits/claudeguard-il/cg-intent)
Your own site
<a href="https://agentmods.dev/skills/freespirits/claudeguard-il/cg-intent"><img src="https://agentmods.dev/badge/skills/freespirits/claudeguard-il/cg-intent/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 cg-intent

Your own site · 80×15
<a href="https://agentmods.dev/skills/freespirits/claudeguard-il/cg-intent"><img src="https://agentmods.dev/badge/skills/freespirits/claudeguard-il/cg-intent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,283 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.00078 $0.04283
Opus 5.5 $0.00031 $0.01713
Sonnet 5.5 $0.00016 $0.00857
Haiku 4.5 $0.00008 $0.00428

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

Security

Grade A, and why

cg-intent 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 3mo 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.

plugin/skills/cg-intent/SKILL.md · 300 lines

How it starts

The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/cg-intent — ask the app's owner what the app is supposed to permit

Every other check in ClaudeGuardIL asks a question the code answers by itself: is RLS on, is the key behind a public prefix. This one asks a question the code cannot answer — what is this app supposed to permit? "User A can read user B's order" is a critical bug in a store and a deliberate feature in an admin console: byte-identical code, opposite verdicts.

So the tool proposes, and the user confirms. That confirmation is the entire difference between guessing and reviewing, and it is the only thing this skill produces. See ${CLAUDE_PLUGIN_ROOT}/skills/claudeguard/references/methodology/business-logic.md.

Argument: $ARGUMENTS — the repo path to interview about (default: the current repo root).

The two hard constraints

You may write EXACTLY ONE path: claudeguard.intent.yml at the scanned repo's root. No other file, ever — not a scratch model dump inside their tree, not a backup copy, not a README note. Put any working files in a scratch directory outside the repo and delete them. A skill that interviews someone about their security model and then leaves extra files in their working tree has spent trust it cannot earn back.

The ceiling: every business-logic finding is capped at confidence likely and can never be confirmed. A multiple-choice answer is not a proof — the user may have misread the question, and the code check against their answer may still be wrong. grader.mjs asserts the cap at module load. Say this to the user in step 5, in one sentence, so a confirmed intent is not mistaken for a proof of correctness. What confirming buys is that the checks run against their rules instead of the tool's guess — that is real, and it is bounded.


Step 0 — preflight, and two places you must STOP

Run the engine and read the table facts:

node ${CLAUDE_PLUGIN_ROOT}/scripts/project_model.mjs <path> > <scratch>/cg-model.json

Read database.tables[] from it: each entry has name, columns[].name, and columnsKnownFrom.

Read the full file on GitHub · 300 lines

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. 3mo ago First seen · 300 lines · 78 tokens per session scan A b570cd5750e4

Subscribe to this mod's changes

cg-intent is a skill published in the GitHub repository Freespirits/claudeguard-il (2 stars, last pushed 3mo ago), licensed MIT. It adds 78 tokens to every session and 4,283 once invoked, about $0.0003 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-08-31.

Related

cg-intent compared with skills from other repositories

cg-intent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cg-intentFreespirits/claudeguard-ilSkill23mo agoMITA78Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code