Tradegit

基于 GitHub 私有仓库的交易日志(trading journal)。用于记录每一笔交易及其理由、 导入券商流水、复盘历史盈亏。触发场景:用户说「记一笔交易 / 记录一下我买了 XXX / log this trade」、「导入 IBKR / 盈透 / 嘉信 / Schwab 的对账单」、「看看我过去 三个月的盈亏 / 哪笔亏得最多 / 复盘一下我的交易」、「我的持仓」、 或首次配置时说「安装/连接交易日志」。也在用户提到 trade journal、交易记录、 round trip、win rate、盈亏分析、R 倍数时触发。 仅负责记录、同步与盈亏计算;不下单、不提供投资建议、不生成图表或面板。

12 stars 3 forksProductivity & Notes

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add rollingSirius/TradeGit --skill tradegit
Manual install
git clone --depth 1 https://github.com/rollingSirius/TradeGit.git /tmp/TradeGit
mkdir -p ~/.claude/skills
cp -r /tmp/TradeGit/. ~/.claude/skills/tradegit

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# TradeGit — GitHub 私有仓库交易日志

一个 CLI 承载全部功能。所有命令都支持 `--json`,**你应该始终加 `--json` 并解析结果**,
再用自然语言向用户汇报。

```bash
{SKILL_DIR}/scripts/tradegit <command> --json
```

`{SKILL_DIR}` 是本 skill 所在目录。若 `tradegit` 已在 PATH 上(安装脚本会尝试软链到
`~/.local/bin`),直接用 `tradegit` 即可。零依赖,只需要 python3 和 git。

## 数据放在哪

- **模式**:GitHub 私有仓库,或 `tradegit init --local` 的完全本地模式
- **远端**:GitHub 模式下是用户自己的 GitHub **私有**仓库(默认 `<user>/trading-journal`);
  local-only 模式没有远端
- **本地**:`~/.tradegit/repo/` —— GitHub clone 或本地 git 仓库;
  `~/.tradegit/cache/index.sqlite` 是派生的查询索引,可随时删除重建
- **格式**:`journal/<YYYY>/<YYYY-MM>.jsonl`,一行一条记录,只追加

细节见 `reference/storage.md`。

## 第一次使用

1. 先跑 `tradegit status --json`。
2. 如果 `initialized` 为 false:
   - 先问用户要 GitHub 私有仓库还是完全本地模式。若用户选择本地,执行
     `tradegit init --local --json`,不需要 GitHub,也不会推送远端。
   - 若用户选择 GitHub,再检查 `auth.connected`。为 false 时告诉用户二选一连接 GitHub:
     `gh auth login`,或 `export GITHUB_TOKEN=<有 repo 权限的 token>`。
     **不要向用户索要 token 内容,也不要把 token 写进任何文件。**
   - **创建仓库前先向用户确认**(这是在他们的 GitHub 账户下创建东西):
     告诉他们将要创建的仓库名、可见性为 private,得到明确同意后再执行
     `tradegit init --json`。
   - 用户已有日志仓库时用 `tradegit init --repo owner/name --use-existing --json`。
3. `init` 会拒绝非 private 的仓库。这是有意为之,不要绕过。

## 记录一笔交易

```bash
tradegit log --symbol AAPL --side BUY --qty 100 --price 213.45 \
  --why "突破前高且量能放大,财报前布局" --stop 205 --target 240 \
  --strategy swing --tags "tech,breakout" --conviction 4 --json
```

要点:

- `--side` 是 `BUY` / `SELL` / `SHORT` / `COVER`。开空用 `SHORT`,平空用 `COVER`。
Read the full skill on GitHub

Details

Skill name
tradegit
License
MIT
Repo updated
28 July 2026

FAQ

What does the Tradegit skill do?

基于 GitHub 私有仓库的交易日志(trading journal)。用于记录每一笔交易及其理由、 导入券商流水、复盘历史盈亏。触发场景:用户说「记一笔交易 / 记录一下我买了 XXX / log this trade」、「导入 IBKR / 盈透 / 嘉信 / Schwab 的对账单」、「看看我过去 三个月的盈亏 / 哪笔亏得最多 / 复盘一下我的交易」、「我的持仓」、 或首次配置时说「安装/连接交易日志」。也在用户提到 trade journal、交易记录、 round trip、win rate、盈亏分析、R 倍数时触发。 仅负责记录、同步与盈亏计算;不下单、不提供投资建议、不生成图表或面板。

How do I install the Tradegit skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add rollingSirius/TradeGit --skill tradegit. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Tradegit popular?

It lives in rollingSirius/TradeGit, which has 12 GitHub stars and 3 forks.

Related skills

Arcgram

13

jovesun-lab/arcgram

Generate an interactive node-and-edge diagram as a single standalone HTML file (Arcgram v2). Triggers on: arcgram, interactive/architectural diagram, topology, node graph, flow diagram, system map, dependency graph, workflow diagram, knowledge map, 'show me how X connects to Y', 'visualize this workflow', 'make this a topology', 'build a diagram of this'. Prefer for any system map, dependency graph, topology, or workflow picture even if interactivity wasn't asked for; on a follow-up 'make it inline' / 'show me' / 'render in chat', stay within Arcgram (Mode 1/2), don't switch tools.

Productivity & Notes

N8n

15

AutomateLab-tech/n8n-mcp

Use when the user wants to build, debug, or extend an n8n workflow - generating workflow JSON from a description, scaffolding a custom TypeScript node, building an AI agent (LangChain cluster), iterating over items, writing Code-node JS, linting an existing workflow, diagnosing a failed execution, or driving a live n8n instance via REST.

Productivity & Notes

Fable Harness

13

AAO-SH/fable-harness

Use when installing or updating a project-local Fable Harness for Codex, Claude Code, or compatible agent workflows; when a workspace needs AGENTS.md or CLAUDE.md boot instructions, .codex/.claude/.agents templates, decision traces, semantic notes, native loop governance, loop state, event logs, checklist evidence, subagent briefs, memory closure checks, or protected TDD audit rails.

Productivity & Notes

Desktop Controller

12

24kchengYe/desktop-controller-skill

Universal desktop application controller for Windows. Automate any desktop app — send messages, click buttons, type text, take screenshots, and interact with native Windows applications. Use this skill when the user asks to: "control my computer", "automate desktop", "send a message on [any chat app]", "click on [something]", "type into [app]", "take a screenshot", "操控电脑", "自动化桌面", "给某某发消息", "打开某某软件", "截个屏", or any task involving interacting with Windows desktop applications. WeChat triggers: "send a WeChat message", "message someone on WeChat", "打开微信发消息", "给某某发微信", "微信发送", "微信发消息", "用微信发", "帮

Productivity & Notes

Privacy Mask

12

fullstackcrew-alpha/privacy-mask

Mask, redact, anonymize and censor sensitive information (PII) in screenshots and images — phone numbers, emails, IDs, API keys, crypto wallets, credit cards, passwords, and more. Uses OCR (Tesseract + RapidOCR) with 47 regex rules and optional NER (GLiNER) to detect private data and applies blur/fill redaction overlays. Supports GDPR and compliance workflows, secret detection, and data loss prevention (DLP). All processing runs 100% locally and offline — no data leaves your machine.

Productivity & Notes

Scholarship Finder Planner

14

OmarZen/scholarship-navigator

Main entry point for finding and planning scholarships. Use whenever someone asks which scholarships they can get, whether they are eligible, how well they match (score), which papers they are missing, what to prepare and by when, or wants a tracker, plan, calendar or report. Covers 103 awards from Diploma to PhD (Chevening, Erasmus Mundus, DAAD, Stipendium Hungaricum, Fulbright, MEXT, GKS, CSC, Türkiye Burslari, KAUST, Commonwealth...), scholarships to study in your own country without travelling (Egypt, Turkey, Indonesia, Mexico, Nigeria, Africa in-country...), awards for women, and individu

Productivity & Notes

Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.