"Generate LOG K-line artifacts from symbol + trade time by auto-resolving trade metadata from local trade CSV files."
Resources
2Install
npx skillscat add samuerio/dotfiles/gen-log-kline Install via the SkillsCat registry.
SKILL.md
Gen Log Kline
Generate one LOG artifact package with only symbol and trade_time provided by user.
Inputs
symbol: required; normalize to uppercase without/(example:fil/usdt->FILUSDT)trade_time: required;YYYY-MM-DD HH:MMin UTC+0 (same as trade CSVOpened)mark: optional; default5m
SOP
- Collect
symbolandtrade_timefrom user. - Normalize and validate inputs.
- Resolve missing/invalid
symbolvialist_symbols.sh. - Execute
gen_log.shonce with final values. - Report normalized inputs + resolved trade row + execution result + artifact paths.
Validation Rules
trade_timemust matchYYYY-MM-DD HH:MMand is interpreted as UTC+0.symbolmust be uppercase alphanumeric after normalization.mark(when provided) must be one of5m,15m,1h,4h.
Symbol Resolution
Use:
bash ~/.agents/skills/gen-log-kline/list_symbols.sh- If output is
(empty): ask user to provide a validsymbolmanually. - If user symbol is not in candidates: show candidates and ask user to choose one.
Follow-up Prompt Rule
- Ask at most one concise follow-up message.
- Aggregate all missing/invalid fields into one question.
Template:
"Missing/invalid inputs: . Please provide symbol (e.g. FILUSDT) and trade_time (YYYY-MM-DD HH:MM, UTC+0 from trade log)."
Execute
bash ~/.agents/skills/gen-log-kline/gen_log.sh "<trade_time>" --symbol <symbol>Optional mark override:
bash ~/.agents/skills/gen-log-kline/gen_log.sh "<trade_time>" --symbol <symbol> --mark <mark>Report Format
inputs: normalizedsymbol,trade_time,markresolved_trade:open_time_utc0,close_time_utc0,open_time_utc_plus_8,close_time_utc_plus_8,open_price,close_price,direct,quantity,source_file,source_linestatus: success or failureartifacts: output files/pathserror: concise reason + next user action when failed