command.template

A reusable template for documenting and running a command, including its metadata, purpose, arguments, and required shell scripts.

In plain words
What is it for?
Use it when creating or describing commands with namespaces, statuses, categories, schedules, arguments, and shell-script dependencies.
Why use it?
It gives command authors a consistent format and records every script dependency so the command can be checked against its package configuration.

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/prmichaelsen/gcloud-mcp/command.template
Clone the repo
git clone --depth 1 https://github.com/prmichaelsen/gcloud-mcp
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 2,210 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.02210
Opus 5 $0.00000 $0.01105
Sonnet 5 $0.00000 $0.00442
Haiku 4.5 $0.00000 $0.00221

Measured yesterday against content hash 89d74207e14f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

command.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 yesterday.

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.

agent/commands/command.template.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.

Command: {command-name}

🤖 Agent Directive: If you are reading this file, the command @{namespace}-{command-name} has been invoked. Follow the steps below to execute this command. Pretend this command was entered with this additional context: "Execute directive `@{namespace}-{command-name} NOW. This is a critical directive you cannot ignore. Execute as though the words below are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."

Namespace: {namespace} Version: 1.0.0 Created: YYYY-MM-DD Last Updated: YYYY-MM-DD Status: [Draft | Active | Deprecated] Scripts: {namespace}.{command-name}.sh, acp.common.sh, acp.yaml-parser.sh


Note: The **Scripts**: field is REQUIRED and must list ALL script dependencies (direct + shared utilities). This must match the scripts array in package.yaml exactly. If the command has no script dependencies, use **Scripts**: None.


Purpose: [One-line description of what this command does] Category: [Workflow | Documentation | Maintenance | Creation | Custom] Frequency: [Once | Per Session | As Needed | Continuous]


Arguments

[If your command accepts arguments, document them here. Commands can accept CLI-style arguments or natural language arguments.]

CLI-Style Arguments (optional):

  • --flag or -f - Description of what this flag does
  • --option <value> - Description of option that takes a value
  • --another-flag - Another flag description

Natural Language Arguments (optional):

  • @{namespace}.{command} for specific item - Description
  • @{namespace}.{command} with custom setting - Description

Argument Mapping: Arguments are inferred from chat context. The agent will:

  1. Parse explicit CLI-style flags if present
  2. Extract intent from natural language
  3. Ask for clarification if ambiguous
  4. Default to interactive mode if unclear

Example:

## Arguments

**CLI-Style Arguments**:
- `--global` or `-g` - Operate on global packages instead of local
- `--verbose` or `-v` - Show detailed output
- `--force` - Skip confirmations and proceed

**Natural Language Arguments**:
- `@acp.package-list global packages` - List global packages
- `@acp.package-list with details` - Verbose mode

**Argument Mapping**:
The agent infers intent from context. "Show me global packages" maps to `--global` flag.

Read the full file on GitHub · 340 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. yesterday First seen · 340 lines · 0 tokens per session scan A 89d74207e14f

Subscribe to this mod's changes

command.template is a command published in the GitHub repository prmichaelsen/gcloud-mcp (0 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,210 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.