Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

agent-skillsAgent 技巧

Agent Skill

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

总安装

238

周安装

10

GitHub Stars

2

下载量

83
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dtinth/agent-skills --skill agent-skills

简介

agent-skills 定义技能的概念、设计原则和最佳实践指南。

  • 适用于技能开发、知识管理和上下文加载等系统设计场景。
  • 强调渐进披露、按需加载和项目特定技能的组织方式。
  • 使用前需理解技能与系统的关系,合理划分全局和项目特定技能边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

What Skills Are

Skills are maps, not territory. They load relevant knowledge into context at the right moment without bloating the initial system prompt. A skill should provide enough context to work effectively without trying to be comprehensive documentation.

  • Purpose: Progressive disclosure - load context on demand
  • Length: Usually 60-100 lines of focused content
  • Structure: Minimal front matter, practical content, pointers to where knowledge lives

Project-Specific vs Global Skills

Project-specific skills (in repository .claude/skills/):

  • Live in this project's repository
  • Scope: Document this project's specific patterns, tools, and conventions (not generic best practices)
  • Freely create, update, and maintain these skills
  • To see what's available: ls -la.claude/skills/

Globally-installed skills (system-wide):

  • Broader scope: Generic tools and workflows
  • May be used across different projects and harnesses

Finding a skill's base path: When you invoke any skill, the skill harness prints the base directory at the start (e.g., "Base directory for this skill: /path/to/skill-name"). Use this to navigate to and edit the skill's files.

Workflow for improving skills:

  • Project-specific skills: Update directly as needed to improve the project
  • Globally-installed skills: Suggest improvements to the user and ask for confirmation before modifying, since these skills may be used across different projects and environments

When to Create or Update a Project-Specific Skill

Create a project-specific skill when:

  • Multiple agents will benefit from the same specialized knowledge
  • The knowledge is project-specific (not generic tutorials)
  • It addresses a common workflow or pattern (testing, i18n, deployment, etc.)
  • It would otherwise be repeated across multiple system prompts

Update a project-specific skill when:

  • Important patterns or workflows change
  • Configuration files are updated
  • New project conventions are established
  • Existing guidance is incorrect or outdated

Core Principles

1. Point to Real Code, Not Examples

  • DO: "Study existing tests in spec/controllers/ to understand patterns"
  • DON'T: Include code examples that can become outdated
  • Exception: Very short, unchanging snippets (bash commands, command syntax) are OK
  • Why: Live code is authoritative; examples rot

2. Cite Sources with Traceability

  • DO: Point to files where patterns are defined (spec/rails_helper.rb, playwright.config.ts, etc.)
  • DO: Note important configuration details from actual files
  • DON'T: Include line numbers (they change, create false precision)
  • Why: Readers can verify and understand context

3. Verify Against Reality

  • Before writing: Read actual configuration files and code
  • When uncertain: Check the implementation rather than making assumptions
  • Test claims: Ensure stated behavior matches actual behavior
  • Why: Misinformation spreads through skills; verification prevents it

4. Accuracy Over Brevity

  • DO: Use more words if it increases clarity
  • DO: Distinguish between similar concepts clearly
  • DON'T: Sacrifice precision for snappiness
  • Why: "Queuing without executing" is clearer than "just queuing them"

5. Project-Specific Over Generic

  • DO: Document how YOUR project does things ("we access helpers via App getters")
  • DON'T: Include generic best practices ("separate your concerns")
  • DO: Explain implementation details that aren't obvious from code
  • Why: Generic advice is everywhere; project specifics are valuable

6. Scaffold Exploration

  • DO: Say "study X to understand conventions"
  • DO: Explain where to find patterns ("study existing files in in spec/controllers/")
  • DON'T: Prescribe rules as if they're laws
  • Why: Real learning happens when agents explore actual code

Skill Structure

Front Matter

---
name: skill-name
description: 'Description that will be loaded into the system prompt. Must clearly state specific trigger points for when agents should use this skill. The description is the primary mechanism for triggering skill usage, so avoid generic statements like "use this for testing" and instead specify: "Use this when: (1) Running RSpec tests, (2) Debugging test failures, (3) Writing new test files."'
---

Important: The name must exactly match the folder name (e.g., folder playwright-testing → name playwright-testing).

Content Organization

  • Start with context - What is this skill about? When should it be used? What problems does it solve?
  • Organize by workflow or concept - Use clear section headers, group related information, build from simple to complex
  • Point to implementation - Reference actual files, directories, and where configuration lives
  • Suggest what to study - Direct readers to real code patterns before working
  • End with important details - Configuration notes, common patterns, edge cases, or constraints

Common Mistakes to Avoid

  1. Over-Specification - Don't include line numbers or overly specific implementation details that will change. Point to files and patterns instead.
  2. Stale Examples - Don't include code examples in the body. Point readers to actual implementations to study.
  3. Generic Advice - Don't include universal best practices. Document domain-specific patterns and conventions.
  4. Missing Context - Always clarify why something is done a certain way, not just what to do.
  5. Ignoring Reality - Verify all claims against actual code before writing. Misinformation spreads through skills.

Writing Process

  1. Study existing skills - Before creating a new skill, review existing skills in the project to understand conventions, style, and structure. This ensures consistency and prevents duplicating existing content.
  2. Understand the domain - Study existing code, configuration, and patterns in the project
  3. Identify scope - What specific knowledge should this skill contain?
  4. Map to sources - Where in the codebase or documentation does this knowledge live?
  5. Write minimally - What's the smallest amount of context needed?
  6. Verify claims - Check that everything stated matches reality by reading actual code
  7. Cite sources - Point readers to where they can learn more (files, directories, configurations)
  8. Study-driven guidance - Direct people to real implementations, don't prescribe rules

Maintenance

Skills should be updated when:

  • Configuration files change (update file references, configuration notes)
  • Patterns evolve (update guidance on how things are done)
  • New tools or approaches are adopted (add sections for new workflows)
  • Guidance is found to be incorrect (verify, fix, and understand why it was wrong)

Always verify changes against actual code before updating a skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.61%
按下载量换算31

Claude

31.34%
按下载量换算26

Cursor

17.44%
按下载量换算14

Gemini CLI

10.03%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills