/freshness-check — Pipeline Freshness Check
Checks whether audit skills, checklists, supplements, and references are up to date.
Ideally runs before every audit — the orchestrator recommends it automatically.
Problem
The pipeline contains versioned knowledge bases:
- Framework checklists (Beta + Stable)
- Tool references and documentation
- OWASP, WCAG, GDPR phases
- Stack supplements (Tailwind, Docker, etc.)
These go stale silently. Without regular checks, you audit against outdated standards.
Solution: Automated Freshness Scan
Flow
- Check all sources in parallel (npm, WebSearch, context7)
- Compare against documented state (as-of date in each file)
- Create delta report (what is outdated, what is current)
- Auto-update where possible (changelogs, versions)
- Manual review where needed (new laws, breaking changes)
Modes
| Mode |
Trigger |
Description |
check |
/freshness-check or /freshness-check check |
Check only, change nothing — delta report |
update |
/freshness-check update |
Check + auto-update where possible |
full |
/freshness-check full |
All tiers including community repos + update + WebSearch |
Source Catalog
Tier 1 — Frameworks & Tools (npm view, automatic)
| Source |
Check Command |
Compared With |
Auto-Update |
| Astro (Stable) |
npm view astro version |
versions/v5-stable/ as-of date, versions/v6-stable/ |
Append changelog + checklist |
| Astro (Beta/RC) |
npm view astro versions --json (filter betas) |
versions/v6-beta/ as-of date |
Append changelog + checklist |
| Tailwind CSS |
npm view tailwindcss version |
stacks/css/tailwind-v4.md as-of |
Update supplement |
| Vite |
npm view vite version |
Astro checklist VITE section |
Checklist note |
| Node.js |
node -v + LTS schedule (WebSearch) |
.nvmrc recommendation, env checks |
Adjust recommendation |
| Claude Code |
claude --version (if available) |
docs/claude-code-reference.md version |
Update reference |
| @astrojs/check |
npm view @astrojs/check version |
TOOL section in checklist |
Note |
| SvelteKit |
npm view @sveltejs/kit version |
stacks/frontend/sveltekit.md as-of |
Update supplement |
| Svelte |
npm view svelte version |
sveltekit-audit checklist |
Checklist note |
| Drizzle ORM |
npm view drizzle-orm version |
stacks/database/postgresql.md as-of, db-audit checklist |
Update supplement + checklist |
| Drizzle Kit |
npm view drizzle-kit version |
db-audit TOOL section |
Note |
| PostgreSQL |
WebSearch "PostgreSQL releases" |
stacks/database/postgresql.md as-of |
Note |
| bcryptjs |
npm view bcryptjs version |
auth-audit HASH section |
Note |
| Docker |
WebSearch "Docker Engine release notes" |
Phase 08 + Docker supplements |
Note |
| Python |
python --version + WebSearch "Python releases" |
stacks/python.md as-of |
Note |
| FastAPI |
pip index versions fastapi |
Supplement or project check |
Note |
| Flask |
pip index versions flask |
Supplement or project check |
Note |
| Next.js |
npm view next version |
stacks/frontend/next.md as-of |
Update supplement |
| Fastify |
npm view fastify version |
stacks/backend/node-fastify.md as-of |
Update supplement |
| Hugo |
WebSearch "Hugo releases" |
stacks/frontend/hugo.md as-of |
Note |
Tier 2 — Security & Standards (WebSearch, semi-automatic)
| Source |
Check Method |
Compared With |
Auto-Update |
| OWASP Top 10 |
WebSearch "OWASP Top 10 latest" |
Phase 02-security.md intro |
Note only (manual review) |
| OWASP ASVS |
WebSearch "OWASP ASVS version" |
Phase 08-security.md S10 |
Note only |
| CWE Top 25 |
WebSearch "CWE Top 25 latest" |
Phase 02-security.md |
Note only |
CWE Top 25 2026: Out-of-bounds Write #1, XSS #2, SQL Injection #3. Four of top 5 are memory safety issues.
Tier 3 — Laws & Regulations (WebSearch, manual review)
| Source |
Check Method |
Compared With |
Auto-Update |
| GDPR |
WebSearch "GDPR changes {year}" |
Phase 07-privacy.md |
Note only |
| Accessibility Laws |
WebSearch "accessibility legislation updates" |
Phase 05-accessibility.md |
Note only |
| DSA |
WebSearch "Digital Services Act updates" |
Phase 07-privacy.md S9 |
Note only |
| EU AI Act |
WebSearch "EU AI Act timeline" |
Phase 07-privacy.md S11 |
Note only |
| WCAG |
WebSearch "WCAG latest version" |
Phase 05-accessibility.md |
Note only (WCAG 2.2 -> 3.0?) |
| Google Consent Mode |
WebSearch "Google Consent Mode version" |
Phase 07-privacy.md S3 |
Note only |
Tier 1b — CLI Plugins (gh api + installed_plugins.json, automatic)
| Source |
Check Method |
Compared With |
Auto-Update |
| superpowers |
gh api repos/obra/superpowers/releases/latest |
~/.claude/plugins/installed_plugins.json version |
Note + /reload hint |
| Other plugins |
Parse ~/.claude/plugins/installed_plugins.json → per plugin: gh api repos/{owner}/{repo}/releases/latest |
Installed version |
Note + /reload hint |
How to update plugins: Run /reload in Claude Code to pull the latest version from the marketplace. No manual install needed.
Check logic:
- Read
~/.claude/plugins/installed_plugins.json → list all installed plugins
- Per plugin: extract
version and git info
- Check latest release via
gh api repos/{owner}/{repo}/releases/latest
- Compare installed vs. latest → delta report entry
Tier 4 — Ecosystem (WebSearch/gh, situational)
| Source |
Check Method |
Compared With |
Auto-Update |
| GitHub Actions |
WebSearch "GitHub Actions changelog" |
Phase 05-cicd.md + github.md |
Note only |
| Lighthouse |
npm view lighthouse version |
Phase 03-performance.md |
Note only |
| Playwright |
npm view playwright version |
stacks/testing/playwright.md |
Note only |
| Zod |
npm view zod version |
Astro checklist ZOD section |
Checklist note |
Tier 5 — Community & Inspiration (gh api, full only)
| Source |
Check Method |
Compared With |
Auto-Update |
| Community repos |
gh api repos/{owner}/{repo}/commits?per_page=1 |
community-sources.md as-of date |
Note only + as-of date |
Reference: community-sources.md — Full list with owner/repo, category, adoption history.
Flow:
- Read community-sources.md (repos + as-of dates)
- Per repo:
gh api repos/{owner}/{repo}/commits?per_page=1 -> last commit timestamp
- Compare with as-of date: New commits? -> Calculate delta
- If delta > 14 days: Spot-check README or relevant files via
gh api
- Delta report with recommendation: "Worth checking" vs. "No action needed"
Tier 6 — Opportunity Analysis (full mode only)
Checks whether updates from Tiers 1-5 enable concrete improvements for the pipeline.
Core question: "Could this update improve any of our skills, hooks, agents, or workflows?"
Pipeline inventory (matched against updates):
| Category |
Components |
| Skills |
freshness-check, audit, project-audit, astro-audit, sveltekit-audit, db-audit, auth-audit, audit-orchestrator, capture-pdf, design-system, favicon-check, lighthouse-quick, meta-tags, deploy-check, polish, adversarial-review, lesson-learned |
| Hooks |
secret-leak-check, checkpoint, commit-message-validator, ci-guard, token-warning, skill-suggest, statusline, session-start, session-stop |
| Agents |
explorer, explorer-deep, security-reviewer |
| Patterns |
CLAUDE.md rules, anti-patterns, deviation handling, root-cause analysis, session continuity |
Flow:
- Identify sources with updates — All entries from Tiers 1-5 with status != "ok"
- Read changelogs/release notes:
- npm:
gh api repos/{owner}/{repo}/releases/latest or WebSearch "{tool} changelog {version}"
- Community:
gh api repos/{owner}/{repo}/commits?per_page=5 -> analyze commit messages
- Standards: Evaluate WebSearch results from Tiers 2-3
- Match new features against pipeline inventory:
- New hook event in Claude Code? -> Check if new hook makes sense
- New Astro feature? -> Check if astro-audit checklist needs expanding
- New community pattern? -> Check if pipeline patterns need updating
- New security requirement? -> Check if security-reviewer needs expanding
- Rate opportunities:
- HIGH: Direct improvement possible, concrete implementation proposal
- MED: Potentially useful, worth a closer look
- LOW: Nice-to-have, no urgent action needed
- Create opportunity report (part of the delta report)
Rules:
- ONLY rate when there is a concrete connection to the pipeline — not everything is relevant
- Community repos: Only check new CLAUDE.md, skills, hooks, agents pattern files
- No speculation — only when a feature clearly matches a component
- Save opportunities in .freshness-state.json under "opportunities" array
Output format (in delta report):
OPPORTUNITIES (Tier 6 — Pipeline Improvements):
[HIGH] {Source} v{Version}: {Feature}
-> Affects: {Skill/Hook/Agent}
-> Proposal: {concrete improvement proposal}
[MED] {Source}: {Feature/Pattern}
-> Check if relevant for: {Area}
[LOW] {Source}: {Update}
-> Nice-to-have: {Description}
Delta Report Format
Freshness Check — {Date}
OUTDATED (Action Required):
[HIGH] Astro Beta: Documented beta.14, current beta.16
-> Update changelog.md + checklist.md
[HIGH] Claude Code: Reference v2.1.47, installed v2.2.0
-> Update docs/claude-code-reference.md
[MED] Tailwind CSS: Supplement as-of 2026-01-15, current v4.1.0
-> Review stacks/css/tailwind-v4.md
CURRENT:
[OK] Node.js: v22 (LTS current)
[OK] OWASP Top 10: 2025 (current)
[OK] WCAG: 2.2 (current, 3.0 still draft)
[OK] Vite: v7 (documented)
NOT CHECKABLE (no internet access or tool missing):
[SKIP] Docker Engine: WebSearch not available
COMMUNITY & INSPIRATION (Tier 5):
| Repo | As-of | Last Commit | Delta | Severity |
|---------------------|------------|----------------|----------|----------|
| get-shit-done | 2026-02-20 | 2026-02-25 | 5 days | OK |
| awesome-claude-code | 2026-02-20 | 2026-03-05 | 13 days | LOW |
| obsidian-skills | 2026-02-20 | 2026-03-15 | 23 days | MEDIUM |
Recommendation: obsidian-skills has new activity — check if new patterns are relevant.
OPPORTUNITIES (Tier 6 — Pipeline Improvements):
[HIGH] Claude Code v2.2.0: New hook event "PreModelResponse"
-> Affects: token-warning.sh
-> Proposal: Context warning before model response instead of after — more precise control
[MED] GSD: New "parallel-agent" coordination pattern
-> Check if relevant for: audit-orchestrator, team workflows
[LOW] Astro beta.17: middlewareMode config
-> Nice-to-have: Deployment could benefit from this
Severity in Delta Report
| Level |
Criteria |
| HIGH |
Major/minor version difference, new breaking changes, new regulations |
| MEDIUM |
Patch version difference, new features (optional), standard updates |
| LOW |
Cosmetic updates, new best practices |
| OK |
Up to date |
| SKIP |
Could not be checked |
Auto-Update Logic
When mode is update or full:
What Gets Auto-Updated
Astro Changelog (versions/v{x}-beta/changelog.md):
- New betas via GitHub Releases or npm
- Summarize release notes
- Update as-of date
Astro Checklist (versions/v{x}-beta/checklist.md):
- Adjust counters if new checks needed
- Update as-of date
- Add new breaking changes as checks
Astro Reference Links (versions/v{x}-beta/reference-links.md):
- Add new PRs
- Update as-of date
Claude Code Reference (docs/claude-code-reference.md):
- Update version header
- Document new features/flags (WebSearch)
What Gets Marked as Note Only (Manual Review)
- Legal changes (GDPR, accessibility laws, DSA, EU AI Act)
- Security standards (OWASP, CWE, ASVS)
- WCAG version jump (2.2 -> 3.0)
- Major framework migrations (Tailwind v4 -> v5)
Rule: NEVER auto-write legal and security-relevant changes into phase files — always enforce manual review.
As-of Date Convention
Every file containing versioned knowledge MUST have an as-of date at the end:
As of: YYYY-MM-DD (updated for {version/reason})
The freshness check parses this date and compares it with the current state.
Files with as-of dates:
versions/*/changelog.md
versions/*/checklist.md
versions/*/reference-links.md
docs/claude-code-reference.md
docs/beta-flags.md
- All phase files with year references (OWASP 2025, WCAG 2.2, etc.)
Integration with Orchestrator
The orchestrator recommends /freshness-check automatically:
IF last freshness check > 7 days ago OR no check documented:
-> "Recommendation: /freshness-check before audit start (last check: {date})"
IF last check < 7 days:
-> No hint, proceed directly to audit plan
Freshness state is saved in .freshness-state.json:
{
"lastCheck": "YYYY-MM-DD",
"mode": "check|update|full",
"results": {
"astro-beta": { "status": "ok|outdated|skip", "documented": "beta.14", "current": "beta.16" },
"astro-stable": { "status": "ok", "documented": "5.17.2", "current": "5.17.2" },
"tailwind": { "status": "ok", "documented": "4.0.x", "current": "4.0.x" },
"claude-code": { "status": "outdated", "documented": "2.1.47", "current": "2.2.0" },
"node": { "status": "ok", "documented": "22", "current": "22.12.0" },
"owasp": { "status": "ok", "documented": "2025", "current": "2025" },
"wcag": { "status": "ok", "documented": "2.2", "current": "2.2" },
"community": {
"get-shit-done": { "status": "ok", "asOf": "2026-02-20", "latestCommit": "2026-02-19" },
"obsidian-skills": { "status": "medium", "asOf": "2026-02-20", "latestCommit": "2026-03-15", "note": "23 new commits" }
}
},
"opportunities": [
{ "severity": "high", "source": "claude-code", "feature": "PreModelResponse hook event", "target": "token-warning.sh", "suggestion": "More precise context warning control" },
{ "severity": "med", "source": "get-shit-done", "feature": "Parallel-agent pattern", "target": "audit-orchestrator", "suggestion": "Check if orchestrator logic can be improved" }
],
"summary": {
"total": 12,
"ok": 9,
"outdated": 2,
"skip": 1,
"opportunities": 2
}
}
Context Protection
- Tier 1 (npm): Fast, low context usage — always check
- Tier 2+3 (WebSearch): More context — only in
full mode
- Tier 4 (Ecosystem): Optional — only if relevant for the current project
- Tier 5 (Community): gh api + optional WebSearch —
full only
- Tier 6 (Opportunities): Analyzes changelogs of updates —
full only, after Tiers 1-5
- Write state immediately after each source
- When context is low: Finish Tier 1, mark rest as "SKIP"
Rules
- No blind auto-update of laws/standards — always manual review
- npm view ALWAYS live — never from memory
- Update as-of date in every updated file
- Show delta report to user before auto-updates are applied
- Freshness check is optional — audits work without it, but with potentially outdated data
- Meaningful max once per week — daily would be overkill (unless a known release is expected)
1---2name: freshness-check3description: Pipeline source freshness check (frameworks, tools, standards). Use when: "freshness", "update check", "is everything current", "check versions".4---56<!-- AI-QUICK-REF7## /freshness-check — Quick Reference8- **Modes:** check (read-only) | update (auto-update) | full (+ WebSearch + Community + Opportunities)9- **Arguments:** `/freshness-check $0` e.g. `/freshness-check full`10- **7 Tiers:** npm packages (auto), CLI plugins (auto), security standards (semi-auto), laws (manual), ecosystem (situational), community (gh api), opportunity analysis (full only)11- **Output:** Delta report with severity (HIGH/MED/LOW/OK/SKIP) + opportunity report12- **State:** .freshness-state.json (for orchestrator integration)13- **Recommended:** Before every audit, at least weekly14- **Checkpoints:** [CHECKPOINT: verify] when updates are found15-->1617# /freshness-check — Pipeline Freshness Check1819Checks whether audit skills, checklists, supplements, and references are up to date.20Ideally runs **before every audit** — the orchestrator recommends it automatically.2122## Problem2324The pipeline contains versioned knowledge bases:25- Framework checklists (Beta + Stable)26- Tool references and documentation27- OWASP, WCAG, GDPR phases28- Stack supplements (Tailwind, Docker, etc.)2930These go stale silently. Without regular checks, you audit against outdated standards.3132## Solution: Automated Freshness Scan3334### Flow35361. **Check all sources in parallel** (npm, WebSearch, context7)372. **Compare against documented state** (as-of date in each file)383. **Create delta report** (what is outdated, what is current)394. **Auto-update** where possible (changelogs, versions)405. **Manual review** where needed (new laws, breaking changes)4142### Modes4344| Mode | Trigger | Description |45|------|---------|-------------|46| `check` | `/freshness-check` or `/freshness-check check` | Check only, change nothing — delta report |47| `update` | `/freshness-check update` | Check + auto-update where possible |48| `full` | `/freshness-check full` | All tiers including community repos + update + WebSearch |4950---5152## Source Catalog5354### Tier 1 — Frameworks & Tools (npm view, automatic)5556| Source | Check Command | Compared With | Auto-Update |57|--------|--------------|---------------|-------------|58| **Astro (Stable)** | `npm view astro version` | `versions/v5-stable/` as-of date, `versions/v6-stable/` | Append changelog + checklist |59| **Astro (Beta/RC)** | `npm view astro versions --json` (filter betas) | `versions/v6-beta/` as-of date | Append changelog + checklist |60| **Tailwind CSS** | `npm view tailwindcss version` | `stacks/css/tailwind-v4.md` as-of | Update supplement |61| **Vite** | `npm view vite version` | Astro checklist VITE section | Checklist note |62| **Node.js** | `node -v` + LTS schedule (WebSearch) | `.nvmrc` recommendation, env checks | Adjust recommendation |63| **Claude Code** | `claude --version` (if available) | `docs/claude-code-reference.md` version | Update reference |64| **@astrojs/check** | `npm view @astrojs/check version` | TOOL section in checklist | Note |65| **SvelteKit** | `npm view @sveltejs/kit version` | stacks/frontend/sveltekit.md as-of | Update supplement |66| **Svelte** | `npm view svelte version` | sveltekit-audit checklist | Checklist note |67| **Drizzle ORM** | `npm view drizzle-orm version` | stacks/database/postgresql.md as-of, db-audit checklist | Update supplement + checklist |68| **Drizzle Kit** | `npm view drizzle-kit version` | db-audit TOOL section | Note |69| **PostgreSQL** | WebSearch "PostgreSQL releases" | stacks/database/postgresql.md as-of | Note |70| **bcryptjs** | `npm view bcryptjs version` | auth-audit HASH section | Note |71| **Docker** | WebSearch "Docker Engine release notes" | Phase 08 + Docker supplements | Note |72| **Python** | `python --version` + WebSearch "Python releases" | stacks/python.md as-of | Note |73| **FastAPI** | `pip index versions fastapi` | Supplement or project check | Note |74| **Flask** | `pip index versions flask` | Supplement or project check | Note |75| **Next.js** | `npm view next version` | stacks/frontend/next.md as-of | Update supplement |76| **Fastify** | `npm view fastify version` | stacks/backend/node-fastify.md as-of | Update supplement |77| **Hugo** | WebSearch "Hugo releases" | stacks/frontend/hugo.md as-of | Note |7879### Tier 2 — Security & Standards (WebSearch, semi-automatic)8081| Source | Check Method | Compared With | Auto-Update |82|--------|-------------|---------------|-------------|83| **OWASP Top 10** | WebSearch "OWASP Top 10 latest" | Phase 02-security.md intro | Note only (manual review) |84| **OWASP ASVS** | WebSearch "OWASP ASVS version" | Phase 08-security.md S10 | Note only |85| **CWE Top 25** | WebSearch "CWE Top 25 latest" | Phase 02-security.md | Note only |8687> **CWE Top 25 2026:** Out-of-bounds Write #1, XSS #2, SQL Injection #3. Four of top 5 are memory safety issues.8889### Tier 3 — Laws & Regulations (WebSearch, manual review)9091| Source | Check Method | Compared With | Auto-Update |92|--------|-------------|---------------|-------------|93| **GDPR** | WebSearch "GDPR changes {year}" | Phase 07-privacy.md | Note only |94| **Accessibility Laws** | WebSearch "accessibility legislation updates" | Phase 05-accessibility.md | Note only |95| **DSA** | WebSearch "Digital Services Act updates" | Phase 07-privacy.md S9 | Note only |96| **EU AI Act** | WebSearch "EU AI Act timeline" | Phase 07-privacy.md S11 | Note only |97| **WCAG** | WebSearch "WCAG latest version" | Phase 05-accessibility.md | Note only (WCAG 2.2 -> 3.0?) |98| **Google Consent Mode** | WebSearch "Google Consent Mode version" | Phase 07-privacy.md S3 | Note only |99100### Tier 1b — CLI Plugins (gh api + installed_plugins.json, automatic)101102| Source | Check Method | Compared With | Auto-Update |103|--------|-------------|---------------|-------------|104| **superpowers** | `gh api repos/obra/superpowers/releases/latest` | `~/.claude/plugins/installed_plugins.json` version | Note + `/reload` hint |105| **Other plugins** | Parse `~/.claude/plugins/installed_plugins.json` → per plugin: `gh api repos/{owner}/{repo}/releases/latest` | Installed version | Note + `/reload` hint |106107**How to update plugins:** Run `/reload` in Claude Code to pull the latest version from the marketplace. No manual install needed.108109**Check logic:**1101. Read `~/.claude/plugins/installed_plugins.json` → list all installed plugins1112. Per plugin: extract `version` and git info1123. Check latest release via `gh api repos/{owner}/{repo}/releases/latest`1134. Compare installed vs. latest → delta report entry114115### Tier 4 — Ecosystem (WebSearch/gh, situational)116117| Source | Check Method | Compared With | Auto-Update |118|--------|-------------|---------------|-------------|119| **GitHub Actions** | WebSearch "GitHub Actions changelog" | Phase 05-cicd.md + github.md | Note only |120| **Lighthouse** | `npm view lighthouse version` | Phase 03-performance.md | Note only |121| **Playwright** | `npm view playwright version` | stacks/testing/playwright.md | Note only |122| **Zod** | `npm view zod version` | Astro checklist ZOD section | Checklist note |123124### Tier 5 — Community & Inspiration (gh api, full only)125126| Source | Check Method | Compared With | Auto-Update |127|--------|-------------|---------------|-------------|128| Community repos | `gh api repos/{owner}/{repo}/commits?per_page=1` | community-sources.md as-of date | Note only + as-of date |129130**Reference:** `community-sources.md` — Full list with owner/repo, category, adoption history.131132**Flow:**1331. Read community-sources.md (repos + as-of dates)1342. Per repo: `gh api repos/{owner}/{repo}/commits?per_page=1` -> last commit timestamp1353. Compare with as-of date: New commits? -> Calculate delta1364. If delta > 14 days: Spot-check README or relevant files via `gh api`1375. Delta report with recommendation: "Worth checking" vs. "No action needed"138139### Tier 6 — Opportunity Analysis (full mode only)140141Checks whether updates from Tiers 1-5 enable concrete improvements for the pipeline.142**Core question:** "Could this update improve any of our skills, hooks, agents, or workflows?"143144**Pipeline inventory (matched against updates):**145146| Category | Components |147|----------|------------|148| **Skills** | freshness-check, audit, project-audit, astro-audit, sveltekit-audit, db-audit, auth-audit, audit-orchestrator, capture-pdf, design-system, favicon-check, lighthouse-quick, meta-tags, deploy-check, polish, adversarial-review, lesson-learned |149| **Hooks** | secret-leak-check, checkpoint, commit-message-validator, ci-guard, token-warning, skill-suggest, statusline, session-start, session-stop |150| **Agents** | explorer, explorer-deep, security-reviewer |151| **Patterns** | CLAUDE.md rules, anti-patterns, deviation handling, root-cause analysis, session continuity |152153**Flow:**1541551. **Identify sources with updates** — All entries from Tiers 1-5 with status != "ok"1562. **Read changelogs/release notes:**157 - npm: `gh api repos/{owner}/{repo}/releases/latest` or WebSearch "{tool} changelog {version}"158 - Community: `gh api repos/{owner}/{repo}/commits?per_page=5` -> analyze commit messages159 - Standards: Evaluate WebSearch results from Tiers 2-31603. **Match new features against pipeline inventory:**161 - New hook event in Claude Code? -> Check if new hook makes sense162 - New Astro feature? -> Check if astro-audit checklist needs expanding163 - New community pattern? -> Check if pipeline patterns need updating164 - New security requirement? -> Check if security-reviewer needs expanding1654. **Rate opportunities:**166 - HIGH: Direct improvement possible, concrete implementation proposal167 - MED: Potentially useful, worth a closer look168 - LOW: Nice-to-have, no urgent action needed1695. **Create opportunity report** (part of the delta report)170171**Rules:**172- ONLY rate when there is a concrete connection to the pipeline — not everything is relevant173- Community repos: Only check new CLAUDE.md, skills, hooks, agents pattern files174- No speculation — only when a feature clearly matches a component175- Save opportunities in .freshness-state.json under "opportunities" array176177**Output format (in delta report):**178```179OPPORTUNITIES (Tier 6 — Pipeline Improvements):180 [HIGH] {Source} v{Version}: {Feature}181 -> Affects: {Skill/Hook/Agent}182 -> Proposal: {concrete improvement proposal}183 [MED] {Source}: {Feature/Pattern}184 -> Check if relevant for: {Area}185 [LOW] {Source}: {Update}186 -> Nice-to-have: {Description}187```188189---190191## Delta Report Format192193```194Freshness Check — {Date}195196OUTDATED (Action Required):197 [HIGH] Astro Beta: Documented beta.14, current beta.16198 -> Update changelog.md + checklist.md199 [HIGH] Claude Code: Reference v2.1.47, installed v2.2.0200 -> Update docs/claude-code-reference.md201 [MED] Tailwind CSS: Supplement as-of 2026-01-15, current v4.1.0202 -> Review stacks/css/tailwind-v4.md203204CURRENT:205 [OK] Node.js: v22 (LTS current)206 [OK] OWASP Top 10: 2025 (current)207 [OK] WCAG: 2.2 (current, 3.0 still draft)208 [OK] Vite: v7 (documented)209210NOT CHECKABLE (no internet access or tool missing):211 [SKIP] Docker Engine: WebSearch not available212213COMMUNITY & INSPIRATION (Tier 5):214 | Repo | As-of | Last Commit | Delta | Severity |215 |---------------------|------------|----------------|----------|----------|216 | get-shit-done | 2026-02-20 | 2026-02-25 | 5 days | OK |217 | awesome-claude-code | 2026-02-20 | 2026-03-05 | 13 days | LOW |218 | obsidian-skills | 2026-02-20 | 2026-03-15 | 23 days | MEDIUM |219220 Recommendation: obsidian-skills has new activity — check if new patterns are relevant.221222OPPORTUNITIES (Tier 6 — Pipeline Improvements):223 [HIGH] Claude Code v2.2.0: New hook event "PreModelResponse"224 -> Affects: token-warning.sh225 -> Proposal: Context warning before model response instead of after — more precise control226 [MED] GSD: New "parallel-agent" coordination pattern227 -> Check if relevant for: audit-orchestrator, team workflows228 [LOW] Astro beta.17: middlewareMode config229 -> Nice-to-have: Deployment could benefit from this230```231232### Severity in Delta Report233234| Level | Criteria |235|-------|----------|236| **HIGH** | Major/minor version difference, new breaking changes, new regulations |237| **MEDIUM** | Patch version difference, new features (optional), standard updates |238| **LOW** | Cosmetic updates, new best practices |239| **OK** | Up to date |240| **SKIP** | Could not be checked |241242---243244## Auto-Update Logic245246When mode is `update` or `full`:247248### What Gets Auto-Updated2492501. **Astro Changelog** (`versions/v{x}-beta/changelog.md`):251 - New betas via GitHub Releases or npm252 - Summarize release notes253 - Update as-of date2542552. **Astro Checklist** (`versions/v{x}-beta/checklist.md`):256 - Adjust counters if new checks needed257 - Update as-of date258 - Add new breaking changes as checks2592603. **Astro Reference Links** (`versions/v{x}-beta/reference-links.md`):261 - Add new PRs262 - Update as-of date2632644. **Claude Code Reference** (`docs/claude-code-reference.md`):265 - Update version header266 - Document new features/flags (WebSearch)267268### What Gets Marked as Note Only (Manual Review)269270- Legal changes (GDPR, accessibility laws, DSA, EU AI Act)271- Security standards (OWASP, CWE, ASVS)272- WCAG version jump (2.2 -> 3.0)273- Major framework migrations (Tailwind v4 -> v5)274275**Rule:** NEVER auto-write legal and security-relevant changes into phase files — always enforce manual review.276277---278279## As-of Date Convention280281Every file containing versioned knowledge MUST have an as-of date at the end:282283```284As of: YYYY-MM-DD (updated for {version/reason})285```286287The freshness check parses this date and compares it with the current state.288289**Files with as-of dates:**290- `versions/*/changelog.md`291- `versions/*/checklist.md`292- `versions/*/reference-links.md`293- `docs/claude-code-reference.md`294- `docs/beta-flags.md`295- All phase files with year references (OWASP 2025, WCAG 2.2, etc.)296297---298299## Integration with Orchestrator300301The orchestrator recommends `/freshness-check` automatically:302303```304IF last freshness check > 7 days ago OR no check documented:305 -> "Recommendation: /freshness-check before audit start (last check: {date})"306IF last check < 7 days:307 -> No hint, proceed directly to audit plan308```309310Freshness state is saved in `.freshness-state.json`:311312```json313{314 "lastCheck": "YYYY-MM-DD",315 "mode": "check|update|full",316 "results": {317 "astro-beta": { "status": "ok|outdated|skip", "documented": "beta.14", "current": "beta.16" },318 "astro-stable": { "status": "ok", "documented": "5.17.2", "current": "5.17.2" },319 "tailwind": { "status": "ok", "documented": "4.0.x", "current": "4.0.x" },320 "claude-code": { "status": "outdated", "documented": "2.1.47", "current": "2.2.0" },321 "node": { "status": "ok", "documented": "22", "current": "22.12.0" },322 "owasp": { "status": "ok", "documented": "2025", "current": "2025" },323 "wcag": { "status": "ok", "documented": "2.2", "current": "2.2" },324 "community": {325 "get-shit-done": { "status": "ok", "asOf": "2026-02-20", "latestCommit": "2026-02-19" },326 "obsidian-skills": { "status": "medium", "asOf": "2026-02-20", "latestCommit": "2026-03-15", "note": "23 new commits" }327 }328 },329 "opportunities": [330 { "severity": "high", "source": "claude-code", "feature": "PreModelResponse hook event", "target": "token-warning.sh", "suggestion": "More precise context warning control" },331 { "severity": "med", "source": "get-shit-done", "feature": "Parallel-agent pattern", "target": "audit-orchestrator", "suggestion": "Check if orchestrator logic can be improved" }332 ],333 "summary": {334 "total": 12,335 "ok": 9,336 "outdated": 2,337 "skip": 1,338 "opportunities": 2339 }340}341```342343---344345## Context Protection346347- **Tier 1** (npm): Fast, low context usage — always check348- **Tier 2+3** (WebSearch): More context — only in `full` mode349- **Tier 4** (Ecosystem): Optional — only if relevant for the current project350- **Tier 5** (Community): gh api + optional WebSearch — `full` only351- **Tier 6** (Opportunities): Analyzes changelogs of updates — `full` only, after Tiers 1-5352- Write state immediately after each source353- When context is low: Finish Tier 1, mark rest as "SKIP"354355---356357## Rules358359- **No blind auto-update of laws/standards** — always manual review360- **npm view ALWAYS live** — never from memory361- **Update as-of date in every updated file**362- **Show delta report to user** before auto-updates are applied363- **Freshness check is optional** — audits work without it, but with potentially outdated data364- **Meaningful max once per week** — daily would be overkill (unless a known release is expected)