Agentry
Menu

agentry/drafter

built-inv1.15.4

Drafts a QuickAgent from a description, searching the registry and the web; AI Review reads every result first.

Built into Agentry. The application runs this package itself; it is published here so you can read how it works. Its README says what Agentry gives it beyond its manifest.

Declared capabilities

knowledge: ships 1

Ships knowledge: drafting-guide (211.3 KB), in the release archive under knowledge/<name>/, scanned with the version.

Capabilities are the author's declaration and the basis for policy and scanning. The registry cannot enforce them at run time. Your runtime should.

MCP servers & tools

agentry run serves exactly the tools this contract declares, through a per-run MCP gateway. An undeclared capability is a tool that does not exist at run time.

Tools the runner grants

Manifest declarationTool(s) granted
(always)write_report — reports → the run's output folder
(always)list_inputs, read_input, search_inputs — operator-provided input files, read-only

MCP servers involved

  • QuickAgent Tools — the runner's companion server, served through a per-run Docker MCP Gateway; its tool surface is exactly the table above.

In an embedded install

Installed into an existing coding agent (agentry install), the same contract maps to the host's built-in tools — enforcement there is the host's. Allowed tools: none declared (host defaults apply).

Install

agentry install agentry/drafter@1.15.4
git clone https://secureagentry.net/agentry/drafter.git
git clone ssh://git@git.secureagentry.net/agentry/drafter.git

claude-skill is this agent's default target, so the flag is not needed.

knowledge/drafting-guide/wiki/draft/instructions.md

---
title: Writing the instructions
type: guide
summary: How to write the AGENT.md a draft returns, the instruction its QuickAgent's agent follows; the six headings in order, what each holds, how much to write, and what to leave out because the System Prompt already says it.
sources: [web:https://docs.secureagentry.net/runner/, web:https://docs.secureagentry.net/quickagents/]
updated: 2026-10-09
---

# Writing the instructions

The instructions are the `AGENT.md` the QuickAgent's agent follows on every run. Write them in your own words. Draw on what you read, but never copy a page's text, and list every source you used in `sources`.

## What they must carry

Most QuickAgents run with no network and no web search, so the instructions carry the domain knowledge the run cannot look up: what a capable model would need from an expert to do this task well, the way a full skill for the task would teach it. Write it so a capable model with only the declared tools can do the job.

The runner already tells every run about its sandbox, its inputs under `/inputs`, the intake answers, its tools, how to write its reports and how to treat untrusted text (see [How a QuickAgent run works](../runtime/how-a-run-works.md)). Leave all of that out [src: web:https://docs.secureagentry.net/runner/].

## How much

As much as the task warrants: a few kilobytes for a small task, 20 to 30 KB for a big one, and **at most 32,768 bytes**. A file past that is refused and sent to a repair turn to be shortened, which costs more than writing it to size the first time.

## The six headings

Use these six headings, in this order, every time, even when a part is one line:

- `## Role`: one or two sentences.
- `## Inputs`: the task, each intake answer and input file by what it means, and what to do when one is missing.
- `## Steps`: numbered, each one action, with the decision rules for that step: what to check, what to choose, and when to stop. Name the tool a step uses (`read_input`, `fetch`, a server's tool by its exact name, `run_command` with the command).
- `## Output`: exactly what it returns, and in what format, with a skeleton to copy when the format has parts. A result the person wants as a PDF is written in Markdown with `write_report` and then turned into the PDF with `export_pdf`; the skeleton is the Markdown's (see [How a QuickAgent run works](../runtime/how-a-run-works.md#when-the-result-is-a-pdf)). A result that is a file is marked as the run's deliverable, with `deliverable: true` and a one-line `title`, on the call that writes it; notes and drafts the run writes along the way are not (see [When the result is a file](../runtime/how-a-run-works.md#when-the-result-is-a-file)).
- `## Background`: the domain facts the steps rely on: definitions, formats, standards, thresholds, procedures and short worked examples, in your own words.
- `## Checks`: missing or malformed input, the edge cases, and the checks the result must pass before it is returned.

## What it does and does not do

- It returns its result; it does not post, send or upload anything unless the description asks for that.
- It uses only what the manifest declares. A step that needs a host, a command, a key or a server the manifest does not declare will fail in the run, and reads to the registry's scan as an undeclared capability (see [What checks a draft](review.md)).
- Facts you were not able to check, write as defaults the person can change, never as lookups the run should make.
- It never tells the agent to ignore, override or reveal its instructions, and never calls anything "safe" or "secure".

Worked examples of whole drafts are on [Worked drafts](examples.md).

Agentry uses only strictly necessary cookies — they sign you in and keep the site secure. Nothing here tracks you, and there are no advertising or analytics cookies. Privacy policy