trainer-train-skill

Orchestrates the trainer optimization loop for SKILL.md agent skill targets.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Tyler-R-Kendrick/copilot-auto-training --skill trainer-train-skill-tyler-r-kendrick
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trainer-train-skill
Source: https://github.com/Tyler-R-Kendrick/copilot-auto-training/tree/main/skills/trainer-train-skill
Command: npx skills add https://github.com/Tyler-R-Kendrick/copilot-auto-training --skill trainer-train-skill-tyler-r-kendrick

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Optimizing an agent skill's SKILL.md file requires coordinating workspace setup, dataset synthesis, judge-mode selection, spec-compliance validation, and safe write-back, which is error-prone when done ad hoc. This Skill provides the orchestration contract for running that full trainer loop against skill-type targets. ## Core Features & Use Cases - Two-Concern Optimization: Separates frontmatter triggering (description field) from body content execution quality, routing observed failure modes like under-triggering or bloated context to the right concern. - Spec-Compliance Gating: Enforces agentskills.io rules before write-back, including required YAML fields, the 500-line progressive disclosure limit, unchanged name field, and isolation of evaluator-only fields. - Judge-Mode Inference: Defaults to llm_judge scoring for open-ended skill quality while honoring explicit row-level scoring declarations. - Use Case: A skill under-triggers because agents never invoke it. Use this Skill to initialize the trainer workspace, prioritize frontmatter description optimization, run an optimization pass, and write back a validated candidate. ## Quick Start Run the trainer loop on my skill at skills/researcher-research/SKILL.md to fix its under-triggering description and validate the result before write-back.

Frequently Asked Questions about trainer-train-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a SKILL.md file that under-triggers?▼

Under-triggering is a frontmatter concern handled by optimizing the description field, which is the primary triggering mechanism. The loop initializes a workspace at <skill-dir>/.trainer-workspace/SKILL/, requires the engineering review checkpoint, then runs at least one optimization pass before validated write-back.

What judge mode should I use for skill optimization datasets?▼

Skill targets default to llm_judge mode because skill quality is open-ended and not a string-match task, even when rows contain expected fields. An explicit row-level scoring declaration of deterministic overrides the default and is treated as authoritative.

What is the line limit for a SKILL.md body?▼

The SKILL.md body must stay under 500 lines per the progressive disclosure rule. Longer content must be extracted into references/ files with explicit pointers from the body, and reference files over 300 lines need a table of contents.

Can the trainer loop change a skill's name field during optimization?▼

No. The name field must remain unchanged throughout optimization, and any candidate that renames the skill is rejected as a write-back blocker. Only the description and optional fields like argument-hint or metadata may be updated.

When should I not use the skill trainer loop?▼

Do not use it for raw prompt files, Python code targets, or agent instruction contracts like AGENTS.md. Those target types route to other specialist loops via the parent trainer skill's target-routing reference.