Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

claude-pluginsClaude plugins 搜索

Agent Skill

claude-plugins 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

26

下载量

86
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/outfitter-dev/agents --skill claude-plugins

简介

用于查找和检索 Claude Code 插件开发的全生命周期资源。

  • 涵盖插件定义、结构初始化、验证和分发全流程指导。
  • 通过 npx 从 GitHub 安装,适合需要完整开发模板的场景。
  • 建议结合 outfitter:claude-plugin-audit 进行质量校验。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Claude Plugin Development

Complete lifecycle for developing, validating, and distributing Claude Code plugins.

Steps

  1. Define plugin scope and components needed
  2. Initialize plugin structure with plugin.json
  3. If adding commands, load the outfitter:claude-commands skill
  4. If adding agents, load the outfitter:claude-agents skill
  5. If adding hooks, load the outfitter:claude-hooks skill
  6. If adding skills, load the outfitter:skills-dev skill
  7. Delegate by loading the outfitter:claude-plugin-audit skill for validation
  8. Fix issues and distribute

Quick Start

# 1. Scaffold plugin
./scripts/scaffold-plugin.sh my-plugin --with-commands

# 2. Add components (commands, agents, hooks, skills)
# 3. Test locally
/plugin marketplace add ./my-plugin
/plugin install my-plugin@my-plugin

# 4. Distribute
git push origin main --tags

Lifecycle Overview

Discovery -> Init -> Components -> Validate -> Distribute -> Marketplace
    |         |          |            |            |             |
    v         v          v            v            v             v
 Purpose   Scaffold   Commands    Structure    Package      Catalog
  Scope    plugin.json  Agents     Testing     Version      Publish
  Type      README      Hooks      Quality     Release       Share

Stage 1: Discovery

Before creating a plugin, clarify:

QuestionImpact
What problem does this solve?Plugin scope and features
Who will use it?Distribution method
What components are needed?Commands, agents, hooks, MCP servers
Where will it live?Personal, project, or marketplace

Stage 2: Initialization

Standalone Plugin

Standalone plugins need their own .claude-plugin/plugin.json:

my-plugin/
├── .claude-plugin/
│   └── plugin.json      # Required for standalone
├── README.md            # Required for distribution
├── commands/            # Optional components
├── agents/
├── skills/
└── hooks/

plugin.json (Standalone)

{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "Brief description of what this plugin does",
  "author": {
    "name": "Your Name",
    "email": "you@example.com"
  },
  "license": "MIT"
}

Marketplace with Local Plugins (Consolidated)

For marketplaces where all plugins live in the same repo, use strict: false to consolidate metadata. Plugins don't need their own manifests:

my-marketplace/
├── .claude-plugin/
│   └── marketplace.json # All metadata here (strict: false)
├── plugin-a/
│   └── commands/
├── plugin-b/
│   └── skills/
└── README.md

marketplace.json (Consolidated)

{
  "name": "my-marketplace",
  "owner": {
    "name": "Team Name",
    "email": "team@example.com"
  },
  "strict": false,
  "plugins": [
    {"name": "plugin-a", "source": "./plugin-a", "version": "1.0.0", "description": "Plugin A", "license": "MIT"},
    {"name": "plugin-b", "source": "./plugin-b", "version": "1.0.0", "description": "Plugin B", "license": "MIT"}
  ]
}

Benefits: Single source of truth, no version drift between marketplace and plugin manifests.

For external plugins (GitHub repos), use minimal entries and let the external repo own its manifest.

See structure.md for complete plugin.json schema.

Stage 3: Components

Add components based on plugin needs. See Steps section for which skills to load.

Slash Commands

Create custom commands in commands/ directory:

---
description: "Review code for quality issues"
---

Review the following code: {{0}}

Check for: code style, bugs, performance, security

For complex commands, load the outfitter:claude-commands skill.

Custom Agents

Define specialized agents in agents/ directory:

---
name: security-reviewer
description: "Security-focused code reviewer"
---

You are a security expert. When reviewing code:
1. Check for vulnerabilities
2. Verify input validation
3. Report issues with severity levels

For agent design patterns, load the outfitter:claude-agents skill.

Event Hooks

Two ways to define hooks:

File-based (auto-discovered from hooks/hooks.json):

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [{"type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh"}]
      }
    ]
  }
}

Inline in plugin.json - same structure, add "hooks" key directly.

Hook types: PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart, SessionEnd

For hook implementation, load the outfitter:claude-hooks skill. See structure.md for hook JSON format and script interface.

Skills

Add reusable methodology patterns in skills/ directory. For skill authoring, load the outfitter:skills-dev skill.

MCP Servers

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

Path variables: ${CLAUDE_PLUGIN_ROOT} (plugin directory), ${VAR_NAME} (env var)

Plugin Caching

When plugins are installed, Claude Code copies them to a cache directory. This has implications:

  • Path traversal breaks: ../../shared/file.md will not work after install
  • Keep resources inside plugin: Shared scripts, rules, and assets must be within plugin directory
  • Cross-plugin dependencies: Use skill invocation (plugin:skill-name) instead of file references

See caching.md for workarounds and best practices.

Stage 4: Validation

Before distribution, validate the plugin.

Checklist

Structure:

  • Standalone: plugin.json exists and is valid JSON
  • Marketplace (consolidated): metadata in marketplace.json with strict: false
  • Required fields present (name, version, description)
  • Plugin name matches directory name (kebab-case)

Components:

  • Commands have YAML frontmatter with description
  • Agents have YAML frontmatter with name and description
  • Hook scripts are executable (chmod +x)
  • Hook matchers are valid regex

Documentation:

  • README.md with installation instructions
  • LICENSE file included

Local Testing

# Add as local marketplace
/plugin marketplace add ./my-plugin

# Install and test
/plugin install my-plugin@my-plugin

# Test commands
/my-command arg1 arg2

See structure.md for validation commands and detailed component schemas.

Stage 5: Distribution

Semantic Versioning

Follow semver (MAJOR.MINOR.PATCH):

  • MAJOR: Breaking changes
  • MINOR: New features (backward compatible)
  • PATCH: Bug fixes

Release Workflow

# 1. Update version in plugin.json
# 2. Update CHANGELOG.md
# 3. Commit and tag
git add plugin.json CHANGELOG.md
git commit -m "chore: release v1.0.0"
git tag v1.0.0
git push origin main --tags

# 4. Create GitHub release
gh release create v1.0.0 --title "v1.0.0" --notes "Initial release"

Distribution Methods

MethodBest ForSetup
GitHub repoPublic/team pluginsPush to GitHub
Git URLGitLab, BitbucketFull URL in source
Local pathDevelopment/testingRelative path

See distribution.md for packaging, CI/CD, and release automation.

Stage 6: Marketplace

A marketplace catalogs plugins for discovery and installation.

Creating a Marketplace

Create .claude-plugin/marketplace.json:

{
  "name": "my-marketplace",
  "owner": {"name": "Team Name", "email": "team@example.com"},
  "plugins": [
    {"name": "my-plugin", "source": "./plugins/my-plugin"}
  ]
}

Plugin Sources

// Relative path
{"source": "./plugins/my-plugin"}

// GitHub
{"source": {"source": "github", "repo": "owner/plugin-repo", "ref": "v1.0.0"}}

// Git URL
{"source": {"source": "url", "url": "https://gitlab.com/team/plugin.git"}}

Commands

/plugin marketplace add owner/repo       # Add marketplace
/plugin marketplace list                  # List available
/plugin install plugin-name@marketplace  # Install from marketplace
/plugin marketplace update marketplace   # Update

See marketplace.md for full schema, team configuration, and hosting strategies.

Best Practices

Naming Conventions

  • Plugin name: kebab-case (e.g., dev-tools)
  • Commands: kebab-case (e.g., review-pr)
  • Agents: kebab-case (e.g., security-reviewer)

Security

  • Never hardcode secrets in plugin files
  • Use environment variables for sensitive data
  • Validate all user inputs in hooks
  • Document security requirements

Documentation

  • README.md: Overview, installation, usage examples
  • CHANGELOG.md: Version history with semver
  • LICENSE: Appropriate license file

Troubleshooting

Plugin not loading:

  • Standalone: verify plugin.json syntax: jq empty.claude-plugin/plugin.json
  • Marketplace: verify marketplace.json syntax and strict: false if no plugin.json
  • Check plugin name matches directory
  • Ensure required fields present (name, version, description)

Commands not appearing:

  • Verify YAML frontmatter exists
  • Check files in commands/ directory

Hooks not executing:

  • Check scripts executable: chmod +x
  • Verify matcher regex correct
  • Test hook script independently

MCP servers failing:

  • Verify server binary exists
  • Check environment variables set
  • Review logs: ~/Library/Logs/Claude/
  • structure.md - Directory layout, plugin.json schema, component formats
  • distribution.md - Packaging, versioning, CI/CD, release automation
  • marketplace.md - Marketplace schema, hosting, team configuration
  • caching.md - Plugin caching behavior and cross-plugin dependencies

ALWAYS:

  • Standalone plugins: create .claude-plugin/plugin.json
  • Marketplace local plugins: use strict: false and consolidate metadata in marketplace.json
  • External plugins: let the external repo own its manifest
  • Keep plugin resources within plugin directory (caching limitation)
  • Use kebab-case for all names
  • Include README.md and LICENSE for distribution
  • Follow semantic versioning

NEVER:

  • Hardcode secrets in plugin files
  • Use path traversal (../) for cross-plugin resources
  • Skip validation before distribution
  • Omit description (in plugin.json or marketplace entry)

Related Skills

  • claude-commands - Slash command development
  • claude-agents - Custom agent design
  • claude-hooks - Event hook implementation
  • skills-dev - Skill creation patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

github-copilot

27.15%
按下载量换算23

kilo

21.3%
按下载量换算18

windsurf

18.94%
按下载量换算16

zencoder

14.49%
按下载量换算12

amp

7.11%
按下载量换算6

cline

3.9%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills