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

update-component-reference更新组件参考

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

119

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nikiforovall/claude-code-rules --skill update-component-reference

简介

用于查找、检索和筛选相关信息,支持组件参考类任务。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位技术资料时使用。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令集成。
  • 需确认权限范围,避免触发不必要的联网或文件操作。
  • update-component-reference 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Update Component Reference Skill

Add documentation for Claude Code components (commands, agents, skills, hooks, MCP servers) to the website's Component Reference section.

When to Use

Use this skill when the user requests to:

  • Add a new component to the Component Reference documentation
  • Document a newly created command, agent, skill, hook, or MCP server
  • Update component documentation in the reference section

Prerequisites Checklist

Before documenting a component, ensure:

  1. Component exists in the appropriate plugin directory:

- Commands: plugins/handbook/commands/{name}.md - Agents: plugins/handbook/agents/{name}.md - Skills: plugins/handbook/skills/{name}/SKILL.md - Hooks: plugins/{plugin-name}/hooks/hooks.json and hook scripts - MCP Servers: plugins/{plugin-name}/.mcp.json

  1. For skills only: Component is registered in plugin.json: {"skills": ["./skills/skill-creator", "./skills/{new-skill-name}"]}
  2. Verify plugin name: Check .claude-plugin/plugin.json for the badge (e.g., "handbook", "handbook-dotnet")

Implementation Process

Step 1: Determine Target Directory

Component documentation goes in: website/docs/component-reference/{type}/

  • Commands → website/docs/component-reference/commands/
  • Agents → website/docs/component-reference/agents/
  • Skills → website/docs/component-reference/skills/
  • Hooks → website/docs/component-reference/hooks/
  • MCP Servers → website/docs/component-reference/mcp-servers/

All category directories and _category_.json files already exist for these types.

Step 2: Determine sidebar_position

Read existing .mdx files in the target directory to find the highest sidebar_position and add 1.

Example:

grep -h "sidebar_position:" website/docs/component-reference/skills/*.mdx | sort -n

Step 3: Create Component Documentation File

Filename convention: Use kebab-case matching the component name

  • Command /commitcommit.mdx
  • Agent @backend-architectbackend-architect.mdx
  • Skill skill-creatorskill-creator.mdx
  • Hook csharp-formattercsharp-formatter.mdx
  • MCP Server context7context7.mdx

Step 4: Write MDX Content

Use the appropriate template based on component type:

Commands Template

---
title: "/command-name"
sidebar_position: N
---

import CommandNameSource from '!!raw-loader!../../../../plugins/handbook/commands/command-name.md'
import CodeBlock from '@theme/CodeBlock';

# Use `/command-name`

<span className="badge badge--handbook">handbook</span>

Brief description of what this command does (1-2 sentences).

More detailed explanation of the command's purpose and benefits.

## Command Specification

<CodeBlock language="markdown">
{CommandNameSource}
</CodeBlock>

## Additional sections as needed
- Example usage
- Tips and tricks
- Related commands

Agents Template

---
title: "@agent-name"
sidebar_position: N
---

import AgentNameSource from '!!raw-loader!../../../../plugins/handbook/agents/agent-name.md'
import CodeBlock from '@theme/CodeBlock';

# Use `@agent-name` agent

<span className="badge badge--handbook">handbook</span>

Brief description of what this agent specializes in (1-2 sentences).

More detailed explanation of the agent's capabilities and when to use it.

## Agent Specification

<CodeBlock language="markdown">
{AgentNameSource}
</CodeBlock>

## Additional sections as needed
- Key strengths
- Example use cases
- Related agents

Skills Template

---
title: "skill-name"
sidebar_position: N
---

import SkillNameSource from '!!raw-loader!../../../../plugins/handbook/skills/skill-name/SKILL.md'
import CodeBlock from '@theme/CodeBlock';

# Use `skill-name` skill

<span className="badge badge--handbook">handbook</span>

Brief description of what this skill provides (1-2 sentences).

More detailed explanation of the skill's purpose and capabilities.

## When to Use This Skill

Use the `skill-name` skill when you want to:

- Primary use case
- Secondary use case
- Additional scenarios

## Skill Specification

<CodeBlock language="markdown">
{SkillNameSource}
</CodeBlock>

## Additional sections as needed
- Key concepts
- Example workflows
- Related skills

Hooks Template

---
title: "Hook Name"
sidebar_position: N
---

# Hook Name

<span className="badge badge--{plugin-name}">{plugin-name}</span>

Brief description (1-2 sentences).

## Configuration

{ hook config from hooks.json }


## Use Cases

- Bullet points

## Installation

Setup notes.

## Related

- Links

MCP Servers Template

---
title: "server-name"
sidebar_position: N
---

# Server Name MCP Server

<span className="badge badge--{plugin-name}">{plugin-name}</span>

Brief description (1-2 sentences).

## Configuration

{ config from .mcp.json }


## Coverage

- Bullet list

## Example Usage

"Example query"


## Installation

Setup notes.

## Related

- Links

Step 5: Verify Import Paths (Commands, Agents, Skills Only)

Note: Hooks and MCP Servers show configuration directly (no raw-loader imports needed).

For commands, agents, and skills, double-check the raw-loader import path:

  • Commands: '!!raw-loader!../../../../plugins/handbook/commands/{name}.md'
  • Agents: '!!raw-loader!../../../../plugins/handbook/agents/{name}.md'
  • Skills: '!!raw-loader!../../../../plugins/handbook/skills/{name}/SKILL.md' ⚠️ Note the /SKILL.md suffix

The path goes up 4 directories (../../../../) from the .mdx file to reach the repo root.

Common Pitfalls

  1. Forgetting plugin.json registration for skills

- Skills MUST be in plugin.json or they won't be available - Commands, agents, hooks, and MCP servers are auto-discovered

  1. Incorrect import paths

- Skills use /SKILL.md suffix: skills/{name}/SKILL.md - Commands and agents use .md directly: commands/{name}.md - Hooks and MCP servers don't use raw-loader (show config directly)

  1. Wrong relative path depth (commands, agents, skills only)

- Always use 4 levels up: ../../../../ - Path starts from the .mdx file location

  1. Inconsistent naming

- File names should match component names exactly (kebab-case) - Title in frontmatter should include prefix (/ for commands, @ for agents)

  1. Wrong plugin badge

- Badge class follows pattern: badge--{plugin-name} - Badge text is the plugin name (e.g., "handbook", "handbook-dotnet")

Quick Reference

Import Variable Naming Convention (Commands, Agents, Skills)

Match the component name in PascalCase + "Source":

  • commit.mdCommitCommandSource
  • backend-architect.mdBackendArchitectAgentSource
  • skill-creator/SKILL.mdSkillCreatorSource

Note: Hooks and MCP servers don't use imports.

Badge

Badge format: <span className="badge badge--{plugin-name}">{plugin-name}</span>

Examples:

  • handbook: <span className="badge badge--handbook">handbook</span>
  • handbook-dotnet: <span className="badge badge--handbook-dotnet">handbook-dotnet</span>

Adding a New Plugin

When documenting components from a new plugin, also update:

  1. Badge CSS: Add style to website/src/css/custom.css (pick unique color)
  2. Plugin index: Add entry to website/docs/plugins.md (both main list and Direct Installation section)

Example Workflow

User: "Add the new @pair-programmer agent to the documentation"

  1. Verify component exists: plugins/handbook/agents/pair-programmer.md
  2. Check it's an agent (auto-discovered, no plugin.json needed) ✓
  3. Find next sidebar_position in website/docs/component-reference/agents/
  4. Create website/docs/component-reference/agents/pair-programmer.mdx
  5. Write content using agent template
  6. Import using: '!!raw-loader!../../../../plugins/handbook/agents/pair-programmer.md'
  7. Verify documentation renders correctly

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.48%
按下载量换算37

Claude

28.06%
按下载量换算28

Cursor

17.15%
按下载量换算17

Gemini CLI

9.02%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills