agentleFS
ahmetenesdurahmetenesdur/starkfi/skills/lst/SKILL.md

lst

Skill2 starsChanged 8 months agoMITView on GitHub

Liquid staking via Endur on Starknet — stake STRK to receive xSTRK, redeem xSTRK back to STRK, check positions, and view protocol stats. Yield is embedded in the xSTRK share price (no manual claim needed). Use this skill when the user mentions liquid staking, LST, xSTRK, Endur, liquid staking token, share price, instant staking, tradeable staking position, or wants a staking token they can trade or use in DeFi — even if they don't say "liquid staking" explicitly.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 0 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    BEFORE staking, check balance --token STRK to confirm sufficient STRK.

    line 52
  2. Very specific:

    Use lst-stats to check the current exchange rate, total STRK staked, and APR before staking.

    line 53
  3. Very specific:

    Use lst-position to check the user's current xSTRK balance and its STRK value.

    line 54
  4. Very specific:

    When the user asks about "how much yield" from LST, show lst-position which displays the current STRK value vs original deposit.

    line 56
  5. Very specific:

    AFTER any transactional operation (stake, redeem, exit-all), verify with tx-status.

    line 57
  6. Very specific:

    Use balance to check available STRK before staking.

    line 170
  7. Very specific:

    Use staking for delegation staking (validator-based, manual reward claims).

    line 171
  8. Very specific:

    Use troves to deposit xSTRK into yield vaults for additional yield.

    line 172
  9. Very specific:

    Use portfolio for a full overview including LST positions with USD values.

    line 173
  10. Very specific:

    Use batch to combine swaps with liquid staking in one transaction.

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Liquid Staking (Endur LST)

Stake STRK tokens through the Endur liquid staking protocol to receive xSTRK — a liquid staking token whose value appreciates over time as staking yield accrues automatically.

Prerequisites

  • Active session required.
  • Sufficient STRK balance for staking + gas fees.

⚠️ Critical: Yield Model

Endur LST yield is NOT a claimable reward. The xSTRK share price increases automatically to reflect accumulated staking yield. To realize your yield, redeem xSTRK back to STRK — you will receive more STRK than you originally staked.

Do NOT use the staking skill's rewards --claim or rewards --compound for xSTRK positions. Those commands are for delegation staking only.

LST vs Delegation Staking

FeatureDelegation Staking (staking skill)Endur LST (lst skill)
Token receivedNone (position tracked on-chain)xSTRK (ERC-20, tradeable)
Yield mechanismManual claim via rewards --claimAutomatic via share price
LiquidityLocked until unstake cooldownLiquid — trade xSTRK anytime
DeFi composabilityLimitedxSTRK usable in Troves, lending
Unstaking2-step process with cooldownInstant redemption

Rules

  1. BEFORE staking, check balance --token STRK to confirm sufficient STRK.
  2. Use lst-stats to check the current exchange rate, total STRK staked, and APR before staking.
  3. Use lst-position to check the user's current xSTRK balance and its STRK value.
  4. NEVER suggest using rewards --claim or rewards --compound for LST positions. Yield is automatic.
  5. When the user asks about "how much yield" from LST, show lst-position which displays the current STRK value vs original deposit.
  6. AFTER any transactional operation (stake, redeem, exit-all), verify with tx-status.
  7. lst-exit-all redeems the entire xSTRK balance — warn the user before executing.

Commands

# Check LST position (xSTRK balance and STRK value)
npx starkfi@latest lst-position [-a <symbol>] [--json]

# View Endur protocol stats (exchange rate, APR, total staked)
npx starkfi@latest lst-stats [-a <symbol>] [--json]

# Stake STRK to receive xSTRK
npx starkfi@latest lst-stake <amount> [-a <symbol>] [--json]

# Redeem xSTRK back to STRK (partial)
npx starkfi@latest lst-redeem <amount> [-a <symbol>] [--json]

# Redeem all xSTRK back to STRK
npx starkfi@latest lst-exit-all [-a <symbol>] [--json]

Parameters

lst-position / lst-stats

ParameterTypeDescriptionRequired
-a, --assetstringUnderlying asset symbol (default: STRK)No
--jsonflagOutput as JSONNo

lst-stake

ParameterTypeDescriptionRequired
amountnumberAmount of the asset to stakeYes
-a, --assetstringAsset to stake (default: STRK)No
--jsonflagOutput as JSONNo

lst-redeem

ParameterTypeDescriptionRequired
amountnumberAmount of LST shares to redeemYes
-a, --assetstringUnderlying asset (default: STRK)No
--jsonflagOutput as JSONNo

lst-exit-all

ParameterTypeDescriptionRequired
-a, --assetstringAsset to exit completely (default: STRK)No
--jsonflagOutput as JSONNo

Examples

User: "What's the current LST exchange rate?"

npx starkfi@latest lst-stats

User: "Stake 1000 STRK via liquid staking"

npx starkfi@latest status
npx starkfi@latest balance --token STRK
npx starkfi@latest lst-stats   # Check current exchange rate
npx starkfi@latest lst-stake 1000
npx starkfi@latest tx-status <hash>

User: "How much is my xSTRK worth?"

npx starkfi@latest lst-position

User: "Redeem 500 xSTRK back to STRK"

npx starkfi@latest lst-position  # Check available xSTRK balance
npx starkfi@latest lst-redeem 500
npx starkfi@latest tx-status <hash>

User: "Exit all my liquid staking"

npx starkfi@latest lst-position  # Show what will be redeemed
# WARN: This redeems all xSTRK. Confirm with user.
npx starkfi@latest lst-exit-all
npx starkfi@latest tx-status <hash>

User: "Should I use regular staking or liquid staking?"

# Show both options for comparison
npx starkfi@latest lst-stats          # LST: exchange rate, APR
npx starkfi@latest validators         # Delegation: validator list
# Explain: LST = liquid + auto-yield; Delegation = locked + manual claim

Error Handling

ErrorAction
Insufficient balanceCheck balance --token STRK for staking, or lst-position for redeem.
Not authenticatedRun authenticate-wallet skill first.

Related Skills

  • Use balance to check available STRK before staking.
  • Use staking for delegation staking (validator-based, manual reward claims).
  • Use troves to deposit xSTRK into yield vaults for additional yield.
  • Use portfolio for a full overview including LST positions with USD values.
  • Use batch to combine swaps with liquid staking in one transaction.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.