You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create one provider-neutral repository contract for contributors and AI agents, consolidate detailed guidance into generic shared rule surfaces, and expose a deterministic software-factory feedback loop through stable commands and documentation.
Instruction architecture
AGENTS.md is the concise canonical entry point for every supported coding agent.
CLAUDE.md, GEMINI.md, and WARP.md remain compatibility symlinks to AGENTS.md.
.agents/commands/ is canonical; .claude/commands and .cursor/commands link to it.
.ai/rules/libraries.md contains reusable library guidance currently isolated in .cursor/notes/libs.md.
.cursor/rules/ and .cursor/notes/ are removed after their valid unique content reaches shared surfaces.
.github/copilot-instructions.md retains only Copilot review-specific deltas and agrees with the shared contract.
README contains contributor-facing setup without choosing a default AI provider.
Deliverables
Reconcile and simplify rules
Rename the AGENTS.md heading from CLAUDE.md to AGENTS.md and identify it as canonical.
Remove the stale .cursor/default.rules.mdc reference.
Reconcile current Cursor conflicts, including raw navigate vs navigateTo, runCatching vs cancellation-safe runSuspendCatching, preview patterns, logging ownership, and abstraction-by-line-count heuristics.
Move durable detailed guidance into .ai/rules/android.md, .ai/rules/verification.md, and .ai/rules/libraries.md.
Remove .cursor/rules/ and .cursor/notes/ after migration.
Replace duplicate .cursor/commands/ files with a compatibility symlink to .agents/commands/.
Reduce Copilot instructions to review-specific guidance consistent with canonical rules.
Remove bullets absorbed by the execution contract so the result is shorter and easier to navigate.
Add the execution contract
Incorporate the planning-workflow and Karpathy/software-factory recommendations linked from the 30 Jul worklog:
Add concise principles for explicit goals and assumptions, the smallest complete solution, surgical changes, and outcome verification.
Use a consequential-ambiguity boundary: ask when the answer changes behavior, scope, architecture, authorization, or an irreversible outcome; otherwise apply the simplest repository-consistent interpretation.
Add the autonomous loop: contract, inspect, implement, verify narrowly, classify failures, verify broadly, review the diff, repeat, and close out.
Define evidence-bearing stop conditions.
Add the durable planning loop: save the plan, open it with plannotator annotate, apply feedback to the same file, and continue until approval or closure without feedback.
Define a risk-based, read-only independent verifier loop separate from the single mutating worktree owner.
Define a closeout packet covering outcome, acceptance evidence, changed surface, automated/runtime checks, current head, unverified boundaries, and external gates.
Expose stable verification commands
Add just verify for compile, unit tests, and detekt.
Add just verify file <Test> for the targeted unit-test loop.
Add just verify suite <Annotation> over existing generated instrumented lanes.
Add non-mutating just doctor checks for Java, Android SDK/NDK, adb, Docker, connected target, and optional emulator prerequisites.
Add just journey list and just journey <path> over repository XML journeys.
Document the routing matrix for Kotlin logic, Compose rendering, storage/services, user flows, Rust/network boundaries, and build/workflow configuration.
Exercise each command and provide actionable help when an optional dependency/device is unavailable.
Rewrite README AI guidance
Consolidate the three Claude-focused areas into one AI agents section.
Present AGENTS.md, .ai/rules/, and .agents/commands/ as the shared contract.
Remove the README's default Claude recommendation, AI Code Review with Claude, Local Development Setup (YOLO Mode), and duplicate AI Dev Plugins sections.
Keep provider integration assets in provider-specific directories while the generic README links only to shared surfaces.
Remove Compose Stability Analyzer from recommended IDE plugins.
Recommend Google's Android CLI for official documentation, SDK/emulator management, deployment, Android Studio tooling, UI inspection, screenshots, and Journeys.
Link the official platform installation page and document:
brew tap android/tap
brew install android-cli
android update
android init
Document skill discovery, installation, and update behavior:
Parent: #1113
Goal
Create one provider-neutral repository contract for contributors and AI agents, consolidate detailed guidance into generic shared rule surfaces, and expose a deterministic software-factory feedback loop through stable commands and documentation.
Instruction architecture
AGENTS.mdis the concise canonical entry point for every supported coding agent.CLAUDE.md,GEMINI.md, andWARP.mdremain compatibility symlinks toAGENTS.md..agents/commands/is canonical;.claude/commandsand.cursor/commandslink to it..ai/rules/android.mdcontains detailed shared Android/architecture/Compose/coroutine/logging/test rules..ai/rules/verification.mdcontains verification routing, failure classification, runtime gates, and evidence-bearing closeout..ai/rules/libraries.mdcontains reusable library guidance currently isolated in.cursor/notes/libs.md..cursor/rules/and.cursor/notes/are removed after their valid unique content reaches shared surfaces..github/copilot-instructions.mdretains only Copilot review-specific deltas and agrees with the shared contract.Deliverables
Reconcile and simplify rules
AGENTS.mdheading fromCLAUDE.mdtoAGENTS.mdand identify it as canonical..cursor/default.rules.mdcreference.navigatevsnavigateTo,runCatchingvs cancellation-saferunSuspendCatching, preview patterns, logging ownership, and abstraction-by-line-count heuristics..ai/rules/android.md,.ai/rules/verification.md, and.ai/rules/libraries.md..cursor/rules/and.cursor/notes/after migration..cursor/commands/files with a compatibility symlink to.agents/commands/.Add the execution contract
Incorporate the planning-workflow and Karpathy/software-factory recommendations linked from the 30 Jul worklog:
plannotator annotate, apply feedback to the same file, and continue until approval or closure without feedback.Expose stable verification commands
just verifyfor compile, unit tests, and detekt.just verify file <Test>for the targeted unit-test loop.just verify suite <Annotation>over existing generated instrumented lanes.just doctorchecks for Java, Android SDK/NDK,adb, Docker, connected target, and optional emulator prerequisites.just journey listandjust journey <path>over repository XML journeys.Rewrite README AI guidance
AI agentssection.AGENTS.md,.ai/rules/, and.agents/commands/as the shared contract.AI Code Review with Claude,Local Development Setup (YOLO Mode), and duplicateAI Dev Pluginssections.android skills addupdates installed skills and customized skills require a distinct name.just verify,just doctor, andjust journey.Acceptance criteria
AGENTS.mdis the correctly titled canonical shared entry point.CLAUDE.md,GEMINI.md, andWARP.mdresolve toAGENTS.md..agents/commands/is canonical;.claude/commandsand.cursor/commandsresolve to it..ai/rules/android.md,.ai/rules/verification.md, and.ai/rules/libraries.mdcontain the migrated shared guidance..cursor/rules/and.cursor/notes/no longer exist.justcommands behave as documented, including one representative journey.AI agentssection and no default Claude recommendation or duplicated setup/review section.just compile,just test,just lint, andjust verifypass.References