OpenSource-Hub

claude-plugins-official

资源汇总

anthropics/claude-plugins-official

Anthropic 官方管理的 Claude Code 高质量插件目录。

项目简介

这是 Claude Code 的高质量插件集合市场,包含 Anthropic 内部及第三方开发的插件。每个插件可添加 MCP 服务器、命令、代理或技能,扩展 Claude Code 的功能。可通过 Claude Code 插件系统安装。

README 预览

# Claude Code Plugins Directory\n\nA curated directory of high-quality plugins for Claude Code.\n\n> **⚠️ Important:** Make sure you trust a plugin before installing, updating, or using it. Anthropic does not control what MCP servers, files, or other software are included in plugins and cannot verify that they will work as intended or that they won't change. See each plugin's homepage for more information.\n\n## Structure\n\n- **`/plugins`** - Internal plugins developed and maintained by Anthropic\n- **`/external_plugins`** - Third-party plugins from partners and the community\n\n## Installation\n\nPlugins can be installed directly from this marketplace via Claude Code's plugin system.\n\nTo install, run `/plugin install {plugin-name}@claude-plugins-official`\n\nor browse for the plugin in `/plugin > Discover`\n\n## Contributing\n\n### Internal Plugins\n\nInternal plugins are developed by Anthropic team members. See `/plugins/example-plugin` for a reference implementation.\n\n### External Plugins\n\nThird-party partners can submit plugins for inclusion in the marketplace. External plugins must meet quality and security standards for approval. To submit a new plugin, use the [plugin directory submission form](https://clau.de/plugin-directory-submission).\n\n## Plugin Structure\n\nEach plugin follows a standard structure:\n\n```\nplugin-name/\n├── .claude-plugin/\n│   └── plugin.json      # Plugin metadata (required)\n├── .mcp.json            # MCP server configuration (optional)\n├── commands/            # Slash commands (optional)\n├── agents/              # Agent definitions (optional)\n├── skills/              # Skill definitions (optional)\n└── README.md            # Documentation\n```\n\n## Skill-bundle plugins\n\nWhen a plugin's source repository ships skills (`SKILL.md` files) without a `.claude-plugin/plugin.json` manifest, the marketplace entry can declare the skills directly using `strict: false` and an explicit `skills` array.\n\n```json\n{\n  "name": "exa

常见问题 (5)

故障排除
如何阻止 security-guidance 插件的 python_subprocess_shell 规则标记 Markdown 文档中的代码?

这是安全指南 v2.0.0 中已知的误报情况。该规则当前缺少用于排除文档文件的路径过滤器。作为临时解决方案,您可以忽略 .md/.mdx/.rst 文件中的这些警告,或手动编辑 hooks/patterns.py,在规则中添加 path_filter: lambda p: not p.endswith(_DOC_EXTS)。预计未来更新中将提供正式修复;请跟踪问题 #2045 了解进展。

来源 Issue #2045
故障排除
如何修复 security-guidance 插件中的 'output_format deprecated' HTTP 400 错误?

更新 plugins/security-guidance/hooks/llm.py,将 schema 嵌套到 output_config.format 下,而不是已弃用的顶层 output_format。具体而言,将 "output_format": {"type": "json_schema", "schema": output_schema} 替换为 "output_config": {"format": {"type": "json_schema", "schema": output_schema}}。如果你在 adaptive-thinking 分支上,请将 effort 合并到现有字典中:将 payload["output_config"] = {"effort": "high"} 改为 payload["output_config"]["effort"] = "high"。该补丁位于 issue #2097。这解决了 400 错误并防止防护栏失效。

来源 Issue #2098
故障排除
为什么Claude Code在没有给出任何原因的情况下显示“Permission to use Edit has been denied”?

安全指南插件钩子通过sys.exit(2)发出拒绝信号,且未携带JSON负载,导致生成通用拒绝消息。请将该插件升级至能输出包含permissionDecisionReason的正确JSON拒绝消息的版本。如无法立即升级,请手动修补钩子脚本(例如security_reminder_hook.py),将裸sys.exit(2)替换为:

import json
print(json.dumps({
    "hookSpecificOutput": {
        "hookEventName": "PreToolUse",
        "permissionDecision": "deny",
        "permissionDecisionReason": f"{rule_name}: {reminder[:120]}"
    }
}))
sys.exit(0)

此举可在UI中提供上下文(匹配模式、风险类别)。请追踪上游修复以移除本地补丁的需求。

来源 Issue #1783
故障排除
为什么Claude Code的安全指南钩子会显示'hook json output validation failed'错误?

该钩子输出的是纯文本而非 JSON。编辑 hooks/security_reminder_hook.py 第 272 行:将 print(reminder, file=sys.stderr); sys.exit(2) 替换为 print(json.dumps({"decision": "block", "reason": reminder})); sys.exit(2)。这将输出有效的 JSON,从而解决验证错误。

来源 Issue #1375
故障排除
为什么 mcp-server-dev 或 sonatype-guide 插件在 Claude Code 中显示 0 skills loaded?

This is a known ecosystem-wide issue caused by missing required fields in the plugin's skill files. Specifically, the SKILL.md frontmatter for each skill must include user-invocable and allowed-tools fields as required by the Claude Code runtime. Additionally, the plugin manifest (.claude-plugin/plugin.json) may need a valid version field. To resolve this, update Claude Code to the latest version which may include runtime-side validation fixes, or wait for the plugin authors to release updated versions with the correct schema. Manually editing installed plugin files is not recommended as it is fragile and may be overwritten.

来源 Issue #1954