AGENT SKILL

write-a-troubleshooting-section

Use when docs must help a user diagnose and fix a problem without paging support. Organises symptoms as searchable entries with the cause, the check, and the fix.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 81
Forks
17

01 前言 Front Matter

name
write-a-troubleshooting-section
description
Use when docs must help a user diagnose and fix a problem without paging support. Organises symptoms as searchable entries with the cause, the check, and the fix.

02 资源文件 3

03 SKILL.md 正文

Write a Troubleshooting Section

Troubleshooting docs are searched by an error message, not read top to bottom. Each entry must be findable by the exact symptom and end in a fix.

Procedure

  1. Organise by symptom, in the user's words: "Connection refused on port 5432", not "Database connectivity subsystem".
  2. Quote the literal error string in the heading, including the code: EADDRINUSE: address already in use.
  3. For each entry, use three labelled parts: Symptom, Cause, Fix. Keep them in that order.
  4. Give the diagnostic command before the fix so the user confirms the diagnosis: lsof -i :5432.
  5. State the fix as commands, and name the file to edit if configuration is involved.
  6. Add a one-line "why this happens" so the user can generalise to the next error.
  7. Link to the relevant config or runbook instead of repeating it.
  8. Order entries by observed frequency, most common first; bury the rare case.
  9. Include a "when this does not work" fallback: the next diagnostic step or the support channel.
  10. Mirror real support tickets: every recurring ticket becomes an entry with its literal error text.
  11. Add a version or environment note when the fix is specific to a release or OS.
  12. Test by searching for the error string; the entry must rank high with the exact match.

Pitfalls

  • Headings that name the cause not the symptom, so the search for the error text misses them.
  • A fix with no diagnostic step, so the user applies it blind and breaks something else.
  • Copy-pasting a Stack Overflow answer with the wrong version's behaviour.
  • Entries that describe the problem but never state the resolution.
  • Splitting one problem across two entries, so neither is complete.
  • Fixing by disabling a safety check, which trades one outage for a later worse one.
  • An entry whose fix requires root or a permission the reader may not hold, with no note.

Verification

grep -n 'EADDRINUSE' docs/troubleshooting.md

The exact literal error is present in a heading or the first line of its entry. Take the top five support tickets and confirm each literal error string appears with a diagnostic and a fix.

04 同仓库更多 Skills

jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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...".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81