calendar
Skill268 starsChanged 48 days agoApache-2.0View on GitHub
Use whenever a strategy depends on the market calendar — market closures/holidays, trading-day counting, the Nth trading day before/after a date, or whether a date is a trading day. Use QuantConnect's built-in calendar; do not hand-roll a holiday calendar or hardcode dates.
32 other projects use a version of this.
Adopted by
Most recently taken up by
- t128n/skillstheir own version, first seen Nov 8, 2026
- sidmanale643/pekka-bottheir own version, first seen Nov 8, 2026
- pietz/skillstheir own version, first seen Nov 8, 2026
- yourbeckett/beckett-for-claudetheir own version, first seen Nov 1, 2026
- staskh/trading_skillstheir own version, first seen Nov 1, 2026
- bks-lab/open-bridgetheir own version, first seen Oct 30, 2026
Used with
Projects with it also use contacts, reminders and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seahycSkillcontacts
Look up employee information via Lark - find colleagues by ID, list department members, search users by name, search departments. Use when user asks about a person, colleague, job title, department, or org structure.
Also in 3 projects that use this
MicrosoftSkillreminders
Use when an employee asks something like \"Is there anything else I should know about my benefits or time off before the end of the year\"
Also in 4 projects that use this
OpenAISkillemail
Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.
Also in 6 projects that use this
QuixiAISkilltrello
List Trello boards, lists, and cards and create or update cards with explicit approval
Also in 3 projects that use this
AnthropicSkillaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
Also in 3 projects that use this
claude-office-skillsSkillmeeting-notes
>
Also in 3 projects that use this
Other versions32 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 32
- kellyvv/PhoneClaw★ 1.3ksame name
- QuixiAI/agi-memory★ 623same name
- QuixiAI/Hexis★ 623same name
- staskh/trading_skills★ 405same name
- k1p1l0/claude-telegram-supercharged★ 144same name
- adagradschool/cc-gtd★ 35same name
- rainday/smart-blog-skills★ 35same name
- wulaosiji/skills★ 28same name
- bks-lab/open-bridge★ 13same name
- tomo3141592653/ayumu-oss★ 9same name
22 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs-styleSkill
- code-qualitySkill
- cryptoSkill
- data-exportSkill
- data-issuesSkill
- debug-algorithmSkill
- debug-performanceSkill
- equity-fundamental-dataSkill
- equity-optionsSkill
- futuresSkill
- historical-data-equity-optionsSkill
- historySkill
- indicatorsSkill
- loggingSkill
- option-strategiesSkill
- ordersSkill
- pricingSkill
- scheduled-eventsSkill
- universesSkill
- calendarSkill
- code-qualitySkill
- cryptoSkill
- data-exportSkill
- data-issuesSkill
- debug-algorithmSkill
- debug-performanceSkill
- equity-fundamental-dataSkill
- equity-optionsSkill
- futuresSkill
- historical-data-equity-optionsSkill
- historySkill
- indicatorsSkill
- loggingSkill
- option-strategiesSkill
- ordersSkill
- pricingSkill
- scheduled-eventsSkill
- universesSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 53
Do not try to reverse-engineer names out of .Holidays.
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Market calendar — use QC's built-in calendar, don't reinvent it
Don't hand-roll a trading-day loop or hardcode dates. QuantConnect exposes the real historical calendar for each security's exchange. But it does NOT hand you a clean "named holidays" list, so read this carefully — the obvious-looking APIs do something different from what their names suggest (all behaviour below is verified on the cloud).
Stepping / counting trading days — THIS is the reliable primitive
On the exchange hours object:
var hours = Securities[symbol].Exchange.Hours;
var prev = hours.GetPreviousTradingDay(d); // -> DateTime, trading day strictly before d
var next = hours.GetNextTradingDay(d); // -> DateTime, trading day strictly after d
var openToday = hours.IsDateOpen(d); // -> bool, true iff the exchange trades on date dThese skip weekends and all closures, so no manual weekend/holiday checks are needed.
- "Last trading day before date H" →
hours.GetPreviousTradingDay(H). - "Nth trading day before H" → start at H and call
GetPreviousTradingDayN times in a loop. - Verified: before Memorial Day 2025 (Mon 5/26), one step → 5/23, five steps → 5/19;
IsDateOpen(5/26)→false.
The session open/close TIME on a date (early-close aware)
For the actual TIME the exchange opens/closes on a date — not just whether it trades — use the exchange-hours helpers, instead of reading .EarlyCloses or hand-rolling the session segments:
var hours = Securities[symbol].Exchange.Hours;
var closeDt = hours.GetNextMarketClose(Time, false); // next close at/after Time; extendedMarketHours: false
var openDt = hours.GetNextMarketOpen(Time, false);These return the REAL boundary for that date, so they already account for early-close half-days (e.g. a 13:00 close) and holidays. Use them for time-to-close logic, or to find when "the close" actually is, rather than hardcoding 16:00 or computing it from the hours segments yourself.
Full-day market closures — Exchange.Hours.Holidays
Securities[symbol].Exchange.Hours.Holidays → a HashSet<DateTime> (midnight) of EVERY full-day closure for that exchange. Compare on the date component: hours.Holidays.Any(h => h.Date == d.Date).
This is NOT a list of the named federal holidays. It is the union of ALL full-day closures, which includes:
- Good Friday (a market closure but not a federal holiday), and
- ad-hoc closures — e.g. 2025-01-09 was closed for a national day of mourning; historically also hurricanes, 9/11, etc.
So you cannot get "the nine federal holidays" by taking .Holidays and dropping Good Friday — you would still pick up the ad-hoc days. Use .Holidays / IsDateOpen to answer "is the market closed on date D," not to enumerate named holidays.
Half-days are separate: .EarlyCloses / .LateOpens (dictionaries) — a half-day is not in .Holidays.
Pitfall — GetDaysByType does NOT return holidays
TradingCalendar.GetDaysByType(TradingDayType.PublicHoliday, start, end) returns ALL non-business days (weekends + closures) — ~117 for a single year, not ~10. The TradingDay.PublicHoliday flag is likewise true for weekends (a Saturday comes back with PublicHoliday=true, Weekend=true). Do not use this method, or that flag, to find holidays.
TradingCalendar.GetTradingDays(start, end)is fine for enumerating days; identify a weekday closure asBusinessDay == false && Weekend == false(this still includes Good Friday + ad-hoc closures, same caveat as.Holidays).
When a strategy targets SPECIFIC NAMED holidays
QC's calendar can tell you whether a day is closed and can count trading days, but it cannot name a closure. If the method needs particular named holidays (e.g. the nine U.S. federal holidays, excluding Good Friday), compute each holiday's NOMINAL calendar date by its rule (a fixed date like new DateTime(y, 7, 4), or an Nth-weekday like the 3rd Monday of January; honor start years such as Juneteenth from 2022). Then ANCHOR on that nominal date and let the calendar API map it to trading days:
- "Last trading day before holiday H" →
hours.GetPreviousTradingDay(nominalH). It already skips the weekend, the observed closure, and any adjacent closures, so it returns the correct day in every case. - Do NOT hand-roll observed-date shifts (Saturday→Friday / Sunday→Monday). The generic shift is WRONG for New Year's: NYSE does not close the preceding Friday when Jan 1 is a Saturday (verified — Dec 31 2021 was a normal trading day, with
IsDateOpentrueand not in.Holidays), so a hand-rolled shift mis-dates the window by a day. The nominal-anchor approach is correct for all of them, New Year included, with no special cases.
Do not try to reverse-engineer names out of .Holidays.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

