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 pjt222/agent-almanac --skill build-cli-plugingit clone --depth 1 https://github.com/pjt222/agent-almanacWrote 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/pjt222/agent-almanac/build-cli-plugin)<a href="https://agentmods.dev/skills/pjt222/agent-almanac/build-cli-plugin"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/build-cli-plugin/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/pjt222/agent-almanac/build-cli-plugin"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/build-cli-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00095 | $0.02731 |
| Opus 5.5 | $0.00038 | $0.01092 |
| Sonnet 5.5 | $0.00019 | $0.00546 |
| Haiku 4.5 | $0.00010 | $0.00273 |
Grade A, and why
build-cli-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 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.
How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build a CLI Plugin
Add a new plugin or adapter to a CLI tool's pluggable architecture using the abstract base class pattern.
When to Use
- Adding support for a new target framework to a CLI installer
- Building a plugin system for a multi-target command-line tool
- Extending an existing adapter architecture with a new strategy variant
- Porting content delivery to a framework that uses a different file layout
Inputs
- Required: Framework or target the plugin supports (name, config paths, conventions)
- Required: Path to the base class or plugin contract
- Required: Installation strategy:
symlink,copy,file-per-item, orappend-to-file - Optional: Content types the plugin handles (e.g., skills only, skills + agents, full support)
- Optional: Scope support (project-level, global, both)
Procedure
Step 1: Define the Contract
The base class establishes the interface all plugins must implement:
export class FrameworkAdapter {
static id = 'base'; // Unique identifier
static displayName = 'Base'; // Human-readable name
static strategy = 'symlink'; // Installation strategy
static contentTypes = ['skill']; // What this adapter handles
async detect(projectDir) { return false; }
getTargetPath(projectDir, scope) { throw new Error('Not implemented'); }
async install(item, projectDir, scope, options) { throw new Error('Not implemented'); }
async uninstall(item, projectDir, scope, options) { throw new Error('Not implemented'); }
async listInstalled(projectDir, scope) { return []; }
async audit(projectDir, scope) { return { framework: this.constructor.displayName, ok: [], warnings: [], errors: [] }; }
supports(contentType) { return this.constructor.contentTypes.includes(contentType); }
}
Static fields define the plugin's identity and capabilities:
id: Used in--framework <id>option and result reportingdisplayName: Shown in human-readable outputstrategy: Determines how content reaches the targetcontentTypes: Filters which items this adapter receives
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.
- 3mo ago First seen · 299 lines · 95 tokens per session scan A 7f9cb675cf59
build-cli-plugin is a skill published in the GitHub repository pjt222/agent-almanac (46 stars, last pushed yesterday), licensed MIT. It adds 95 tokens to every session and 2,731 once invoked, about $0.0004 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-09-03.
build-cli-plugin compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| build-cli-pluginpjt222/agent-almanac | Skill | 46 | yesterday | MIT | A | 95 | Claude Code |
| fold-findingsgtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 65 | Claude Code |
| init-workspacegtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 54 | Claude Code |
| execute-phasegtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 106 | Claude Code |
| unit-lanegtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 53 | Claude Code |
| audit-docsgtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 147 | Claude Code |
| product-auditgtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 107 | Claude Code |