generate-prompt

generate-prompt is a skill for Claude Code, Codex from canonical/copilot-collections. It costs 89 tokens per session (2,549 once invoked), scanned A, original, Apache-2.0.

A generator for reusable prompt-template files stored in .github/prompts/.prompt.md. These are text instructions with replaceable values for recurring tasks such as explaining code or fixing bugs.

In plain words
What is it for?
Use it to create templates for explaining selected code, fixing a bug from an error and context, adding tests, or documenting an API.
Why use it?
It avoids rewriting the same request each time while keeping simple, repeatable tasks separate from larger workflows or permanent instructions.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create templates for explaining selected code, fixing a bug from an error and context, adding tests, or documenting an API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/canonical/copilot-collections/generate-prompt
About the project

Canonical Copilot Collections is a repository for organizing and distributing GitHub Copilot instructions, prompts, agents, and skills across Canonical repositories. Teams configure repositories to subscribe to shared collections, such as Python, documentation, or Juju development guidance, and keep those assets synchronized.

canonical/copilot-collections · 29 stars · on GitHub

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.

Any agent
npx skills add canonical/copilot-collections --skill generate-prompt
Clone the repo
git clone --depth 1 https://github.com/canonical/copilot-collections

Made for: Claude Code, Codex.

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 generate-prompt

README.md
[![agentmods](https://agentmods.dev/badge/skills/canonical/copilot-collections/generate-prompt/github.svg)](https://agentmods.dev/skills/canonical/copilot-collections/generate-prompt)
Your own site
<a href="https://agentmods.dev/skills/canonical/copilot-collections/generate-prompt"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/generate-prompt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-prompt

Your own site · 80×15
<a href="https://agentmods.dev/skills/canonical/copilot-collections/generate-prompt"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/generate-prompt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00089 $0.02549
Opus 5 $0.00044 $0.01274
Sonnet 5 $0.00018 $0.00510
Haiku 4.5 $0.00009 $0.00255

Measured 9d ago against content hash 61c6082b9236, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

generate-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 9d 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.

.github/skills/generate-prompt/SKILL.md · 379 lines

How it starts

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

Prompt Template Generator (Template Engineer)

Overview

This skill generates Prompt Template files that are pure text templates optimized for:

  • Repeatability: Same task, different inputs
  • Efficiency: Manual trigger, snapshot of current editor
  • Simplicity: No scripts, no thinking processes, just templates

Key distinction:

  • Prompts (this skill) = Quick reusable snippets with variables
  • Skills = Complex workflows with scripts/references
  • Agents = Persistent roles with tool constraints
  • Instructions = Always-on rules

Example prompts:

  • "Explain this code" (variable: selected code)
  • "Fix this bug" (variables: error message, code context)
  • "Add unit tests" (variables: function code, framework)
  • "Document this API" (variables: endpoint code, method)

Workflow

Step 1: Intent Validation

Confirm the user wants a Prompt Template (not a skill, agent, or instruction).

Decision tree:

  • User wants a quick, repeatable snippet? → Continue to Step 2
    • Examples: "Explain code", "Fix bug", "Add tests"
  • User wants a complex workflow with scripts?
    • → STOP. Redirect to generate-agent-skills instead
    • Explain: Skills have workflows, scripts, progressive disclosure
  • User wants a persistent role/perspective?
    • → STOP. Redirect to generate-agent instead
    • Explain: Agents have identity, tool constraints, thinking processes
  • User wants always-on rules?
    • → STOP. Redirect to generate-path-instructions or generate-repo-instructions
    • Explain: Instructions provide continuous guidance

Proceed only if creating a simple, reusable prompt template.


Step 2: Task Analysis

Goal: Understand what the prompt does and when it's used.

Load the task analysis checklist:

cat references/task_analysis_checklist.md

Work through the checklist to define:

  1. Task Description - What does this prompt do?
  2. Trigger Conditions - When would someone use this?
  3. Input Requirements - What data does it need?
  4. Output Format - What should it produce?
  5. Constraints - Any rules or limitations?

Read the full file on GitHub · 379 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 379 lines · 89 tokens per session scan A 61c6082b9236

Subscribe to this mod's changes

generate-prompt is a skill published in the GitHub repository canonical/copilot-collections (29 stars, last pushed 6d ago), licensed Apache-2.0. It adds 89 tokens to every session and 2,549 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens

enhance-prompt

Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.

google-labs-code/stitch-skills · 41 tokens

seedance-vocab-en

This skill should be used when an English Seedance 2.0 prompt needs clearer production wording, less generic prose, or precise vocabulary for camera, lighting, motion, VFX, audio, and constraints. Route blocked prompts through seedance-filter for context and boundary review.

Emily2040/seedance-2.0 · 61 tokens

ideogram4

Prompting patterns for Ideogram 4 text-to-image — best-in-class in-image text rendering and exact color/layout control via structured JSON captions. Use when generating images that need legible on-image text (title cards, thumbnails, logos, signage, CTAs), precise brand colors, or controlled spatial layout. Triggers…

digitalsamba/claude-code-video-toolkit · 99 tokens

omh-model-optimization

This is a Hermes-native model-optimization workflow skill.

rlaope/oh-my-hermes · 82 tokens

hve-builder

Create, improve, refactor, replace, review, or validate prompts, instructions, agents, subagents, and skills, and build or extend HVE workflows. Use when authoring or cleaning up Copilot customizations, deciding which instructions to keep or retire, or connecting an HVE workflow to project-specific knowledge, tools…

microsoft/hve-core · 73 tokens