mcpField
1
1k-defi-module-integration

1k-defi-module-integration

github.com/onekeyhqDevelopment2.5k53 installsUpdated today
Repository

About 1k-defi-module-integration

A development skill for tracing Earn and DeFi behavior in the OneKey app, from entry point through transaction and refresh. It helps developers identify the owning surface and verify changes against runtime behavior.

Key features

  1. 01Trace entry-to-refresh operation flows
  2. 02Locate service and surface owners
  3. 03Map portfolio actions to transactions
  4. 04Choose focused tests and runtime checks

Use cases

  1. 01Debug a borrow or staking flow
  2. 02Trace a portfolio action issue
  3. 03Verify a funding handoff to Swap

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-defi-module-integration

After installing, type/1k-defi-module-integrationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
references/
app-architecture.md
code-map.md
operation-flow.md
portfolio-actions-guide.md
validation.md

Details

From the project README

Earn / DeFi

Use this skill as a map to the owning surface and service contract. Derive product behavior from current code, server data, and the real runtime.

Quick Start

  1. Reproduce the real entry and affected platform.
  2. Trace entry -> data/position -> action -> transaction -> status -> refresh.
  3. Find the first owner whose identity, capability, or transition is wrong.
  4. Reuse a nearby pattern only when its protocol and operation semantics match; then verify the changed path and a relevant sibling.

Find The Owner

TaskStart hereRead next
Earn home, list, recommendation, or detailEarn view/state and its service requestArchitecture, Code map
Borrow, staking, claim, withdraw, repay, or statusOperation owner and current service contractOperation flow
Portfolio position or actionPosition data, supported action, transaction builderPortfolio actions
Native route, modal, event, or account switchDiscovery host and runtime ownerArchitecture
External protocol websiteDiscovery/browser until an App-owned RPC beginsArchitecture
Funding handoff to SwapDeFi prefill before quote; Swap execution afterward$1k-trade-swap-market

Load Detail As Needed

  • Architecture explains surfaces, hosts, runtimes, and cross-module boundaries.
  • Code map gives stable directories and search anchors.
  • Operation flow covers operation identity, setup, transaction, status, and refresh.
  • Portfolio actions covers how visible positions, supported actions, and transaction building join.
  • Validation helps choose focused tests and runtime evidence for the changed layer.

Finish

State the owning surface/service and the identities that matter. Run nearby tests and repository-required checks, then prove the affected route reaches the intended terminal and refresh state. Report unavailable runtime or server proof.

Related skills: $1k-trade-swap-market, $1k-state-management, $1k-cross-platform, $1k-coding-patterns.

Comments

Markdown supported