devtools
AGENTS.md2 starsChanged 8 days agoMITView on GitHub
Package: @ankhorage/devtools Title: Ankhorage Devtools Owns shared repository automation, managed development tooling, workflows, and agent standards for Ankhorage TypeScript projects. Purpose: Keep standalone repositories aligned through released, reusable tooling instead of copied project-specific automation. Responsibilities: Architecture role: Tooling package and CLI composition layer over released contracts, rules, project detection, and reusable utilities. Architectural invariants: The user's explicit requirements and acceptance criteria define the authorized scope. Scope is frozen unless the user explicitly changes it. - Implement exactly the requested outcome.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
65 rules. About 0 are common, 57 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈57
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 31
Does not own portable contracts, repository rule semantics, or Doctor's final blocking validation.
- Distinctive: line 32
Does not own application or package domain behavior in managed repositories.
- Distinctive: line 33
Does not require sibling source checkouts or unpublished organization-local dependencies.
- Distinctive: line 49
No unsolicited features, refactoring, redesign, migrations, abstractions, compatibility layers, or architectural improvements.
- Distinctive: line 57
Never weaken mandatory quality, security, or validation requirements.
- Distinctive: line 59
If correct implementation requires work outside scope, STOP.
- Distinctive: line 61
Never independently expand scope or improvise workarounds.
- Distinctive: line 63
STOP always means graceful stop: cease implementation, preserve and remotely hand off task work, document blockers, and safely clean up …
- Distinctive: line 67
Do not stop for unrelated cosmetic issues or optional improvements.
- Distinctive: line 71
Only the current Ankhorage architecture is valid.
- Distinctive: line 73
No deprecated APIs, compatibility shims, historical fallbacks, or dual implementation paths.
- Distinctive: line 75
Remove superseded implementations only within authorized work.
- Very specific: line 79
No unpublished sibling sources, workspace/file/link dependencies, hidden organization-local state, or implicit deployment assumptions.
- Distinctive: line 85
If implementation requires changes in another repository, STOP.
- Distinctive: line 87
Wait for explicit instructions.
- Very specific: line 95
Use bun install for development and restoring existing dependencies.
- Very specific: line 96
Use bun update for authorized existing dependency updates.
- Distinctive: line 97
Never add new dependencies without explicit user approval.
- Distinctive: line 99
Do not perform dependency migrations or unrelated refactoring.
- Very specific: line 102
Keep package.json and bun.lock synchronized and commit their changes.
- Very specific: line 103
Use --frozen-lockfile for reproducible CI and release builds.
- Distinctive: line 107
Never directly edit generated or centrally managed files, including AGENTS.md, CLAUDE.md, GEMINI.md, managed workflows, managed skills, and …
- Distinctive: line 111
Read-only inspection is permitted.
- Distinctive: line 116
If a protected file needs changes, STOP and report its owner.
- Distinctive: line 117
Never modify generated output as a workaround.
- Distinctive: line 127
Never independently modify database structures or existing data.
- Distinctive: line 131
All security findings (P0–P3) are hard blockers.
- Distinctive: line 135
STOP implementation immediately and perform graceful handoff.
- Distinctive: line 137
Do not fix, bypass, merge, or deploy.
- Distinctive: line 138
Wait for explicit user instructions.
- Very specific: line 144
Before editing, read AGENTS.md and inspect .agents/skills/.
- Distinctive: line 152
Follow applicable skills without expanding task scope.
- Distinctive: line 153
STOP only when implementation would violate a mandatory requirement.
- Distinctive: line 155
Never substitute generic or remembered instructions for repository-local skills.
- Distinctive: line 164
Never edit or commit them in ordinary feature PRs.
- Very specific: line 166
Update only relevant Paradox /* ...
- Distinctive: line 170
Do not generate unrelated documentation or examples.
- Distinctive: line 174
Create new unit tests only.
- Distinctive: line 175
Never introduce new E2E, smoke, integration, browser, simulator, performance, or other non-unit tests without explicit authorization.
- Distinctive: line 179
Never weaken assertions to conceal regressions.
- Distinctive: line 180
Run applicable mandatory CI checks without weakening or bypassing them.
- Distinctive: line 181
Do not invent additional test matrices or acceptance criteria.
- Distinctive: line 185
Run existing mandatory build, typecheck, lint, Knip, formatting, and other quality checks.
- Distinctive: line 190
Do not repeatedly rerun unchanged failures without new evidence.
- Distinctive: line 191
Never disable, bypass, or falsify mandatory checks.
- Distinctive: line 200
Document them in PR Conversation comments.
- Distinctive: line 207
Treat each issue, PR, review, and change request as an independent task.
- Distinctive: line 210
Use a fresh isolated checkout or worktree for every task.
- Distinctive: line 214
Use Conventional Commits and PR titles.
- Distinctive: line 216
Never assign or request PR reviews from any user or team.
- Distinctive: line 217
Leave the requested reviewers list empty.
- Distinctive: line 219
Never merge without explicit authorization.
- Distinctive: line 225
Commit all recoverable task changes.
- Distinctive: line 227
Verify the exact remote HEAD SHA.
- Distinctive: line 228
Document blockers and findings in the PR.
- Distinctive: line 229
Keep incomplete or blocked PRs in Draft.
- Distinctive: line 234
If remote persistence is technically impossible, preserve local work and report the failed handoff, unpushed commits, and recovery location.
- Distinctive: line 236
Never discard unpushed work to satisfy cleanup requirements.
- Distinctive: line 241
Never remove unrelated work, shared paths, or unpersisted data.
- Distinctive: line 244
Read-only reviews report findings without creating commits.
- Distinctive: line 248
Run applicable mandatory validation:
- Distinctive: line 256
Create the required Changeset for release-impacting work.
- Distinctive: line 257
No release impact means no Changeset.
- Very specific: line 259
After Changeset creation, run bun run format as the final regular file-writing validation operation.
- Distinctive: line 273
Never claim failing or unverified mandatory checks have passed.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
<!-- This file is managed by @ankhorage/devtools. -->Repository
Package: @ankhorage/devtools
Title: Ankhorage Devtools
Owns shared repository automation, managed development tooling, workflows, and agent standards for Ankhorage TypeScript projects.
Purpose: Keep standalone repositories aligned through released, reusable tooling instead of copied project-specific automation.
Audience:
- Maintainers of standalone Ankhorage TypeScript repositories.
- Automation and CI workflows that consume managed repository policy.
Scope and boundaries
Responsibilities:
- Publish managed ESLint, Prettier, Knip, workflow, editor, agent, and repository-file policies.
- Expose CLI commands for repository synchronization, package maintenance, structure checks, changesets, and CI impact planning.
- Distribute canonical agent instructions and skills to independently versioned repositories.
- Provide advisory metadata initialization and status tooling backed by the published repository rules.
Boundaries:
- Does not own portable contracts, repository rule semantics, or Doctor's final blocking validation.
- Does not own application or package domain behavior in managed repositories.
- Does not require sibling source checkouts or unpublished organization-local dependencies.
Architecture role: Tooling package and CLI composition layer over released contracts, rules, project detection, and reusable utilities.
Architectural invariants:
- Managed repositories remain independently installable and usable.
- Canonical policy is consumed from its owning published package instead of duplicated.
- Repository synchronization is deterministic and reviewable.
Task authority and scope
The user's explicit requirements and acceptance criteria define the authorized scope. Scope is frozen unless the user explicitly changes it.
- Implement exactly the requested outcome. Never invent requirements.
- No unsolicited features, refactoring, redesign, migrations, abstractions, compatibility layers, or architectural improvements.
- Change only files necessary for the task, including relevant tests, documentation sources, and release metadata.
- Existing defects, architecture debt, and reviewer suggestions do not authorize additional work.
- Repository rules and skills define HOW authorized work is implemented, never WHAT additional work may be performed.
- Never weaken mandatory quality, security, or validation requirements.
If correct implementation requires work outside scope, STOP. Explain the blocker and wait for explicit user instructions. Never independently expand scope or improvise workarounds.
STOP always means graceful stop: cease implementation, preserve and remotely hand off task work, document blockers, and safely clean up according to the delivery rules below.
Do not stop for unrelated cosmetic issues or optional improvements.
Architecture and dependencies
Only the current Ankhorage architecture is valid.
- No deprecated APIs, compatibility shims, historical fallbacks, or dual implementation paths.
- Remove superseded implementations only within authorized work.
- Temporary migration paths require explicit authorization.
- Repositories must remain standalone, independently installable, buildable, testable, and usable with declared dependencies.
- No unpublished sibling sources, workspace/file/link dependencies, hidden organization-local state, or implicit deployment assumptions.
- Cross-package imports must use published public APIs.
- Published packages must remain consumer-agnostic.
- Provider-specific behavior belongs behind explicit boundaries.
If implementation requires changes in another repository, STOP. Identify the repository, required change, and blocker. Wait for explicit instructions.
Report unrelated architecture violations in a PR Conversation comment with location, evidence, and impact. Never fix them independently. Link directly to the comment in the final chat response.
Dependencies
- Use
bun installfor development and restoring existing dependencies. - Use
bun updatefor authorized existing dependency updates. - Never add new dependencies without explicit user approval.
- Never downgrade dependencies.
- Do not perform dependency migrations or unrelated refactoring.
- Evaluate reputable existing packages before reimplementing their functionality; propose new dependencies for approval.
- Keep
package.jsonandbun.locksynchronized and commit their changes. - Use
--frozen-lockfilefor reproducible CI and release builds.
Managed and generated files
Never directly edit generated or centrally managed files, including
AGENTS.md, CLAUDE.md, GEMINI.md, managed workflows, managed skills,
and generated documentation.
Read-only inspection is permitted.
Changes require explicit user authorization and must be implemented through the canonical owner or generator.
If a protected file needs changes, STOP and report its owner. Never modify generated output as a workaround.
Database and infrastructure
Database schema changes, data migrations, destructive operations, and infrastructure mutations require explicit task authorization.
Otherwise STOP and report the proposed changes, impact, risks, and rollback requirements.
Never independently modify database structures or existing data.
Security
All security findings (P0–P3) are hard blockers.
On detection:
- STOP implementation immediately and perform graceful handoff.
- Report all findings as a prioritized P0–P3 list with evidence.
- Do not fix, bypass, merge, or deploy.
- Wait for explicit user instructions.
This includes pre-existing security vulnerabilities.
Repository instructions and skills
Before editing, read AGENTS.md and inspect .agents/skills/.
Load:
.agents/skills/ankhorage-coding-rules/SKILL.md.agents/skills/ankhorage-project-structure/SKILL.md- Additional repository-local skills when applicable or required.
Follow applicable skills without expanding task scope. STOP only when implementation would violate a mandatory requirement.
Never substitute generic or remembered instructions for repository-local skills.
Skill scripts must use TypeScript (.ts) and run with Bun.
JavaScript skill scripts (.js, .mjs, .cjs) are prohibited.
Documentation
README.md and configured Paradox output are release-generated artifacts.
Never edit or commit them in ordinary feature PRs.
Update only relevant Paradox /*** ... */ comments, real
examples/<example>/... usage sources, and necessary manual documentation.
The release workflow regenerates documentation after the version bump. Do not generate unrelated documentation or examples.
Testing, validation and review
- Create new unit tests only.
- Never introduce new E2E, smoke, integration, browser, simulator, performance, or other non-unit tests without explicit authorization.
- Existing tests of all types may be executed, corrected, and extended with directly relevant assertions within the authorized task.
- Never weaken assertions to conceal regressions.
- Run applicable mandatory CI checks without weakening or bypassing them.
- Do not invent additional test matrices or acceptance criteria.
- Recommend additional non-unit tests in the final handoff if useful. Their non-creation is not a blocker.
Run existing mandatory build, typecheck, lint, Knip, formatting, and other quality checks.
- Fix task-introduced failures within scope.
- Report unrelated or pre-existing failures without fixing them.
- Do not repeatedly rerun unchanged failures without new evidence.
- Never disable, bypass, or falsify mandatory checks.
Review against original requirements and mandatory contracts.
Blocking findings require evidence of incorrect requested behavior, introduced regressions, or mandatory contract violations. Security findings always follow the Security hard-blocker policy.
Optional improvements and unrelated findings are non-blocking. Document them in PR Conversation comments.
Reviewers cannot expand scope or introduce acceptance criteria. Report failed and unverified checks accurately.
GitHub task lifecycle and delivery
Treat each issue, PR, review, and change request as an independent task.
- Fetch current origin/main, issue, PR, HEAD, review, and CI state.
- Use a fresh isolated checkout or worktree for every task.
- Isolate concurrent workspaces, builds, temporary files, and caches.
- Continue change requests on the existing PR branch.
- Preserve unrelated user work and existing PR history.
- Use Conventional Commits and PR titles.
- Assign all issues and PRs to
artiphishle. - Never assign or request PR reviews from any user or team.
- Leave the requested reviewers list empty; report review readiness in the handoff.
- Link issues to PRs and close issues only when completed.
- Never merge without explicit authorization.
Review the final diff and remove unauthorized changes.
For every task with changes, including blocked tasks:
- Commit all recoverable task changes.
- Push to the intended remote branch.
- Verify the exact remote HEAD SHA.
- Document blockers and findings in the PR.
- Keep incomplete or blocked PRs in Draft.
- Safely clean up task-owned temporary workspaces.
A recovery commit does not imply successful completion.
If remote persistence is technically impossible, preserve local work and report the failed handoff, unpushed commits, and recovery location. Never discard unpushed work to satisfy cleanup requirements.
Cleanup may remove only task-owned paths strictly beneath the resolved
system /tmp path (/private/tmp on macOS), using Git-aware removal.
Never remove unrelated work, shared paths, or unpersisted data. Report cleanup success, failure, or omission.
Read-only reviews report findings without creating commits.
Pull requests and release preparation
Run applicable mandatory validation:
bun run buildbun run check-typesbun run lintbun run knip:check- Relevant unit tests and existing mandatory tests
Create the required Changeset for release-impacting work. No release impact means no Changeset. Never create empty Changesets.
After Changeset creation, run bun run format as the final regular
file-writing validation operation.
Then run applicable read-only checks:
bun run format:checkbun run changeset:status
Include the Changeset file in formatting. Repeat necessary final checks after subsequent file modifications.
Formatting must not introduce unrelated changes into the final diff.
A Draft PR may document blocked or partially verified work. Never claim failing or unverified mandatory checks have passed.
Complete the delivery and cleanup process defined above.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

