Tag reference
Note
Start with the required headers. Use capability and prompt headers to identify your pack’s content. Add optional section labels when they make instructions easier to follow. See the Tag system overview.
Why tags exist
Stable labels help authors organize instructions and auditors cite the relevant sections. An auditor still needs to examine what happened in the session before drawing conclusions.
Conventions
All tags are embedded in HTML comments:
<!--<tag attribute="value">-->
Content here
<!--</tag>-->HTML comments are hidden in rendered Markdown. They remain visible in the raw prompt text supplied to models. Do not put secrets or instructions you expect the model to ignore inside them.
Naming rules:
- Tag names are lowercase with underscores
- Versions are carried via a
versionattribute, not in the tag name - Attributes use standard
key="value"syntax
Charter-level tags
Optional conventions for structuring agent instructions. Agents are registered through .agent.yaml definitions, not by the presence of a charter tag.
Most commonly used:
charter,purpose,workflow,tooling,validation,definition_of_done
Document structure
| Tag | Purpose | Example attributes |
|---|---|---|
charter | Wraps entire charter document | name, version, scope |
metadata | Charter version, last reviewed, maintainer | — |
agentic_preamble | High-level identity, autonomy, mission | — |
purpose | Core role and goals | — |
Example:
<!--<charter name="Documentation Author" version="1.0" scope="docs">-->
# Documentation Author Agent
<!--<purpose>-->
Produce authoritative, action-oriented documentation for the TypeScript MCP
ecosystem, covering runbooks, feature guides, and integration references.
<!--</purpose>-->
...
<!--</charter>-->Inputs and outputs
| Tag | Purpose | Example attributes |
|---|---|---|
inputs | Expected inputs and context sources | — |
output_spec | Required outputs and their shape | — |
payload_schema_hint | Minimal schema hint for structured outputs | — |
Research and planning
| Tag | Purpose | Example attributes |
|---|---|---|
research_loop | Default research/exploration workflow | — |
research_priority | Precedence rules for sources of truth | — |
planning_checklist | Planning steps before implementation | — |
Example:
<!--<planning_checklist>-->
1. Confirm scope and audience via PM MCP task
2. Review existing docs for voice and structure
3. Create outline with section headers
4. Gather validation evidence requirements
<!--</planning_checklist>-->Responsibilities
Container tag responsibilities with nested sub-tags:
| Sub-tag | Purpose |
|---|---|
context_synthesis | How the agent aggregates domain info |
prompt_authoring | How prompts are written and structured |
quality_review | Quality gates and review behaviors |
library_stewardship | Maintaining prompt libraries and mappings |
portfolio_hygiene | Keeping agents, prompts, capabilities current |
These tags signal that agents are maintained assets, not fire-and-forget prompts.
Operations
Most commonly used:
workflow,tooling,tool_policy,definition_of_done
| Tag | Purpose | Example attributes |
|---|---|---|
workflow | Step-by-step from intake to completion | — |
tooling | CLI tools, MCP tools, utilities | — |
tool_policy | Allowed/disallowed tool usage | — |
success_conditions | When the task is considered done | — |
deliverables | Artifacts produced | — |
validation | Lint, MCP validation, consistency checks | — |
definition_of_done | Final, user-facing completion criteria | — |
Example:
<!--<definition_of_done>-->
- Documentation merged with validation evidence linked
- Reviewer feedback addressed
- Templates stored in repo and referenced in guide
<!--</definition_of_done>-->Registry operations
Container tag registry with nested sub-tags:
| Sub-tag | Purpose |
|---|---|
discover | How to discover existing agents via MCP |
update | How to update existing agents |
register | How to register new agents |
housekeeping | Ongoing registry hygiene |
Other charter tags
| Tag | Purpose |
|---|---|
collaboration | Coordination with other agents |
self_reflection | Agent self-evaluation |
fallback | Degraded mode guidance |
Behavioral fragment tags
Optional labels for organizing prompt content. To reuse a section across agents, put it in a shared prompt or capability and assign it to each agent.
Most commonly used:
identity,instructions,tool_usage_policy
Core behavior
| Tag | Purpose | Attributes |
|---|---|---|
identity | Short identity paragraph | — |
instructions | Main behavioral instructions | No model-selection behavior |
Example:
<!--<identity>-->
You are the Agent Session Auditor. Your only job is to produce a valid
audit JSON for the run.
<!--</identity>-->
<!--<instructions>-->
- Mode: `strict` (default)
- Required inputs: transcript, declared + observed prompts/versions
- Dimensions (0–100): instructionsAdherence, promptIntegrity, toolingCompliance...
<!--</instructions>-->Operational patterns
| Tag | Purpose | Attributes |
|---|---|---|
communication_guidelines | Tone, Markdown usage, when to ask questions | version |
execution_loop | Planning/execution loop, modes, stop conditions | version |
tool_usage_policy | MCP tool rules, what’s canonical/forbidden | version |
Example:
<!--<execution_loop version="1.0">-->
1. Parse task requirements
2. Plan approach (emit outline if complex)
3. Execute steps, updating status after each
4. Validate outputs against acceptance criteria
5. Summarize results and next steps
<!--</execution_loop>-->Guardrails
| Tag | Purpose | Attributes |
|---|---|---|
safety_and_data | Data handling and secrecy rules | version |
status_update_spec | Requirements for progress updates | version |
summary_spec | Requirements for final summaries | version |
Examples
| Tag | Purpose | Attributes |
|---|---|---|
examples | Container for example interactions | — |
user_query | Labeled input example | id |
assistant_response | Corresponding response example | id (matches user_query) |
Capability metadata tags
Used in prompt fragments to bind content to registered capabilities.
Most commonly used:
capability,guideline,checklist
capability
Identifies a capability in your pack. Keep its ID stable so agent assignments and audit references remain easy to follow.
<!--<capability id="planning.vmp" pack="valdr" role="workflow">-->
# Capability Prompt — `planning.vmp`
...
<!--</capability>-->| Attribute | Purpose | Example |
|---|---|---|
id | Canonical capability identifier | planning.vmp, auditor.base |
pack | Logical prompt pack or directory | valdr, acme |
role | Capability role (determines prompt ordering) | core, workflow, constraints |
Capability roles
The role attribute determines where the capability appears in the composed system prompt. Valdr supports six roles:
| Role | Priority | Purpose | Use for |
|---|---|---|---|
core | 0 | Foundational system-level behavior | Agent identity, base capabilities, system guardrails |
workflow | 1 | Operational instructions and execution patterns | Step-by-step processes, execution loops, task runners |
constraints | 2 | Rules, policies, and behavioral boundaries | Tool policies, security rules, compliance requirements |
context | 3 | Background information and domain knowledge | Domain definitions, reference material, terminology |
validation | 4 | Verification steps and completion criteria | Checklists, acceptance criteria, quality gates |
integration | 5 | External system interfaces and API behaviors | MCP tool usage, API patterns, external service interactions |
Capabilities sort by capability role, then backing prompt role (system, guide, policy, context, checklist), then lowercase capability key.
Use the six capability roles above in new packs. Prompt roles are a separate enum; a prompt’s guide role does not make guide a valid new capability role.
Scoring note: A matching capability hash shows that the content is unchanged. An auditor must still check whether the agent followed the instructions.
prompt
Wraps a top-level prompt registered in MCP.
<!--<prompt key="typescript.agent.guide" pack="valdr" role="guide">-->
...
<!--</prompt>-->| Attribute | Purpose |
|---|---|
key | Required stable prompt identifier |
pack | Workspace/focus area (e.g., valdr, team name) |
role | Prompt role: system, guide, checklist, policy, or context |
tags | Optional comma-separated prompt tags |
prompt_fragment
An optional label for a section within a prompt. To make that section independently reusable, register it as a prompt or capability.
| Attribute | Purpose |
|---|---|
id | Fragment identifier |
pack | Logical grouping (e.g., valdr, team name) |
role | Descriptive authoring metadata |
version | Optional version |
model | Does not select instructions automatically; use separate model variants |
guideline
Labels guidance an auditor can use as evidence. The type attribute describes a rule category; it does not automatically create a finding or enforce the rule.
<!--<guideline type="testing" id="unit-test-coverage" pack="valdr">-->
All new functions require unit tests with ≥80% coverage.
<!--</guideline>-->| Attribute | Purpose | Examples |
|---|---|---|
type | Guideline category | testing, security, observability, performance |
id | Optional identifier | — |
pack | Logical grouping | — |
version | Optional version | — |
checklist
Labels a checklist for the agent and auditor to consult. An auditor evaluates missing items in context and records any findings; the tag does not run the checks.
<!--<checklist type="pull-request" id="pr-checklist" pack="valdr">-->
- [ ] Tests pass
- [ ] No lint errors
- [ ] Docs updated
<!--</checklist>-->| Attribute | Purpose | Examples |
|---|---|---|
type | Checklist category | pull-request, release, validation |
id | Optional identifier | — |
pack | Logical grouping | — |
version | Optional version | — |
Authoring guidelines
- Use the required
idfor capability headers andkeyfor prompt headers. - Keep identifiers stable so bindings and audit evidence remain easy to follow.
- Keep capability roles and prompt roles distinct.
- Use optional section labels consistently so readers can find instructions quickly.
- Keep secrets out of prompts. Choose the intended model variant and configure tool permissions separately.
- Run
valdr validate-pack <pack-directory>before packaging; inspect the composed prompt and test behavior separately.