AGENT SKILL

defi-and-stablecoin-mechanics

Trace where a DeFi yield actually comes from and enumerate the failure modes of AMMs, lending markets, yield aggregators, liquid staking, and stablecoin designs including the specific depeg path. Use when the asset or opportunity involves DeFi, staking yield, LP positions, lending or borrowing, restaking, real-yield claims, algorithmic or collateralized stablecoins, or when the board asks about depeg risk or why an APY is so high.

License 许可
Apache-2.0
所属仓库
cwik-tech/octopus
最近更新
2026-10-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
defi-and-stablecoin-mechanics
description
Trace where a DeFi yield actually comes from and enumerate the failure modes of AMMs, lending markets, yield aggregators, liquid staking, and stablecoin designs including the specific depeg path. Use when the asset or opportunity involves DeFi, staking yield, LP positions, lending or borrowing, restaking, real-yield claims, algorithmic or collateralized stablecoins, or when the board asks about depeg risk or why an APY is so high.

03 SKILL.md 正文

DeFi and Stablecoin Mechanics

Every yield has a payer and every peg has a defender. This skill names both and lists how each fails. Record findings as verified or claimed.

1. Yield source decomposition

Break any advertised APY into its economic components. Start with these common categories and add any source that does not fit instead of forcing it into the table:

Source Who pays Durability Note
Trading fees Traders Tied to volume and fee policy External fee revenue only to the extent volume and distribution are verified
Borrow interest Borrowers or incentive programs Tied to borrowing demand and subsidies Separate borrower-paid interest from token incentives
Protocol revenue share Product users Tied to usage and enforceable distribution Verify the fee switch, claim priority, costs, and who can change it
Token emissions Existing holders through dilution Depends on the issuance schedule and token demand Nominal yield; not net value creation by itself
Liquidation, MEV, incentives, or other transfers Identify the payer Source-specific State whether it is recurring, subsidized, adversarial, or correlated with losses
Leverage / recursion Not an independent payer Ends or reverses under deleveraging Amplifies the underlying sources and failure paths

State the percentage of the advertised APY funded by emissions and show both token units and a value scenario. If the majority is emissions in the protocol's own token, record: nominal yield is primarily dilution-funded. If the source cannot be named, record: unexplained return — unverified and blocking. Do not label fraud without evidence of deception.

2. Failure modes by primitive

AMMs / LP positions

  • Impermanent loss versus fees earned; state break-even volatility if data allows
  • Pool token composition — a pool paired against the protocol's own token doubles the exposure
  • Concentrated liquidity ranges that fall out of range
  • Router or pool contract upgradeability (defer to early-stage-token-diligence gates)

Lending markets

  • Bad-debt path: collateral drops faster than liquidations execute; oracle lag or manipulation
  • Isolated vs cross-collateral; which assets can be borrowed against which
  • Utilization spikes trapping lenders (cannot withdraw at 100% utilization)
  • Governance-listed long-tail collateral as a tail-risk path through oracle manipulation, thin liquidation markets, and bad debt

Yield aggregators / vaults

  • Strategy opacity: what the vault actually does with deposits
  • Stacked contract risk: every underlying protocol's risk is inherited
  • Withdrawal queues and gating under stress

Liquid staking / restaking

  • Validator slashing and operator concentration
  • LST/LRT discount to underlying during exit queues
  • Rehypothecation depth: how many layers of claims sit on the same underlying

Bridges and wrapped assets

  • Custodial vs light-client; who holds the keys or the proofs
  • A wrapped asset adds bridge, validator, operator, or custodian risk on top of the underlying asset risk

3. Stablecoin design and depeg path

Classify the design, then trace the exact sequence of a depeg.

Design Peg defender Primary depeg path
Fiat-backed Issuer's reserves and redemption Reserve opacity, banking partner failure, redemption freeze, blacklisting
Overcollateralized crypto-backed Liquidation engine and collateral haircuts Collateral crash outpacing liquidations; oracle failure; collateral itself is a stablecoin (circular)
Delta-neutral / basis-trade Funding rates and exchange counterparties Negative funding for extended periods; exchange insolvency; hedge cannot be unwound
Algorithmic / endogenous collateral Arbitrage against the protocol's own token Reflexive death spiral when the backing token falls; no exogenous value to stop it
Hybrid Combination Components can fail independently or reinforce one another; test the combined stress path

For each stablecoin under review state: collateral composition and quality, redemption mechanism and who can use it, historical worst deviation from peg, and what the redemption queue looks like under a run. Endogenous-collateral designs require an explicit reflexive-death-spiral stress test and remain blocked until the board records why exogenous support or controls can interrupt it.

4. Stress narrative

Write the two-to-four-sentence story of how this specific position loses most of its value: the trigger, the mechanism, the speed, and whether an exit is possible mid-event. If no plausible loss story can be written, the analysis is incomplete, not the position safe.

Output of this skill

  • Yield decomposition with emissions percentage and a real-yield verdict
  • Applicable primitive failure modes, ranked by likelihood × severity
  • Stablecoin classification and depeg path where relevant
  • Stress narrative
  • Claims requiring verification (reserve attestations, audit reports, funding-rate history, on-chain collateral ratios) phrased for a researcher

04 同仓库更多 Skills

cwik-tech
cwik-tech/octopus

twenty-year-land-plan

Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.

★ 0
cwik-tech
cwik-tech/octopus

thematic-gut-check

Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.

★ 0
cwik-tech
cwik-tech/octopus

supply-pipeline-gut-check

Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.

★ 0
cwik-tech
cwik-tech/octopus

ruin-scenario-mapping

Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.

★ 0
cwik-tech
cwik-tech/octopus

revenue-cost-architecture

Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.

★ 0
cwik-tech
cwik-tech/octopus

replacement-cost-stress-test

Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.

★ 0