App-side OneKey Trade/Swap/Market guide for Swap core, Swap Pro, Wallet Home and Home Token entries, Send/Earn/Market/Buy handoffs, native/mobile host differences, K-line/chart, token selectors, cold-start frame-by-frame validation, quote/build/send flows, history/status, provider channels, PrivateSend-like channels, stock-trading channels, limit/order flows, fees, slippage, ETA, and cross-module funding handoffs.
63
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Fix and improve this skill with Tessl
tessl review fix ./.skillshare/skills/1k-trade-swap-market/SKILL.mdUse this skill when App code touches Trade, Swap, Market swap panels, provider/channel integrations, order-style execution, K-line data, transaction history, token selection, cold-start rendering, or funding handoffs into Swap.
This is an App development skill. Use current repository code, runtime payloads, and visible App behavior as evidence. Do not bake external workflow details into the skill.
The canonical Swap path is:
selection/account -> quote -> review snapshot -> build/sign/send -> pending history/status
Treat Swap as the execution spine below visible surfaces. Market speed-swap, Bridge, Limit, PrivateSend-like flows, stock/order channels, and funding handoffs can adapt entry, asset, and settlement semantics, but they must still declare quote, review, execution, history, status, and repair ownership.
When a visible entry is merged into another surface, keep visible tab state
separate from internal execution and channel type. For example, Bridge can
render under the Swap & Bridge tab while BRIDGE still owns cross-chain
defaults, support checks, history labels, status, analytics, and provider
semantics.
For broad Swap or Trade bugs, analyze in this order before changing code:
This order applies to Swap page work and to Home Token, Send, Market, Earn, or Buy entries that launch or prefill Swap.
When a Trade/Swap/Market task comes from Jira, Slack, a review thread, or a local todo ledger, treat the title as a routing clue only. Before changing code, verify the current source-of-truth packet:
If source evidence conflicts, stop and name the conflict before picking a fix shape.
For a sufficiently clear feature or bug request, recover discoverable context, fill the capability packet, implement, test, and validate without waiting for a human to map the repository. Read autonomous-feature-workflow.md before editing and use feature-packet.md as the working artifact.
Run the readiness check first:
node .skillshare/skills/1k-trade-swap-market/scripts/check-readiness.mjsThe check intentionally fails when current stable anchors or required eval assets are missing, or when pre-existing uncommitted domain code makes intake ambiguous. Reconcile the current checkout, code map, and tests before continuing; do not bypass the failure. Use runtime-boundaries.md for every cross-runtime, persistence, cold-start, background, or restart path and test-map.md for exact validation lanes.
Autonomy does not authorize inventing product behavior, resolving conflicting authoritative sources silently, using unavailable secrets, making irreversible external writes, or claiming runtime proof from static checks.
Before adding or reviewing any provider channel, define this contract:
PrivateSend-like channels and future stock-trading channels should be evaluated with this same contract before UI work starts.
main, bg,
native/web resource, JS-copy, and initialization ownership.| Need | Reference |
|---|---|
| Understand the App flow and extension seams | app-architecture.md |
| Execute a feature end to end | autonomous-feature-workflow.md |
| Fill the implementation capability packet | feature-packet.md |
| Find stable code anchors | code-map.md |
| Reason about main/bg/persistence/init timing | runtime-boundaries.md |
| Define provider/channel fields | provider-contracts.md |
| Define channel listening, writeback, replay, and repair | channel-state-model.md |
| Prevent known failure classes | checklists.md |
| Prove the change works | validation.md |
| Run exact focused test lanes | test-map.md |
| Validate Swap cold-start frames, default tokens, tab stability, and Wallet handoffs | swap-cold-start-frame-checklist.md |
Use these drills to judge whether the skill is complete enough for a new requirement:
If a drill cannot be completed from the references, update the abstraction instead of adding another one-off case.
/1k-coding-patterns for TypeScript and React patterns./1k-state-management for Jotai state ownership./1k-cross-platform for desktop, web, extension, and native differences./1k-i18n for translation work.3cff1b4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.