- name
- ctx-kline
- description
- Generate multi-symbol context K-line charts at a target timestamp and report output artifacts.
Ctx Kline
Generate context K-line charts once for one symbol + one timestamp.
Inputs
ctx_time:YYYY-MM-DD HH:MMmark:5m|15m|1h|4hsymbol: optional from user, normalized to uppercase without/(e.g.fil/usdt->FILUSDT)temp_mode: optional boolean, auto-enabled when the user intent indicates debugging
SOP
- Collect inputs.
- Detect debug intent from the user message.
- Normalize
symbolif present. - Validate inputs.
- Resolve missing/invalid
symbolvialist_symbols.sh. - Ask one aggregated follow-up only if still missing/invalid inputs.
- Execute
gen_ctx.shonce with final values. - Report normalized inputs + execution result + artifact paths.
Debug Intent Rule
Set temp_mode=true when user intent includes debugging semantics, for example:
debug,debugging,diagnose,troubleshoot调试,排查,测试,临时
When temp_mode=true, append --temp to the execution command.
Validation Rules
ctx_timemust matchYYYY-MM-DD HH:MM(24h).markmust be one of5m,15m,1h,4h.symbolmust be uppercase alphanumeric after normalization.
Symbol Resolution
Use:
bash ~/.agents/skills/ctx-kline/list_symbols.sh- If output is
(empty): ask user to providesymbolmanually. - If output has candidates: show them and ask user to choose one.
- If user-provided symbol is not in candidates: show candidates and ask again.
- Do not auto-pick symbol unless user explicitly requests auto-pick.
Follow-up Prompt Rule
- Ask at most one concise follow-up message.
- Aggregate all missing/invalid fields into one question.
Template:
"Missing/invalid inputs: <fields>. Please provide ctx_time (YYYY-MM-DD HH:MM), mark (5m|15m|1h|4h), and symbol (e.g. FILUSDT)."
Execute
bash ~/.agents/skills/ctx-kline/gen_ctx.sh "<ctx_time>" <mark> --symbol <symbol> [--temp]- Append
--tempwhentemp_mode=true.
Report Format
inputs: normalizedctx_time,mark,symboltemp_mode: true or falseoutput_dir: output dirstatus: success or failureartifacts: output files/pathserror: concise reason + next user action when failed
Then tell the user to use ranger <output_dir> to continue.