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.
npx agentmods add commands/andkirby/markdown-ticket/bddgit clone --depth 1 https://github.com/andkirby/markdown-ticketWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03989 |
| Opus 5 | $0.00000 | $0.01995 |
| Sonnet 5 | $0.00000 | $0.00798 |
| Haiku 4.5 | $0.00000 | $0.00399 |
Grade A, and why
bdd 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 516 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MDT BDD Specification Workflow (v2)
Generate BDD acceptance tests from requirements. Produce user-visible behavior tests that validate the system from the outside.
Core Principle: BDD tests specify WHAT the system does from the user perspective, independent of internal architecture. They are written before architecture decisions.
Skill Discovery
Check AGENTS.md for skills matching this workflow. If found, invoke via Skill tool before proceeding.
User Input
$ARGUMENTS
Session Context
Use {TICKETS_PATH} in all file path templates below (if it is not defined, read ticketsPath from .mdt-config.toml).
Output Location
| Mode | Output |
|---|---|
| Normal | {TICKETS_PATH}/{CR-KEY}/bdd.md + E2E test files (when executable framework exists) |
Prep (--prep) |
{TICKETS_PATH}/{CR-KEY}/prep/bdd.md + E2E test files (when executable framework exists) |
Mode Detection
| Mode | Flag | Input Source | Test State | Purpose |
|---|---|---|---|---|
| Normal | (none) | requirements.md | RED (when executable) | Specify new behavior |
| Prep | --prep |
existing system | GREEN (when executable) | Lock behavior before refactoring |
Usage Guardrails
Use /mdt:bdd for:
- New or changed user-visible behavior
- Feature enhancements before architecture
- Prep behavior locking (
--prep) before major refactoring
Do not use /mdt:bdd for:
- Pure technical refactoring with no user-visible behavior (use
/mdt:tests --prep) - Documentation-only work
- Internal-only changes with no user-visible impact
If this is a Feature Enhancement with user-visible behavior, BDD is required unless the user explicitly waives executable acceptance gating.
Critical Rules
- Write tests from user perspective only (no internal mechanics).
- Do not assume architecture (no components/services/file-level details in scenarios).
- Use Gherkin (
Given/When/Then) syntax. - Keep focus on end-to-end interfaces (browser/API/CLI).
- Enforce scenario budget:
- normal: max 12 total, max 3 per journey
- prep: max 8 total, max 2 per journey
- Deduplicate aggressively; use
Scenario Outlinefor mirrored variants. - If
framework: "none", generate spec-only output (no executable placeholders). - RED/GREEN execution state is required only when executable E2E framework exists.
- Feature acceptance gate: executable BDD scenarios must be GREEN before completion (unless user waiver for spec-only mode).
- Internal constraints belong in
/mdt:tests, unless explicitly user-visible. - Tag scenarios with sub-requirement IDs (
BR-X.Y), not only parent IDs. - Coverage honesty: do not claim coverage unless a scenario explicitly validates it.
- No invented behaviors: if needed behavior is absent from requirements, stop and route to
/mdt:requirementsor/mdt:clarification. - Non-functional thresholds in BDD are opt-in: include only when requirements define measurable thresholds and acceptance method.
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.
- 2d ago First seen · 516 lines · 0 tokens per session scan A edb61395f49a
bdd is a command published in the GitHub repository andkirby/markdown-ticket (5 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,989 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-08-31.
Other commands, from other repositories
e2e
使用 Playwright 对 Web UI 进行端到端测试(支持视频录制、Trace 录制、控制台/网络日志捕获).
verify
Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…
debug-playwright
Use this command to debug failing Playwright tests in a source-first, evidence-first workflow.
run-all-tests-and-fix
Execute the full test suite and systematically fix any failures, ensuring code quality and functionality. All test-related commands must pass before completion.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
fd-verify
Verify the implementation — run tests, check regression on affect.md files, review and scan; blocks /fd-done on failure.