存储库同步
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 人工智能
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- Python
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 读取环境变量
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Tracecat Repository Sync
You help synchronize local Tracecat MCP server code and skills to their GitHub repositories.
## Repositories
| Component | Local Path | GitHub Repo |
|-----------|-----------|-------------|
| MCP Server | `<project_root>/mcp_server/` | Owner's `tracecat-mcp-community` repo |
| Skills | `<project_root>/tracecat_skills/` | Owner's `tracecat-skills` repo |
> **Note:** Local paths and GitHub owner are resolved at runtime from the working directory and git config.
## Sync Procedure
### 1. Identify changed files
Compare local files with the GitHub repository to find what has changed.
### 2. Review changes
Show the user what files will be pushed and what content has changed.
### 3. Push to GitHub
Use `mcp__my-github__push_files` or `mcp__my-github__create_or_update_file` to push changes.
## MCP Server Files to Sync
Key files in the MCP server:
```
mcp_server/
src/
index.ts # Entry point
client.ts # API client
tools.ts # MCP tool definitions
types.ts # TypeScript types
package.json
tsconfig.json
CLAUDE.md # Dev guide
.env # DO NOT SYNC (credentials)
```
**Never sync:** `.env`, `node_modules/`, `dist/`, `.env.local`
## Skills Files to Sync
```
tracecat_skills/
.claude-plugin/
plugin.json # Plugin manifest
skills/
tracecat-action-configuration/SKILL.md
tracecat-case-management/SKILL.md
tracecat-code-python/SKILL.md
tracecat-integration-expert/SKILL.md
tracecat-mcp-tools-expert/SKILL.md
tracecat-secrets-integrations/SKILL.md
tracecat-validation-debug/SKILL.md
tracecat-workflow-patterns/SKILL.md
tracecat-yaml-syntax/SKILL.md
tracecat-repo-sync/SKILL.md
```
## GitHub MCP Tools
| Tool | Usage |
|------|-------|
| `mcp__my-github__get_file_contents` | Read current file from GitHub |
| `mcp__my-github__create_or_update_file` | Create or update a single file (needs SHA for updates) |
| `mcp__my-github__push_files` | Push multiple files in a single commit |
| `mcp__my-github__list_commits` | Check latest commits |
## Safety Rules
1. **Never push `.env` files** or any file containing credentials
2. **Never push `.mcp.json`** — contains local paths and potentially sensitive env vars
3. **Always show diff** to user before pushing
4. **Use descriptive commit messages** summarizing changes
5. **Push to `main` branch** unless user specifies otherwise
6. **Check for existing files** first to get SHA (required for updates)
7. **Scan for local paths** before pushing — reject any file containing `C:\Users\`, `/home/`, or absolute local paths that would leak user info
8. **Scan for hardcoded credentials** — reject any file containing passwords, API keys, or tokens in plain text
## Related Skills
- **tracecat-mcp-tools-expert** — MCP tools reference
## Reference Files
- [Common Mistakes](./COMMON_MISTAKES.md)
- [Examples](./EXAMPLES.md)
- [README](./README.md)
---
> Source: [adrojis/tracecat-skills](https://github.com/adrojis/tracecat-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
章节与文件索引
按说明文件中的顺序排列。
存储库
1. 识别更改的文件
2. 审查变更
3.推送到GitHub
要同步的 MCP 服务器文件
文件/命令 -> <project_root>/mcp_server/ · tracecat-mcp-community · <project_root>/tracecat_skills/ · tracecat-skills · mcp__my-github__push_files · mcp__my-github__create_or_update_file · .env · node_modules/
内容校验值 -> b14c564181ce
当前原文的自动摘译,尚未人工审校。
存储库
组件 · 本地路径 · GitHub 存储库 MCP 服务器 ·
<project_root>/mcp_server/· 所有者的tracecat-mcp-community存储库技能 ·<project_root>/tracecat_skills/· 所有者的tracecat-skills存储库 注意:本地路径和 GitHub 所有者在运行时从工作目录和 git 配置解析。1. 识别更改的文件
将本地文件与 GitHub 存储库进行比较以查找发生了更改的内容。
2. 审查变更
向用户显示哪些文件将被推送以及哪些内容已更改。
3.推送到GitHub
使用
mcp__my-github__push_files或mcp__my-github__create_or_update_file推送更改。要同步的 MCP 服务器文件
MCP 服务器中的关键文件:从不同步:
.env、node_modules/、dist/、.env.local