搜索

PythonReactSEOPDF
GitHub Skill

create-edit-agent-skill

Official skill generator for VS Code Agent Skills; scaffolds new skills with correct directory structure and validation, and is the upstream dependency for authoring or modifying any other skill in this repository.

crossxwill☆ 5 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Create Agent Skill

This skill scaffolds high-quality Agent Skills that comply with VS Code standards and "progressive disclosure" best practices.

Capabilities

  • Scaffold: Creates the .github/skills/<name>/ directory structure with a required SKILL.md and optional resource folders.
  • Template: Generates a valid SKILL.md optimized for the agent's context window.
  • Validate: Verifies the structure and frontmatter using the attached Python script.

Instructions

1. Analyze the Request

Determine the goal of the new skill.

  • Name:
    • Convert to kebab-case (e.g., "analyze-logs").
    • Prefer short, verb-led names that describe the action.
    • Keep names under 64 characters.
    • The skill folder name must exactly match name.
  • Description: CRITICAL. This is the primary field the agent uses to decide whether to load the skill. It must clearly state what the skill does and when to use it (file types, tools, workflows, triggers).
2. Generate Files

Create the following structure in the workspace to support modularity. Only create the resource folders you actually need.

.github/skills/<skill-name>/
├── SKILL.md           # The core instruction file
├── scripts/           # (Optional) Executable helpers for deterministic/repeated work
├── templates/         # (Optional) Response templates / standardized formats
├── references/        # (Optional) Long-form docs loaded only when needed
└── assets/            # (Optional) Files used in outputs (images, templates, boilerplate)
3. Apply the Skill Template

Use this format for the new SKILL.md. Put "when to use" details in description, because that is used for skill selection.

---
name: <kebab-case-name>
description: <Detailed description of WHAT this skill does and WHEN to use it.>
---

# <Human Readable Title>

## Purpose
<2-3 sentences explaining the problem this skill solves>

## Usage
- <Trigger phrase 1>
- <Trigger phrase 2>

## Instructions
1. <Step 1: e.g., Run the analysis script>
   - Run: `./scripts/analyze.py`
2. <Step 2: e.g., Format the output>
   - Respond using the format defined in: `./templates/response.md`
4. Verify Structure

After creating the files, run the validation script to ensure compliance: python .github/skills/create-edit-agent-skill/scripts/validate.py .github/skills/<skill-name>

Examples

Example 1: PDF Reader Skill

Input: "Create a skill for reading PDF files." Output:

  • Directory: .github/skills/pdf-reader
  • Structure: Includes scripts/extract_pdf.py and templates/summary_format.md
  • Description: "Extracts text from PDF files using a Python script and summarizes the content."
  • Instructions: "Run ./scripts/extract_pdf.py to parse the file, then display results using ./templates/summary_format.md."

Best Practices

  • Concise is key: Keep SKILL.md focused on essential workflow. Offload details into references/ and keep those files discoverable from SKILL.md.
  • Progressive disclosure: Prefer a small SKILL.md + optional references/ files; load detailed docs only when needed.
  • Avoid clutter: Do not add extra documentation files (README, changelog, etc.) that don't directly help the agent execute tasks.
  • Relative paths: Refer to resources using relative paths (e.g., ./scripts/myscript.py).
  • Description is key: If the agent isn't using your skill, the description is likely too vague—make triggers explicit.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!