AGENTS
Agent Instructions These instructions apply to all AI assistants working in this repository. Core Rules - Always review CHANGELOG. Imported Co...
Agent Instructions These instructions apply to all AI assistants working in this repository. ## Core Rules - Always review `CHANGELOG.
Agent Instructions
These instructions apply to all AI assistants working in this repository.
Core Rules
- Always review
CHANGELOG.mdandROADMAP.mdbefore starting significant work. - Treat
DOCS/as the documentation source of truth. - Do not work directly on
mainfor substantial changes. - Use
codex/<project-number>-<slug>for agent branches and<project-number>-<slug>for human branches. - Update docs when code changes affect behavior, workflows, or interfaces.
- Maintain frontmatter (
title,description,status,lastUpdated,owner). - Keep
DOCS/README.mdandDOCS/index.mdaccurate. - Use checkpoint-based progress updates instead of
today/tomorrowhandoff wording. - Generate timestamps with
node scripts/docs/timestamp-et.mjs --json(never hand-type them). - Keep repo context explicit:
ios/contains the SwiftUI iPhone app generated from XcodeGen.backend/contains the Cloudflare Worker API and Neon integration seam.
- Commit and config hygiene:
- Keep real env and signing files untracked.
- Update
.env.example,backend/.dev.vars.example, andios/Config/Local.example.xcconfigwhen runtime requirements change.
- Each project update must include:
- absolute timestamp (
YYYY-MM-DD HH:MM ET (America/New_York)) - completed since prior checkpoint
- next checkpoint targets
- absolute timestamp (
Project Planning
- Create a numbered project doc under
DOCS/PROJECTS/active/at project kickoff. - Record the working branch in the project doc when implementation begins.
- Open a draft PR early for every substantial stream and record the PR number/link in the project doc.
- Move the doc across status folders as work progresses.
- Move a project to
DOCS/PROJECTS/in-review/and setstatus: in-reviewonly when implementation is complete and a draft PR exists for review. - Move a project to
DOCS/PROJECTS/blocked/and setstatus: blockedwhen waiting on user decisions, permissions, access, or missing inputs. - Do not move a project to
DOCS/PROJECTS/completed/until collaborative walkthrough/sign-off is complete. - While projects are in
in-revieworblocked, continue execution by pulling the next prioritized backlog/stale stream. - Reference the project number in roadmap and changelog entries.
- Maintain a checkpoint log in each project doc and add a checkpoint for major decisions, delivery milestones, or scope changes.
Git And PR Flow
- Default path: create/update project doc -> create branch -> implement -> push branch -> open draft PR -> gather evidence -> mark ready -> squash merge -> delete branch.
- Every draft PR should include scope, env/config changes, verification evidence, preview evidence, and risks.
- Use
gh pr list,gh pr checks --watch, andgh pr view --commentsas the default monitoring loop. - Prefer squash merges and branch deletion after merge.
UX/UI Bug Intake
- Log user-visible UX/UI defects in
DOCS/UX_UI_BUGS/INBOX.mdfirst, then normalize serious or durable items intoDOCS/UX_UI_BUGS/TRIAGED.md. - The main agent is the canonical logger/router for UX/UI bugs, even when the user or a subagent detects them.
- Use simulator/device debugging to gather evidence, then summarize the result into the bug register instead of leaving it only in chat or raw logs.
- Only let blocker-class or active-slice-local UX/UI bugs interrupt the current stream immediately; otherwise capture and defer them into the right planned slice.
Docs Tooling
- Run
node scripts/docs/normalize-frontmatter.mjs DOCSbefore larger docs cleanup passes. - Run
node scripts/docs/manifest.mjs DOCSafter adding or moving docs files. - Run
node scripts/docs/check-links.mjs DOCSbefore merging docs-only changes.
Provenance
- Source file:
AGENTS.md - Source URL: https://github.com/maggielerman/maintain-ios/blob/main/AGENTS.md