Agent Development

A guide to creating autonomous agents for Copilot CLI plugins using Markdown files with settings such as when to run, which model to use, and which tools are allowed.

In plain words
What is it for?
Use it to create, configure, or debug an agent, write its system instructions, set trigger conditions, choose a model, or restrict its tools.
Why use it?
It helps agents start in the right situations and follow a defined process instead of being triggered too broadly or given unsuitable access.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/poorgramer-zack/copilot-cli-things/agent-development
Any agent
npx skills add Poorgramer-Zack/copilot-cli-things --skill agent-development
Clone the repo
git clone --depth 1 https://github.com/Poorgramer-Zack/copilot-cli-things

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.01982
Opus 5 $0.00022 $0.00991
Sonnet 5 $0.00009 $0.00396
Haiku 4.5 $0.00004 $0.00198

Measured 2d ago against content hash 0bc16c85245c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Agent Development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-agent.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plugin-dev/skills/agent-development/SKILL.md · 340 lines

How it starts

The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Development for Copilot CLI Plugins

Create autonomous agents (.agent.md) that handle complex, multi-step tasks independently. Define structure, triggering conditions, and system prompts.

  • Agents are FOR autonomous work, skills are FOR user-initiated actions
  • Markdown file format with YAML frontmatter
  • Triggering via description field
  • System prompt defines agent behavior
  • Model customization

Agent File Structure

Complete Format

---
description: Use this agent when [triggering conditions].
model: claude-sonnet-4.5
tools: [read, edit, grep]
---

You are [agent role description]...

**Your Core Responsibilities:**
1. [Responsibility 1]
2. [Responsibility 2]

**Analysis Process:**
[Step-by-step workflow]

**Output Format:**
[What to return]

Frontmatter Fields

description (required)

Defines when Copilot should trigger this agent. This is the most critical field.

Must include:

  1. Triggering conditions ("Use this agent when...")
  2. Context describing when agent is appropriate

Format:

Use this agent when [conditions].

Best practices:

  • Be specific about triggering conditions
  • Cover different phrasings of same intent
  • Be specific about when NOT to use the agent

model (optional)

Which model the agent should use.

Options:

  • claude-sonnet-4.5 - Claude Sonnet (balanced, default)
  • claude-opus-4.5 - Claude Opus (most capable, expensive)
  • claude-haiku-4.5 - Claude Haiku (fast, cheap)

Recommendation: Omit unless agent needs specific model capabilities. Defaults to session model.

tools (optional)

Restrict agent to specific tools.

Format: Array of tool names (lowercase, unquoted)

tools: [read, edit, grep, powershell]

Default: If omitted, agent has access to all tools

Best practice: Limit tools to minimum needed (principle of least privilege)

Common tool sets:

  • Read-only analysis: [read, grep, glob]
  • Code generation: [read, edit, grep]
  • Testing: [read, powershell, grep]
  • Full access: Omit field

Read the full file on GitHub · 340 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 340 lines · 0 tokens per session scan A 0bc16c85245c

Subscribe to this mod's changes

Agent Development is a skill published in the GitHub repository Poorgramer-Zack/copilot-cli-things (2 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 1,982 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories