How to add a prompt or instruction


title: “Add a prompt or instruction” type: “how-to” layout: “default” —

This how-to recipe explains how to add a new prompt, instruction, or Diátaxis-style instruction file and prepare a PR.

Goal

Where to add files

Naming and conventions

Steps

  1. Create the new file in the appropriate folder

  2. Add a brief header with intent and target audience

# My New Prompt

Purpose: Assist with X
Audience: novice developers

...prompt content...
  1. Run a quick lint or manual check
    • Ensure there are no trailing tabs, and that the prompt follows the project’s style.
  2. Add tests or a smoke-check (optional)
    • If your prompt relies on a script or example, add a small example under scripts/ or data/ that demonstrates it.
  3. Open a PR
    • Use a descriptive Conventional Commit message, e.g. feat(prompts): add my-new-prompt.md.
    • In the PR description, include: purpose, example usage, and any security considerations.

Security checklist

PR checklist (suggested)