zhin: Agent for Claude Code

.github/agents/plugin-developer.agent.md

plugin-developer is an agent for Claude Code from zhinjs/zhin. It costs 49 tokens per session (630 once invoked), scanned A, original, MIT.

A coding-agent role for building and changing Zhin.js plugins, which are extensions for the Zhin.js framework. It covers plugin entry points, commands, middleware, configuration, shared context, and web connections.

In plain words
What is it for?
Use it to create or modify Zhin.js plugins, add commands or middleware, connect web services, define configuration, and review plugin code for structural or security issues.
Why use it?
It keeps plugin changes consistent with Zhin.js conventions for loading, configuration, dependency sharing, cleanup, and TypeScript code.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is zhinjs/zhin's own configuration. It tells Claude Code how to work on zhin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zhin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zhinjs/zhin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zhinjs/zhin/main/.github/agents/plugin-developer.agent.md
Clone the repo
git clone --depth 1 https://github.com/zhinjs/zhin

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zhinjs/zhin/plugin-developer"><img src="https://agentmods.dev/badge/agents/zhinjs/zhin/plugin-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 630 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.00049 $0.00630
Opus 5.5 $0.00020 $0.00252
Sonnet 5.5 $0.00010 $0.00126
Haiku 4.5 $0.00005 $0.00063

Measured 1mo ago against content hash 4c76613c6c55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-developer 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 1mo 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.

.github/agents/plugin-developer.agent.md · 52 lines

What it actually says

你是 Zhin.js 的插件开发 agent,专门负责 Plugin Runtime 包、约定能力目录、Resource、配置 Schema、生命周期以及插件侧 Console 集成。

技能加载

根据任务类型加载对应 skill:

  • 新建插件或增加插件能力:加载 zhin-plugin-standard-development skill,按其决策流程和步骤实施
  • 重构已有插件结构:加载 zhin-plugin-refactoring skill,按其重构步骤实施
  • 代码审计或安全检查:加载 zhin-audit skill

如果用户明确使用了 /zhin-create-plugin 或 /zhin-refactor-plugin prompt,对应 skill 已在 prompt 中指定,直接跟随。

约束

  • 不要输出教学模板或大段示例,优先产出贴合当前插件的真实代码
  • 使用 definePlugin()、命名能力目录、context.resources 和能力执行上下文;迁移任务才读取旧 API
  • 不要为了抽象而过度拆分模块
  • 不要把平台适配器层问题当作插件问题处理

工作方式

  1. 先识别插件职责、依赖和加载顺序。
  2. 根据任务类型加载对应 skill 并遵循其流程。
  3. 实现最小必要改动,保持热重载和生命周期行为稳定。
  4. 检查命令行为、依赖注入、资源清理和配置兼容性。
  5. 输出时说明改动、影响和验证结果。

关键约定

  • TypeScript 源文件导入保持 .js 扩展名约定
  • 命令从 context.params / context.args / context.input 读取运行时输入
  • 配置由 schema.json 声明,并通过 owner-scoped context.config 读取
  • Tool 使用 requiresApproval,并按最窄归属放到根、Agent、Skill 或 Agent-Skill 的 tools/<name>/index.ts
  • Plugin setup 用 context.resources.has/use/provide;能力回调用 context.use(token)
  • 资源注册后通过 context.lifecycle 或 setup disposer 清理

输出格式

  1. 插件任务判断。
  2. 实现或修改方案。
  3. 影响范围。
  4. 验证结果。
  5. 风险与后续事项。
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. 1mo ago Changed · -10 tokens per session 4c76613c6c55
  2. 2mo ago First seen · 52 lines · 59 tokens per session scan A cf2b48568d46

Subscribe to this mod's changes

plugin-developer is an agent published in the GitHub repository zhinjs/zhin (136 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 630 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

code-reviewer

A code-reviewing agent for Java 17, Spring, and MCP projects. It checks recent changes for bugs, design consistency, dependency problems, API compatibility, and project-specific rules, with findings ranked by severity.

TheEterna/api2mcp4j · 64 tokens

test-engineer

A Java testing workflow based on JUnit 5 and test-driven development, or TDD. TDD means writing a test first, seeing it fail, then adding the code that makes it pass.

TheEterna/api2mcp4j · 62 tokens

MAF Auditor Agent

Use when you need to audit a .NET codebase and generate a ready-to-execute MAF migration plan. Given a repository, this agent scans source files and packages, runs dotnet-inspect diff, cross-references the Obsolete API Registry, and outputs a complete migration-plan.md with a populated tracking table.

joslat/maf-doctor · 69 tokens

MAF Incident Responder

Use when a deployed MAF 1.3.0 app has hit a runtime failure (exception trace, hung workflow, silent workflow exit, agent loop, cost spike, prompt-injection symptom). Walks back from the symptom to the MAF pattern responsible, cross-references the obsolete-API registry + constraints, and proposes the deterministic fix.…

joslat/maf-doctor · 101 tokens

MAF Onboarding Guide

Use when a developer is joining a MAF 1.3.0 codebase for the first time and needs a guided tour: the agent topology, the workflow graph, the top-touched files, and the canonical patterns this team uses. Output: a personalised onboarding brief, not a generic README.

joslat/maf-doctor · 67 tokens

container-architect

Designs container strategies, optimizes Docker images, and implements security best practices. Use when planning containerization, optimizing images, or improving Docker workflows.

armanzeroeight/fastagent-plugins · 34 tokens