Agent skill

Writing Agent Instructions

by BuilderIO in BuilderIO/agent-native

How to write great agent instructions for an agent-native app or template: AGENTS.md, skills, and tool/action descriptions.

No licenceAuto-check passedAgent Workflows

Install Writing Agent Instructions

skills CLI
$ npx skills add BuilderIO/agent-native --skill writing-agent-instructions -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install BuilderIO/agent-native writing-agent-instructions --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-agent-instructions .claude/skills/writing-agent-instructions && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
writing-agent-instructions
GitHub stars
7.1k
Token cost
~4.4k tokens
SKILL.md length
2,239 words
Files
1
Skills in repo
102
Repo updated
First seen
Licence
None found

At a glance

How to write great agent instructions for an agent-native app or template: AGENTS.md, skills, and tool/action descriptions.

  • Reviewing AGENTS.md
  • SKILL.md covers Keep AGENTS.md small and…, Single-source AGENTS.md…, Keep generated guidance in sync and Budget the first model request, plus 12 more sections
  • Calls pnpm; needs OPENAI_API_KEY
  • Writing a SKILL.md

What it does

Writing Agent Instructions is an agent skill from BuilderIO/agent-native. How to write great agent instructions for an agent-native app or template: AGENTS.md, skills, and tool/action descriptions. Use when authoring or reviewing AGENTS.md, writing a SKILL.md, wording action descriptions, or deciding what belongs in instructions vs skills vs memory.

Its SKILL.md is about 4.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: A framework for building agentic apps.

When your agent uses it

  • Reviewing AGENTS.md
  • Writing a SKILL.md
  • Wording action descriptions
  • Deciding what belongs in instructions vs skills vs memory

Example prompts

  • “/writing-agent-instructions”

What it can do on your machine

Read from SKILL.md and the folder at commit e16da0c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Writing Agent Instructions loads about 4.4k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 2,239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~4.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 2,239 words (~4,375 tokens).

“This is a creator-facing guide. When you build an agent-native app or template, the agent's behavior is only as good as the instructions you give it. Three surfaces carry that guidance: AGENTS.md (the map), skills (the deep dives), and action/tool…”

— opening of SKILL.md by BuilderIO
name
writing-agent-instructions
scope
dev
metadata.internal
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/writing-agent-instructions of BuilderIO/agent-native.

Open the folder on GitHubat commit e16da0c

Compare with similar skills

Writing Agent Instructions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Writing Agent Instructions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Agent Instructions this skillBuilderIO/agent-native7.1k—~4.4kAutomated safety check: PassNone
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k19 repos~2.7kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 19 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

More from BuilderIO/agent-native

All 102 skills in this repo
  • Actions

    BuilderIO/agent-native

    How to create and run agent actions. An agent skill from BuilderIO/agent-native.

    7.1k GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Client Methods

    BuilderIO/agent-native

    Client method surface rules. An agent skill from BuilderIO/agent-native.

    7.1k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Adding A Feature

    BuilderIO/agent-native

    The four-area checklist every new feature must complete. An agent skill from BuilderIO/agent-native.

    7.1k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Address Feedback

    BuilderIO/agent-native

    Triage feedback from docs, issues, Slack threads, or pasted notes into verified bugs, UX proposals, unclear questions, and skipped noise.

    7.1k GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Audit Log

    BuilderIO/agent-native

    Durable, access-scoped, append-only record of who changed what app data, when, and whether it was the agent or a human.

    7.1k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Automations

    BuilderIO/agent-native

    Event-triggered and schedule-triggered automations with natural-language conditions.

    7.1k GitHub stars~4.4k tokensUpdated today
    Auto-check passed

Categories

Questions about Writing Agent Instructions

What does Writing Agent Instructions do?

How to write great agent instructions for an agent-native app or template: AGENTS.md, skills, and tool/action descriptions. Writing Agent Instructions is an agent skill from BuilderIO/agent-native.md, skills, and tool/action descriptions.

When should I use Writing Agent Instructions?

Writing Agent Instructions fits situations like: reviewing AGENTS.md; writing a SKILL.md; wording action descriptions; deciding what belongs in instructions vs skills vs memory.

How do I install Writing Agent Instructions in Claude Code?

Run `npx skills add BuilderIO/agent-native --skill writing-agent-instructions -a claude-code`. Or copy the skill folder (.agents/skills/writing-agent-instructions in BuilderIO/agent-native) into .claude/skills/writing-agent-instructions in your project. Claude Code loads it when a task matches its description.

How do I install Writing Agent Instructions in Codex?

Run `npx skills add BuilderIO/agent-native --skill writing-agent-instructions -a codex`. Or copy the skill folder (.agents/skills/writing-agent-instructions in BuilderIO/agent-native) into .agents/skills/writing-agent-instructions in your project. Codex loads it when a task matches its description.

Can I use Writing Agent Instructions in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BuilderIO/agent-native --skill writing-agent-instructions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-agent-instructions, .gemini/skills/writing-agent-instructions, .github/skills/writing-agent-instructions and .opencode/skills/writing-agent-instructions in your project.

What does Writing Agent Instructions need to run?

Going by SKILL.md and its folder, Writing Agent Instructions needs the command-line tools its instructions call (pnpm) and credentials named OPENAI_API_KEY.

Does Writing Agent Instructions access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Writing Agent Instructions safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Writing Agent Instructions use?

No licence was found for Writing Agent Instructions or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Writing Agent Instructions use?

About 4.4k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Writing Agent Instructions?

Skills that share tags, products or a category with Writing Agent Instructions: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Writing For Agents (bestofjs/bestofjs, 3.1k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Agent Instructions?

BuilderIO (a GitHub organization) maintains it in BuilderIO/agent-native, which has 7,087 GitHub stars. The repository holds 102 skills in this directory. The repository was last updated on October 8, 2026.

Source: BuilderIO/agent-native on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.