add-skill

add-skill is a skill for Claude Code from coralogix/cx-cli. It costs 141 tokens per session (1,683 once invoked), scanned A, original, Apache-2.0.

A workflow for creating user-facing skills that teach an AI agent how to use a command-line command.

In plain words
What is it for?
Use it to add a skill under the skills directory, document commands and options, and decide when reference material belongs in separate files.
Why use it?
It provides a defined process for turning command details into instructions an agent can follow.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add a skill under the skills directory, document commands and options, and decide when reference material belongs in separate files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coralogix/cx-cli/add-skill
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 coralogix/cx-cli --skill add-skill
Clone the repo
git clone --depth 1 https://github.com/coralogix/cx-cli

Made for: Claude Code.

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 add-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/coralogix/cx-cli/add-skill/github.svg)](https://agentmods.dev/skills/coralogix/cx-cli/add-skill)
Your own site
<a href="https://agentmods.dev/skills/coralogix/cx-cli/add-skill"><img src="https://agentmods.dev/badge/skills/coralogix/cx-cli/add-skill/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 add-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/coralogix/cx-cli/add-skill"><img src="https://agentmods.dev/badge/skills/coralogix/cx-cli/add-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,683 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. Third-party audits
  • Socket pass 18 May 2026
  • Snyk fail 18 May 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 43
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Agent Snooping · line 36
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 37
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 38
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 39
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00141 $0.01683
Opus 5.5 $0.00056 $0.00673
Sonnet 5.5 $0.00028 $0.00337
Haiku 4.5 $0.00014 $0.00168

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

Security

Grade A, and why

add-skill 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.

.claude/skills/add-skill/SKILL.md · 108 lines

How it starts

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

Add a User-Facing Skill

End-to-end workflow for creating a skill in skills/ that teaches AI agents how to use a cx CLI command. This skill is often invoked from add-command Step 6, but can also be used standalone when documenting an existing command.

contributing/adding-a-skill.md has the full reference guide and a copy-pasteable template. Read it alongside this workflow.

Step 0: Understand the Domain

Before writing anything, answer these questions:

  1. What cx command are you documenting? Identify the command and all its subcommands (e.g., cx alerts list, cx alerts get, cx alerts create).
  2. What can the user do with it? List the key operations, flags, and output formats supported.
  3. Who is the audience? Skills are consumed by AI agents, not humans directly. Write instructions an agent can follow step-by-step to accomplish a user's goal.
  4. Is there dense reference material? Schemas, enum catalogs, field references, or language syntax exceeding ~100 lines belong in a separate references/ file.

Step 1: Read Existing Skills

Before writing any skill, read existing ones to internalize the project's patterns. Agents that study existing skills first produce consistent, high-quality results rather than inventing new formats.

Always read:

  • contributing/adding-a-skill.md - full guide with directory structure, frontmatter conventions, reference file rules, and a copy-pasteable template
  • skills/README.md - the public catalog you'll update in Step 4

Study at least two existing skills:

Skill Why study it
skills/cx-alerts/SKILL.md REST-based command with rich examples, JSON payloads, investigation workflow; uses both shared and skill-local reference files
skills/cx-telemetry-querying/SKILL.md Gateway skill that loads shared reference files per pillar — good model for cross-pillar routing and reference-loading patterns
skills/cx-dashboards/SKILL.md Complex multi-step workflow; uses shared references (dataprime, promql, logs, spans) plus skill-local references
skills/cx-cost-optimization/SKILL.md Workflow skill covering 5 commands unified by "reduce costs" intent — good model for multi-command skills

Read the full file on GitHub · 108 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 · 108 lines · 141 tokens per session scan A 9895b8e36a8e

Subscribe to this mod's changes

add-skill is a skill published in the GitHub repository coralogix/cx-cli (244 stars, last pushed today), licensed Apache-2.0. It adds 141 tokens to every session and 1,683 once invoked, about $0.0006 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-30.

Related

add-skill compared with skills from other repositories

add-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-skillcoralogix/cx-cliSkill244todayApache-2.0A141Claude Code
lastlight-debugnearform/lastlightSkill51todayMITA138Claude Code
debugging-workflowsCrowdStrike/foundry-skillsSkill38todayMITA90Claude Code
pipefy-observabilitypipefy/ai-toolkitSkill54todayApache-2.0A38Claude Code
debuggingasgarovf/locusaiSkill238mo agoMITB29Claude Code
feishuHmbown/CodeWhaleSkill41k4d agoMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41k4d agoMITA40Claude Code, Codex