Claude Instructions
Source:
CLAUDE.md
Project-specific guidance for Claude Code / Claude-based agents working from the
Spec Kit tree (.specify/ + specs/).
Table of Contents
Claude notes — Parcel Path
Project-specific guidance for Claude Code / Claude-based agents working from the
Spec Kit tree (.specify/ + specs/).
Prefer¶
- Extending
src/carriers/types.tsbefore inventing new abstractions - Table-driven tests for status → next-action mapping
- Short commit-sized diffs; leave drive-by refactors alone
- Honoring
.specify/memory/constitution.mdover ad-hoc style choices
Avoid¶
- Adding a database in v0 — responses are ephemeral API views
- Scraping carrier HTML; use documented APIs or fixtures only
- Expanding scope into full shipping / label printing
Useful context¶
- Public demo fixture id:
DEMO-1001(offline fixture intests/fixtures/) - “Next action” copy should be plain language (“Wait for out-for-delivery” not raw status codes)
- When unsure about a carrier field, add a fixture and a failing test first
- Active Spec Kit feature:
specs/001-track-command/
Session checklist¶
- Read
.specify/memory/constitution.mdand the active feature underspecs/ - Run
npm testbefore editing - After changes, re-run the tests you touched