One-click install
npx skills add https://github.com/roerohan/skills --skill build-skill-roerohan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-skill
Source: https://github.com/roerohan/skills/tree/main/build-skill
Command: npx skills add https://github.com/roerohan/skills --skill build-skill-roerohan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the frustration of writing broken, non-compliant SKILL.md files that fail to load in OpenCode agents, ensuring your custom skills work on the first try and follow best practices for maintainability, token efficiency, and cross-agent compatibility.

Core Features & Use Cases

  • Frontmatter & Naming Compliance: Enforces exact YAML frontmatter rules, valid name patterns, and directory name matching to prevent loading failures and validation errors.
  • Token-Efficient Design: Teaches progressive disclosure patterns to split large skills into manageable reference files, avoiding context bloat and degraded agent performance in long conversations.
  • Built-in Automation Tools: Includes executable scripts to scaffold new skill directories, validate structure and frontmatter, and package distributable skill zip files for sharing.
  • Use Case: When you need to create a custom skill for OpenCode to automate repetitive team workflows like code review, release management, or API integration, use this Skill first to avoid common mistakes that cause skills to be ignored or fail at runtime.

Quick Start

Use the build-skill skill to generate a new compliant SKILL.md file for your custom OpenCode workflow, following all required naming conventions, frontmatter rules, and directory structure guidelines.

Frequently Asked Questions about build-skill

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

FAQPage Schema
Why does my OpenCode skill fail to load with a YAML frontmatter validation error?

OpenCode skills fail to load when the YAML frontmatter is missing required name and description fields, or when the directory name does not match the frontmatter name field exactly. Enforcing valid naming patterns and required fields resolves these loading failures.

How do I create a new OpenCode skill from scratch without common structural errors?

To create an OpenCode skill without errors, use executable scaffolding scripts to generate a compliant directory structure and apply valid YAML frontmatter rules. This ensures the SKILL.md file follows naming conventions and passes structural validation on the first try.

What is progressive disclosure in skill authoring and how does it reduce token usage?

Progressive disclosure in skill authoring splits large skills into manageable reference files to minimize token usage. This design pattern prevents context bloat and degraded agent performance in long conversations by loading only necessary information.

Can I validate and package custom OpenCode skills for distribution automatically?

Yes, you can validate and package custom OpenCode skills automatically using built-in executable scripts. These scripts enforce skill structure rules and generate distributable skill zip files for sharing across agents.

What's the best way to debug a broken SKILL.md file that OpenCode agents ignore?

The best way to debug a broken SKILL.md file is to run executable validation scripts that check for exact YAML frontmatter rules, valid name patterns, and directory name matching. This identifies incorrect frontmatter or structural issues causing the agent to ignore the skill.

Do I need to match my directory name to the frontmatter name field when authoring agent skills?

Yes, you must match your directory name to the frontmatter name field exactly when authoring agent skills. Directory naming that matches the frontmatter name field is a strict requirement to prevent loading failures and validation errors in OpenCode.