Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

optimize-plugin优化插件

Agent Skill

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

总安装

964

周安装

39

GitHub Stars

537

下载量

303
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/fradser/dotclaude --skill optimize-plugin

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • optimize-plugin 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Plugin Optimization

Execute plugin validation and optimization workflow. Target: $ARGUMENTS

Background Knowledge

Load plugin-optimizer:plugin-best-practices skill using the Skill tool for component templates, tool invocation rules, and type classification.

Phase 1: Discovery & Validation

Goal: Validate structure and detect issues. Orchestrator MUST NOT apply fixes.

Actions:

  1. Resolve path with realpath and verify existence
  2. Validate .claude-plugin/plugin.json exists
  3. Find component directories: commands/, agents/, skills/, hooks/
  4. Validate components against ${CLAUDE_PLUGIN_ROOT}/examples/ templates
  5. Assess architecture: if commands/ exists with .md files, use AskUserQuestion tool to ask about migrating to skills structure
  6. Run validation: python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-plugin.py "$TARGET"

- Options: --check=structure,manifest,frontmatter,tools,tokens - JSON output: --json - Verbose: -v, --verbose

  1. Compile issues by severity (Critical, Warning, Info)

Phase 2: Agent-Based Optimization

Goal: Launch agent to apply ALL fixes. Orchestrator does NOT make fixes directly.

Condition: Always execute.

Actions:

  1. Launch plugin-optimizer:plugin-optimizer agent with the following prompt content:

- Target plugin path (absolute path from Phase 1) - Validation console output (issues list from Phase 1) - Template validation results - User decisions (migration choice if applicable) - INSTRUCTION: Analyze the validation output to identify issues

  1. Agent autonomously applies fixes (MUST use AskUserQuestion tool before applying template fixes, presenting violations with specific examples and before/after comparison)
  2. Agent increments version in .claude-plugin/plugin.json after fixes:

- Patch (x.y.Z+1): Bug fixes - Minor (x.Y+1.0): New components - Major (X+1.0.0): Breaking changes

  1. Wait for agent to complete

Path Reference Rules:

  • Same directory: Use relative paths (./reference.md)
  • Outside directory: Use ${CLAUDE_PLUGIN_ROOT} paths
  • Component templates: See ${CLAUDE_PLUGIN_ROOT}/examples/

Redundancy & Efficiency:

  • Redundancy: Allow strategic repetition of critical content (MUST/SHOULD requirements). Favor concise restatement.
  • Efficiency: Agent detects if tasks need Agent Teams (Parallelizable > 5 files, Multi-domain).

Phase 3: Verification & Deliverables

Goal: Verify fixes, generate report, and update documentation.

Actions:

  1. Execute validation script: python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-plugin.py "$TARGET"
  2. Analyze results: compare with Phase 1 findings, confirm critical issues resolved
  3. If critical issues remain, resume agent execution
  4. Generate final validation report using template below
  5. Update README.md to reflect current state (metadata, directory structure, usage instructions; do not append version history log)

Validation Report Template

## Plugin Validation Report

### Plugin: [name]
Location: [absolute-path]
Version: [old] -> [new]

### Summary
[2-3 sentences with key statistics]

### Phase 1: Issues Detected
#### Critical ([count])
- `file/path` - [Issue description]

#### Warnings ([count])
- `file/path` - [Issue description]

### Phase 2: Fixes Applied
#### Structure Fixes
- [Fix description]

#### Template Conformance
- **Agents**: [Count] validated, [count] fixed
- **Instruction-type Skills**: [Count] validated, [count] fixed
- **Knowledge-type Skills**: [Count] validated, [count] fixed

#### Redundancy Fixes
- [Consolidations applied]

### Phase 3: Verification Results
- Structure validation: [PASS/FAIL]
- Manifest validation: [PASS/FAIL]
- Component validation: [PASS/FAIL]
- Tool patterns validation: [PASS/FAIL]
- Token budgets validation: [PASS/FAIL]

### Token Budget Analysis
- Skills analyzed: [count]
- Tier 1 (Metadata ~50): [OK count], [WARNING count]
- Tier 2 (SKILL.md ~500): [OK count], [WARNING count], [CRITICAL count]
- Tier 3 (References 2000+ typical): [total tokens]

### Component Inventory
- Commands: [count] found, [count] valid
- Agents: [count] found, [count] valid
- Skills: [count] found, [count] valid

### Remaining Issues
[Issues that couldn't be auto-fixed with explanations]

### Overall Assessment
[PASS/FAIL] - [Detailed reasoning]

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

28.19%
按下载量换算85

Gemini CLI

23.94%
按下载量换算73

Antigravity

19.26%
按下载量换算58

OpenCode

12.53%
按下载量换算38

windsurf

8.79%
按下载量换算27

Codex

4%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills