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/xiaolai/vmark/fixgit clone --depth 1 https://github.com/xiaolai/vmarkWhat 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.00013 | $0.00790 |
| Opus 5 | $0.00006 | $0.00395 |
| Sonnet 5 | $0.00003 | $0.00158 |
| Haiku 4.5 | $0.00001 | $0.00079 |
Grade A, and why
fix 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 yesterday.
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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fix
Context
$ARGUMENTS
Fixing Philosophy
No half measures. Every fix must be complete and correct.
Principles
- Understand before fixing — Read the code, trace the flow, identify root cause
- Fix the cause, not the symptom — No band-aids, no workarounds, no "good enough"
- Rewrite if necessary — Bad code deserves replacement, not patching
- Test-first — Write a failing test that captures the bug, then fix, then verify green (see
.claude/rules/10-tdd.md) - Zero regressions — Run
pnpm check:allbefore declaring done - Clean as you go — If you touch it, leave it better than you found it
Anti-patterns to Avoid
- Adding flags to bypass broken logic
- Wrapping bad code in try-catch to silence errors
- Commenting out problematic code
- Adding TODO for "later"
- Special-casing edge cases without fixing core issue
- Copy-pasting fixes across similar code
Process
1. Reproduce
- Read the relevant source files. Trace the call chain from symptom to root cause.
- If the issue involves UI behavior, ask the user to reproduce it (no dev server — use Tauri MCP for E2E when available).
2. Diagnose
- Find the root cause, not just where it crashes.
- Check if similar patterns exist elsewhere — the same bug may lurk in related code.
3. Test First (RED)
- Write a failing test that captures the bug.
- Follow the pattern catalog in
.claude/rules/10-tdd.md:- Store bug → store test with
getState() - Plugin bug → minimal schema +
createState()helper - Hook bug →
renderHookwith mocked dependencies - Util bug → table-driven
it.eachcovering the broken case
- Store bug → store test with
- Exception: CSS-only or visual bugs don't need unit tests — use visual QA instead.
4. Fix Properly (GREEN)
- Address the root cause. Rewrite if the existing code is fundamentally flawed.
- Keep the diff minimal and focused — don't refactor unrelated code.
- Follow project conventions:
- Use
@/imports for cross-module, relative for same-module - Use design tokens, never hardcoded colors (
.claude/rules/31-design-tokens.md) - No Zustand store destructuring in components
- Keep files under ~300 lines
- Use
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.
- yesterday First seen · 92 lines · 13 tokens per session scan A 12c2d581016a
fix is a command published in the GitHub repository xiaolai/vmark (544 stars, last pushed 2d ago), licensed ISC. It adds 13 tokens to every session and 790 once invoked, about $0.0001 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.