Imported from ctreffe/agit-dev-template (
AGENTS.md). Install upstream withnpx skills add ctreffe/agit-dev-template. Copyright stays with the author.
AGENTS.md
Resident contract.
Safety
- Inspect repository, branch, worktree and staging; preserve changes and selections.
- Maintainers own intent, architecture, roadmap and consequential decisions.
- Authorized reads and edits are allowed. Commits, tags, pushes, pulls, merges,
rebases, resets, reverts, branches, stashes, destructive restores and direct
.git/changes each require an instruction containingexplicit,explicitlyor Germanexplizit. - When such a control-word instruction is needed, propose one minimal copy-ready wording that names the exact action, repository and material consequence; the proposal is not authorization.
- Once exact staging is requested or its commit is authorized, run Git commands
that write
.gitthrough narrow sandbox escalation on their first attempt; do not probe the expectedworkspace-write.git/index.lockdenial. Keep read-only Git inspection sandboxed. Escalation grants no additional Git or standing authority. - Ask before dependencies, installation, privilege, external operations, outside writes or transmission; access, versioning and publication differ.
- Retry once if plausibly transient. On recurrence or setup/policy error, pause;
use
troubleshoot-environment; describe the problem and ask whether to exit for an ordinary quick workaround or resolve the cause. Explicit maintainer invocation enters focused resolution directly. Verify repair only by continuing the originally blocked operation. input/intake/grants no access; keepinput/unchanged. Registeredmaterials/and unrestrictedtemp/are readable; never version temporary content or inspecttemp/restricted/. Keep secrets, logs and dumps out of Git. Synchronization grants no access.
Routing
- Bounded work uses
start-task,TASK_HANDOFF.md, targets and checks. LoadPROJECT_CONTEXT.mdonly for project-wide state or unclear scope. - Read
COLLABORATION.mdfor initialization, full review, authority conflicts or collaboration-model changes. LoadREPOSITORY.md,DOCUMENTATION.md,PHILOSOPHY.md,SYNCHRONIZED_STORAGE.mdand domain guidance when applicable. - Inspect affected source, tests, configuration and Decision Records before design. Existing project-local environments and tools take precedence.
- Task entry, handoff, ordinary commits and Decision Records route
automatically. Invoke initialization, review, template sync, consistency,
retrospective, local creation and
commit-milestoneexplicitly.
Validation
Scale evidence by stage: a bounded change needs the smallest useful behavioral or source review, an ordinary commit needs targeted evidence for a good reviewable state, and a milestone commit owns comprehensive engineering and release checks. Tests, linters, formatters, builds, whitespace, links and bilingual scans are not defaults before the milestone unless affected or required by a stated material risk. Report limits and deferred checks truthfully.