Backlog.md copilot-instructions.md

A repository guide for Backlog.md, a command-line task-management tool that stores work items in Markdown files. It covers setup, development commands, tests, formatting, configuration, and source layout.

In plain words
What is it for?
Use it when developing Backlog.md, running its Bun commands, testing TypeScript changes, formatting or linting code, building the CLI, or managing configuration.
Why use it?
It explains the project's expected workflow and checks in one place. This reduces uncertainty about how to install dependencies, change settings, and verify code.

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/mrlesk/backlog.md/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/MrLesk/Backlog.md

Made for: GitHub Copilot.

Per session 467 This file is loaded in full into every session.
When invoked 467 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.00467 $0.00467
Opus 5 $0.00234 $0.00234
Sonnet 5 $0.00093 $0.00093
Haiku 4.5 $0.00047 $0.00047

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

Security

Grade A, and why

Backlog.md 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 3d 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 · 51 lines

What it actually says

⚠️ IMPORTANT

  1. Read the README.md
  2. Read the agent-guidelines.md

Commands

Development

  • bun i - Install dependencies
  • bun test - Run tests
  • bun run format - Format code with Biome
  • bun run lint - Lint and auto-fix with Biome
  • bun run check - Run all Biome checks (format + lint)
  • bun run build - Build the CLI tool
  • bun run cli - Uses the CLI tool directly

Testing

  • bun test - Run all tests
  • bun test <filename> - Run specific test file

Configuration Management

  • bun run cli config list - View all configuration values
  • bun run cli config get <key> - Get a specific config value (e.g. defaultEditor)
  • bun run cli config set <key> <value> - Set a config value with validation

Core Structure

  • CLI Tool: Built with Bun and TypeScript as a global npm package (npm i -g backlog.md)
  • Source Code: Located in /src directory with modular TypeScript structure
  • Task Management: Uses markdown files in backlog/ directory structure
  • Workflow: Git-integrated with task IDs referenced in commits and PRs

Code Standards

  • Runtime: Bun with TypeScript 5
  • Formatting: Biome with tab indentation and double quotes
  • Linting: Biome recommended rules
  • Testing: Bun's built-in test runner
  • Pre-commit: Husky + lint-staged automatically runs Biome checks before commits

The pre-commit hook automatically runs biome check --write on staged files to ensure code quality. If linting errors are found, the commit will be blocked until fixed.

Git Workflow

  • Branching: Use feature branches when working on tasks (e.g. tasks/task-123-feature-name)
  • Committing: Use the following format: TASK-123 - Title of the task
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. 3d ago First seen · 51 lines · 467 tokens per session scan A da9d8a091136

Subscribe to this mod's changes

Backlog.md copilot-instructions.md is an instructions file published in the GitHub repository MrLesk/Backlog.md (6,602 stars, last pushed yesterday), licensed MIT. It adds 467 tokens to every session, about $0.0023 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.