invoice-builder copilot-instructions.md

invoice-builder copilot-instructions.md is an instructions file for GitHub Copilot from piratuks/invoice-builder. It costs 1,320 tokens per session, scanned A, original, MIT.

Project instructions for Invoice Builder, a desktop app for creating invoices and quotes and exporting them as PDFs. The app uses Electron, which lets web technologies run as a desktop program, plus a separate web server for web or container use.

In plain words
What is it for?
Planning and implementing Invoice Builder features, fixing bugs, changing the interface or backend, updating stored data, and verifying desktop or web builds.
Why use it?
They explain where the desktop interface, backend, bridge between them, database migrations, and web server live, reducing the risk of changing the wrong part of the app.

Instructions file for GitHub Copilot

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 instructions/piratuks/invoice-builder/copilot-instructions
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 invoice-builder copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/piratuks/invoice-builder/copilot-instructions.svg)](https://agentmods.dev/instructions/piratuks/invoice-builder/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/piratuks/invoice-builder/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/piratuks/invoice-builder/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,320 This file is loaded in full into every session.
When invoked 1,320 The same file — it is already loaded in full.
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.01320 $0.01320
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

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

Security

Grade A, and why

invoice-builder copilot-instructions.md 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 4d 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/copilot-instructions.md · 83 lines

How it starts

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

Copilot instructions for Invoice Builder

Overview

This repository is an Electron app with a separate backend webserver used for the web/docker mode. Key runtime pieces are:

  • Electron main process: built by vite via vite.electron.config.ts -> outputs dist-be/backend/main/main.cjs
  • Preload script: src/preload/preload.ts -> built with vite.preload.config.ts -> outputs dist-be/preload/preload.cjs
  • Renderer (React + Vite): src/renderer (dev: vite, build: vite build)
  • Optional backend webserver: src/backend/webserver/main.ts (dev: npm run dev:webserver, build: npm run build:webserver)
  • Migrations: source files in src/backend/shared/migrations, built into dist-be/backend/migrations using vite.migrations.config.ts.

BMAD-inspired workflow for agentic development

This repository uses a lightweight BMAD-style workflow for coding tasks. See AGENTS.md for the complete workflow guide, including when to use this workflow, default verification checks, and team expectations.

For new work with the agent-based approach:

Repository-specific expectations:

  • UI work usually touches src/renderer.
  • IPC or preload changes require matching updates in src/preload/preload.ts and the Electron main process under src/backend/main.
  • Database or persistence changes should be reviewed for migrations under src/backend/shared/migrations.
  • Webserver changes should be validated through the appropriate build or dev workflow.

Primary developer commands

  • Full local dev (electron + renderer + preload + migrations):
    • npm run dev
  • Frontend-only dev: npm run dev:react (uses Vite)
  • Backend webserver dev: npm run dev:webserver (runs src/backend/webserver/main.ts via tsx)
  • Build production bundles: npm run build (runs build:react, build:preload, build:migrations, build:electron)
  • Package for Windows: npm run package (calls electron-builder)
  • Tests: npm test (runs vitest), coverage: npm run test:coverage

Important patterns and conventions

  • Multi-config Vite builds: see vite.electron.config.ts, vite.preload.config.ts, and vite.migrations.config.ts. When adding runtime files for main/preload/migrations, update those configs.
  • IPC surface is declared in src/preload/preload.ts as window.electronAPI. When adding or renaming IPC channels:
    • Add/remove the ipcMain handlers in the Electron main process (src/backend/main)
    • Mirror the channel name and typings in src/preload/preload.ts and update related renderer types under src/renderer/shared/types
    • Keep the exposed function names stable (renderer code expects methods like electronAPI.getAllInvoices, electronAPI.addInvoice).
  • Web vs Electron mode:
    • Renderer detects runtime via isWebMode() (see src/renderer/shared/api/restApi) and either calls the web API or talks to window.electronAPI.
    • Mocking: MSW is enabled via VITE_ENABLE_MOCKS (set in .env.*), and the renderer starts the worker in src/renderer/main.tsx.
  • Database & migrations:
    • Migrations live in src/backend/shared/migrations and are built into dist-be/backend/migrations. Use npm run build:migrations for CI packaging.
    • The app uses SQLite (sqlite3). Be careful when changing schema—migrations need to run in a controlled order.

Read the full file on GitHub · 83 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. 4d ago First seen · 83 lines · 1,320 tokens per session scan A cda7680fa906

Subscribe to this mod's changes

invoice-builder copilot-instructions.md is an instructions file published in the GitHub repository piratuks/invoice-builder (978 stars, last pushed today), licensed MIT. It adds 1,320 tokens to every session, about $0.0066 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 instructions, from other repositories

sonicjs CLAUDE.md

Claude Code instructions for SonicJs-Org/sonicjs, covering sonicjs ai development guidelines, core technology stack, workspace boundary (conductor), architecture direction: document model (authoritative) and the 5 document tables (migration 0002documents.sql).

SonicJs-Org/sonicjs · 4,697 tokens

counterpoise-ledger CLAUDE.md

Instructions for jeffjjohnston/counterpoise-ledger, covering claude.md, project overview, development commands, essential commands and testing.

jeffjjohnston/counterpoise-ledger · 22,175 tokens

financial-analyst-skills AGENTS.md

Instructions for Ruinius/financial-analyst-skills, covering project documentation index, folder structure, skills overview and local server ports.

Ruinius/financial-analyst-skills · 382 tokens

rodya-caijing-studio AGENTS.md

AGENTS.md instructions for nekopunch11/rodya-caijing-studio, covering rodya-caijing-studio · 给 ai agent 的使用说明, 入口与路由, 不可破的硬约束(合规灵魂,破了整套工具就失效), docx 渲染路由(财经内容台例外) and 在 codex 中安装.

nekopunch11/rodya-caijing-studio · 1,489 tokens

mad-invoice-mcp CLAUDE.md

Claude Code instructions for mad-sol-dev/mad-invoice-mcp, covering claude.md, project overview, development commands, start the server and docker.

mad-sol-dev/mad-invoice-mcp · 2,534 tokens

hogwarts CLAUDE.md

Claude Code instructions for databayt/hogwarts, covering claude.md, quick start, the 9 critical rules, database safety (critical) and never do these (auto-blocked by hooks).

databayt/hogwarts · 3,209 tokens