Guidance for Claude Code (and other AI assistants) when working in this repository.
The detailed, authoritative conventions for this project live in .github/copilot-instructions.md; read that file first.
This document is a concise map; .github/copilot-instructions.md is the source of truth.
This repository maintains both CLAUDE.md and .github/copilot-instructions.md.
When you update guidance in one file that also applies to the other, mirror the change so the two stay consistent.
Updates to CLAUDE.md should be reflected, when appropriate, in .github/copilot-instructions.md, and vice versa.
A template project for creating a TypeScript package for npm.
See the "npm Scripts" section of .github/copilot-instructions.md for the full list of available commands.
_dist/ (build), _compiled/ (TypeScript outDir), _coverage/ (coverage), and _doc/ (TypeDoc) are generated and gitignored.
- Keep shared content between
README.mdanddocs/index.mdconsistent; expected differences (front matter, headings, footer/links) are documented in.github/copilot-instructions.md. - The portfolio skills page (
docs/portfolio-skills.md) and its generation/review workflow are described in the "Portfolio Page Generation and Maintenance" section of.github/copilot-instructions.md. - Release documentation under
docs/releases/is maintained manually. - Markdown indentation rules for all repository
.mdfiles are in the "Markdown Formatting" section of.github/copilot-instructions.md.
Before merging a branch, complete these review steps (full details in the "Pre-Merge and Release Review" section of .github/copilot-instructions.md):
- Validation —
npm ci, thennpm run validate(lint, docs, build, test) passes cleanly - Portfolio skills page — review
docs/portfolio-skills.mdfor accuracy; updatemodified_dateif content changes - Instruction file sync —
CLAUDE.mdandcopilot-instructions.mdare consistent and current package.jsonkeywords — reflect current utility domains and features- GitHub repository topics — align with
package.jsonkeywords - Branch code review — convention compliance (static class pattern, JSDoc completeness, copyright headers, README/docs sync, test coverage), code quality (correctness, API consistency, efficiency, backward compatibility, reuse/DRY, runtime safety), and consistency (cross-source consistency across code/comments/docs, implicit pattern detection with maintainer notification)
- Release readiness (for merges to
main) — version bump, release docs, TypeDoc entry points, publish workflow