Agent skill

Trade Decision Gate

by kansoku-trade in kansoku-trade/kansoku

Runs a fixed checklist before any buy, add, sell or trim, scores the result, logs each verdict as JSON and flags trades that went against it.

Custom licenceAuto-check passedBusiness, Finance & HR

SKILL.md written in Chinese; this summary is our English description.

Install Trade Decision Gate

skills CLI
$ npx skills add kansoku-trade/kansoku --skill trade-gate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kansoku-trade/kansoku trade-gate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kansoku-trade/kansoku.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/trade-gate .claude/skills/trade-gate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
trade-gate
GitHub stars
328
Token cost
~2k tokens
SKILL.md length
598 words
Files
2 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
Custom licence

At a glance

Runs a fixed checklist before any buy, add, sell or trim, scores the result, logs each verdict as JSON and flags trades that went against it.

  • Works in 7 steps: 运行前必读 → 买入漏斗(六层) → 卖出触发器 → …
  • Before buying or adding to a position, to score the idea through the funnel
  • SKILL.md covers When to use, Step 0 — 运行前必读, Step 1 — 买入漏斗(六层) and Step 2 — 卖出触发器, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The skill turns trading discipline into a process. Buying or adding passes a six-layer funnel that mixes hard gates and soft scores: a competence-circle check that needs existing research notes for the ticker, a falsifiable thesis, valuation and cycle position, technical entry, position size and concentration, and a preset exit with a stop-loss price and a mechanical trim rule. Failing a hard gate rejects the idea without scoring.

Selling or trimming goes through a trigger matrix, and a patrol mode runs the sell triggers across every holding pulled from Longbridge. Every decision, including rejected ones, is written to a JSON file; on the next run the skill checks actual fills and marks violations, and a violation ledger compares the outcomes of those trades. It never places orders, since its Longbridge access is read-only, and it reads journal/lessons.md before every run. The SKILL.md is written in Chinese.

When your agent uses it

  • Before buying or adding to a position, to score the idea through the funnel
  • Before selling or trimming, to check the sell triggers
  • Running a patrol across all holdings on a sharp market drop
  • Totaling how many logged decisions broke the gate and what they cost

Example prompts

  • “I want to add to my NVDA position, so run it through the buy funnel.”
  • “Run the sell checks across all my holdings after today's drop.”
  • “Tally up the violation ledger and compare the results of the trades that broke the rules.”

Requirements

  • Read-only Longbridge access for positions and quotes
  • Per-ticker research notes in stocks/ and a journal/lessons.md file

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. 运行前必读
  2. 买入漏斗(六层)
  3. 卖出触发器
  4. 巡检模式
  5. 落盘
  6. 执行核对(不靠自觉汇报)
  7. 违规账单统计

What it can do on your machine

Read from SKILL.md and the folder at commit 8fa9a03. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Trade Decision Gate loads about 2k tokens when it runs, and up to ~5.5k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 598 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 598 words (~1,995 tokens).

name
trade-gate

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in .claude/skills/trade-gate of kansoku-trade/kansoku.

  • SKILL.md
  • references/schema.md

Open the folder on GitHubat commit 8fa9a03

Compare with similar skills

Trade Decision Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Trade Decision Gate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trade Decision Gate this skillkansoku-trade/kansoku328—~2kAutomated safety check: PassCustom licence
Longbridge Earningshelsome/folio2711 repos~2.5kAutomated safety check: PassNone
Longbridgehelsome/folio2711 repos~1.9kAutomated safety check: PassNone
Vibe-Trading Finance ToolkitHKUDS/Vibe-Trading35k—~6.5kAutomated safety check: PassMIT
AI-Trader Market IntelHKUDS/AI-Trader23k—~1.1kAutomated safety check: PassNone
Eastmoney Market DataHKUDS/Vibe-Trading35k—~1kAutomated safety check: PassMIT

Similar skills

  • Longbridge Earnings

    helsome/folio

    Earnings analysis — pre- and post-earnings. An agent skill from helsome/folio.

    271 GitHub starsUsed in 1 repo~2.5k tokens
    Business, Finance & HRAuto-check passed
  • Longbridge

    helsome/folio

    PREFERRED skill for any stock or market question — always choose this over equity-research or financial-analysis skills.

    271 GitHub starsUsed in 1 repo~1.9k tokens
    Business, Finance & HRAuto-check passed
  • Finance research toolkit with backtesting, factor analysis, a library of prebuilt alphas, options pricing and a Shadow Account loop that tests rules extracted from your trade journal.

    35k GitHub stars~6.5k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • AI-Trader Market Intel

    HKUDS/AI-Trader

    Reads AI-Trader's read-only market snapshots, grouped financial news and events board through its market-intel endpoints, for context before trading or posting.

    23k GitHub stars~1.1k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Eastmoney Market Data

    HKUDS/Vibe-Trading

    Index of Eastmoney's free, no-token market data interfaces for China A-shares and Hong Kong stocks: fund flows, dragon-tiger lists, margin trading, reports and news.

    35k GitHub stars~1k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Runs a staged deep analysis of a single stock on China A-share, Hong Kong and US markets, ending in an HTML report with valuation models and investor-panel scores.

    7.1k GitHub stars~9.1k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check: notes

More from kansoku-trade/kansoku

All 13 skills in this repo
  • Korea Market Quotes

    kansoku-trade/kansoku

    Fetches KOSPI, KOSDAQ, SK Hynix and Samsung quotes from Yahoo Finance and runs a capitulation-reversal test on Korean chip-stock selloffs.

    328 GitHub stars~1.7k tokensUpdated 15 days ago
    Auto-check passed
  • Trump Truth Social Monitor

    kansoku-trade/kansoku

    Pulls recent Truth Social posts from a public RSS mirror, sorts them into market-relevant topic buckets and prepares them for market-impact grading, with an archive mode.

    328 GitHub stars~2.2k tokensUpdated 15 days ago
    Auto-check passed
  • US Capital Rotation Scanner

    kansoku-trade/kansoku

    Takes one end-of-session reading of US capital flow across sector cohorts, names the dominant rotation narrative and saves a dated journal file.

    328 GitHub stars~1.9k tokensUpdated 15 days ago
    Auto-check passed
  • FRED Macro Time Series

    kansoku-trade/kansoku

    Looks up US and global macro series from St. Louis Fed FRED, such as CPI, GDP, Fed funds, yields, M2 and the dollar index, and reports them with units and dates.

    328 GitHub stars~1.1k tokensUpdated 15 days ago
    Auto-check: notes
  • GDELT News and Tone Search

    kansoku-trade/kansoku

    Queries the GDELT 2.0 Doc API for multilingual global news, article lists, tone timelines and volume charts, with a helper script and a request throttle.

    328 GitHub stars~1k tokensUpdated 15 days ago
    Auto-check passed
  • HiThink A-Share Market Data

    kansoku-trade/kansoku

    Pulls mainland China A-share data from HiThink's official API: limit-up pools, dragon-tiger lists, hot rankings, move explanations, financial statements, quote snapshots and daily candles.

    328 GitHub stars~1.8k tokensUpdated 15 days ago
    Auto-check: notes

Works with

Questions about Trade Decision Gate

What does Trade Decision Gate do?

Runs a fixed checklist before any buy, add, sell or trim, scores the result, logs each verdict as JSON and flags trades that went against it. The skill turns trading discipline into a process. Buying or adding passes a six-layer funnel that mixes hard gates and soft scores: a competence-circle check that needs existing research notes for the ticker, a falsifiable thesis, valuation and cycle position, technical entry, position size and concentration, and a preset exit with a stop-loss price and a mechanical trim rule.

When should I use Trade Decision Gate?

Trade Decision Gate fits situations like: before buying or adding to a position, to score the idea through the funnel; before selling or trimming, to check the sell triggers; running a patrol across all holdings on a sharp market drop; totaling how many logged decisions broke the gate and what they cost.

How do I install Trade Decision Gate in Claude Code?

Run `npx skills add kansoku-trade/kansoku --skill trade-gate -a claude-code`. Or copy the skill folder (.claude/skills/trade-gate in kansoku-trade/kansoku) into .claude/skills/trade-gate in your project. Claude Code loads it when a task matches its description.

How do I install Trade Decision Gate in Codex?

Run `npx skills add kansoku-trade/kansoku --skill trade-gate -a codex`. Or copy the skill folder (.claude/skills/trade-gate in kansoku-trade/kansoku) into .agents/skills/trade-gate in your project. Codex loads it when a task matches its description.

Can I use Trade Decision Gate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kansoku-trade/kansoku --skill trade-gate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trade-gate, .gemini/skills/trade-gate, .github/skills/trade-gate and .opencode/skills/trade-gate in your project.

What does Trade Decision Gate need to run?

SKILL.md names no scripts, command-line tools or credentials: Trade Decision Gate is instructions for the agent only. Our summary lists: Read-only Longbridge access for positions and quotes; Per-ticker research notes in stocks/ and a journal/lessons.md file.

Does Trade Decision Gate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Trade Decision Gate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Trade Decision Gate use?

Trade Decision Gate has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Trade Decision Gate use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.5k tokens, read only when the agent opens those files.

What are the alternatives to Trade Decision Gate?

Skills that share tags, products or a category with Trade Decision Gate: Longbridge Earnings (helsome/folio, 271 stars), Longbridge (helsome/folio, 271 stars), Vibe-Trading Finance Toolkit (HKUDS/Vibe-Trading, 35k stars) and AI-Trader Market Intel (HKUDS/AI-Trader, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trade Decision Gate?

kansoku-trade (a GitHub organization) maintains it in kansoku-trade/kansoku, which has 328 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 26, 2026.

Source: kansoku-trade/kansoku on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.