repomix by mrgoonie/claudekit-skills
npx skills add https://github.com/mrgoonie/claudekit-skills --skill repomixRepomix 将整个代码仓库打包成单一的、适合 AI 处理的文件。非常适合将代码库提供给 Claude、ChatGPT 和 Gemini 等大型语言模型。
在以下情况下使用:
repomix --version
# npm
npm install -g repomix
# Homebrew (macOS/Linux)
brew install repomix
# 打包当前目录(生成 repomix-output.xml)
repomix
# 指定输出格式
repomix --style markdown
repomix --style json
# 打包远程仓库
npx repomix --remote owner/repo
# 使用过滤器自定义输出
repomix --include "src/**/*.ts" --remove-comments -o output.md
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
无需克隆即可处理远程仓库:
# 简写形式
npx repomix --remote yamadashy/repomix
# 完整 URL
npx repomix --remote https://github.com/owner/repo
# 特定提交
npx repomix --remote https://github.com/owner/repo/commit/hash
从支持的语言中剥离注释(HTML、CSS、JavaScript、TypeScript、Vue、Svelte、Python、PHP、Ruby、C、C#、Java、Go、Rust、Swift、Kotlin、Dart、Shell、YAML):
repomix --remove-comments
# 为 AI 审查打包功能分支
repomix --include "src/**/*.ts" --remove-comments -o review.md --style markdown
# 打包第三方库
npx repomix --remote vendor/library --style xml -o audit.xml
# 打包文档和代码
repomix --include "src/**,docs/**,*.md" --style markdown -o context.md
# 打包特定模块
repomix --include "src/auth/**,src/api/**" -o debug-context.xml
# 完整代码库上下文
repomix --remove-comments --copy
# 包含特定模式
repomix --include "src/**/*.ts,*.md"
# 忽略额外模式
repomix -i "tests/**,*.test.js"
# 禁用 .gitignore 规则
repomix --no-gitignore
# 输出格式
repomix --style markdown # 或 xml, json, plain
# 输出文件路径
repomix -o output.md
# 移除注释
repomix --remove-comments
# 复制到剪贴板
repomix --copy
# 使用自定义配置文件
repomix -c custom-config.json
# 初始化新配置
repomix --init # 创建 repomix.config.json
Repomix 会自动计算单个文件、整个仓库以及每种格式输出的令牌数量。
典型的 LLM 上下文限制:
Repomix 使用 Secretlint 来检测敏感数据(API 密钥、密码、凭证、私钥、AWS 密钥)。
最佳实践:
.repomixignore.env 文件如果需要,可以禁用安全检查:
repomix --no-security-check
当用户请求打包仓库时:
评估需求
配置过滤器
执行打包
验证输出
交付上下文
详细信息请参阅:
每周安装数
187
仓库
GitHub 星标数
1.9K
首次出现
2026 年 1 月 22 日
安全审计
安装于
opencode153
claude-code143
gemini-cli140
codex133
cursor127
github-copilot118
Repomix packs entire repositories into single, AI-friendly files. Perfect for feeding codebases to LLMs like Claude, ChatGPT, and Gemini.
Use when:
repomix --version
# npm
npm install -g repomix
# Homebrew (macOS/Linux)
brew install repomix
# Package current directory (generates repomix-output.xml)
repomix
# Specify output format
repomix --style markdown
repomix --style json
# Package remote repository
npx repomix --remote owner/repo
# Custom output with filters
repomix --include "src/**/*.ts" --remove-comments -o output.md
Process remote repositories without cloning:
# Shorthand
npx repomix --remote yamadashy/repomix
# Full URL
npx repomix --remote https://github.com/owner/repo
# Specific commit
npx repomix --remote https://github.com/owner/repo/commit/hash
Strip comments from supported languages (HTML, CSS, JavaScript, TypeScript, Vue, Svelte, Python, PHP, Ruby, C, C#, Java, Go, Rust, Swift, Kotlin, Dart, Shell, YAML):
repomix --remove-comments
# Package feature branch for AI review
repomix --include "src/**/*.ts" --remove-comments -o review.md --style markdown
# Package third-party library
npx repomix --remote vendor/library --style xml -o audit.xml
# Package with docs and code
repomix --include "src/**,docs/**,*.md" --style markdown -o context.md
# Package specific modules
repomix --include "src/auth/**,src/api/**" -o debug-context.xml
# Full codebase context
repomix --remove-comments --copy
# Include specific patterns
repomix --include "src/**/*.ts,*.md"
# Ignore additional patterns
repomix -i "tests/**,*.test.js"
# Disable .gitignore rules
repomix --no-gitignore
# Output format
repomix --style markdown # or xml, json, plain
# Output file path
repomix -o output.md
# Remove comments
repomix --remove-comments
# Copy to clipboard
repomix --copy
# Use custom config file
repomix -c custom-config.json
# Initialize new config
repomix --init # creates repomix.config.json
Repomix automatically counts tokens for individual files, total repository, and per-format output.
Typical LLM context limits:
Repomix uses Secretlint to detect sensitive data (API keys, passwords, credentials, private keys, AWS secrets).
Best practices:
.repomixignore for sensitive files.env filesDisable security checks if needed:
repomix --no-security-check
When user requests repository packaging:
Assess Requirements
Configure Filters
Execute Packaging
Validate Output
Deliver Context
For detailed information, see:
Weekly Installs
187
Repository
GitHub Stars
1.9K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode153
claude-code143
gemini-cli140
codex133
cursor127
github-copilot118
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
118,000 周安装
React Native Reanimated 动画代码生成器 - 高性能动画开发指南与示例
162 周安装
Memento MCP 记忆协议:AI 智能体跨会话知识持久化与回忆指南
164 周安装
codeagent-wrapper:多AI后端代码生成与分析工具,支持Codex、Claude、Gemini
162 周安装
高性能动画与微交互包 | Tailwind & Framer Motion 动画库 | 前端开发工具
166 周安装
代码审查最佳实践指南:技术严谨性、验证优先与子代理审查流程
88 周安装
Python Odoo开发指南:企业级ERP开发最佳实践与代码规范
163 周安装