Project:
vibe-templateis a lightweight starter for AI-assisted experiments and small software projects. Keep setup reusable, easy to clone, and easy to prune.Platform Baseline: Local development and local CI in this repo target macOS. Treat other platforms as out of scope unless the user explicitly asks to broaden support.
Context Anchor: ASDLC reference material is vendored in
.asdlc/SKILL.md. Use it as the entry point for architecture, process, and methodology guidance.
| Intent | Command | Notes |
|---|---|---|
| Local CI | rtk proxy npm run ci:local |
Streams structured .github/workflows/ci.yml progress with local parallelism and quiet rendering |
| Retry CI | rtk proxy npm run ci:local:retry -- --name <runner-name> |
Streams progress while retrying a paused Local CI runner |
| Workflow notes | docs/development.md |
Setup details and prerequisites |
NEVER
- Invent tooling or project structure that is not present in the repo.
- Replace lightweight setup with heavyweight scaffolding without discussion.
- Delete or overwrite user-authored files without checking impact first.
- Commit secrets, tokens, or local env files such as
.dev.vars.
ASK
- Before adding dependencies, CI, or generated boilerplate.
- Before making irreversible structural changes.
- Before adding new lasting write targets such as generated output directories, local state files, caches, archives, or persisted tool artifacts.
Ask only when the action is not already authorized in the conversation. Existing authorization carries through necessary implementation and verification; it does not authorize unrelated scope or bypass explicit workflow checkpoints such as the Project Start Plan.
ALWAYS
- Consult
.asdlc/SKILL.mdbefore giving ASDLC-specific guidance. - Prefer small, reviewable changes that preserve the template nature of the repo.
- Document reusable conventions instead of one-off preferences.
- Add or update a template update pack in
.template/updates/when a reusable template maintenance change should be portable to downstream projects. - Treat every lasting architectural decision as explicit documentation work, not implied context.
- Add or update an ADR in
docs/adrs/in the same change set whenever a decision introduces or changes a lasting architectural constraint, selects between credible alternatives, or supersedes an earlier architecture decision. Keep drafts indocs/adrs/proposed/, approved-but-not-yet-implemented decisions indocs/adrs/accepted/, and implemented decisions indocs/adrs/implemented/. - Record global architecture rules in
ARCHITECTURE.mdand feature-level contracts inspecs/{feature-domain}/spec.md. - Treat completed feature work as spec work: create a new
specs/{feature-domain}/spec.mdor update the relevant existing spec in the same change set whenever feature behavior, contracts, workflows, or quality guardrails change. - Treat
package.jsonas the source of truth for pinned Node and npm versions, with.nvmrckept in sync as a convenience mirror fornvm use. - Read the relevant library or tool documentation carefully before applying, upgrading, or reconfiguring it in the project, especially when behavior is version-sensitive.
- Treat high automated test coverage as part of done work for
src/code. The baseline gate should fail whensrc/code exists without matching unit coverage. - Keep new workflow write targets explicit and documented instead of adding ad hoc file writes.
- Use TypeScript strict mode.
- Do not introduce
anyunless justified with a comment. - Prefer explicit domain types over inferred object blobs, especially at module, API, fixture, and workflow boundaries.
- Do not silence errors with
as unknown as,@ts-ignore, or broad casts. Use local guards, narrower interfaces, or small helper types instead.
- Use targeted checks or
npm run quality:affectedwhile iterating;npm run quality:gate:fastprovides the fast baseline. TypeScript changes requirenpm run typecheck, which is included in the baseline gates. - Run
npm run quality:gatebefore treating a non-documentation change as ready. Usenpm run quality:gate:deepwhen explicit local readiness should also include incremental mutation testing. - Also run
npm run ci:localfor GitHub Actions workflows, package metadata or dependency installation, build or container setup, browser CI setup, and explicit full PR or release readiness. Use the project-locallocal-ciskill for this workflow and paused-runner retries before relying on remote CI. - Ordinary source, test, and tooling changes outside those workflow-sensitive boundaries do not require Local CI. Documentation-only changes that do not alter executable instructions or workflow contracts use the smallest relevant check, such as
npm run format:check. - The local quality gates and capability checks use disposable fixtures without production access. Run them, fix failures caused by the requested change, and retry affected checks within the authorized scope. After required checks pass, repeat or broaden verification only for a new change, failure, or unresolved concern.
- Use the connected Cloudflare MCP for current product documentation, API discovery, and account operations.
- Use the project-local
workers-best-practicesskill when authoring or reviewing Worker code. - Use the project-local
wranglerskill before running Wrangler commands. - Add product-specific Cloudflare skills only when the project adopts the corresponding product or workflow.
- Use the project-local
frontend-designskill for substantial UI work such as page redesigns, component styling, app shells, and frontend experiments. - Treat the skill as guidance for producing distinctive frontend work without compromising the template's lightweight and reusable nature unless the user explicitly asks for a more opinionated direction.
- Use the project-local
modern-web-guidanceskill when browser-facing work requires choosing an HTML, CSS, or Web API feature, interpreting compatibility, or designing a fallback, and for explicitly requested broad modernization or legacy-pattern audits; skip it for backend-only work, routine changes that apply established repository patterns, and general tooling. - Keep repository architecture, specs, source conventions, and tests authoritative over retrieved examples.
- Target Baseline Widely available for core behavior. Use newer features as progressive enhancements unless the project explicitly documents a narrower browser target, and do not treat Chromium-only checks as proof of cross-browser compatibility.
- Use the project-local
brainstormingskill when the user is exploring options, shaping a feature, or comparing approaches before implementation. - Treat the skill as guidance for producing concrete, lightweight options that can turn cleanly into specs, ADRs, or code.
- Use
README.mdfor context discovery when needed, then read the feature spec, authoritative inputs, architecture decisions, and operational docs relevant to the requested change. Routine edits do not require a whole-project documentation pass. Use documented facts instead of asking the user to repeat them. - Complete the requested increment and stop at its documented boundary. Deferred capabilities provide context, not authorization to implement them.
- Preserve documented working behavior and persistent content requirements when adding capabilities or changing presentation. Later explicit user instructions take precedence over earlier project guidance; update the authoritative documentation when they change a durable requirement.
- Leave unspecified, reversible implementation and visual choices to agent judgment.
- Use the project-local
start-projectskill only when the user explicitly asks to initialize, personalize, or prune a project cloned from this template. - Require a read-only Project Start Plan that defines the current increment and relevant implementation context, with exact keep, replace-later, removal, decision, documentation, update-path, and verification items. Follow the Project Start contract for context ownership; omit irrelevant fields.
- Do not edit or delete files until the user approves that plan; preserve the template source and baseline before pruning local update history.
- Use the project-local
wayfinderskill only when the user explicitly asks to map a large, uncertain initiative that is not yet clear enough to specify or plan responsibly. - Keep each effort in one repository-local
docs/wayfinding/<effort>.mdmap by default; do not introduce an issue tracker or companion workflow suite. - Treat wayfinding maps as temporary planning context. Promote lasting architecture and behavior into
ARCHITECTURE.md, ADRs, and feature specs before declaring a map ready for specification.
- Use the project-local
to-specskill when the user explicitly asks to turn settled discussion, wayfinding results, or an approved design into a feature spec. - Write or update
specs/{feature-domain}/spec.md; do not publish specs to an issue tracker or invent decisions that remain unresolved. - Keep architectural rationale in ADRs and global constraints in
ARCHITECTURE.md, linked from the feature spec instead of duplicated.
- Use the project-local
tddskill for observable runtime behavior and regression fixes when a stable test seam exists. - Work in focused red-green slices with independent expected values and tests through public interfaces.
- Skip TDD for documentation-only, prototype, generated, and purely mechanical changes; state the alternative verification instead.
- Use the project-local
architecture-reviewskill when adding or materially expanding an independently evolvable capability, when structural checks or Fallow diagnostics surface pressure, or when the user asks whether to consolidate before expanding scope. - Treat source-shape thresholds as architecture checkpoints rather than instructions to split files mechanically.
- Require exact, rationale-bearing exceptions in
.architecture-check.jsonwhen an oversized file or crowded directory is intentionally retained.
- Use the project-local
reviewskill when the user asks for review, risk analysis, or a merge-readiness pass. - Treat the skill as guidance for prioritizing bugs, regressions, and quality-gate gaps over style commentary.
- Use the project-local
correctness-reviewskill when the user asks whether changed logic is behaviorally correct or wants edge cases and broken contracts checked. - Use the project-local
test-reviewskill when the user asks whether changed behavior has meaningful, maintainable test coverage. - Treat both focused review skills as evidence-driven lenses that complement the broader
reviewskill without inventing findings.
- Use the project-local
debugskill when tests fail, builds break, or runtime behavior differs from expectations. - Treat the skill as a stop-the-line workflow: reproduce, localize, reduce, fix the root cause, add a regression test, and verify end to end.
- Use the project-local
securityskill when the user is working on auth, secrets, access control, sensitive data handling, or security hardening. - Treat the skill as guidance for prioritizing concrete security risks and proportionate mitigations over generic checklists.
- Use the project-local
simplifyskill after implementation when the user wants code simplified without changing behavior. - Treat the skill as guidance for reducing naming, state, and conceptual overhead inside the requested scope.
- Validate created or updated skills with
npm run skill:validate -- <skill-directory>. Use this repository-owned Node validator instead of the installed system skill’s Python validator. It checksSKILL.md, notagents/openai.yamlor behavioral quality; review those separately when relevant.