write-a-skill

Draft Pi agent skills with YAML frontmatter and structured workflow contracts.

5|Updated May 21, 2026
One-click install
npx skills add https://github.com/TrebuchetDynamics/pi-package-goal --skill write-a-skill-trebuchetdynamics
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: write-a-skill
Source: https://github.com/TrebuchetDynamics/pi-package-goal/tree/main/skills/write-a-skill
Command: npx skills add https://github.com/TrebuchetDynamics/pi-package-goal --skill write-a-skill-trebuchetdynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps users design and write new agent skills that load on demand, stay safe, and have a clear workflow and contract instead of vague instructions.

Core Features & Use Cases

  • Progressive-disclosure skill drafting: Produces a concise SKILL.md entry point while moving deep details into references/ to reduce token-heavy standing context.
  • Structured workflow and contracts: Guides the author to define entry protocol, topology checks, verification gates, red lines, and an output contract for reliable operation.
  • Repo-aligned implementation planning: Encourages studying existing inventory and repo conventions (manifests, tests, third-party notices) so the new skill fits the package language and safety expectations.
  • Resource organization: Suggests optional directories like scripts/ for deterministic tasks and references/ for in-depth guidance.

Quick Start

Ask the assistant to create a new skill named "my-skill" that targets your trigger phrase, includes a verification gate, and stores detailed guidance under references.

Frequently Asked Questions about write-a-skill

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

FAQPage Schema
How do I structure an agent skill to avoid token overload?▼

Skill authoring uses progressive disclosure to avoid token overload by drafting a concise entry point and moving deep details into references. This keeps standing context lightweight while retaining in-depth operational guidance.

What is progressive disclosure for agent workflows?▼

Progressive disclosure for agent workflows separates a concise trigger entry point from detailed references. This design reduces token-heavy standing context and allows the agent to load deep operational guidance on demand.

How do I write a YAML frontmatter for a new Pi skill?▼

Writing YAML frontmatter for a new Pi skill requires defining a name and description. You must also provide an instruction body specifying the entry protocol, topology check, verification gate, red lines, and output contract.

Does every agent skill need a safety contract and verification gate?▼

Every agent skill needs a safety contract and verification gate to ensure reliable operation. Defining red lines and an output contract establishes clear boundaries for safe execution and expected workflow results.

What is the best way to organize scripts and references in a skill repository?▼

Organizing scripts and references in a skill repository involves using dedicated directories for deterministic tasks and in-depth guidance. This aligns with repo conventions and maintains a maintainable layout for the package.

When should I not use a progressive disclosure layout for skill authoring?▼

You should not use a progressive disclosure layout for skill authoring if your workflow lacks deep details or complex references. Simple tasks with minimal instructions do not require separating triggers from a references directory.