Implement and debug OneKey Earn, Borrow, Staking, and DeFi Portfolio flows, including protocol actions, approval, positions, settlement, and refresh.
65
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
Use this skill for decisions specific to protocol positions and operations. The current route, service contract, and chain result determine the behavior; a similar-looking product is a useful comparison only if those semantics match.
Trace the actual entry through:
position/data -> capability -> setup -> business action -> settlement -> refresh
Find the first step whose input or result is wrong. Search by the action, request endpoint, or refresh event and follow its caller and consumer. An Earn page and a wallet DeFi tab can show the same investment through different data owners; do not choose an owner from the screen label alone.
Before changing behavior, establish the affected platform, account/product scope, expected transition, and the evidence that would distinguish the bug from a slow or unavailable dependency. For a presentation-only change, keep verification on the affected layout and interaction; do not expand it into a transaction audit.
| Question | Reference |
|---|---|
| Which surface owns the data, navigation, or loading state? | Architecture |
| How should approval, setup, confirmation, or funding continue? | Operation flow |
| Which position may be displayed or acted on, and how is it refreshed? | Portfolio actions |
| Which checks can prove this particular change? | Validation |
Keep domain rules here and follow repository AGENTS.md for package boundaries,
runtime topology, and delivery checks. Use $1k-trade-swap-market for quoting
and trade execution after a funding handoff; DeFi still owns the return action.
Explain the changed contract, the owner that enforces it, and the observed result. Separate source tracing, automated tests, and real platform/provider proof. A submitted transaction or successful request alone does not prove that the position and available actions have settled.
OneKeyHQ/app-monorepo
cd142ac
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.