cl-policy

cl-policy is a skill for Claude Code, Codex from closedloop-ai/claude-plugins. It costs 81 tokens per session (2,067 once invoked), scanned A, original, Apache-2.0.

A shared policy for local automation that uses ClosedLoop, a work-tracking system. It explains how to find the right connection, choose a safe fallback, and route messages to the appropriate contacts.

In plain words
What is it for?
Use it when other ClosedLoop skills need to discover tools, access tickets, apply communication rules, or fall back between supported connection methods.
Why use it?
It prevents separate automation tools from using different access rules or hard-coded connection names. It also provides a consistent response when the service cannot be reached.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions Codex.

Part of the vibe plugin — 14 skills, 3 agents shipped together

Good fit Use it when other ClosedLoop skills need to discover tools, access tickets, apply communication rules, or fall back between supported connection methods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/closedloop-ai/claude-plugins/cl-policy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add closedloop-ai/claude-plugins --skill cl-policy
Clone the repo
git clone --depth 1 https://github.com/closedloop-ai/claude-plugins

Made for: Claude Code, Codex.

Or install vibe, the plugin that ships this one along with the rest of its 14 skills, 3 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 cl-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/cl-policy/github.svg)](https://agentmods.dev/skills/closedloop-ai/claude-plugins/cl-policy)
Your own site
<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/cl-policy"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/cl-policy/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 cl-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/cl-policy"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/cl-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,067 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00081 $0.02067
Opus 5.5 $0.00032 $0.00827
Sonnet 5.5 $0.00016 $0.00413
Haiku 4.5 $0.00008 $0.00207

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

Security

Grade A, and why

cl-policy scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response="$(curl -sS -X POST "https://api.closedloop.ai/<route>" \
plugins/vibe-closedloop/skills/cl-policy/SKILL.md · 155 lines

How it starts

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

CL Policy

Purpose

Provide the shared local access and routing policy for ClosedLoop ticket automation. This skill keeps team-specific names, communication rules, and tool-access fallbacks out of the execution skills, while allowing the skill pack to be shared with either a populated bundled policy or a local machine override.

ClosedLoop Tool Access

When ClosedLoop tools are absent from the initial tool list, do not conclude that ClosedLoop or its MCP server is unavailable.

  1. Use dynamic tool discovery or tool_search first when the current host explicitly supports dynamic calls. Search by capability, such as ClosedLoop get document, list document comments, document versions, or document relationships. Codex CLI's TUI does not currently execute dynamic tool calls: in that surface, use statically exposed MCP tools or the CLI/API fallback below and never emit a dynamic tool call merely because a skill says to discover by capability.
  2. Do not hardcode an MCP prefix such as mcp__closedloop. The prefix depends on the user's configured MCP server name and may legitimately differ.
  3. If dynamic discovery is unavailable or cannot see the configured server, try the user's Codex CLI MCP configuration before declaring an access blocker.
  4. If MCP access is still unavailable and CLOSEDLOOP_API_KEY is present, use the production ClosedLoop API directly. Load the key silently from the current environment or the user's shell profile; never print, echo, log, serialize, or include it in command output, memory, prompts, or reports.
  5. Prefer read-only API requests during analysis. Resolve endpoint and payload contracts from current repository routes or official current documentation instead of guessing. A ticket slug can be read through GET https://api.closedloop.ai/documents/<slug> in the current platform.
  6. When a fallback request writes (POST, PUT, PATCH, DELETE), print the clop_ operation id from the response's operationReceipt in the same shell call, so the session that made the write is tied to it (PRD-800). Keep the response in a variable, print it or your usual jq filter of it on stdout as before, then print the id on stderr; stdout stays exactly what it was. The receipt is optional: when the response has none, the second command prints nothing and still succeeds. Keep the redirections in this order.

Read the full file on GitHub · 155 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +20 lines 87b4bf101e43
  2. 1mo ago First seen · 135 lines · 81 tokens per session scan A d79d3670d920

Subscribe to this mod's changes

cl-policy is a skill published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed 3d ago), licensed Apache-2.0. It adds 81 tokens to every session and 2,067 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.

Related

cl-policy compared with skills from other repositories

cl-policy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cl-policyclosedloop-ai/claude-pluginsSkill1223d agoApache-2.0A81Claude Code, Codex
grounded-citationsNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
openhandsNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
mcporterNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
apple-notesNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
react-patternsaffaan-m/ECCSkill313k7d agoMITA49Claude Code, Kiro
one-three-one-ruleNousResearch/hermes-agentSkill267ktodayMITA21Claude Code, Codex