

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# Using `repomix` CLI to Pack Repository Files78**Your Task: When you need to consolidate multiple project files into a single text-based representation (e.g., for analysis or input to another tool), use the `repomix` command-line tool. Adhere strictly to the default behaviors specified below unless explicitly overridden by the user or task requirements.**910## I. AI Operational Defaults (MANDATORY)1112When invoking `repomix`, you **MUST** apply the following options by default:13141. **Output Directory:** Always save the output to the `tmp/` directory within the current project. Use the `-o` flag. Example: `-o tmp/packed-output.md` (replace `packed-output.md` with a descriptive filename).152. **Ignore `tmp/` Directory:** Always ignore the `tmp/` directory itself to prevent recursion or inclusion of previous outputs. Add `tmp/` to ignore patterns. Example: `--ignore "tmp/,**/.DS_Store"`.163. **Ignore `.cursor/rules/` Directory:** Always ignore the `.cursor/rules/` directory. Example: `--ignore "tmp/,**/.DS_Store,.cursor/rules/"`.174. **Include Token Count:** Always include a token count in the output. Use `--token-count-encoding o200k_base`.185. **No Line Numbers:** Never include line numbers in the output. **DO NOT** use the `--output-show-line-numbers` flag.196. **Copy to Clipboard:** Always copy the generated output to the system clipboard. Use the `--copy` flag.2021**Combined Example of AI Defaults:**22`repomix some/path another/path -o tmp/my-packed-code.md --ignore "tmp/,**/.DS_Store,.cursor/rules/" --token-count-encoding o200k_base --copy`2324## II. `repomix` Command Reference2526Usage: `repomix [options] [directories...]`2728Description: Repomix - Pack your repository into a single AI-friendly file.2930### Arguments:31 `directories` List of directories to process (default: current directory `["."]`)3233### Options:34 `-v, --version` Show version information35 `-o, --output <file>` Specify the output file name (AI Default: `tmp/<filename>`)36 `--style <type>` Specify the output style (`xml`, `markdown`, `plain`). Default: `plain`.37 `--parsable-style` Ensure output is parsable as its type (e.g., valid XML if `--style xml`).38 `--compress` Perform code compression to reduce token count.39 `--output-show-line-numbers` Add line numbers to each line in the output (AI Default: **NOT USED**).40 `--copy` Copy generated output to system clipboard (AI Default: **ALWAYS USE**).41 `--no-file-summary` Disable file summary section output.42 `--no-directory-structure` Disable directory structure section output.43 `--no-files` Disable files content output (metadata-only mode).44 `--remove-comments` Remove comments from code.45 `--remove-empty-lines` Remove empty lines.46 `--header-text <text>` Specify custom header text for the output file.47 `--instruction-file-path <path>` Path to a file containing detailed custom instructions to be prepended.48 `--include-empty-directories` Include empty directories in the output.49 `--no-git-sort-by-changes` Disable sorting files by git change count (if git is available).50 `--include <patterns>` Comma-separated list of glob patterns to include (e.g., `"src/**/*.ts,**/*.md"`).51 `-i, --ignore <patterns>` Additional comma-separated glob patterns to ignore (AI Default: includes `"tmp/,**/.DS_Store,.cursor/rules/"`).52 `--no-gitignore` Disable usage of `.gitignore` file for ignore patterns.53 `--no-default-patterns` Disable default internal ignore patterns (like `node_modules`, `.git`).54 `--remote <url>` Process a remote Git repository URL.55 `--remote-branch <name>` Specify the branch, tag, or commit hash for the remote repository.56 `-c, --config <path>` Path to a custom `repomix.config.json` file.57 `--init` Initialize a new `repomix.config.json` file.58 `--global` Use global configuration (typically with `--init`).59 `--no-security-check` Disable security checks (use with caution).60 `--token-count-encoding <encoding>` Specify token count encoding (AI Default: `o200k_base`).61 `--mcp` Run as a MCP server (special mode).62 `--top-files-len <number>` Number of top (most changed if git available) files to display in summary.63 `--verbose` Enable verbose logging for detailed output.64 `--quiet` Disable all output to stdout.65 `-h, --help` Display help for command.6667## III. Key Usage Scenarios & Examples6869- **Default AI Behavior (Packing `src` and `docs`):**70 `repomix src docs -o tmp/src-docs-pack.md --ignore "tmp/,**/.DS_Store,.cursor/rules/" --token-count-encoding o200k_base --copy`7172- **Markdown Output, Compressed, No Comments:**73 `repomix . -o tmp/project-compressed.md --style markdown --compress --remove-comments --ignore "tmp/,**/.DS_Store,.cursor/rules/" --token-count-encoding o200k_base --copy`7475- **Only Include Specific File Types (e.g., TypeScript and Markdown), Ignore Tests:**76 `repomix . --include "**/*.ts,**/*.md" --ignore "tmp/,**/.DS_Store,.cursor/rules/,**/*.test.ts,**/*.spec.ts" -o tmp/filtered-pack.md --token-count-encoding o200k_base --copy`7778- **Process a Remote GitHub Repository:**79 `repomix --remote https://github.com/user/repo --remote-branch main -o tmp/remote-repo-pack.txt --ignore "tmp/,**/.DS_Store,.cursor/rules/" --token-count-encoding o200k_base --copy`8081- **Initialize a Local Config File:**82 `repomix --init` (Then customize `repomix.config.json` and run `repomix -c repomix.config.json ...`)8384## IV. Post-Processing: Token Count Management85861. **Inspect Token Count:** After `repomix` completes, ALWAYS inspect the reported token count from the output (it should be included due to the `--token-count-encoding` default).872. **Address High Token Counts (e.g., > 500,000, adjust as needed for target LLM):**88 - If the token count is too high, you **MUST** suggest or attempt a more aggressive packing strategy.89 - This usually involves adding more patterns to the `--ignore` flag to exclude large or non-essential directories/files.90 - **Example Remediation Command:**91 `repomix . -o tmp/packed-smaller.md --ignore "tmp/,**/.DS_Store,.cursor/rules/,node_modules/,dist/,build/,public/,docs/,assets/,**/*.png,**/*.jpg,**/*.mp4,**/*.lock" --token-count-encoding o200k_base --copy`92 - You may need to iteratively refine the `--ignore` patterns and re-run `repomix` until the token count is manageable for the intended use case (e.g., LLM context window).93 - When suggesting, clearly state the token count achieved and the new ignore patterns used.9495**REMEMBER: Your primary goal is to use `repomix` to pack specified files/directories. Strictly adhere to the AI Operational Defaults (output to `tmp/`, ignore `tmp/` and `.cursor/rules/`, include token count, no line numbers, copy to clipboard). Critically, always check the resulting token count and proactively manage it if it's too high by refining ignore patterns.**96
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| skillrecordings/egghead-next.cursor/rules/_global.mdc · 1.4k | Cursor rules | teststyletypesgit+1 | 89/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/benchmarks-create.mdc · 1.4k | Cursor rules | no sections | 38/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/cli-github-search.mdc · 1.4k | Cursor rules | no sections | 51/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/cli-wrangler.mdc · 1.4k | Cursor rules | styledatabase | 52/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-openapi-spec.mdc · 1.4k | Cursor rules | archapi | 58/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-prd.mdc · 1.4k | Cursor rules | archagent-behaviourdocs | 58/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-structure.mdc · 1.4k | Cursor rules | archdocs | 49/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-sync.mdc · 1.4k | Cursor rules | docs | 45/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-tech-stack.mdc · 1.4k | Cursor rules | testlint-formatarchagent-behaviour+1 | 58/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-docs-sync.mdc · 1.4k | Cursor rules | docs | 53/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-continue.mdc · 1.4k | Cursor rules | git | 65/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/logging-session.mdc · 1.4k | Cursor rules | lint-formatstylearchgit | 62/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/pnpm-fixes.mdc · 1.4k | Cursor rules | setupbuildstyledependencies | 68/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-todos-next.mdc · 1.4k | Cursor rules | docs | 45/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/pull-request-create.mdc · 1.4k | Cursor rules | git | 69/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/scripts-create.mdc · 1.4k | Cursor rules | types | 53/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/task-next.mdc · 1.4k | Cursor rules | no sections | 45/100 | 14 days ago | |
| skillrecordings/egghead-next.cursor/rules/task-outline.mdc · 1.4k | Cursor rules | do-not | 52/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/skillrecordings-egghead-next-cursor-rules-cli-pack)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.