- enable manual 'Run workflow' button in Actions UI
- for dispatch events, use sentinel __none__ as base so the script
falls back to full-tree scan instead of erroring on missing base
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two-layer interception to prevent internal files / secrets from reaching
the public repo. Same setup as okx/agent-trade-kit.
- scripts/check-opensource.sh + opensource-denylist.txt
Layer 0 scanner: path + content denylist. In diff mode vs BASE; falls
back to full-tree scan when BASE is missing or has no merge-base with
HEAD (orphan / force-push / first push).
- .github/workflows/opensource-guard.yml
CI gate: runs on PR to master and push to master. Job name
'opensource-guard' — add it as required status check in branch rules.
- .githooks/pre-push
Local fast feedback. Enable once per clone:
git config core.hooksPath .githooks
Bypass with --no-verify (CI gate is the authoritative check).
To extend coverage, edit scripts/opensource-denylist.txt only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Update spot/swap/futures algo place sections to include
--ordType move_order_stop and trailing stop params
(--callbackRatio, --callbackSpread, --activePx)
- Rename section titles to "TP/SL / Trail" to reflect expanded support
- Add full param tables to swap/futures algo place sections
- Add --instId format note to futures algo place section
- Wording unified with existing trail sections for consistency
Closes#19
- Fix phantom MCP tool name: `place_move_stop_order` → `swap_place_move_stop_order`
(confirmed via human feedback: spot uses core directly, futures reuses swap tool)
- Replace hardcoded futures date `250328` with `<YYMMDD>` placeholder across
workflow examples, instId format docs, and edge cases section
- Align trailing stop edge case notes for Spot and Futures with consistent
format: add (relative/absolute price) clarifiers to both sections
Closes#17
Add trailing stop (move_order_stop) documentation for all three modules.
Update tool name from swap_place_move_stop_order to place_move_stop_order.
Closes#17
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update REVIEWING.md description word-count guideline from 80–120 to
80–150 words, which accurately reflects the actual range found in the
four existing skill files (83, 88, 112, 145 words). The previous upper
bound of 120 would have flagged the largest existing skill as
non-conformant.
Addresses nit from MR !21 review.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- CONTRIBUTING.md: add "### For reviewers" subheading before the
reviewer checklist reference, separating it clearly from the
contributor PR checklist (nit from MR !21 review)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add REVIEWING.md at repo root with four-section review checklist
(Structure, Content Accuracy, Interaction Design, Writing Style)
- Each section is priority-tagged so reviewers can triage efficiently
- Add cross-reference line to CONTRIBUTING.md PR checklist section
pointing reviewers to REVIEWING.md before approving skill MRs
Closes#15
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When placing swap, futures, or option orders, sz must always be number
of contracts. Users often specify a USDT amount instead, which without
conversion leads to dangerously oversized positions.
Added a dedicated "Sz Conversion Rules for Derivatives" section that:
- Identifies contract type (linear vs inverse) from instId pattern
- Detects user sz intent (USDT amount vs contracts vs ambiguous)
- Provides the correct formula per contract type:
- Linear (USDT-margined): sz = floor(usdtAmt / (markPx × ctVal))
- Inverse (USD-margined): sz = floor(usdtAmt / ctVal)
- Inverse options: sz = floor(usdtAmt / (markPx_BTC × btcPx × ctVal))
- Validates sz against minSz/lotSz before placing
- Requires showing conversion summary to user for confirmation
- Warns users about BTC settlement for inverse contracts
Also added two new workflow examples (linear and inverse swap by USDT
amount), updated Edge Cases and Global Notes for all derivative types.
Fixes#60
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update spot/swap/futures place command references, cross-skill workflow,
quickstart, and examples to reflect attached TP/SL support.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>