Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

enhance-skills提高技能

Agent Skill

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

总安装

1,139

周安装

47

GitHub Stars

769

下载量

372
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/avifenesh/agentsys --skill enhance-skills

简介

用于批量分析技能触发质量、结构与可发现性,维护技能库健康度。

  • 适合在技能数量增多、触发条件重叠或文档不一致时进行集中审查。
  • 自动扫描所有 SKILL.md 文件,识别声明工具与实际使用不符、规则冲突等问题。
  • 输出按置信度过滤,仅对高确定性问题建议自动修复,其余需人工干预。
  • enhance-skills 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

enhance-skills

Analyze skill definitions for trigger quality, structure, and discoverability.

Workflow

  1. Discover - Find all SKILL.md files
  2. Parse - Extract frontmatter and content
  3. Check - Run all pattern checks against knowledge below
  4. Filter - Apply certainty filtering
  5. Report - Generate markdown output
  6. Fix - Apply auto-fixes if --fix flag present

Skill Knowledge Reference

Frontmatter Fields (Complete Reference)

FieldRequiredDescriptionValidation
nameNoDisplay name, defaults to directory namelowercase, max 64 chars
descriptionRecommendedWhat skill does and when to usemax 1024 chars, should include trigger
argument-hintNoAutocomplete hint, e.g., [file-path]keep under 30 chars
disable-model-invocationNotrue = manual only (for side effects)boolean, default false
user-invocableNofalse = hidden from / menu (auto-only)boolean, default true
allowed-toolsNoTools Claude can use without permissioncomma-separated list
modelNoSpecific model when skill is activeopus, sonnet, haiku
contextNofork = run in isolated subagent contextfork or omit
agentNoSubagent type for executionExplore, Plan, general-purpose
hooksNoSkill-scoped lifecycle hooksPreToolUse, PostToolUse

Directory Structure

skills/my-skill/
├── SKILL.md           # Required - core definition (under 500 lines)
├── reference.md       # Optional - detailed documentation
├── examples.md        # Optional - usage examples
└── scripts/           # Optional - helper scripts
    └── helper.py

Storage Locations:

  • Enterprise: Managed settings
  • Personal: ~/.claude/skills/<name>/SKILL.md
  • Project: .claude/skills/<name>/SKILL.md

Invocation Control Patterns

Manual Only (for skills with side effects):

---
name: deploy
description: Deploy to production
disable-model-invocation: true
---

Background Knowledge (auto-only, hidden from menu):

---
name: legacy-context
description: How the legacy payment system works
user-invocable: false
---

Full Access (default - both auto and manual):

---
name: review
description: Use when user asks to review code. Checks quality and security.
---

Trigger Phrases

Description should include trigger context for auto-discovery:

  • "Use when user asks..."
  • "Use when..."
  • "Invoke when..."

Good: "Use when user asks to 'review code', 'check PR', or 'code review'" Bad: "Reviews code" (no trigger context)

Dynamic Context Injection

Skills can inject dynamic content using backtick syntax:

---
name: pr-summary
description: Summarize PR changes
context: fork
agent: Explore
allowed-tools: Bash(gh:*)
---

## Pull request context
- PR diff: !`gh pr diff`
- PR comments: !`gh pr view --comments`
- Changed files: !`gh pr diff --name-only`

Rules:

  • Use ! followed by backtick-wrapped command
  • Limit to 3 injections per skill
  • Each injection adds to context budget

String Substitutions

VariableDescription
$ARGUMENTSAll arguments passed when invoking
${CLAUDE_SESSION_ID}Current session ID

Context Budget

  • Skill descriptions have ~15,000 character default limit
  • Content beyond limit is truncated
  • Check with /context command
  • Increase via: SLASH_COMMAND_TOOL_CHAR_BUDGET=30000

Subagent Execution

When using context: fork:

---
name: deep-research
description: Research a topic thoroughly
context: fork
agent: Explore
allowed-tools: Read, Grep, Glob
---

Research $ARGUMENTS thoroughly:
1. Find relevant files
2. Analyze the code
3. Summarize findings

Agent Types:

AgentPurposeTool Access
ExploreRead-only codebase explorationRead, Grep, Glob only
PlanPlanning-focused reasoningRead, analysis tools
general-purposeFull capabilitiesAll tools

Skill-Scoped Hooks

---
name: secure-operations
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: "./scripts/security-check.sh"
---

Tool Restrictions

Use scoped tool patterns for security:

PatternMeaning
Bash(git:*)Only git commands
Bash(npm:*)Only npm commands
Bash(gh:*)Only GitHub CLI
Read(src/**)Only files in src/

Detection Patterns

1. Frontmatter Validation (HIGH Certainty)

Required:

  • YAML frontmatter with --- delimiters
  • name field (lowercase, max 64 chars)
  • description field (max 1024 chars)

Recommended:

  • version field for tracking
  • argument-hint for skills accepting input
  • allowed-tools for security
  • model when specific model required

Flag:

  • Missing frontmatter delimiters
  • Invalid field values (uppercase name, description >1024 chars)

2. Trigger Quality (HIGH Certainty)

Check: Description includes trigger phrase Trigger patterns: "Use when", "Invoke when", "Use when user asks"

Flag:

  • Description without trigger context
  • Vague descriptions like "Useful tool" or "Does stuff"

3. Invocation Control (HIGH Certainty)

Check: Side-effect skills are protected

Flag:

  • Skills with deploy/ship/publish in name but disable-model-invocation not set
  • Dangerous auto-invocable skills (can accidentally trigger)

4. Tool Restrictions (HIGH Certainty)

Check: Tools are appropriately scoped

Flag:

  • Unrestricted Bash (should be Bash(git:*) or similar)
  • Read-only skills with Write/Edit
  • Research skills with Task tool

5. Content Scope (MEDIUM Certainty)

Guidelines:

  • SKILL.md under 500 lines
  • Large content in references/ subdirectory
  • Max 3 dynamic injections

Flag:

  • SKILL.md over 500 lines
  • More than 3 !backtick`` injections
  • Embedded large examples (move to examples.md)

6. Structure Quality (MEDIUM Certainty)

Recommended Sections:

  • Purpose/overview
  • Required checks or workflow steps
  • Output format
  • Examples (if complex)

7. Context Configuration (MEDIUM Certainty)

Check: Context settings are appropriate

Flag:

  • context: fork without agent type
  • agent type without context: fork
  • Mismatch between agent type and allowed-tools

8. Anti-Patterns (LOW Certainty)

  • Vague descriptions without specific triggers
  • Too many responsibilities (should split into multiple skills)
  • Missing argument-hint for skills that clearly need input
  • Redundant chain-of-thought instructions (modern models don't need "think step by step")

Auto-Fix Implementations

1. Missing frontmatter

---
name: skill-name
description: "Use when..."
version: 4.2.0
---

2. Missing trigger phrase

Add "Use when user asks..." prefix to description

3. Unrestricted Bash

Replace Bash with Bash(git:*) or appropriate scope


Output Format

## Skill Analysis: {skill-name}

**File**: {path}

### Summary
- HIGH: {count} issues
- MEDIUM: {count} issues

### Frontmatter Issues ({n})
| Issue | Fix | Certainty |

### Trigger Issues ({n})
| Issue | Fix | Certainty |

### Invocation Issues ({n})
| Issue | Fix | Certainty |

### Tool Issues ({n})
| Issue | Fix | Certainty |

### Scope Issues ({n})
| Issue | Fix | Certainty |

Pattern Statistics

CategoryPatternsAuto-Fixable
Frontmatter52
Trigger21
Invocation31
Tool31
Scope30
Structure20
Context30
Anti-Pattern40
Total255

<bad_example>

name: code-review
description: "Reviews code for issues"

Why it's bad: No trigger context for auto-discovery. </bad_example>

<good_example>

name: code-review
description: "Use when user asks to 'review code', 'check this PR'. Reviews code for issues."

Why it's good: Clear trigger phrases enable auto-discovery. </good_example>

Example: Dangerous Auto-Invocation

<bad_example>

name: deploy
description: "Deploys code to production"

Why it's bad: Side-effect skill could be auto-invoked accidentally. </bad_example>

<good_example>

name: deploy
description: "Deploy to production environment"
disable-model-invocation: true

Why it's good: Manual-only prevents accidental deployments. </good_example>

Example: Unrestricted Tools

<bad_example>

name: git-helper
allowed-tools: Bash

Why it's bad: Unrestricted Bash allows any command. </bad_example>

<good_example>

name: git-helper
allowed-tools: Bash(git:*)

Why it's good: Scoped to only git commands. </good_example>

Example: Oversized Skill

<bad_example>

# Complex Analysis
[800 lines of detailed instructions]

Why it's bad: Large skills consume context budget (15K char limit). </bad_example>

<good_example>

# Complex Analysis
Core instructions here (under 500 lines).
For details, see `references/detailed-guide.md`.

Why it's good: Core skill is concise; details in separate files. </good_example>

Example: Context/Agent Mismatch

<bad_example>

name: researcher
context: fork
# Missing agent type

Why it's bad: Fork context without specifying agent type. </bad_example>

<good_example>

name: researcher
context: fork
agent: Explore
allowed-tools: Read, Grep, Glob

Why it's good: Agent type matches allowed tools (Explore = read-only). </good_example>


Constraints

  • Only apply auto-fixes for HIGH certainty issues
  • Consider skill context when evaluating trigger quality
  • Never remove content, only suggest improvements
  • Validate against embedded knowledge reference above

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35%
按下载量换算130

Claude

29.19%
按下载量换算109

Cursor

20.36%
按下载量换算76

Gemini CLI

8.97%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/avifenesh/agentsys --skill enhance-skills 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills