build-skill

Create and validate OpenCode agent skills with YAML frontmatter and bash scripts.

Updated Dec 31, 2024
One-click install
npx skills add https://github.com/msmps/dotfiles --skill build-skill-msmps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-skill
Source: https://github.com/msmps/dotfiles/tree/main/.agents/skills/build-skill
Command: npx skills add https://github.com/msmps/dotfiles --skill build-skill-msmps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured framework for building effective skills for OpenCode agents, ensuring adherence to best practices and standards.

Core Features & Use Cases

  • Skill Creation Guidelines: Offers comprehensive guidelines for skill naming, description, and structure.
  • Skill Type Decision Tree: Helps decide the appropriate skill type based on the complexity of the task.
  • Quick Start Template: Provides a minimal viable skill template to get started quickly.
  • Reference Materials: Includes detailed references for anatomy, frontmatter, progressive disclosure, and patterns.

Quick Start

Use the build-skill to create a new skill for OpenCode agents by running the command: init_skill.sh <skill-name> <output-dir>.

Frequently Asked Questions about build-skill

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

FAQPage Schema
How do I create OpenCode agent skills with proper YAML frontmatter?

To build OpenCode agent skills with proper YAML frontmatter, use a structured framework providing naming conventions and progressive disclosure guidelines. This ensures correct metadata formatting and consistent agent skill design.

What is progressive disclosure in skill development?

Progressive disclosure in skill development is a design pattern that structures instructions so agents load only necessary context. It minimizes token usage by revealing detailed references only when the specific task requires them.

Do I need bash scripting to initialize an OpenCode skill?

Yes, you need bash scripting to initialize an OpenCode skill. The initialization process relies on a bash script to generate the minimal viable skill template and validate the directory structure.

How do I decide which skill type to use for an OpenCode task?

To decide which skill type to use for an OpenCode task, consult a skill type decision tree. This evaluates task complexity and guides you toward the appropriate structural pattern for your specific automation requirements.

Can I validate OpenCode skill structure before deployment?

You can validate OpenCode skill structure before deployment using built-in validation scripts. These scripts check YAML frontmatter formatting and verify that your skill adheres to required naming conventions and progressive disclosure patterns.

Why does my OpenCode skill fail to load instructions correctly?

OpenCode skills fail to load instructions correctly when YAML frontmatter is misformatted or naming conventions are violated. Following a validated skill template ensures the agent parses metadata and instructions without errors.