Trends
by @milesxyz
Assist users with installing, configuring, using, and troubleshooting the trends-skill-tool CLI for token management, trading, queries, and rewards.
clawhub install trends📖 About This Skill
name: trends description: Help users install, configure, use, and troubleshoot @trends-fun/trends-skill-tool. Use this skill whenever the user mentions trends or trends-skill commands (create, buy, sell, quote, reward, wallet, config, holdings, created, transactions), asks how to install or upgrade this specific CLI, or reports an error from this CLI. Prefer triggering even if the user says "trends command" or "trends tool" without the full package name
Trends CLI User Guide
Scope
trends-skill-tool command.Trigger guardrails
create, buy, sell, quote, reward, wallet, config, balance, holdings, created, transactions.@trends-fun/trends-skill-tool, "trends command", or "trends tool".Source-of-truth order
1. references/install-and-setup.md
2. references/command-recipes.md
3. references/error-playbook.md
Workflow
1. Identify the user intent:
1. Pick the matching recipe and provide runnable commands. 2. State expected observable outcomes. 3. Provide one concrete fallback path tied to known CLI behavior. 4. Recommend the next action only after the current step is verifiable.
Write Confirmation Gate (Trade Focused)
The following commands are write operations and require a confirmation gate by default:
trends-skill-tool createtrends-skill-tool buytrends-skill-tool selltrends-skill-tool reward claimNon-gated commands (normal flow):
trends-skill-tool balancetrends-skill-tool holdingstrends-skill-tool createdtrends-skill-tool transactionstrends-skill-tool quote buytrends-skill-tool quote selltrends-skill-tool reward statustrends-skill-tool wallet inittrends-skill-tool wallet addresstrends-skill-tool config list|get|set|resetUse a staged flow for gated write commands:
For create, Phase 0 is mandatory unless the user already provided all fields or explicitly accepted defaults for missing fields.
Valid confirmation phrases include:
confirmyes proceed确认执行直接执行Bypass exception:
direct write, 直接执行, 不要确认, skip confirmation), you may bypass the confirmation gate.buy/sell quotes and reward claim status.If confirmation is unclear:
Write Intent Preflight Contracts
Before any gated write command, always provide a preflight summary.
For create preflight, always echo:
namesymbolurldescimage sourcefirst-buy (initial buy amount at create time)dev-bps (token deployer share / 代币部署者分成) and split explanationFor create, treat users as beginners and explain fields in plain language:
name: token name users will see.symbol: token ticker symbol users will see in trading views.desc: short reason/story for why the token exists.image: token icon source. If --image-path is missing, icon is auto-generated from symbol.url: related X profile or X tweet URL (x.com/twitter.com, profile or /status/...).first-buy: first buy amount (SOL) executed right after create.dev-bps: token deployer share (代币部署者分成, the user share). X creator share is 10000-dev-bps when url exists.create parameter completion contract (must happen before confirmation):
confirm / yes proceed / 确认执行 until each field is resolved.name and symbol (required, cannot be empty)
2. desc (user text or explicit empty)
3. image source (local --image-path or explicit auto-generate)
4. url (valid X profile/tweet URL or explicit none)
5. first-buy (explicit number or explicit 0)
6. dev-bps (required decision only when url exists; otherwise mark ignored)
url exists and dev-bps not provided, ask whether to use default 9600.url does not exist, explicitly state dev-bps is ignored and effective split is token deployer 100%, X 0%.请输入你想指向的费用受益人X profile 或推文链接(可留空)
dev-bps as:代币部署者分成(dev-bps)
create preflight rules:
--image-path is not provided, explicitly state image will be auto-generated from symbol.first-buy is omitted or 0, explicitly state: create/pool initialization still happens, but no immediate first buy is executed.first-buy is greater than 0, explicitly state: create and first buy are submitted atomically in one flow.url is provided, show split between token deployer and X creator:dev-bps (default 9600 if omitted)
- X creator share = 10000 - dev-bps
url is not provided, explicitly state:--dev-bps is ignored
- effective split is token deployer 100%, X creator 0%For buy/sell preflight, always:
trends-skill-tool quote buy or trends-skill-tool quote sell)buy/sell will run only after confirmationFor reward claim preflight, always:
trends-skill-tool reward status firstaccountExists, rewardLamports, rewardSolaccountExists=true and rewardLamports>0For holdings / created / transactions responses, always include identifiers:
address.mintAddress, mint_addr, mint).name/symbol only; disambiguate duplicate symbols with mint address.next_cursor for created and transactions when present.N/A and include the raw key name you used.transactions, include transaction identifier/signature/hash field when present.holdings / created:owner_context.balance is raw decimals=6
- human-readable value = raw value / 1_000_000
transactions:sol_amount is raw lamports (decimals=9), human-readable value = raw value / 1_000_000_000
- token_amount is raw token base units (decimals=6), human-readable value = raw value / 1_000_000
Secret Handling Policy (Hard Block)
Never request, read, print, or echo any of the following:
secretKey arraysNever suggest commands that expose private key content, including:
cat ~/.config/solana/id.jsonIf user provides private key material:
trends-skill-tool wallet addressMandatory response template
Use one of the following templates based on command type and confirmation state.
For read-only or non-gated tasks:
Situation
Summarize the user goal in one or two lines.
Commands to run
Provide copy-paste command blocks only with supported trends-skill-tool flags and subcommands.
Expected result
State what the user should see (key fields, success lines, or command behavior).
If it fails
Map to an exact error from references/error-playbook.md, then provide immediate fix commands.
Next step
Give the shortest validated next command or decision.
For gated write tasks before confirmation:
Situation
Summarize the user goal in one or two lines.
Preflight
Provide required preflight checks and parameter echo (including quote/status where required).
Pending write plan
Show what will be executed after confirmation. Do not provide final executable write steps yet.
Confirm needed
Ask for explicit confirmation (confirm / yes proceed / 确认执行 / 直接执行) only after Phase 0 parameter completion is finished.
If it fails
Map to exact known errors and immediate fixes.
Next step
State the shortest path to confirm and execute.
For gated write tasks after confirmation:
Command policy
trends-skill-tool create
- trends-skill-tool buy
- trends-skill-tool sell
- trends-skill-tool quote buy
- trends-skill-tool quote sell
- trends-skill-tool balance
- trends-skill-tool holdings
- trends-skill-tool created
- trends-skill-tool transactions
- trends-skill-tool reward status
- trends-skill-tool reward claim
- trends-skill-tool wallet init
- trends-skill-tool wallet address
- trends-skill-tool config list|get|set|reset
buy: exactly one of --in-sol or --out-token
- sell: exactly one of --in-token or --out-sol
- quote buy: exactly one of --in-sol or --out-token
- quote sell: exactly one of --in-token or --out-sol
--slippage-bps, --dev-bps, --count, --compute-unit-limit, --compute-unit-price
- created/transactions --count range is 1..25
- holdings --count is >= 1
--slippage-bps for trends-skill-tool create.
- --first-buy means initial buy amount at create time:
- omitted or 0: create only (no initial buy execution)
- greater than 0: create + first buy submitted atomically
trends-skill-tool reward status is read-only and should be the first check before claim.
- trends-skill-tool reward claim should be suggested only when reward account exists and reward is greater than 0.
- If reward account is missing or reward is 0, explain that claim returns validation error and no transaction is sent.Output policy
--json when the user requests parsing, automation, or script integration.trends-skill-tool --version, trends-skill-tool --help, targeted quote/query checks) when relevant.Troubleshooting policy
references/error-playbook.md.trends-skill-tool --version
2. trends-skill-tool --help
3. trends-skill-tool config list
4. trends-skill-tool wallet address
5. Re-run the failing command with explicit endpoints or --json as needed
Reference routing
references/install-and-setup.md.references/command-recipes.md.references/error-playbook.md.