add-plugin

add-plugin is a command for Claude Code from fynnfluegge/agtx. It costs 40 tokens per session (946 once invoked), scanned A, original, Apache-2.0.

A command that packages a specification-driven development framework or skill library as an agtx plugin. Given a GitHub repository URL, it inspects the project and creates the plugin configuration; without a URL, it gathers the details interactively.

In plain words
What is it for?
Adding a framework from GitHub as a bundled plugin, or creating a plugin configuration from information supplied by the user.
Why use it?
It removes the manual work of figuring out a framework’s commands, installation method, supported agents, and plugin configuration. This makes it easier to bring an existing development framework into agtx.

Command for Claude Code

Part of the agtx plugin — 7 skills, 1 command, 1 MCP server shipped together

About the project

agtx is a terminal-based shared workspace where multiple coding agents coordinate through a task board. Developers use it to delegate work, run agents in parallel across git worktrees, and move tasks through different workflow phases.

fynnfluegge/agtx · 1,472 stars · on GitHub

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.

agentmods
npx agentmods add commands/fynnfluegge/agtx/add-plugin
Clone the repo
git clone --depth 1 https://github.com/fynnfluegge/agtx

Made for: Claude Code.

Or install agtx, the plugin that ships this one along with the rest of its 7 skills, 1 command, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/fynnfluegge/agtx/add-plugin.svg)](https://agentmods.dev/commands/fynnfluegge/agtx/add-plugin)
Your own site
<a href="https://agentmods.dev/commands/fynnfluegge/agtx/add-plugin"><img src="https://agentmods.dev/badge/commands/fynnfluegge/agtx/add-plugin.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00040 $0.00946
Opus 5 $0.00020 $0.00473
Sonnet 5 $0.00008 $0.00189
Haiku 4.5 $0.00004 $0.00095

Measured 6d ago against content hash 274903b50e13, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

add-plugin 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 6d 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/commands/add-plugin.md · 103 lines

How it starts

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

Add agtx Plugin

Integrate a spec-driven development framework or skill library as a bundled agtx plugin.

Input

Optionally, a GitHub repository URL is provided as the argument (e.g. https://github.com/org/repo). If no URL is given, ask the user which framework they want to integrate and gather the necessary details interactively.

Steps

1. Gather information about the framework

If a GitHub URL was provided, use the GitHub CLI to inspect the repo:

gh repo view <owner>/<repo> --json name,description
gh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1 | jq '[.tree[].path]'
gh api repos/<owner>/<repo>/contents/README.md | jq -r '.content' | base64 -d

If no URL was provided, ask the user:

  • Framework name and slash command namespace (e.g. gsd, opsx)
  • Which phases it covers and what commands it uses
  • How it is installed (npm, git clone, shell script)
  • Which agents it supports

In either case, look for:

  • The slash command namespace and per-phase commands
  • Installation method: npm package, clone-and-run library, or shell installer
  • Agent compatibility: Claude-only (hooks/skills), multi-agent (npm flags), or prompt-only (all agents)
  • Artifact files that signal phase completion
  • Directories/files that need to be propagated to each worktree (copy_dirs, copy_files, copy_back)
  • A one-time project setup step (preresearch + artifact)
  • Interactive CLI prompts at startup that need auto_dismiss or prompt_triggers
  • Multi-milestone iteration (cyclic = true)

2. Study existing bundled plugins as reference

Read plugins/*/plugin.toml and pick the closest analog to use as a starting point.

Key patterns:

  • init_script with --{agent} placeholder when the tool has per-agent flags
  • copy_back so artifacts produced in one worktree are visible to others
  • {task} in a command or prompt → phase is accessible directly from Backlog; omit {task} → phase requires a prior artifact
  • cyclic = true only when the framework supports multi-milestone iteration (Review → Planning loop)

Read the full file on GitHub · 103 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. 6d ago First seen · 103 lines · 40 tokens per session scan A 274903b50e13

Subscribe to this mod's changes

add-plugin is a command published in the GitHub repository fynnfluegge/agtx (1,472 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 946 once invoked, about $0.0002 per session on Opus 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.