Use this file for repository-local agent guidance. User instructions still take precedence over this baseline.
-
Create or choose a GitHub issue before implementation work.
-
Use exactly one standard issue category label:
bug,enhancement,documentation,ci, orsecurity. -
Branch from the issue with:
<category>/<issue>-<YYYYMMDD>-<slug>The category prefix must match the issue's single standard category label. This branch shape is tool-independent;
feat/,agent/,codex/, and bare issue-number prefixes are invalid. -
Use a dedicated worktree for each pull request:
git fetch origin git worktree add -b <branch> ../base-cli-demo-worktrees/<slug> origin/main
-
Keep the pull request scoped to the issue and link it with
Fixes #<issue>orCloses #<issue>when merge should close the issue. -
Preserve existing user changes. Do not overwrite project-owned files unless the user explicitly asks for that edit.
Run the project validation command before publishing changes:
./tests/validate.shAlso run narrower tests for the files changed when available.
Update docs when behavior, commands, setup, or workflow expectations change.
Update CHANGELOG.md only for notable user-visible or release-worthy changes.
After merge, sync main, remove the worktree, and delete merged local and remote branches when safe.