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.
npx skills add kagan-sh/kagan --skill kg-plugin-portgit clone --depth 1 https://github.com/kagan-sh/kaganWrote 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.
[](https://agentmods.dev/skills/kagan-sh/kagan/kg-plugin-port)<a href="https://agentmods.dev/skills/kagan-sh/kagan/kg-plugin-port"><img src="https://agentmods.dev/badge/skills/kagan-sh/kagan/kg-plugin-port/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.
<a href="https://agentmods.dev/skills/kagan-sh/kagan/kg-plugin-port"><img src="https://agentmods.dev/badge/skills/kagan-sh/kagan/kg-plugin-port.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00959 |
| Opus 5.5 | $0.00013 | $0.00384 |
| Sonnet 5.5 | $0.00006 | $0.00192 |
| Haiku 4.5 | $0.00003 | $0.00096 |
Grade A, and why
kg-plugin-port 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.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Port one bb plugin into one kagan plugin. Keep the behavior the person sees. Drop a surface only when this map says it cannot move, and say so in the report.
kagan runs one script. kagan.json declares every contribution. Read kg-plugin-authoring for the kagan side, and kagan.d.ts after kg plugin types. A call that is not in that file does not exist. Do not invent one.
Workflow
-
Read the bb plugin. Open
package.jsonand the filesbb.server,bb.app, andbb.hostpoint at. Read each folder underbb.skills(defaultskills/). Noteengines.bb. -
Inventory every surface. Walk the factory and the web entry. Write down each item below, or "none":
- Manifest: id, name, description, icon, logo, engines, skills, themes
- CLI commands and how
argvis parsed - Agent tools, instruction text, and any per-thread tool selection
- Panels, tabs, overlays, settings views, composer controls, and other web slots
- Settings and whether a value is secret
- Key-value storage and the plugin database
- Events, hooks, HTTP routes, RPC, realtime, schedules, and background services
- Programs, network hosts, clipboard, and files outside the plugin folder
- A host entry, a provider, or an environment provider
-
Map each item with the table in
references/mapping.md. Mark it direct, close, or a gap. A gap keeps its workaround, or "cannot move". -
Scaffold.
kg plugin new <name>writeskagan.json,main.js,jsconfig.json, and the type files.<name>is lowercase and hyphenated. The id isdev.kagan.<name>. Replace the starter. Point--dirat the folder you want. -
Port the code into that one script. The default export is a View whose
initruns the job loop. Other views are named exports. Start files with// @ts-check. UseKgButtonfromgpui-component, notButton. A fieldkg uitypes into isKgInputorKgTextareafromgpui-component, witharia_label. Ininit,InputState.new(placeholder?, initial?)takes two optional strings andTextareaState.new(initial?)takes one.gpui-basehas the same names with an options object;KgInputandKgTextareareject that state. A local page in a panel isnew WebView(id).url(url). Give every control a stable id. -
Check.
kg plugin check <path>reads the manifest and the entry the same way install does, and refuses an import the host does not export and a field constructor the component schema rejects. Fix every error. A warning aboutButtonmeans switch that control toKgButton. Runkg plugin types <path>again after you call something new. -
Install and try it.
kg plugin install <path>waits until the person approves the powers. Thenkg plugin dev <path>. Try each kind you declared:kg plugin command <id> <cmd>,kg <cli> <sub> …, and a tool from inside a thread. Readkg plugin logs <id>. A trial that must not touch the person's app setsKG_DATA_DIRto a new temp directory. The socket follows that folder unlessKG_SOCKETis set. Stop the headless process the trial started when it is done. -
Report the checklist at the end, filled in. The template is
references/checklist.md.
What ships with it
6 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.
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.
- today Changed · +2 lines 905b46708e9f
- 20d ago First seen · 45 lines · 32 tokens per session scan A eda57888a90c
kg-plugin-port is a skill published in the GitHub repository kagan-sh/kagan (5 stars, last pushed today), licensed Apache-2.0. It adds 32 tokens to every session and 959 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-11-11.
kg-plugin-port compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kg-plugin-portkagan-sh/kagan | Skill | 5 | today | Apache-2.0 | A | 32 | Claude Code, Codex |
| architecture-auditorg2AI/ORG2 | Skill | 2.5k | 28d ago | AGPL-3.0 | A | 70 | Claude Code, Codex |
| concord-relayGet-Concord-AI/concord-mcp | Skill | 1.7k | yesterday | MIT | A | 18 | Claude Code, Codex |
| idea-teammajiayu000/spellbook | Skill | 301 | yesterday | MIT | A | 182 | Claude Code |
| codex-agentmajiayu000/spellbook | Skill | 301 | yesterday | MIT | A | 45 | Claude Code |
| project-health-auditormajiayu000/spellbook | Skill | 301 | yesterday | MIT | A | 31 | Claude Code |
| review-gatemajiayu000/spellbook | Skill | 301 | yesterday | MIT | A | 95 | Claude Code, Codex |