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

generate-skill生成技能

Agent Skill

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

总安装

870

周安装

37

GitHub Stars

2

下载量

305
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/antjanus/skillbox --skill generate-skill

简介

用于查找、检索和筛选相关信息,支持快速定位候选结果。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景使用。
  • 通过 GitHub 安装,使用 npx skills add 命令添加技能。
  • 需确认权限范围和维护状态,注意是否触发联网或命令执行。
  • generate-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Generate Skill - Interactive Skill Builder

Overview

This skill guides users through creating high-quality Claude Code skills using proven patterns from top community skills (obra/superpowers, Anthropic, Vercel). It asks targeted questions to understand requirements, then generates a complete SKILL.md file with appropriate structure, documentation, and best practices.

Core principle: Generate skills that activate reliably, enforce processes effectively, and consume context efficiently.

When to Use

Always use when user asks to:

  • "Create a skill for [topic]"
  • "Generate a SKILL.md for [workflow]"
  • "Build me a skill that does [task]"
  • "Help me make a custom skill"
  • "Turn these instructions into a skill"

Useful for:

  • Capturing team workflows as reusable skills
  • Documenting methodology enforcement (TDD, debugging, code review)
  • Creating automation skills (deployment, testing, setup)
  • Building domain-specific guidance (architecture, security, performance)

Avoid when:

  • User just wants general help (not skill creation)
  • Requirement is too vague to create useful skill
  • Task is better solved with existing skills

The Skill Generation Process

Phase 1: Discovery - Understanding Requirements

You MUST gather this information through AskUserQuestion:

  1. Skill purpose and triggers

- What should this skill help with? - When should Claude activate it? - What user phrases should trigger it?

  1. Skill type identification

- Methodology enforcement? (TDD, debugging process, code review) - Technical implementation? (project setup, build automation, deployment) - Rule-based auditing? (code quality, performance, accessibility) - Automation/integration? (browser testing, API calls, CI/CD) - Reference/knowledge? (library patterns, architecture, best practices)

  1. Content requirements

- Existing documentation to incorporate? - Specific rules or checklists? - Code examples needed? - Scripts or automation required?

  1. Enforcement level

- Strict methodology with "Iron Laws"? - Flexible guidance with recommendations? - Checklist-based verification?

Ask these questions interactively:

Use AskUserQuestion tool with these questions:

Question 1: "What task or workflow should this skill help with?"
- Header: "Purpose"
- Options:
  1. Enforce a development methodology (TDD, debugging, code review)
  2. Automate technical tasks (setup, deployment, testing)
  3. Audit code against rules (performance, accessibility, security)
  4. Provide reference knowledge (patterns, architecture, APIs)
  5. Integrate external tools (browsers, services, CI/CD)

Question 2: "What should trigger this skill?"
- Header: "Triggers"
- Options:
  1. Specific user phrases (list them)
  2. File types or patterns (e.g., *.tsx files)
  3. Project characteristics (e.g., Next.js projects)
  4. Development phases (e.g., before implementing features)

Question 3: "How strict should enforcement be?"
- Header: "Enforcement"
- Options:
  1. Strict - Iron Laws with mandatory phases
  2. Guided - Clear recommendations with Red Flags
  3. Flexible - Best practices and suggestions
  4. Reference only - Information when needed

Verification before proceeding:

  • Skill purpose clearly defined
  • Activation triggers identified
  • Skill type determined
  • Enforcement level chosen
  • User provided any existing documentation or rules

Phase 2: Pattern Selection

Based on skill type, select the appropriate pattern:

PatternUse WhenKey Sections
A: MethodologyTDD, debugging, code review, quality gatesPhases, Iron Laws, Red Flags, Verification Checklist
B: TechnicalProject setup, build automation, deploymentQuick Start, Configuration, Troubleshooting
C: AuditingCode quality, performance, accessibilityRule Categories, Output Format, Quick Reference
D: AutomationBrowser testing, API integration, CI/CDAuto-Detection, Configuration, Helper Functions
E: ReferenceLibrary patterns, architecture, best practicesCore Concepts, Patterns Library, Common Mistakes

For full pattern templates with complete structure skeletons, see Pattern Templates.

Verification before proceeding:

  • Pattern matches skill type
  • Pattern supports enforcement level
  • Pattern includes necessary sections

Phase 3: Content Generation

Generate SKILL.md with these 10 required components:

1. Frontmatter (CRITICAL)

---
name: skill-name-kebab-case
description: |
  Use when [trigger phrase 1], when asked to "[user phrase]",
  or when [situation]. Include multiple trigger variations for
  better activation. Be specific about WHEN to activate.
license: MIT
argument-hint: "<optional-args>"
metadata:
  author: [author-name]
  version: "1.0.0"
---

Required fields:

  • name - kebab-case skill identifier (used in /skill-name)
  • description - Trigger-rich activation text (see best practices below)

Optional fields:

  • license - License type (default: MIT)
  • metadata.author - Creator name
  • metadata.version - Semantic version (e.g., "1.0.0")
  • argument-hint - Top-level hint shown for skill arguments (e.g., <branch-name>)

Description field best practices:

  • Include 3-5 specific trigger phrases
  • Use "when" clauses for situations
  • Include user language ("when asked to 'do X'")
  • Be concrete, not vague
  • Avoid: "A skill for..." (too vague) or single generic descriptions

Hooks field (advanced): Use hooks to automate actions at specific points:

  • post_tool_use - Runs after Write, Edit, or other tools
  • stop - Runs before session ends (verification, cleanup)

2. Overview Section

Include 1-2 sentence description plus a Core principle one-liner.

3. When to Use Section

Include three subsections: "Always use when" (specific triggers), "Useful for" (broader use cases), and "Avoid when" (anti-cases with alternatives).

4. Main Content (Pattern-Specific)

Insert the selected pattern structure. See Pattern Templates for full skeletons.

5. Quick Reference (if applicable)

Add a summary table or command cheat sheet for fast lookup.

6. Red Flags (for methodology skills)

List 3-5 warning signs that indicate the user is going off-track. End with: "ALL of these mean: STOP. Return to Phase 1."

7. Examples Section

Include at least 2 Good/Bad code comparisons using <Good> and <Bad> tags. Show real-world scenarios with clear explanations.

8. Troubleshooting Section

Include 3-5 common problems with structured Problem / Cause / Solution format.

9. Integration Section

Document what the skill enables, what it pairs with, and what calls it.

10. References Section

Include source links: inspiration, official docs, and community resources.

Verification checklist:

  • All 10 components included
  • Trigger-rich description field
  • Clear examples with Good/Bad comparisons
  • Phase-based workflow (if methodology)
  • Troubleshooting section complete
  • Integration points documented

Phase 4: Finalization and Output

Before presenting skill to user:

  1. Run quality checklist:

- Description field has 3+ trigger phrases - Overview explains core principle clearly - Examples include Good/Bad comparisons - Troubleshooting section addresses common issues - Appropriate pattern for skill type - Under 500 lines or uses progressive disclosure - Integration points documented - References included

  1. Validate against anti-patterns:

- Vague description ("provides testing") - No examples - Missing troubleshooting - No clear triggers - Monolithic structure (>1000 lines without reference/) - No verification checklists (for methodology skills)

  1. Generate folder structure suggestion:
skill-name/
├── SKILL.md              # Core skill (generated)
├── reference/            # Optional: extended docs
│   ├── STANDARDS.md
│   └── EXAMPLES.md
├── scripts/              # Optional: automation
│   ├── setup.sh
│   └── execute.sh
└── lib/                  # Optional: helpers
    └── helpers.js
  1. Present complete output:

- Write full SKILL.md content - Include folder structure - Include installation instructions - Include usage examples

Final verification:

  • Complete SKILL.md generated
  • Quality checklist passed
  • Installation instructions provided
  • Usage examples included
  • No anti-patterns present

Deep Reference

For detailed guides, load these files when needed:

*Only load these when specifically needed to save context.*

Quality Signals

A well-generated skill has these properties:

  • Description field has 5+ trigger phrases covering natural user language variations
  • Discovery questions answered before any content was generated
  • Pattern matches skill type — methodology skills have phases and checklists, not just prose
  • Good/Bad examples use real scenarios — not abstract placeholder code
  • Troubleshooting addresses actual pain points — problems users encounter, not hypothetical edge cases
  • Under 500 lines or uses progressive disclosure with reference/ links
  • Verification checklists present in methodology skills — enforcement requires measurable checkpoints

Examples of Generated Skills

Example 1: Methodology Skill

User: "Create a skill for enforcing commit message conventions"

  • Pattern A (Methodology Enforcement)
  • Iron Law: "No commit without following format"
  • Phases: Validate, Format, Verify
  • Red Flags, Verification Checklist, Good/Bad commit message examples

Example 2: Automation Skill

User: "Make a skill that runs database migrations safely"

  • Pattern D (Automation/Integration)
  • Auto-detect: Database type, migration tool
  • Workflow: Backup, Dry run, Execute, Verify
  • Scripts: setup.sh, migrate.sh, rollback.sh

Example 3: Auditing Skill

User: "Build a skill to check Python code for security issues"

  • Pattern C (Rule-Based Auditing)
  • Rule categories: CRITICAL, HIGH, MEDIUM, LOW
  • Output format: file.py:123 CRITICAL: SQL injection risk
  • Quick reference table, vulnerable-to-secure examples

Troubleshooting Skill Generation

Problem: User request is too vague

Example: "Make me a skill for React"

Solution: Use AskUserQuestion to clarify: What aspect of React? What should it enforce or guide? When should it activate? What's the primary goal?

Problem: Skill type unclear

Example: "Create a skill for deployment"

Solution: Determine if it's Automation (Pattern D) for scripted deployment, Methodology (Pattern A) for process enforcement, or Reference (Pattern E) for best practices. Ask: "Should this automate deployment or guide the process?"

Problem: Generated skill too long

Cause: Too much content in SKILL.md

Solution: Keep SKILL.md under 500 lines. Move extensive content to reference/. Use progressive disclosure pattern. Link to reference files with clear descriptions.

Problem: Description doesn't trigger activation

Cause: Description too generic

Solution: Include specific phrases users actually say. Bad: "A skill for testing". Good: "Use when writing tests, implementing TDD, creating test suites, or when asked to 'test my code' or 'add test coverage'"

Problem: No clear examples

Cause: Skill too abstract

Solution: Always include at least 2 Good/Bad code comparisons, real-world scenarios, before/after examples, and common use cases.

Meta: This Skill's Structure

This skill itself follows Pattern B (Technical Implementation):

  • Phase 1: Discovery (questions to user)
  • Phase 2: Pattern Selection (match type to structure)
  • Phase 3: Content Generation (create SKILL.md)
  • Phase 4: Finalization (quality check and output)
  • Advanced topics: Available in Advanced Topics

References

Official Resources:

Integration

This skill enables:

  • Custom skill creation for any workflow
  • Capturing team processes as skills
  • Extending Claude Code capabilities
  • Documenting methodologies

Pairs with:

  • Existing skills as examples
  • Git workflows for versioning skills
  • Team documentation processes

Use this skill to create:

  • Methodology enforcement skills
  • Technical automation skills
  • Audit and validation skills
  • Domain knowledge skills
  • Tool integration skills

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.5%
按下载量换算111

Claude

27.72%
按下载量换算85

Cursor

18.32%
按下载量换算56

Gemini CLI

10.07%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills