structure-prompt

structure-prompt is a command for Cursor from emaraschio/cursor-commands. It costs 35 tokens per session (655 once invoked), scanned A, original, MIT.

A prompt-writing workflow that turns a rough request into a clear, reusable instruction for an AI agent.

In plain words
What is it for?
Use it when you need a copyable production prompt. It applies only the prompting guidelines that fit the request and reports which ones it used.
Why use it?
It makes requirements, constraints, verification, structure, and search priorities explicit before the task begins.

Command for Cursor

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/emaraschio/cursor-commands/structure-prompt
Clone the repo
git clone --depth 1 https://github.com/emaraschio/cursor-commands

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for structure-prompt

README.md
[![agentmods](https://agentmods.dev/badge/commands/emaraschio/cursor-commands/structure-prompt.svg)](https://agentmods.dev/commands/emaraschio/cursor-commands/structure-prompt)
Your own site
<a href="https://agentmods.dev/commands/emaraschio/cursor-commands/structure-prompt"><img src="https://agentmods.dev/badge/commands/emaraschio/cursor-commands/structure-prompt.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 655 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.1 $0.00035 $0.00655
Opus 5 $0.00017 $0.00328
Sonnet 5 $0.00007 $0.00131
Haiku 4.5 $0.00003 $0.00065

Measured 5d ago against content hash 95af62837a5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

structure-prompt 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 5d 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.

.cursor/commands/structure-prompt.md · 46 lines

How it starts

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

Overview

Compose a copyable, structured prompt from a rough ask by applying only the prompting dimensions that fit, then report what was applied or omitted. Produces a prompt; does not run the task. Full workflow: .cursor/skill-contracts/structure-prompt/SKILL.md (user install: ~/.cursor/skill-contracts/structure-prompt/SKILL.md).

Defaults

Setting Default
Dimensions Apply only those that fit (product verification, structured high-stakes, constraints-upfront, scannable structure, search priority, internal-first)
Effort Proportional to stakes; trivial asks get a light prompt, not the full template
Output One copyable prompt block + an applied/omitted note
Model Model-agnostic; no hardcoded model names or canonical leaked-prompt claims
Examples Generic names only (service-a)

Steps

  1. Read .cursor/skill-contracts/structure-prompt/SKILL.md for the full agent contract; if that file is missing, read ~/.cursor/skill-contracts/structure-prompt/SKILL.md.
  2. Execute phases in order (Intake -> Classify -> Fill template -> Deliver).
  3. Report the structured prompt and the applied/omitted dimension note in chat.

Anti-patterns

  • Match effort to stakes. Trigger: a simple or one-line request. Wrong: bolting on all six dimensions and dumping the full template. Correct: produce a light prompt proportional to the ask and note which dimensions are not applicable. Reason: over-engineering a trivial ask wastes the user's time and buries the actual request.
  • Produce the prompt, do not run it. Trigger: finishing the structured prompt. Wrong: executing the underlying task the prompt describes. Correct: return the copyable prompt and stop. Reason: this skill builds prompts, and running the task skips the user's review of the prompt.
  • Do not invent product facts. Trigger: the prompt asks about a tool's current capabilities. Wrong: asserting pricing, APIs, or a model name from memory. Correct: add a clause to verify against current docs and flag that product knowledge may be stale. Reason: stale or invented product claims propagate into every downstream answer.

Read the full file on GitHub · 46 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. 5d ago First seen · 46 lines · 35 tokens per session scan A 95af62837a5c

Subscribe to this mod's changes

structure-prompt is a command published in the GitHub repository emaraschio/cursor-commands (9 stars, last pushed 29d ago), licensed MIT. It adds 35 tokens to every session and 655 once invoked, about $0.0002 per session on Opus 5. 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.