acp.pattern-create

A command for creating a new pattern file in an ACP project or package. ACP is the convention used by the command’s package, and the command applies its namespace and template rules.

In plain words
What is it for?
Creating a pattern from a template, enforcing its namespace, optionally working from a draft, and updating package.yaml and README.md.
Why use it?
It guides the creation process and updates related package and documentation files so the new pattern follows the project’s expected structure.

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/acp.pattern-create
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,689 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.02689
Opus 5 $0.00000 $0.01345
Sonnet 5 $0.00000 $0.00538
Haiku 4.5 $0.00000 $0.00269

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

Security

Grade A, and why

acp.pattern-create 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.

agent/commands/acp.pattern-create.md · 387 lines

How it starts

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

Command: pattern-create

🤖 Agent Directive: If you are reading this file, the command @acp.pattern-create has been invoked.

This is a CREATION command - you will create files directly, no shell scripts needed.

Follow the steps below to create a pattern file with proper namespace and automatic package updates.

Namespace: acp Version: 1.0.0 Created: 2026-02-20 Last Updated: 2026-02-20 Status: Active Scripts: None


Purpose: Create pattern files with namespace enforcement, draft support, and automatic package updates Category: Creation Frequency: As Needed


What This Command Does

This command creates a new pattern file with intelligent namespace handling, optional draft file support, and automatic updates to package.yaml and README.md. It provides a guided workflow for creating well-structured patterns that follow ACP conventions.

Key Features:

  • Context-aware (detects if in package vs project)
  • Automatic namespace enforcement
  • Draft file support with clarification workflow
  • Auto-updates package.yaml and README.md
  • Uses pattern.template.md as base

Use this when: Creating a new pattern in an ACP project or package.


Prerequisites

  • ACP installed in current directory
  • Pattern template exists (agent/patterns/pattern.template.md or similar)
  • (Optional) Draft file prepared if using draft workflow

Arguments

Context Capture Arguments (optional — passed to @acp.clarification-capture directive):

Argument Alias Behavior
--from-clarification <file> --from-clar Capture decisions from a specific clarification file
--from-clarifications --from-clars Capture from all recent clarifications
--from-chat-context --from-chat Capture decisions from chat conversation
--from-context (none) Shorthand for all sources (clarifications + chat)
--include-clarifications (none) Alias for --from-clars

Read the full file on GitHub · 387 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 · 387 lines · 0 tokens per session scan A f88e690d399a

Subscribe to this mod's changes

acp.pattern-create 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,689 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.