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 qte77/claude-code-plugins --skill designing-mas-pluginsgit clone --depth 1 https://github.com/qte77/claude-code-pluginsWrote 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/qte77/claude-code-plugins/designing-mas-plugins)<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/designing-mas-plugins"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/designing-mas-plugins/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/qte77/claude-code-plugins/designing-mas-plugins"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/designing-mas-plugins.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.00020 | $0.00847 |
| Opus 5.5 | $0.00008 | $0.00339 |
| Sonnet 5.5 | $0.00004 | $0.00169 |
| Haiku 4.5 | $0.00002 | $0.00085 |
Grade A, and why
designing-mas-plugins 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 8d 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 — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Designing MAS Plugins
Target: $ARGUMENTS
When to Use
Trigger this skill when:
- Designing agent plugins or evaluation components
- Planning pipeline architecture
- Architecting new metrics or evaluation tiers
- Refactoring engines into plugin patterns
Core Principles
Plugins follow six principles. For worked code examples of each, see
references/core-principles-with-examples.md.
- Stateless Reducer —
evaluate(context) -> resultas a pure function; no side effects, no shared state - Own Context Window — plugin manages its own context; no global state access
- Structured Outputs — all data uses validated models, no raw dicts
- Own Control Flow — plugin handles its own errors and timeouts
- Compact Errors — structured partial results, not exceptions
- Single Responsibility — one metric or tier per plugin
Plugin Design Checklist
Before implementing a plugin, verify:
- Stateless: No class attributes, no global state
- Own Context: All inputs via
evaluate()parameter - Typed I/O: Validated models for inputs and outputs
- Own Errors: Returns error results, doesn't raise
- Own Timeout: Respects configured timeout
- Single Responsibility: One metric or tier
- Explicit Context: Filters output for next stage
- Env Config: All config via env vars / settings
- Observable: Emits structured logs for debugging
- Graceful Degradation: Partial results on failures
Anti-Patterns
- Shared State:
self.cache = {}(breaks stateless) - Raw Dicts:
return {"score": 0.5}(use models) - Raising Exceptions:
raise ValueError()(return error) - Global Access:
config.get_global()(use settings) - Implicit Context: Passing entire result to next tier
- Multiple Responsibilities: One plugin, 3 metrics
Implementation Template
See references/plugin-implementation-template.md for the full EvaluatorPlugin abstract base class and a worked MyPlugin example with typed context/result models, error handling, and next-tier context filtering.
What ships with it
4 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.
- 8d ago Changed f23da889f55e
- 29d ago Changed · -1 lines 532a8439e2b4
- 3mo ago First seen · 84 lines · 20 tokens per session scan A e6044ba8905c
designing-mas-plugins is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 847 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-08-31.
designing-mas-plugins compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| designing-mas-pluginsqte77/claude-code-plugins | Skill | 3 | yesterday | Apache-2.0 | A | 20 | Claude Code |
| android-kotlin-composeand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 84 | Claude Code |
| android-kotlin-coroutinesand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 87 | Claude Code |
| codex-advisorand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 85 | Claude Code |
| ast-grepand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 75 | Claude Code |
| github-cliand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 52 | Claude Code |
| android-analysisand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | B | 63 | Claude Code |