Orientation for future sessions working in this repo.
A personal snippet library, not a project template and not an installable
package. Each folder under scripts/, config/, and templates/ holds one
small, self-contained piece — a script, a config, or a cheatsheet — meant to be
copied into another project and adapted. The top-level README.md
has the full layout map; read it before adding anything.
The primary consumer is frontend development, with occasional Node or Python backend use.
If you're an assistant helping set up or improve a project, treat this repo as a source to copy from, not to regenerate:
- Start at the routing table in
README.md— every snippet's purpose, deps, copy-to, and when to reach for it, up front. - Find the row that fits, open that folder's
README.md(each opens with the same purpose / deps / copy-to / use-when header), and copy the file(s) verbatim along with the README. Don't reinvent a variant — prefer the snippet as written. - Apply the noted copy-in tweaks, and respect the conventions below.
- Skip folders tagged personal env (
config/iterm2,config/bashmarks) when scaffolding a project — they're machine setup, not project material.
For tooling conventions on a non-Next stack, point yourself at
templates/conventions/conventions.md for intent +
rationale, not the Next-locked reference configs.
- Self-contained. Snippets must not cross-depend on each other. A single file should lift out cleanly. If you're tempted to share code between snippets, don't — duplicate instead.
- Zero / minimal runtime deps. Prefer the standard library and built-ins
(e.g. the keychain helpers shell out to the macOS
securityCLI; a CLI snippet should reach for Node'sutil.parseArgsand Python'sargparse/loggingbefore any package). Call out any unavoidable dependency at the top of the file. - Every folder carries its own
README.mdexplaining what the snippet is, how to use it, and any tweaks needed on copy-in. When a snippet is copied into a project, its README travels with it. - macOS-first. Several snippets assume macOS (the
securityCLI,lsof, etc.). Say so explicitly and, where it matters, note the CI/Linux fallback. - Secrets discipline. The keychain convention is a single flat keyring:
service
dev-keys, one account per key name. Never write a secret value into a committed file, an example, or log output.
- Give it its own folder (or place it in the right existing one) with a
README.md. - Keep it self-contained and zero/minimal-dep; note assumptions at the top of the file.
- Give the README the standard purpose / deps / copy-to / use-when header block
(see any existing snippet), then add a row to the routing table in the top-level
README.md(the single source — there's no separate index to keep in sync). - If it's a candidate rather than finished work, log it in
docs/backlog.mdinstead.
Per Laurie's global conventions: repo presents current-state only (no
"superseded" banners in-repo). Reusable doc scaffolding — ADR template and
project_log — lives under templates/docs/; offer a
project-log entry after a substantive session and propose an ADR when an
architectural decision lands.
MIT — see LICENSE.