Agent Instructions
Source:
AGENTS.md
You are working in a small TypeScript CLI. Prefer tiny, testable changes.
Table of Contents
- Agent Instructions — Parcel Path
- Setup
- Commands to know
- Coding rules
- Custom skills
- Definition of done
Agent Instructions — Parcel Path
You are working in a small TypeScript CLI. Prefer tiny, testable changes.
Setup¶
npm install
npm test
npm run typecheck
Commands to know¶
| Command | Purpose |
|---|---|
npm test |
Unit tests (Vitest) |
npm run dev -- track --id <id> |
Local CLI entry |
npm run build |
Emit dist/ |
Coding rules¶
- One vertical slice at a time — parse input → call carrier adapter → print result.
- No network in unit tests — mock carrier clients.
- Never log tracking tokens or full addresses — redact PII in errors and verbose logs.
- Match existing naming:
CarrierAdapter,TrackingEvent,formatTimeline().
Custom skills¶
Day-to-day workflows live in custom-skills/ (add carrier, local track debug, fixtures, PII review, vertical slices). Prefer invoking those skills over re-deriving steps from scratch.
Definition of done¶
- Tests cover the happy path and one failure path
README.mdmentions any new user-facing flag- Exit codes:
0success,1usage/validation,2carrier/runtime failure