[path] Repository path
Local repository or folder to pack. Omit it to package the active working directory; use remote options only when the source is not local.
/ak:repomix packages/auth --style markdown Quick Ref / Command
Engineer Kit
/ak:repomix
Pack local, remote, or third-party repositories into AI-friendly XML, Markdown, JSON, or plain-text context with token counts and security checks.
Assess requirements
Configure filters
Execute packaging
Validate output
Rule 01
Package only the repository context the next AI task truly needs
Rule 02
Use include and ignore patterns to keep large codebases focused
Rule 03
Token counts are a delivery gate for the target model context
Rule 04
Security checks and manual output review happen before sharing
Rule 05
Remote repositories can be packed for analysis without cloning
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.
Syntax
/ak:repomix [path] [--style xml|markdown|plain|json][path] Repository path
Local repository or folder to pack. Omit it to package the active working directory; use remote options only when the source is not local.
/ak:repomix packages/auth --style markdown --style xml|markdown|plain|json Output style
Selects XML, Markdown, JSON, or plain text. It changes the bundle format, not the source files being included.
/ak:repomix . --style markdown --include <patterns> Include patterns
Narrows the pack to matching files or folders, such as source modules, docs, manifests, or one package in a monorepo.
/ak:repomix . --include "src/**/*.ts,*.md" -i <patterns> Extra ignores
Adds ignore patterns for noisy, generated, or sensitive paths. It should not be used to hide unresolved security warnings.
/ak:repomix . -i "tests/**,*.test.js" -o <file> Output file
Writes the generated bundle to an explicit file instead of the default repomix-output.xml in the working directory.
/ak:repomix src -o artifacts/src-context.md --style markdown --remote <repo-or-url> Remote repository
Packages a public repository shorthand, URL, or commit through Repomix remote processing. Use an authorized local clone for private code.
/ak:repomix --remote yamadashy/repomix --style xml --remove-comments Remove comments
Removes supported-language comments to reduce context size, but may discard licenses, rationale, generated-file notices, or safety constraints.
/ak:repomix src --remove-comments --style markdown --copy Copy to clipboard
Copies the generated bundle to the system clipboard in addition to normal processing. Review sensitive content before using it.
/ak:repomix . --copy --init Create config
Creates repomix.config.json for reusable packaging settings. It does not create the repository bundle by itself.
/ak:repomix --init --token-count-tree [min] Token tree
Shows token-heavy files and directories, optionally above a minimum threshold, so the bundle can be narrowed before sharing.
/ak:repomix . --token-count-tree 1000 --no-security-check Skip security scan
Disables Secretlint-based scanning. Use only after an explicit risk decision; it is not proof that the bundle is safe to share.
/ak:repomix . --no-security-check Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:repomix.--stylexml
/ak:repomix.--include"src/**/*.ts,*.md"--remove-comments--stylemarkdown
/ak:repomix--remotevendor/library--stylexml-oaudit.xml
/ak:repomix.--token-count-tree1000