Index of every page on this site: llms.txt
All skills
itsmay21 avatar

/writing-instructions-for-agents

@1180d75
Run it yourself

Writes prompts, skills, rules, and agent instructions as compact current conduct rather than historical explanation. Use when creating or editing text that another agent will follow.

Use this Skill: https://skilld.dev/gh/itsmay21/agent-expression/writing-instructions-for-agents

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈54 tokens for metadata: the name and description. ≈412 when used: this file.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈216 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Writing instructions for agents

Apply writing-for-the-reader. Here, the reader is an agent choosing and performing behavior from finite context.

Contract

  1. State the task and trigger. Make the required behavior and the conditions for using it discoverable in the description and opening lines.
  2. Specify observable conduct. Describe the action to take, the relevant inputs, and the result or stopping condition.
  3. Keep only behavior-changing context. Include a pipeline fact when the agent must act differently because of it. Express that difference as direct conduct.
  4. Order by execution. Put prerequisites before actions, actions before verification, and exceptions beside the step they alter.
  5. Use progressive disclosure. Keep the governing path compact and point to references for detail that is needed only sometimes.
  6. Preserve signal strength. Use ordinary declarative language. Let ordering and specificity carry priority.

Maintenance tests

  • Contribution: compare behavior with and without the instruction. Keep it when behavior changes usefully.
  • Environment: prefer a query or tool over prose that can become stale.
  • Duplication: give each instruction one canonical home and use a pointer elsewhere.
  • Generalization: state the underlying behavior rather than the session that revealed it.
  • Control boundary: compare the reader's inputs, action, validation, and output with each context sentence. Keep sentences that change at least one field.

Instructions describe what the next agent does now. The review record carries instruction history.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides guidelines for writing concise and effective instructions for AI agents. It contains no code, external dependencies, or security risks.

  • Socket2mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 1180d75. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago
metadata
{
  "layer": "application"
}

README badge

README badge for itsmay21/agent-expression/writing-instructions-for-agents