prompt

prompt is a command for coding agents from juanmhidalgo/claude-plugins. It costs 36 tokens per session (824 once invoked), scanned A, original, MIT.

A command that creates a self-contained task prompt for an agent working in another code repository.

In plain words
What is it for?
Use it to package a cross-repository feature or fix with its objective, context, concrete details, and verification requirements.
Why use it?
It prevents important context, decisions, identifiers, and requirements from being lost between repositories.

Command

Part of the handoff plugin — 2 skills, 3 commands shipped together

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/juanmhidalgo/claude-plugins/prompt
Clone the repo
git clone --depth 1 https://github.com/juanmhidalgo/claude-plugins

Or install handoff, the plugin that ships this one along with the rest of its 2 skills, 3 commands.

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 prompt

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/prompt.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/prompt)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/prompt"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/prompt.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 824 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.00036 $0.00824
Opus 5 $0.00018 $0.00412
Sonnet 5 $0.00007 $0.00165
Haiku 4.5 $0.00004 $0.00082

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

Security

Grade A, and why

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

handoff/commands/prompt.md · 74 lines

How it starts

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

Cross-Repository Prompt

Generate a self-contained prompt based on the current conversation that can be used with Claude Code in another repository.

Additional context from user

$ARGUMENTS

Instructions

Review the conversation history and generate a prompt that:

  1. Is fully self-contained - the receiving agent has zero context about this conversation
  2. Includes all specific details - IDs, resource names, configurations, domain names, error messages, or any other concrete identifiers discussed
  3. States the objective clearly - what action needs to be taken in the other repository
  4. Provides decision context - any decisions made or options considered that the other agent should know about

Formatting

  • Use fenced code blocks with language identifier for any code, JSON, config, or shell commands (e.g., json, bash)
  • Use inline code backticks for endpoints, paths, variable names, and short identifiers (e.g., POST /api/v2/users)

Verification (before presenting)

Before outputting the prompt, cross-reference it against the conversation:

  1. Re-read the user's original request and any follow-up messages
  2. Check every requirement — roles, permissions, constants, schema fields, endpoints, config values mentioned in the conversation
  3. Check every decision — if the conversation discussed tradeoffs or made choices, verify the prompt includes the chosen approach and why
  4. Check specifics — IDs, error codes, field names, migration steps. Vague summaries lose critical details.

If anything is missing, add it before presenting. Do NOT ask the user — just include it.

Output

Output a single prompt block ready to copy-paste. Do not include preamble or explanation outside the prompt itself.

Delivery (after presenting the prompt)

If cross-session messaging is available, offer to deliver the prompt directly instead of relying on copy-paste:

  1. Call ListAgents. If the tool is unavailable or errors, skip this section silently — the copy-paste output above is the fallback.
  2. Identify which local session is working in the target repository. Match by working directory when the listing shows one; if it doesn't (some versions list only name and status), fall back to the session's name, which usually references its repo. If neither identifies a session confidently, treat it as zero matches.
  3. Exactly one match: ask the user whether to send the handoff to that session. If they agree, deliver the full prompt verbatim as plain text with SendMessage, and set notify_when_idle: true on the same call so this session hears back when the receiving session finishes.
  4. Zero or multiple matches: list the candidates (if any) and let the user pick or decline. Never guess the target.

Read the full file on GitHub · 74 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 · 74 lines · 36 tokens per session scan A afceafef9956

Subscribe to this mod's changes

prompt is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 10d ago), licensed MIT. It adds 36 tokens to every session and 824 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-09-03.