codeshell-plugin-author

codeshell-plugin-author is a skill for Claude Code, Codex from cjhyy/codeshell. It costs 28 tokens per session (264 once invoked), scanned A, original, MIT.

A guide and workflow for creating or debugging a native CodeShell plugin. A plugin is an extension that adds hooks, tools, or background behavior to the application.

In plain words
What is it for?
Use it to start a plugin, register handlers, preview it locally, validate the package, and test a hook with an event file.
Why use it?
It explains the required project structure, SDK registration, cleanup, validation, preview, and hook testing steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to start a plugin, register handlers, preview it locally, validate the package, and test a hook with an event file.

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

Made for: Claude Code, Codex.

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 codeshell-plugin-author

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cjhyy/codeshell/codeshell-plugin-author"><img src="https://agentmods.dev/badge/skills/cjhyy/codeshell/codeshell-plugin-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 264 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.00028 $0.00264
Opus 5.5 $0.00011 $0.00106
Sonnet 5.5 $0.00006 $0.00053
Haiku 4.5 $0.00003 $0.00026

Measured today against content hash 7f7156cb52c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeshell-plugin-author 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 today.

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.

packages/coding/plugin-authoring/skills/codeshell-plugin-author/SKILL.md · 15 lines

What it actually says

Use the plugin directory name as the installation name. The native manifest at .codeshell-plugin/plugin.json declares the contributions that setup(ctx) registers. For a new project, code-shell plugin init <directory> creates a runnable entry.

Bundle a TypeScript entry that imports definePlugin into the manifest’s JavaScript entry. A running plugin receives its own copy of the directory. Only files included there resolve reliably. Register handlers during setup. Keep timers, open resources and their cleanup in ctx.effect.

Use code-shell plugin dev <directory> for a live preview, its terminal log and local debugger. The preview installs into a temporary profile.

Run code-shell plugin validate <directory> on the built plugin. To exercise a policy, use code-shell plugin test-hook <directory> <event.json> with the recorded event name, its data and the subagent flag. A hook can request a stricter permission decision. Approval to install a plugin in a user's workbench belongs to that user.

See the author guide for the public names, SDK examples, and commands that run plugin code.

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. today First seen · 15 lines · 28 tokens per session scan A 7f7156cb52c8

Subscribe to this mod's changes

codeshell-plugin-author is a skill published in the GitHub repository cjhyy/codeshell (75 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 264 once invoked, about $0.0001 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-12-05.

Related

codeshell-plugin-author compared with skills from other repositories

codeshell-plugin-author next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codeshell-plugin-authorcjhyy/codeshellSkill75todayMITA28Claude Code, Codex
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-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code