Trends
Assist users with installing, configuring, using, and troubleshooting the trends-skill-tool CLI for token management, trading, queries, and rewards.
Description
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
- This skill is for end users operating the installed
trends-skill-toolcommand. - Installation channel is global npm only.
Trigger guardrails
- Primary Intent Trigger: Trigger whenever the user expresses intent related to:
- Launching: "Launch a token", "create a memecoin", "launch on trends.fun", "deploy a coin".
- Earnings: "Check my coin creator earnings", "how much have I earned?", "claim my rewards".
- Launch History: "What tokens have I launched?", "my launch history", "show my created coins".
- Portfolio: "What tokens do I hold?", "my holdings", "show my balance".
- Transactions: "What transactions did I make?", "my transaction history", "recent trades".
- Trading/Quotes: "Get a swap quote on trends.fun", "swap on trends.fun", "buy/sell on trends".
- Command-Based Trigger: Trigger for explicit commands:
create,buy,sell,quote,reward,wallet,config,balance,holdings,created,transactions. - Package-Based Trigger: Trigger when user mentions
@trends-fun/trends-skill-tool, "trends command", or "trends tool". - Lifecycle Trigger: Trigger when user asks to install, upgrade, or uninstall this CLI.
- Error Trigger: Trigger when user shares error messages containing "trends-skill" or related bonding curve failures.
Source-of-truth order
references/install-and-setup.mdreferences/command-recipes.mdreferences/error-playbook.md
Workflow
- Identify the user intent:
- Install/setup
- Config/wallet
- Read-only query
- Trade flow
- Troubleshooting
- Pick the matching recipe and provide runnable commands.
- State expected observable outcomes.
- Provide one concrete fallback path tied to known CLI behavior.
- 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 claim
Non-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|reset- install/upgrade/uninstall commands
Use a staged flow for gated write commands:
- Phase 0 (parameter completion): collect missing parameters first. If anything is unresolved, ask focused follow-up questions and stop. Do not ask execution confirmation yet.
- Phase A (not confirmed): preflight analysis + fully resolved parameter echo. Do not provide final executable write steps.
- Phase B (confirmed): provide executable write steps.
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:
- If the user explicitly requests direct execution (
direct write,直接执行,不要确认,skip confirmation), you may bypass the confirmation gate. - Default bypass scope is current request only.
- If the user explicitly states session-level preference, apply bypass for the session.
- Even with bypass, still perform preflight disclosure for
buy/sellquotes andreward claimstatus. - Bypass does not skip Phase 0 parameter completion for missing required/optional create fields.
If confirmation is unclear:
- Ask for explicit confirmation and do not move to Phase B.
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 explanation
For 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-pathis 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 is10000-dev-bpswhenurlexists.
create parameter completion contract (must happen before confirmation):
- Do not ask
confirm/yes proceed/确认执行until each field is resolved. - A field is "resolved" only when:
- user provided a value, or
- user explicitly accepted the default/empty behavior.
- Resolve in this order:
nameandsymbol(required, cannot be empty)desc(user text or explicit empty)image source(local--image-pathor explicit auto-generate)url(valid X profile/tweet URL or explicit none)first-buy(explicit number or explicit0)dev-bps(required decision only whenurlexists; otherwise mark ignored)
- If
urlexists anddev-bpsnot provided, ask whether to use default9600. - If
urldoes not exist, explicitly statedev-bpsis ignored and effective split is token deployer100%, X0%. - If responding in Chinese during missing-parameter collection, use exact wording for URL prompt:
请输入你想指向的费用受益人X profile 或推文链接(可留空)
- If responding in Chinese, label
dev-bpsas:代币部署者分成(dev-bps)
- During Phase 0, ask only missing-field questions plus default choices; do not ask execution confirmation.
create preflight rules:
- If
--image-pathis not provided, explicitly state image will be auto-generated fromsymbol. - If
first-buyis omitted or0, explicitly state: create/pool initialization still happens, but no immediate first buy is executed. - If
first-buyis greater than0, explicitly state: create and first buy are submitted atomically in one flow. - If
urlis provided, show split between token deployer and X creator:- token deployer share =
dev-bps(default9600if omitted) - X creator share =
10000 - dev-bps
- token deployer share =
- If
urlis not provided, explicitly state:--dev-bpsis ignored- effective split is token deployer
100%, X creator0%
For buy/sell preflight, always:
- Run quote first (
trends-skill-tool quote buyortrends-skill-tool quote sell) - Echo route, input/output amount, slippage bps, and key quote fields
- State that
buy/sellwill run only after confirmation
For reward claim preflight, always:
- Run
trends-skill-tool reward statusfirst - Echo
accountExists,rewardLamports,rewardSol - Only proceed to claim confirmation when
accountExists=trueandrewardLamports>0 - If not claimable, stop and provide retry condition
For holdings / created / transactions responses, always include identifiers:
- Always echo queried wallet
address. - For each token row, include token mint address (prefer keys in order:
mintAddress,mint_addr,mint). - Never summarize by
name/symbolonly; disambiguate duplicate symbols with mint address. - Include
next_cursorforcreatedandtransactionswhen present. - If a desired field is unavailable in raw data, explicitly output
N/Aand include the raw key name you used. - For
transactions, include transaction identifier/signature/hash field when present. - For numeric fields in
holdings/created:owner_context.balanceis rawdecimals=6- human-readable value = raw value /
1_000_000
- For numeric fields in
transactions:sol_amountis raw lamports (decimals=9), human-readable value = raw value /1_000_000_000token_amountis raw token base units (decimals=6), human-readable value = raw value /1_000_000
- Always disclose conversions in the response and never present unconverted raw numbers as final user-facing amounts.
Secret Handling Policy (Hard Block)
Never request, read, print, or echo any of the following:
- Private keys
- Mnemonic/seed phrases
secretKeyarrays- Raw keypair file contents
Never suggest commands that expose private key content, including:
cat ~/.config/solana/id.json- Any equivalent command that prints key material
If user provides private key material:
- Refuse to continue handling sensitive key content
- Instruct user to rotate/revoke compromised keys
- Continue only with address-level operations, such as
trends-skill-tool wallet address
Mandatory 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:
- Use the standard read-only template and provide executable steps.
Command policy
- Never invent commands or flags.
- Use only the supported command surface:
trends-skill-tool createtrends-skill-tool buytrends-skill-tool selltrends-skill-tool quote buytrends-skill-tool quote selltrends-skill-tool balancetrends-skill-tool holdingstrends-skill-tool createdtrends-skill-tool transactionstrends-skill-tool reward statustrends-skill-tool reward claimtrends-skill-tool wallet inittrends-skill-tool wallet addresstrends-skill-tool config list|get|set|reset
- Enforce mutually exclusive amount routes:
buy: exactly one of--in-solor--out-tokensell: exactly one of--in-tokenor--out-solquote buy: exactly one of--in-solor--out-tokenquote sell: exactly one of--in-tokenor--out-sol
- Respect integer constraints:
- Strict non-negative integers for options such as
--slippage-bps,--dev-bps,--count,--compute-unit-limit,--compute-unit-price created/transactions --countrange is1..25holdings --countis>= 1
- Strict non-negative integers for options such as
- Create-specific constraints:
- Do not suggest
--slippage-bpsfortrends-skill-tool create. --first-buymeans initial buy amount at create time:- omitted or
0: create only (no initial buy execution) - greater than
0: create + first buy submitted atomically
- omitted or
- Do not suggest
- Reward-specific constraints:
trends-skill-tool reward statusis read-only and should be the first check before claim.trends-skill-tool reward claimshould be suggested only when reward account exists and reward is greater than0.- If reward account is missing or reward is
0, explain that claim returns validation error and no transaction is sent.
Output policy
- Keep steps concise and operational.
- Prefer
--jsonwhen the user requests parsing, automation, or script integration. - Include concrete verification commands (
trends-skill-tool --version,trends-skill-tool --help, targetedquote/query checks) when relevant.
Troubleshooting policy
- First, match exact known errors from
references/error-playbook.md. - Provide deterministic fix commands before broad diagnosis.
- If no exact match exists, run a minimal diagnosis set in this order:
trends-skill-tool --versiontrends-skill-tool --helptrends-skill-tool config listtrends-skill-tool wallet address- Re-run the failing command with explicit endpoints or
--jsonas needed
- Do not provide speculative root causes without a validation step.
Reference routing
- For install, upgrade, uninstall, wallet bootstrap, config precedence: read
references/install-and-setup.md. - For normal task execution patterns: read
references/command-recipes.md. - For error-to-fix mappings and verification commands: read
references/error-playbook.md.
Reviews (0)
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!