Create skill

From BuilderIO/agent-native · View interactive version

Create skill is an AI agent skill from the GitHub repository BuilderIO/agent-native. How to create new skills for an agent-native app. Use when adding a new skill, documenting a pattern the agent should follow, or creating reusable guidance for the agent.

How to use this skill

Skill file

Create a Skill

When to Use

Create a new skill when:

Don't create a skill when:

TypeScript).

(personal, per-user). See capture-learnings.

Interview

Before writing the skill, answer these:

  1. What should this skill enable? — The core purpose in one sentence.
  2. Which of the four areas does it serve? — UI, actions, skills/instructions,

or application state (see the adding-a-feature skill). Most skills are

about how to touch one or more of these correctly.

  1. When should it trigger? — Describe the situations in natural language.
  2. Does it involve context awareness? — Does the agent need to know what the

user is looking at? If so, reference the navigation application-state key and

the view-screen action pattern. See the context-awareness skill.

  1. What type of skill? — Pattern, Workflow, or Generator (see below).
  2. Does it need supporting files? — References (read-only context) or none.

Keep it minimal; push depth into references/.

Skill Types and Templates

Pattern (architectural rule)

For documenting how things should be done:

---
name: my-pattern
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Pattern Name]

## Rule

[One sentence: what must be true]

## Why

[Why this rule exists]

## How

[How to follow it, with code examples]

## Don't

[Common violations]

## Related Skills

[Which skills compose with this one]

Workflow (step-by-step)

For multi-step implementation tasks:

---
name: my-workflow
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Workflow Name]

## Prerequisites

[What must be in place first]

## Steps

[Numbered steps with code examples]

## Verification

[How to confirm it worked]

## Troubleshooting

[Common issues and fixes]

## Related Skills

Generator (scaffolding)

For creating files from templates:

---
name: my-generator
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Generator Name]

## Usage

[How to invoke — what args/inputs are needed]

## What Gets Created

[List of files and their purpose]

## Template

[The template content with placeholders]

## After Generation

[What to do next — wire up sync, add routes, register the action, etc.]

## Related Skills

Naming Conventions

Frontmatter Fields

| Field | Required | Value |

| ------------- | -------- | --------------------------------------------- |

| name | yes | Hyphen-case, matches the directory name |

| description | yes | What the skill covers AND when it triggers |

| scope | no | both (default) \| runtime \| dev |

For how to word a description and which scope a skill should get, follow

writing-agent-instructions — it owns those rules.

Tips

references/ files.

Anti-Patterns

through the agent chat (see delegate-to-agent).

useActionQuery so the UI updates (see real-time-sync).

File Structure

.agents/skills/my-skill/
├── SKILL.md              # Main skill (required)
└── references/           # Optional supporting context
    └── detailed-guide.md

Related Skills

apps and templates you ship to others.

a skill; one-offs go to AGENTS.md or memory/MEMORY.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.