Skip to content

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 version attribute, 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

TagPurposeExample attributes
charterWraps entire charter documentname, version, scope
metadataCharter version, last reviewed, maintainer—
agentic_preambleHigh-level identity, autonomy, mission—
purposeCore 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

TagPurposeExample attributes
inputsExpected inputs and context sources—
output_specRequired outputs and their shape—
payload_schema_hintMinimal schema hint for structured outputs—

Research and planning

TagPurposeExample attributes
research_loopDefault research/exploration workflow—
research_priorityPrecedence rules for sources of truth—
planning_checklistPlanning 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-tagPurpose
context_synthesisHow the agent aggregates domain info
prompt_authoringHow prompts are written and structured
quality_reviewQuality gates and review behaviors
library_stewardshipMaintaining prompt libraries and mappings
portfolio_hygieneKeeping 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

TagPurposeExample attributes
workflowStep-by-step from intake to completion—
toolingCLI tools, MCP tools, utilities—
tool_policyAllowed/disallowed tool usage—
success_conditionsWhen the task is considered done—
deliverablesArtifacts produced—
validationLint, MCP validation, consistency checks—
definition_of_doneFinal, 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-tagPurpose
discoverHow to discover existing agents via MCP
updateHow to update existing agents
registerHow to register new agents
housekeepingOngoing registry hygiene

Other charter tags

TagPurpose
collaborationCoordination with other agents
self_reflectionAgent self-evaluation
fallbackDegraded 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

TagPurposeAttributes
identityShort identity paragraph—
instructionsMain behavioral instructionsNo 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

TagPurposeAttributes
communication_guidelinesTone, Markdown usage, when to ask questionsversion
execution_loopPlanning/execution loop, modes, stop conditionsversion
tool_usage_policyMCP tool rules, what’s canonical/forbiddenversion

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

TagPurposeAttributes
safety_and_dataData handling and secrecy rulesversion
status_update_specRequirements for progress updatesversion
summary_specRequirements for final summariesversion

Examples

TagPurposeAttributes
examplesContainer for example interactions—
user_queryLabeled input exampleid
assistant_responseCorresponding response exampleid (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>-->
AttributePurposeExample
idCanonical capability identifierplanning.vmp, auditor.base
packLogical prompt pack or directoryvaldr, acme
roleCapability 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:

RolePriorityPurposeUse for
core0Foundational system-level behaviorAgent identity, base capabilities, system guardrails
workflow1Operational instructions and execution patternsStep-by-step processes, execution loops, task runners
constraints2Rules, policies, and behavioral boundariesTool policies, security rules, compliance requirements
context3Background information and domain knowledgeDomain definitions, reference material, terminology
validation4Verification steps and completion criteriaChecklists, acceptance criteria, quality gates
integration5External system interfaces and API behaviorsMCP 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>-->
AttributePurpose
keyRequired stable prompt identifier
packWorkspace/focus area (e.g., valdr, team name)
rolePrompt role: system, guide, checklist, policy, or context
tagsOptional 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.

AttributePurpose
idFragment identifier
packLogical grouping (e.g., valdr, team name)
roleDescriptive authoring metadata
versionOptional version
modelDoes 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>-->
AttributePurposeExamples
typeGuideline categorytesting, security, observability, performance
idOptional identifier—
packLogical grouping—
versionOptional 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>-->
AttributePurposeExamples
typeChecklist categorypull-request, release, validation
idOptional identifier—
packLogical grouping—
versionOptional version—

Authoring guidelines

  1. Use the required id for capability headers and key for prompt headers.
  2. Keep identifiers stable so bindings and audit evidence remain easy to follow.
  3. Keep capability roles and prompt roles distinct.
  4. Use optional section labels consistently so readers can find instructions quickly.
  5. Keep secrets out of prompts. Choose the intended model variant and configure tool permissions separately.
  6. Run valdr validate-pack <pack-directory> before packaging; inspect the composed prompt and test behavior separately.