Skip to content

Commit bc8ad8d

Browse files
dshkolclaude
andcommitted
Add: Use StatCan release_time for article dates
- Update article template to show both StatCan data release date and article publish date for new releases - Add Date Handling section with clear instructions for new releases vs backfills (backfills omit the release date line) - Leverages existing release_time metadata from CANSIM API 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8c7df0e commit bc8ad8d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

  • .claude/skills/the-daily-generator

.claude/skills/the-daily-generator/SKILL.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ toc: false
4444

4545
# Consumer prices up 2.2% year over year in November 2025
4646

47-
<p class="release-date">Released: December 22, 2025 <span class="article-type-tag release">New Release</span></p>
47+
<p class="release-date">Data released: December 5, 2025 | Published: December 22, 2025 <span class="article-type-tag release">New Release</span></p>
4848

4949
<div class="highlights">
5050

@@ -72,6 +72,21 @@ toc: false
7272
</div>
7373
```
7474

75+
## Date Handling
76+
77+
**For new releases** (covering the most recent data period):
78+
- Extract `release_time` from the fetched JSON metadata (e.g., `"2025-12-05 08:30:00"`)
79+
- Format both dates in the release-date line:
80+
```html
81+
<p class="release-date">Data released: December 5, 2025 | Published: December 22, 2025 <span class="article-type-tag release">New Release</span></p>
82+
```
83+
- "Data released" = when StatCan published the data (`metadata.release_time`)
84+
- "Published" = when the article is being generated (today's date)
85+
86+
**For backfill articles** (covering historical periods):
87+
- **Omit the release-date paragraph entirely**
88+
- The `<span class="article-type-tag backfill">Backfill</span>` tag (placed elsewhere) indicates this is historical coverage
89+
7590
## Reference Files
7691

7792
Load these as needed:

0 commit comments

Comments
 (0)