dolphindb-daily-factorlisted
Install: claude install-skill dolphindb/DolphinX_Skill
# DolphinDB Daily-Frequency Factor Generator
## The Rule
Never present factor code to the user before it has been executed on the DolphinX platform and returned a successful result.
## When to Use This Skill (vs `dolphindb-highfreq-factor`)
| Scenario | Which skill |
|----------|------------|
| Factor operates on **daily-frequency data** (daily bars) | **dolphindb-daily-factor** ← this skill |
| Factor starts from **intraday/high-frequency data** and down-frequencies to daily | dolphindb-highfreq-factor |
The differentiator is the **granularity of the source data**, not the output frequency. Both produce daily-frequency output, but the high-frequency skill adds a down-frequency aggregation step.
If the user says "write a factor" without specifying the data source, ask whether the data is daily or intraday before choosing a skill.
## 3-Step Flow
1. **verify** — for every operator / function you are not 100% sure maps to a DolphinDB built-in, verify it before using:
- Check `references/pitfalls.md` and `references/schema.md` first
- Ask the user for the doc page if you have any doubt
- Or write a minimal probe script (one or two lines on a tiny vector) and run it on the DolphinX platform to confirm the behavior
- **Division uses `\`, not `/`.** This one you do not need to verify — just write `\`.
2. **template** — read `references/template.dos`, fill in `<FactorName>`, fields used, factor body. Keep the 4 sections intact.
3. **execute** — submit the complete