invoice-builder: Command for GitHub Copilot

.github/prompts/bmad-dev.prompt.md

bmad-dev is a command for GitHub Copilot from piratuks/invoice-builder. It costs 0 tokens per session (474 once invoked), scanned A, original, MIT.

An implementation command for coding agents that applies a clearly defined task and its acceptance criteria. It is intended to run after the work has been scoped and checked.

In plain words
What is it for?
It helps implement planned changes, follow delivery or sprint slices, verify affected code, and fix type, formatting, and lint problems before finishing.
Why use it?
It gives the agent a focused process for making the smallest safe change and checking relevant formatting, linting, and TypeScript errors.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is piratuks/invoice-builder's own configuration. It tells GitHub Copilot how to work on invoice-builder itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything invoice-builder configures →

About the project

Invoice Builder is an offline desktop application for creating, managing, and exporting invoices and quotations, with business data stored in a local database file. It is designed for freelancers, contractors, and small businesses that need local control of their invoicing data and PDF documents. The catalogue commands, agents, and instructions provide coding-agent workflows for working with the application.

piratuks/invoice-builder · 1,344 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to piratuks/invoice-builder. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/piratuks/invoice-builder/main/.github/prompts/bmad-dev.prompt.md
Clone the repo
git clone --depth 1 https://github.com/piratuks/invoice-builder

Made for: GitHub Copilot.

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 bmad-dev

README.md
[![agentmods](https://agentmods.dev/badge/commands/piratuks/invoice-builder/bmad-dev/github.svg)](https://agentmods.dev/commands/piratuks/invoice-builder/bmad-dev)
Your own site
<a href="https://agentmods.dev/commands/piratuks/invoice-builder/bmad-dev"><img src="https://agentmods.dev/badge/commands/piratuks/invoice-builder/bmad-dev/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 bmad-dev

Your own site · 80×15
<a href="https://agentmods.dev/commands/piratuks/invoice-builder/bmad-dev"><img src="https://agentmods.dev/badge/commands/piratuks/invoice-builder/bmad-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 474 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.
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.00000 $0.00474
Opus 5.5 $0.00000 $0.00190
Sonnet 5.5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00047

Measured 27d ago against content hash d4491a0380a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bmad-dev 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 27d 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/prompts/bmad-dev.prompt.md · 36 lines

How it starts

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

BMAD dev prompt

Use this prompt for implementation once the scope and acceptance criteria are clear.

Invocation

  • Command: help
  • Lists the available Dev commands and what each does.
  • Command: develop <task_description>
  • This is the workflow behind the Dev agent's develop command. When invoked, substitute the task description into {{TASK_DESCRIPTION}} and implement the change according to the scope and acceptance criteria supplied by the PO output.
  • Example: develop "Add a validation rule for invoice due dates."

Task

{{TASK_DESCRIPTION}}

Role

Act as the developer implementing the change.

Instructions

  1. Implement the smallest safe change that satisfies the scope.
  2. Keep the change focused on the relevant layer.
  3. If Delivery or Scrum plans are provided, implement in agreed slice order and surface deviations early.
  4. Verify with the most relevant command(s).
  5. Check for TypeScript issues in the affected files and fix them before finishing. Treat errors such as possibly undefined values, unsafe property access, or other type mismatches as required fixes, not optional cleanup.
  6. After implementation, run npm run format and npm run lint:fix to ensure formatting and linting are corrected.
  7. Update docs/history.md with a new entry at the top. Add the {DATE}, {VERSION} as placeholders and describe the change under either "New features & improvements" or "Bug Fixes".
  8. Update README.md and the relevant page(s) under docs/guides/ when the change impacts setup, usage, behavior, or screenshots.
  9. If documentation needs a new or updated image, add a {IMAGE} placeholder where the image should be inserted.
  10. If shared story/task artifacts are used under artifacts/, update implementation checklist and verification notes before handoff; do not create new artifact instances by default.
  11. Leave concise comments where the logic is non-obvious or would benefit future maintainers.
  12. Summarize what changed, what was verified, and any residual risk.

Read the full file on GitHub · 36 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. 27d ago Changed d4491a0380a9
  2. 1mo ago First seen · 36 lines · 0 tokens per session scan A fc913e77e4c3

Subscribe to this mod's changes

bmad-dev is a command published in the GitHub repository piratuks/invoice-builder (1,344 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 474 tokens. 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-08.