Generate skill
Skill Benknightdark/neo-skills/.agents/skills/generate-skill
Neo Skills 是專為現代 AI Agent 設計的全方位能力擴充套件。本專案透過標準化的通訊架構,為 AI 代理安裝可插拔的「技能模組 (Skills)」,使其不僅僅是一個聊天機器人,而是能轉化為具備「感知-推理-行動」能力的多領域專家。
npx -y skills add Benknightdark/neo-skills --skill generate-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
引導使用者建立、更新、審查或最佳化高品質 Agent Skill 定義檔 (SKILL.md),包含官方規格、description 觸發語、references/scripts/assets/evals 結構,以及 5 種核心設計模式。
SKILL.md
4.6 KB, as published. Nobody here has run it
Skill Generator Specification
Perceive
- Receive the user's request to create, update, convert, review, or optimize an Agent Skill.
- Identify the target task, usage scenarios, pain points, expected outputs, target agent client, and whether the user already has source material such as docs, runbooks, examples, code, prompts, or previous failures.
- If high-impact information is missing, ask concise follow-up questions before generating final files. Do not invent domain rules that should come from the user or existing project material.
Reason
- Load Official Agent Skills Reference: Load and analyze
.agents/skills/generate-skill/reference/AgentSkillsOfficialReference.mdfirst. Treat it as the source of truth forSKILL.mdfrontmatter, directory structure, progressive disclosure, description triggering, scripts, references, assets, evals, and client implementation considerations. - Load Reference Patterns: Load and analyze
.agents/skills/generate-skill/reference/SkillCategory.mdto understand 5 core design patterns:- Tool Wrapper: Suitable for encapsulating APIs, libraries, or team development conventions.
- Generator: Suitable for consistently producing structured documents in specific formats (e.g., reports, templates).
- Reviewer: Suitable for systematically checking the quality of code or outputs (e.g., security, style).
- Inversion: Suitable for guided requirement gathering, ensuring the Agent does not guess answers prematurely.
- Pipeline: Suitable for complex tasks that require a strict execution order and cannot skip steps.
- Load Reference Templates: Load and analyze the standard templates under
.agents/skills/generate-skill/templates/(includingSKILL.md,evals.json,eval_queries.json, andpep723.py) to provide standard, high-quality boilerplate content to the user. - Load ReAct Guidelines: Load and analyze
.agents/skills/generate-skill/reference/ReAct_vs_CLI.mdwhen the skill involves local exploration, CLI behavior, autonomous debugging, cross-file analysis, CI/CD assistance, or another agentic operating-system workflow. - Requirement Matching: Based on the user's requirement, choose the most suitable pattern or combination of patterns. Use official Agent Skills format as the baseline; Perceive/Reason/Act is optional structure, not a mandatory official requirement.
- Progressive Disclosure Planning: Decide what belongs in
SKILL.mdversusreferences/,scripts/,assets/, andevals/. KeepSKILL.mdconcise and load detailed material only when needed. - Description & Validation Planning: Draft a trigger-focused
description, identify likely should-trigger and should-not-trigger prompts, and plan output quality checks for important or shareable skills.
Act
- Pattern Recommendation & Explanation: Present the recommended pattern(s), why they fit, and whether a ReAct-style autonomous workflow or simpler CLI/tool-wrapper approach is appropriate.
- Gather Necessary Variables: Guide the user to provide key information needed to generate or update the skill, including:
- Skill name (
name) - Trigger-focused description (
description) - Target agent/client and compatibility constraints
- Source material, domain rules, examples, and gotchas
- Required references, scripts, assets, templates, or evals
- Optional metadata, license, and allowed tool expectations
- Skill name (
- Generate File Content:
- Generate a standards-compliant
SKILL.mdwhose first line is---. - Ensure
nameis valid and matches the skill directory. - Keep the main body procedural, concise, and grounded in provided expertise.
- Use relative paths from the skill root for all
references/,scripts/, andassets/. - Guide the user to adopt the standard structure by generating supporting files (
evals/evals.json,eval_queries.json, and non-interactive scripts) based on the loaded templates.
- Generate a standards-compliant
- Quality Gate: Before finalizing, check the output against
.agents/skills/generate-skill/reference/AgentSkillsOfficialReference.md, especially frontmatter validity, description trigger quality, progressive disclosure, resource paths, script safety, and eval recommendations. - Provide Advanced Suggestions: Recommend trigger evals, output quality evals, reference files, templates, or scripts that would make the skill more reliable in real use.