Skip to content
Visual explainer 2h 30m to learn 5 steps

Maintain a shared prompt pack for a team

Maintain versioned prompt files for planning, implementation, debugging, code review, test design and documentation, each with expected output.

By Invicly Tech, , in Prompt Engineering and Vibe Coding. About 9 minutes to read.

Topic 24 of 29

In short

A prompt pack is a small set of reusable prompt files kept in the repository, such as plan, implement, debug, review, test and document. Each file says what it expects as output and carries a version note. The team reviews changes to prompts like code and retires the ones nobody uses.

Think of it like this: It works like a shared recipe box: each card has the steps, the finished dish described, and a date for the last change.

Explained simply

If every person on a team writes their own prompts, results differ and good ideas stay hidden. A prompt pack fixes that. It is a small set of prompt files that the whole team keeps together in the repository and uses for the jobs they do most.

Start with six jobs: plan a change, implement it, debug a problem, review a diff, design tests and update docs. Each job gets one file. Keep each file short and written in plain words.

Every file should say what a good answer looks like. For example, 'a numbered plan with five steps or fewer', or 'a table with file, line, risk and fix'. Without that, nobody can tell if the prompt worked.

Prompts change, so add a version note with a date and a reason. Review changes in a pull request like code. Every few months, remove prompts that nobody uses. A small pack people trust beats a big pile they ignore.

Press Play on a diagram to walk through it one step at a time.

MapA starter prompt pack
prompts/
  • plan.prompt.md
    • Turns a request into steps
  • implement.prompt.md
    • Makes one scoped change
  • debug.prompt.md
    • Finds a cause from evidence
  • review.prompt.md
    • Checks a diff for risks
  • tests.prompt.md
    • Designs test cases
  • docs.prompt.md
    • Updates documentation
CyclePrompt lifecycle
  1. 1
    Draft

    Write the template and expected output

  2. 2
    Review

    A teammate checks it in a pull request

  3. 3
    Use

    The team runs it on real tasks

  4. 4
    Improve

    Update and add a version note

  5. 5
    Retire

    Remove prompts nobody uses

  6. Back to step 1
SequenceChanging a shared prompt
Author
Repository
Reviewer
  1. 1Pull request: update review prompt
    Author to Repository: Pull request: update review prompt
  2. 2Requests a review
    Repository to Reviewer: Requests a review
  3. 3Runs it on a sample diff
    Reviewer to Repository: Runs it on a sample diff
  4. 4Comments: output matches the spec
    Reviewer to Author: Comments: output matches the spec
  5. 5Adds a version note and merges
    Author to Repository: Adds a version note and merges

In depth

Choose the core templates

Do not write twenty prompts on day one. Look at the work the team repeats every week and start there. Six templates cover most of it. Plan turns a request into steps. Implement makes one scoped change. Debug finds a cause from evidence such as an error and a log. Review checks a diff for risks. Tests designs cases and edge cases. Docs updates readmes and comments.

Each template should do one job. If a prompt tries to plan, code and review at once, split it. Small prompts are easier to test and to improve.

  • Plan
  • Implement
  • Debug
  • Review
  • Tests and docs

Store prompts as files

Prompt files in the repository get all the benefits of code: history, review, owners and branches. VS Code supports reusable prompt files with the extension .prompt.md, commonly kept in .github/prompts, which you can run from chat. Check the current VS Code docs for exact locations and front matter fields.

Name files after the job, such as review-diff.prompt.md. Put a short description at the top. Keep any project rules the assistant should always follow in your tool's instructions file, and keep task templates in prompt files, so the two do not mix.

LayersWhere each kind of text lives
  1. 1
    Instructions file

    Always-on rules for the whole repo

  2. 2
    Prompt files

    Reusable task templates run on demand

  3. 3
    Task input

    The specific ticket, diff or error

  4. 4
    Expected output

    What a good answer looks like

Expected output and version notes

Expected output is the test for a prompt. Write it in the file in one or two lines: the format, the length and what to say when there is nothing to report. Then you can run the prompt on a sample task and compare the answer to the description.

Version notes record change. A line such as 'v1.2, 2026-12-02: added a line column to the findings table' is enough. When a result changes after an edit, you can see why. Put the note in the file, and describe larger changes in the pull request.

  • State format and length
  • Say what to do when nothing is found
  • Version and date in the file
  • Explain big changes in the pull request

Review and retire

A prompt pack decays if nobody tends it. Treat changes like code: open a pull request, ask a teammate to run the prompt on a sample, and merge when the result matches the expected output. Name an owner for each file.

Once a quarter, check which prompts people actually use. Merge duplicates, update ones that no longer match your stack and delete the rest. Deleting is healthy. Git keeps the history if you ever need it back.

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Pick the core task templates~30m
  2. 2
    Store prompts as files in the repo~30m
  3. 3
    Write expected output per template~30m
  4. 4
    Add version notes~30m
  5. 5
    Review and retire old prompts~30m

Key points

  • Start with the tasks the team repeats most: plan, implement, debug, review, test and document.
  • Store prompts as files in the repository so they have history, review and owners. In VS Code these are prompt files, for example .github/prompts/name.prompt.md.
  • Every prompt states its expected output, such as 'a numbered plan of five steps or fewer'.
  • Add a version note and date so people know what changed and why.
  • Review the pack on a schedule and delete prompts that are stale or duplicate.

Key terms

Tap a card to flip it. 0/5 known

Examples

markdown
---
description: Review a diff for risks
---
Review the changes in this branch.
List problems as: file, line, risk, suggested fix.
Say 'no findings' if there are none.

Expected output: a table of findings, or 'no findings'.
Version: 1.2 (2026-12-02) added the line column.

A short review prompt with expected output and a version note.

A review prompt with expected output

You want every reviewer to use the same checklist. Step 1: create review-diff.prompt.md. Step 2: list what to check. Step 3: say exactly how to report. Step 4: add the version line. Step 5: test it on a small sample diff and confirm the format. Evidence: the answer is a table or the words 'no findings'. Rollback: revert the file in git.

markdown
---
description: Review a diff for risks
---
Review the diff in this branch.
Check: missing tests, error handling, unsafe input,
and changes outside the task scope.

Expected output: a table with file, line, risk, fix.
Write 'no findings' if the table would be empty.
Version: 1.0 (2026-12-02) first release.

Retiring a stale prompt

Your team has two debug prompts that overlap. Step 1: ask who uses each. Step 2: pick the better one and merge useful lines from the other. Step 3: update the version note on the keeper. Step 4: delete the duplicate in a pull request that says why. Step 5: tell the team. Git history keeps the old file if someone needs it.

bash
git rm .github/prompts/debug-old.prompt.md
git commit -m "Remove duplicate debug prompt"
# recover later if needed
git log --diff-filter=D -- .github/prompts/debug-old.prompt.md

Quick reference

  • Start with six prompts: plan, implement, debug, review, tests, docs.
  • One job per prompt file.
  • Keep prompts in the repo, for example .github/prompts/*.prompt.md.
  • Every prompt states its expected output.
  • Add a version line with date and reason.
  • Review prompt changes in a pull request; retire unused ones.

Common mistakes

  • Copying prompts into private notes so every person has a different version.
  • Prompts with no expected output, so nobody can tell if a result is good.
  • Never deleting old prompts, which leaves a pile no one trusts.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Why store prompts in the repository?

Question 2

2What does the expected output section do?

Question 3

3How many jobs should one prompt file do?

Question 4

4What should you do with prompts nobody uses?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    List six prompt files for a team and write one line for what each does.

  2. Exercise 2medium

    Write a test-design prompt with a task, input, expected output and version note.

  3. Exercise 3hard

    Create a small prompt pack of three prompts in a throwaway repo. Run each on a sample, compare to the expected output, then update one prompt, bump its version and retire another.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is a prompt file the same as an instructions file?
No. An instructions file holds rules that always apply. A prompt file is a template you run for one task.
Will the same prompt give the same answer every time?
Not exactly, because models vary. Expected output helps you judge whether an answer is good enough, even when the words differ.
How big should a prompt pack be?
Small. Six to ten well-kept prompts beat dozens that nobody trusts.

Go deeper

ShareXLinkedInWhatsApp