Files
agentic-dev/docs/work/2026-05-14-library-evaluation-policy/09-claude-md-update/_story.md
Danijel Martinek 90fc2853f2 feat(work): add ISO timestamps + auto-bump on staged work-doc changes
- New scripts/work/bump-updated-timestamps.mjs stamps the `updated:`
  frontmatter field to the current ISO 8601 UTC timestamp on every
  staged docs/work/**/*.md file. Idempotent; adds the field after
  `created:` if missing.
- .husky/pre-commit invokes the bump script as step 2 (before
  rebuild-state) so _state.json sees the fresh timestamp.
- Backfill all existing work docs (4 PRDs + 3 epics + 21 stories):
    * created: promoted from \`YYYY-MM-DD\` -> ISO timestamp using
      git log --diff-filter=A on each file (first-commit date for
      stories that had no \`created:\` line, midnight UTC for PRDs
      and epics that had date-only created).
    * updated: added from \`git log -1 --format=%aI\` on each file
      (last-commit timestamp); will be re-stamped to "now" by the
      pre-commit hook on this commit.

Stories that had no \`created:\` line now get one.
2026-05-14 21:10:34 +02:00

1.7 KiB

id, epic, title, type, status, feature, depends-on, blocks, created, updated
id epic title type status feature depends-on blocks created updated
09-claude-md-update 2026-05-14-library-evaluation-policy CLAUDE.md Key Conventions — library policy bullet technical-story done docs
05-human-guide
2026-05-14T06:52:02+02:00 2026-05-14T19:10:35.370Z

Goal

Add one bullet to the "Key Conventions" section of CLAUDE.md pointing agents and developers at ADR-022, the evaluate-library skill, and docs/guides/adding-a-library.md. No other changes to CLAUDE.md.

Why

CLAUDE.md is the first file agents and developers read. Without a Key Conventions entry, the library evaluation policy is invisible to any agent starting a fresh session — it may run pnpm add without knowing the policy exists, and only hit the hook or pre-commit gate after the fact. The bullet closes the discoverability gap.

Done when

  • CLAUDE.md Key Conventions section contains a bullet: "New runtime dependencies in feature- or core-tier packages require a library trace at docs/library-decisions/<date>-<name>.md produced by the /evaluate-library skill — see ADR-022 and docs/guides/adding-a-library.md." (exact wording may vary; substance must include ADR-022, the skill, and the guide path).
  • No other changes to CLAUDE.md.
  • pnpm lint && pnpm fallow:audit pass.

In scope

  • CLAUDE.md — one bullet in Key Conventions.

Out of scope

  • docs/glossary.md — the glossary entries for Library trace and Pre-shipped trace landed during the 2026-05-14 grill session and are already present.
  • Any other documentation changes.

Tasks

  • Add the one-line library-policy bullet to CLAUDE.md Key Conventions (after confirming glossary entries are already present); all gates pass on this single commit.