template

A reusable code template for defining a command and its success and failure replies in a specification-driven Python project. A command represents a requested action and its reply carries the result.

In plain words
What is it for?
Use it to define command names, routing channels, identifiers, input fields, result fields, and an error message in a consistent format.
Why use it?
It provides the expected structure and placeholder names when creating a new command file.

Command

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 commands/voro6yov/spec-driven-development/template
Clone the repo
git clone --depth 1 https://github.com/voro6yov/spec-driven-development
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 921 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.00000 $0.00921
Opus 5 $0.00000 $0.00461
Sonnet 5 $0.00000 $0.00184
Haiku 4.5 $0.00000 $0.00092

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

Security

Grade A, and why

template 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.

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/domain-spec/skills/patterns/commands/template.md · 115 lines

How it starts

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

Commands Template

from dataclasses import dataclass
from typing import ClassVar

from ..shared import Command, CommandReply

__all__ = ["{{ command_name }}", "{{ success_reply_name }}", "{{ failure_reply_name }}"]

@dataclass
class {{ command_name }}(Command):
    COMMAND_CHANNEL: ClassVar[str] = "{{ command_channel }}"
    REPLY_CHANNEL: ClassVar[str] = "{{ reply_channel }}"

    {{ correlation_field_1 }}: str
    {{ correlation_field_2 }}: str
    {{ aggregate_id }}: str
    {{ input_field_1 }}: {{ input_type_1 }}

@dataclass
class {{ success_reply_name }}(CommandReply):
    {{ correlation_field_1 }}: str
    {{ correlation_field_2 }}: str
    {{ aggregate_id }}: str
    {{ result_field_1 }}: {{ result_type_1 }}
    {{ result_field_2 }}: {{ result_type_2 }} | None

@dataclass
class {{ failure_reply_name }}(CommandReply):
    {{ correlation_field_1 }}: str
    {{ correlation_field_2 }}: str
    {{ aggregate_id }}: str
    error_message: str

Placeholders — Command

Placeholder Description Example
{{ command_name }} Imperative verb name StartLabelProcessing, ProcessSidewallImage
{{ command_channel }} Channel for command routing LabelProcessing, SidewallProcessing
{{ reply_channel }} Channel for reply routing TireIdentificationReplies, DocumentReplies
{{ correlation_field_1 }} First correlation identifier conveyor_id, session_id
{{ correlation_field_2 }} Second correlation identifier warehouse_id, tenant_id
{{ aggregate_id }} ID of target aggregate tire_id, document_id
{{ input_field_1 }} Input data for processing label_text, image_path
{{ input_type_1 }} Type of input data str, bytes, dict[str, str]

Placeholders — Success Reply

Placeholder Description Example
{{ success_reply_name }} Success reply class name LabelProcessingSuccess, SidewallProcessingSuccess
{{ result_field_1 }} Primary result field extracted_product_name, classification_result
{{ result_type_1 }} Type of primary result ExtractedProductName, ClassificationResult
{{ result_field_2 }} Secondary result field processing_time, confidence_score
{{ result_type_2 }} Type of secondary result float, dict[str, float]

Read the full file on GitHub · 115 lines

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 · 115 lines · 0 tokens per session scan A 48a138e16703

Subscribe to this mod's changes

template is a command published in the GitHub repository voro6yov/spec-driven-development (4 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 921 tokens. 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.