Skip to main content

engineer-skill

Improve agent skills by validating structure, optimizing YAML frontmatter for triggering accuracy, and refining SKILL.md prompt content for reliable agent behavior. Use this whenever the user wants to create, improve, debug, or optimize an agent skill, fix skill triggering issues, extract deterministic instructions into scripts, restructure a skill for progressive disclosure, or reduce a bloated SKILL.md body.

来源信息

仓库
Tyler-R-Kendrick/copilot-auto-training
最近来源活动
2026年4月10日 15:57
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
11 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
engineer-skill
description
Improve agent skills by validating structure, optimizing YAML frontmatter for triggering accuracy, and refining SKILL.md prompt content for reliable agent behavior. Use this whenever the user wants to create, improve, debug, or optimize an agent skill, fix skill triggering issues, extract deterministic instructions into scripts, restructure a skill for progressive disclosure, or reduce a bloated SKILL.md body.
argument-hint
Describe the skill to improve, the specific concern (frontmatter triggering, body content, structure, or all), and any observed failure modes.
license
MIT
compatibility
Requires Python 3.11+. Works in any environment that supports the agentskills.io specification.
metadata
{"author":"Tyler Kendrick","version":"0.1.0"}
# Engineer Skill Use this skill to systematically improve agent skills by treating frontmatter optimization and prompt content optimization as two separate, composable concerns. Read `references/skill-structure-spec.md` for the complete directory layout and file conventions before starting. ## When to use this skill - The user wants to create a new agent skill from scratch. - The user wants to improve an existing skill's triggering accuracy (frontmatter). - The user wants to improve an existing skill's execution reliability (body content). - The user has a bloated SKILL.md and wants to restructure it with progressive disclosure. - The user wants to extract deterministic instructions from prose into executable scripts. - The user wants to validate a skill against the agentskills.io specification. - The user asks about skill best practices, structure, or conventions. Do not use this skill for general prompt engineering that is not tied to agent skill files. Use this skill only when the target artifact is a skill directory with a SKILL.md file or the user is creating one. ## Required inputs - The path to an existing skill directory, or a description of the skill to create. - The improvement focus: frontmatter (triggering), body (execution), structure, or all. - Any observed failure modes: under-triggering, over-triggering, inconsistent agent behavior, bloated context. ## Core workflow Follow this order: 1. **Validate** the skill structure and spec compliance by running `python scripts/validate_skill.py <skill-path>`. 2. **Analyze** the body for extraction opportunities by running `python scripts/analyze_skill_body.py <skill-path> --json`. 3. **Prioritize** improvements based on validation errors first, then analysis recommendations. 4. **Improve frontmatter** if triggering is the concern. Read `references/frontmatter-optimization.md` for guidance. 5. **Improve body content** if execution reliability is the concern. Read `references/prompt-content-optimization.md` for guidance. 6. **Extract deterministic work** to scripts when the analysis identifies sequential or mechanical instructions. 7. **Re-validate** after changes to confirm spec compliance. ## Two-concern separation ### Frontmatter (triggering concern) The frontmatter controls when agents discover and invoke the skill. Optimization targets: - Description wording and coverage of user intents. - Explicit trigger phrases and negative boundaries. - Name clarity and discoverability. Read `references/frontmatter-optimization.md` before making frontmatter changes. ### Body content (execution concern) The body controls what agents do after triggering. Optimization targets: - Instruction clarity and ordering. - Progressive disclosure through referenced files. - Extraction of deterministic logic to scripts. - Section sizing under recommended thresholds. Read `references/prompt-content-optimization.md` before making body changes. ## Output contract When improving a skill, structure the response as: 1. `Validation results`: output from the validation script 2. `Analysis results`: output from the analysis script 3. `Improvement plan`: prioritized list of changes 4. `Changes made`: specific edits with rationale 5. `Re-validation`: confirmation of spec compliance after changes
在 GitHub 查看