codehub: Skill for Claude Code

.claude/skills/add-cli/SKILL.md

add-cli is a skill for Claude Code from mpolatcan/codehub. It costs 43 tokens per session (937 once invoked), scanned C, original, MIT.

A procedure for adding a new AI coding-agent command-line tool to CodeHub, including its runtime installation and app integration.

In plain words
What is it for?
It helps install the tool, add its command and aliases, register it in the frontend, configure its settings directory when needed, and rebuild the runtime.
Why use it?
It keeps the command available in the runtime and aligned across the Rust backend and frontend, avoiding entries that appear in the interface but cannot start.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

This is mpolatcan/codehub's own configuration. It tells Claude Code how to work on codehub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codehub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mpolatcan/codehub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mpolatcan/codehub/main/.claude/skills/add-cli/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mpolatcan/codehub

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-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mpolatcan/codehub/add-cli"><img src="https://agentmods.dev/badge/skills/mpolatcan/codehub/add-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00043 $0.00937
Opus 5.5 $0.00017 $0.00375
Sonnet 5.5 $0.00009 $0.00187
Haiku 4.5 $0.00004 $0.00094

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

Security

Grade C, and why

add-cli scanned grade C with 2 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 2mo 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

RUN curl -fsSL <install-url> | bash

Makes network callslowCapability

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

RUN curl -fsSL <install-url> | bash
.claude/skills/add-cli/SKILL.md · 87 lines

How it starts

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

Add a new CLI to CodeHub

Adding a CLI is a four-file change. Skipping any step will produce silent runtime failures (modal entry exists but session dies, or vice versa). Do all four in one commit.

1. Dockerfile — install the binary

Edit runtime/Dockerfile. Add a RUN line in the install block:

# <Name> (<vendor>)
RUN curl -fsSL <install-url> | bash
# or
RUN npm install -g <package>

Verify the binary lands on PATH. Some installers drop binaries to ~/.local/bin — the Dockerfile already exports that via ENV PATH. Others install to /usr/local/bin (npm) automatically.

If the CLI needs a config dir, add an ENV line so the path is predictable and mountable under /config:

ENV <NAME>_CONFIG_DIR=/config/<name>

2. Rust — Cli enum

Edit src-tauri/src/docker.rs:

  • Add a variant to enum Cli.
  • Update Cli::binary() to return the executable name on PATH.
  • Update Cli::parse() to accept the lowercase id (and any sensible aliases).

The enum has #[serde(rename_all = "lowercase")], so the frontend sends the lowercase variant name.

3. Frontend — CLIS array + Cli type

Edit src/app/lib/catalog.ts. Add an entry to the CLIS: CliSpec[] array with:

  • id: matches the lowercase enum variant
  • label: display name (e.g. "Claude Code")
  • alias: short bird name used in the auto-generated session alias (e.g. "Owl")
  • species: Latin/common species (decorative — the ornithological-field-journal vibe)
  • bird: #bird-<slug> referencing an SVG symbol id in index.html

In the same file, add the new CLI to MODE_SUPPORT with its allowed launch modes (["standard", "auto", "yolo"], or ["standard"] if flags are unverified).

Extend the Cli type union in src/app/lib/ipc.ts:

export type Cli = "claude" | "codex" | "antigravity" | "<new-id>";

4. SVG sprite — bird silhouette

Edit index.html. Add a <symbol id="bird-<slug>" viewBox="0 0 64 64"> inside the existing <defs> block. Keep it a single-colour silhouette path that uses fill="currentColor" so the tab/modal colour transitions still apply. Bird species choice matters — pick one whose vibe matches the CLI's personality (owl = thoughtful, raven = scribe, falcon = speed, kingfisher = precise, etc.).

Read the full file on GitHub · 87 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. 2mo ago First seen · 87 lines · 43 tokens per session scan C 9753e8501559

Subscribe to this mod's changes

add-cli is a skill published in the GitHub repository mpolatcan/codehub (6 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 937 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pkf-writing

Author, update, convert, validate, persist, and render PKF (.pkf) content through message-inline, Library Asset, or Memory Page carriers. Use for structured reports, knowledge pages, delivery cards, or any .pkf body. NOT for recall, memory-graph placement, or curation decisions — those belong to the memory skill.

Prismer-AI/PrismerCloud · 78 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

memory-import

Bulk-import an external knowledge base into Prismer memory via the three-layer import pipeline (07 §3.1). Use when the user asks to import/migrate documents, a knowledge base, or notes into workspace memory. Layer 1 lands raw documents (zero LLM, instantly searchable); Layer 2 is YOUR distillation work — you read the…

Prismer-AI/PrismerCloud · 111 tokens

cli-creator

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a…

Haohao-end/openagent · 82 tokens

sora-taira-testnet

Work against the SORA Taira testnet through its deployed Torii MCP endpoint for live account, asset, alias, contract, governance, Musubi package-registry, and transaction workflows. Use when Codex needs to inspect or mutate the Taira testnet, verify or add https://taira.sora.org/v1/mcp, prefer the curated iroha. tool…

hyperledger-iroha/iroha · 113 tokens

conventions

Spring Boot project conventions and mandatory rules. Auto-loads when working with Spring Boot, Java, or Maven projects. Enforces No-Lombok, constructor injection, RestClient, Flyway for relational databases, Problem Details errors, and other standards; adds OpenAPI contract rules when the API is built for a UI.

piomin/claude-ai-spring-boot · 67 tokens