Repository collaboration instructions
Read the existing sourcesโ
Project context: [existing local project file or accessible URL].
Stakeholders and decision rights: [existing source].
Scope and constraints: [existing source].
Process and relevant skills: [existing contribution guide or adopted URL/version].
Adopted external policy SHA/version: none unless explicitly recorded with a pinned
source URL in that contribution guide. Evolving technique/reference links do not adopt policy.
Project locations: [repository/component map and editing/generated-file boundaries].
Tools, integrations and access: [existing project tooling source].
Setup, build and verification commands: [actual runbook/CI source].
Work and review: [actual tracker, repositories and review homes].
Current knowledge and decisions: [existing indexes].
Read the current assignment and only the sources it needs. Preserve applicable instructions, established architecture and human edits. Load the relevant skill body; a link does not install skills or grant tools. Use the project's adopted host after verifying its capabilities. Report any gap that blocks work.
Coordinate and deliverโ
Use the existing work item for shared scope, acceptance, feedback and handoff. Keep personal steps in the configured private Second Brain, subject to project policy; use an unsaved session plan if unavailable. Share an execution plan only when collaborators need one. Identify the accountable human, writer scope, dependencies and integration responsibility. Use isolated branches/work directories for parallel writers; coordinate shared interfaces and overlapping scopes before changes. Serialize overlap without an effective shared claim.
Make complete reviewable increments using the established stack. Proceed with routine reversible choices in scope; refer consequential conflicts to the responsible owner. Run the actual affected checks and record results/limits against the tested revision. Verify combined changes after integration and follow required review/action permissions.
Preserve knowledge and continuityโ
Maintain affected current knowledge and significant decision rationale at the existing homes. Preserve accepted reasons and replacement links. Before a pause, save result, revisions, evidence/limits, blockers, pending writes and one next action at the appropriate private or shared home. The shared handoff must let a teammate continue without a private plan. On returning, check current sources against the previous summary.
Canonical source: templates/agent-instructions/existing-repository/AGENTS.md.