perps-write-ticket
Interactively author one clean, complete perps ticket — bug, EPIC, or initiative — that states intent and expected outcome without implementation. Use when a PM (or a Claude acting for one) has a raw perps observation, feature idea, or strategic goal and wants a single well-formed ticket ready for engineering to break down. This is the first (product) pass; the engineering split + layer routing is a separate pass (perps-breakdown-tickets). Captures what/expected/repro, makes the ticket surfaceable so it doesn't get lost, and stops before implementation or repo routing.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- perps-write-ticket
- maturity
- experimental
- description
- Interactively author one clean, complete perps ticket — bug, EPIC, or initiative — that states intent and expected outcome without implementation. Use when a PM (or a Claude acting for one) has a raw perps observation, feature idea, or strategic goal and wants a single well-formed ticket ready for engineering to break down. This is the first (product) pass; the engineering split + layer routing is a separate pass (perps-breakdown-tickets). Captures what/expected/repro, makes the ticket surfaceable so it doesn't get lost, and stops before implementation or repo routing.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md367 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Write Perps Ticket
Turn a raw perps observation, idea, or goal into one clean, complete ticket the product team can file and engineering can break down as-is. You describe what and what's expected — never how.
When To Use
- A PM (or a Claude acting for one) reports a perps bug, proposes a feature, or frames a strategic goal and wants a well-formed ticket.
- The input is raw: a Slack message, a screenshot, a one-line idea.
This is the first (product) pass. The technical split — which repos/layers
change, dependency order, component routing — is the engineer's job and lives in
perps-breakdown-tickets. Do not do it here.
Not for: engineering task breakdown, or routing a ticket across Core/clients
(→ perps-breakdown-tickets).
Operating principle: intent, not implementation
You own the what and the why. The engineer owns the how. A product ticket that prescribes implementation boxes engineering into the wrong solution and goes stale the moment the code moves.
- State expected behavior as a testable outcome, not a fix. "Size shows USD
value" — not "call
abs(size) * entryPriceinposition-card". - No file paths, no component names you'd have to guess, no layer routing.
- 2-3 sentences per field. One concern per ticket — split multi-bug reports.
- If you can't state the expected outcome in one testable line, it's not a ticket yet — ask the reporter.
Pick the type
Ask which kind, or infer it and confirm. Each has its own shape:
- Bug — something is broken now. → behavior + repro.
- EPIC — a shippable, user-facing capability. → outcome + feature-level acceptance; tasks are deferred to engineering.
- Initiative — a strategic goal spanning multiple EPICs. → why + measurable success; no features yet.
Workflow (interactive)
- Intake. Read the raw input. Identify the type. Ask only what you can't infer: the expected outcome (as a testable line), and for bugs the repro path and required wallet state. Don't ask for anything an engineer derives later.
- One concern. If the input bundles several bugs or goals, split into separate tickets — list them and confirm before writing.
- Draft the ticket in the matching format below.
- Make it surfaceable (see below) so it doesn't vanish into the backlog.
- Stop at the product boundary. Do not add implementation, file paths, or a
layer split. Hand off: a bug/EPIC is ready for
perps-breakdown-tickets.
Surfacing (so bugs don't get lost)
A filed ticket nobody triages is a lost ticket. On every ticket set:
- Severity / priority — for bugs, one line: user impact + how often it hits (every user / edge case). For EPICs/initiatives, the outcome's value.
- Area label —
perps+ the surface in plain words (e.g. "order entry", "position card"). Enough for triage to route; not a component path. - Type correctly set (Bug / EPIC / Initiative) so it lands in the right queue, not an undifferentiated pile.
Ticket formats
Keep every field tight. Plain language — the engineer maps surfaces to components during breakdown.
Bug
Title — [bug] <one-line user-visible symptom>
What's broken — actual behavior today: which screen, what the user sees,
what value/element is wrong. 1-2 sentences.
Expected — what should happen instead, as a testable "when X, then Y"
line. This becomes the acceptance criteria.
Steps to reproduce — numbered, from app open to bug visible.
Surface — the screen/area in plain words ("Perps home position card").
Pre-conditions — required wallet/app state (unlocked, open BTC position,
deposited balance). Only the ones that apply.
Severity — user impact + frequency.
For displayed numbers, describe the semantic ("shows the asset price", "shows USD value of the position"), never a decimal count — precision is range-adaptive (a $0.001 alt behaves differently from BTC).
EPIC
Title — [epic] <user-facing capability>
Outcome — what the user can do after this ships that they can't today. 1-3
sentences.
Acceptance (feature-level) — testable "when X, then Y" lines describing the
capability working end to end. Not implementation steps.
Scope — in / out, in one line each. What this EPIC does NOT cover.
Surface — the perps area(s) affected, in plain words.
Parent initiative — link if one exists.
Initiative
Title — [initiative] <strategic goal>
Why — the problem/opportunity and who it's for. 1-3 sentences.
Success metric — how we'll know it worked (measurable; a number or a clear
observable change), not a feature list.
Scope boundary — what's in and explicitly out at this level.
Child EPICs — known candidate EPICs (titles only; they get their own
tickets). Leave open if not yet decided.
Quality bar (reject before filing)
- Bug with no repro or no testable expected line → ask the reporter; don't file.
- Implementation prescribed (file paths, "call X", layer routing) → strip it; that's the engineer's pass.
- Multi-bug / multi-goal in one ticket → split.
- "Investigate and fix" / "looks wrong" / "see recording" → narrow to a concrete expected outcome first.
- EPIC/initiative with no measurable success or acceptance → not ready.
Handoff
A bug or EPIC produced here is the input to perps-breakdown-tickets, which
(with codebase access) routes it across Core/Core-release/Mobile/Extension and
emits the engineering task tickets. Keep this skill on the product side of that
line.
References (read from the library, don't duplicate)
Files live in the perps library (MetaMask/experimental-metamask-recipe-perps; root printed by mm-harness help review --domain perps, or RECIPE_LIBRARY_PATH).
docs/knowledge/screens.md— screen/area names, if you want to use precise surface labels (optional; plain words are fine for a product ticket).docs/knowledge/formatting-rules.md— number semantics, to describe expected values correctly without prescribing decimals.- Related skills:
perps-breakdown-tickets(engineering split + routing — the next pass),recipe-fix-ticket(implement a fix).
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.