构建 AI Skills/Plugins 的标准方法论 (Based on Anthropic Standard)
npx skills add https://github.com/kennyzir/7deer_skills --skill plugin-architect
本 Skill 定义了本项目构建 AI Plugins 的唯一标准。所有 Skill 的创建与修改必须遵循此方法论。
一个完整的 Plugin (Skill System) 由四个核心组件构成。
plugin.json)插件的身份证。定义插件在系统中的唯一标识。
.agent/.claude-plugin/plugin.json (Global) 或 skill-name/plugin.json (Local) {
"schema_version": "1.0",
"name": "devil-hunter-nexus-plugin",
"description": "The cognitive engine and SEO factory for Roblox game sites.",
"version": "1.0.0",
"authors": ["Devil Hunter Team"]
}
SKILL.md)AI 的思维链。必须包含明确的触发条件 (Trigger) 和结构化指令。
.agent/skills/<skill-name>/SKILL.mdname and description.## When This Skill Applies: 明确的触发条件 (Contextual Triggers)。## Instructions: 具体的操作步骤、原则或代码规范。## Actions (Optional): 可用的工具或脚本引用。commands/)用户的快捷入口。定义以 / 开头的显式调用指令。
.agent/commands/<command-name>.md ---
description: Audit the current page for SEO compliance
argument-hint: [url or path]
active-skills: [nextjs-seo-foundations]
---
# /audit-seo
1. Check presence of Metadata (Title, Description).
2. Validate JSON-LD Schema.
3. Report missing 'canonical' tags.
.mcp.json)外部能力的延伸。通过 Model Context Protocol 连接真实世界。
.agent/.mcp.jsonSKILL.md 的 Instructions。commands/ 和 scripts/。mkdir .agent/skills/<skill-name>.agent/commands/<skill-shortcut>.md.plugin-architect standard?"Take kennyzir/plugin-architect from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.