Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

plugin-authoring插件创作

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

649

周安装

26

GitHub Stars

12

下载量

210
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:plugin-authoring(插件创作)
来源仓库:https://github.com/claude-dev-suite/claude-dev-suite
仓库路径:skills/plugin-authoring
安装命令:
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill plugin-authoring
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill plugin-authoring

简介

用于辅助安全审计、权限检查和常见漏洞排查,适合梳理敏感配置与鉴权逻辑。

  • 支持凭据风险分析、依赖安全检查及安全复核清单生成。
  • 通过 GitHub 安装,需确认最小权限与脱敏边界,不可直接采信工具结论。
  • 涉及密钥或生产系统时,应先评估操作范围与安全策略。
  • plugin-authoring 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Plugin Authoring — Official Best Practices

What Plugins Do

Plugins bundle skills, agents, hooks, and MCP servers into shareable packages. Skills get namespaced: /plugin-name:skill-name.

Directory Structure

my-plugin/
├── .claude-plugin/
│   └── plugin.json          # Manifest (ONLY file inside .claude-plugin/)
├── skills/                  # Agent Skills with SKILL.md
│   └── code-review/
│       └── SKILL.md
├── commands/                # Skills as simple Markdown files
│   └── review.md
├── agents/                  # Custom agent definitions
│   └── reviewer.md
├── hooks/
│   └── hooks.json           # Hook configurations
├── .mcp.json                # MCP server configurations
├── .lsp.json                # LSP server configurations
├── settings.json            # Default settings (only "agent" key supported)
└── README.md                # Documentation

Critical: skills/, agents/, hooks/ go at plugin root, NOT inside .claude-plugin/.

plugin.json Manifest

See quick-ref/manifest-schema.md for the complete schema.

{
  "name": "my-plugin",
  "description": "A code quality plugin with review skills and formatting hooks",
  "version": "1.0.0",
  "author": {
    "name": "Your Name"
  },
  "homepage": "https://github.com/user/my-plugin",
  "repository": "https://github.com/user/my-plugin",
  "license": "MIT"
}
  • name: unique identifier, becomes skill namespace prefix
  • version: semantic versioning (MAJOR.MINOR.PATCH)
  • Only name and description are required

Namespacing

Plugin skills are prefixed: /my-plugin:hello, /my-plugin:review. This prevents conflicts between plugins with same skill names.

Plugin Components

Skills in plugins

Same as standalone skills but in plugin-root/skills/. Each needs SKILL.md with frontmatter.

Agents in plugins

Same Markdown format as .claude/agents/. Placed in plugin-root/agents/.

Hooks in plugins

Create hooks/hooks.json — same format as hooks in settings.json:

{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{ "type": "command", "command": "jq -r '.tool_input.file_path' | xargs prettier --write" }]
    }]
  }
}

MCP servers in plugins

Configure in .mcp.json at plugin root. Use ${CLAUDE_PLUGIN_ROOT} for relative paths:

{
  "my-server": {
    "command": "${CLAUDE_PLUGIN_ROOT}/servers/my-server",
    "args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"],
    "env": { "API_KEY": "${API_KEY}" }
  }
}

Default settings

settings.json at plugin root — currently only agent key supported:

{ "agent": "security-reviewer" }

This activates the named agent as main thread when plugin is enabled.

Development & Testing

# Test locally (no install needed)
claude --plugin-dir ./my-plugin

# Multiple plugins
claude --plugin-dir ./plugin-one --plugin-dir ./plugin-two

# Verify components
/help                    # Skills listed under namespace
/agents                  # Agents visible
/mcp                     # MCP servers running

Changes require restart to take effect.

Distribution

  1. Version control — push to Git repository
  2. Plugin marketplace — submit via claude.ai/settings/plugins/submit
  3. Team sharing — configure team marketplace in .claude/plugins.json

When Plugin vs Standalone

StandalonePlugin
Personal workflowSharing with team/community
Single projectReusable across projects
Quick experimentsVersioned releases
Short names (/hello)Namespaced (/plugin:hello)

Tip: Start standalone in .claude/, convert to plugin when ready to share.

Anti-Patterns

Anti-PatternFix
Components inside .claude-plugin/Only plugin.json goes there; rest at root
No description in plugin.jsonRequired for discovery
Hardcoded paths in MCP configUse ${CLAUDE_PLUGIN_ROOT}
Missing READMEAdd docs for users installing the plugin

Checklist

  • .claude-plugin/plugin.json with name, description, version
  • Components at plugin root (not inside.claude-plugin/)
  • Skills have proper SKILL.md with frontmatter
  • MCP configs use ${CLAUDE_PLUGIN_ROOT} for paths
  • Tested with --plugin-dir
  • README.md with installation instructions
  • Semantic versioning

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.13%
按下载量换算74

Claude

26.95%
按下载量换算57

Cursor

19.87%
按下载量换算42

Gemini CLI

9.05%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills