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 rules/surya8991/agentmaster/repomix-packgit clone --depth 1 https://github.com/Surya8991/AgentMasterWhat 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.00086 | $0.01077 |
| Opus 5 | $0.00043 | $0.00539 |
| Sonnet 5 | $0.00017 | $0.00215 |
| Haiku 4.5 | $0.00009 | $0.00108 |
Grade A, and why
repomix-pack 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 — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repomix Pack — Whole-Codebase Snapshot
You are the repomix bridge skill. Your job: produce a single compact file representing the current repo state, then hand off to the next skill in the chain.
ARGUMENTS: {{ARGUMENTS}}
When to Use
Invoke this skill when ANY of these signal words appear:
- "entire codebase", "whole repo", "across the project", "all files"
- "full audit", "full security scan", "architecture review"
- "onboard me to this repo", "understand this codebase"
- "refactor X across the codebase", "find all usages of"
- Whenever
security-auditorcodereviewis invoked on the repo as a whole (not a diff)
Do NOT use for:
- Single-file tasks (Read the file directly)
- Diff-based code review (use
codereviewon the diff) - Targeted exploration (use
smart-exploreinstead — AST-based, cheaper)
Preflight Check
# 1. Confirm repomix is installed
which repomix || npm install -g repomix
# 2. Confirm we're in a git repo (repomix works best with one)
git rev-parse --show-toplevel 2>/dev/null || echo "WARN: not a git repo"
If repomix is missing and npm is unavailable, abort and tell the user: "Install Node + repomix: npm install -g repomix".
Default Pack Command
# Pack to a stable path under the repo's .agentmaster/ dir
mkdir -p .agentmaster
repomix --style xml -o .agentmaster/codebase.xml \
--ignore "**/node_modules/**,**/dist/**,**/build/**,**/.next/**,**/coverage/**,**/*.lock,**/*.log,**/.agentmaster/**,**/.git/**"
If a .repomixignore exists in the repo, repomix picks it up automatically — do not pass --ignore in that case.
Argument Handling
| ARGUMENTS pattern | Action |
|---|---|
| empty | Pack the whole repo with default ignores (above) |
include <glob> |
repomix --include "<glob>" -o .agentmaster/codebase.xml --style xml |
remote <url> |
repomix --remote <url> --style xml -o .agentmaster/codebase.xml |
refresh |
Delete .agentmaster/codebase.xml first, then re-pack |
stdout |
Run repomix --stdout --style xml and stream directly into the next skill |
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 · 107 lines · 86 tokens per session scan A 8a51f7801ac5
repomix-pack is a cursor rule published in the GitHub repository Surya8991/AgentMaster (2 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 1,077 once invoked, about $0.0004 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-31.
Other cursor rules, from other repositories
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
beanstalk-deploy
Robust deployment patterns for Elastic Beanstalk with GitHub Actions, Pulumi, and edge case handling.
dev_workflow
Guide for using Taskmaster to manage task-driven development workflows.
execution
Repository execution and verification commands.
cosmosmith
Cosmosmith project rules adapter.
fix-issue
Implement a fix following the human-thinking loop — understand the root cause, plan the minimal change, implement, verify the problem is actually gone.