agentleFS
ankhorageankhorage/devtools/AGENTS.md

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
  1. Distinctive:

    Does not own portable contracts, repository rule semantics, or Doctor's final blocking validation.

    line 31
  2. Distinctive:

    Does not own application or package domain behavior in managed repositories.

    line 32
  3. Distinctive:

    Does not require sibling source checkouts or unpublished organization-local dependencies.

    line 33
  4. Distinctive:

    No unsolicited features, refactoring, redesign, migrations, abstractions, compatibility layers, or architectural improvements.

    line 49
  5. Distinctive:

    Never weaken mandatory quality, security, or validation requirements.

    line 57
  6. Distinctive:

    If correct implementation requires work outside scope, STOP.

    line 59
  7. Distinctive:

    Never independently expand scope or improvise workarounds.

    line 61
  8. Distinctive:

    STOP always means graceful stop: cease implementation, preserve and remotely hand off task work, document blockers, and safely clean up …

    line 63
  9. Distinctive:

    Do not stop for unrelated cosmetic issues or optional improvements.

    line 67
  10. Distinctive:

    Only the current Ankhorage architecture is valid.

    line 71
  11. Distinctive:

    No deprecated APIs, compatibility shims, historical fallbacks, or dual implementation paths.

    line 73
  12. Distinctive:

    Remove superseded implementations only within authorized work.

    line 75
  13. Very specific:

    No unpublished sibling sources, workspace/file/link dependencies, hidden organization-local state, or implicit deployment assumptions.

    line 79
  14. Distinctive:

    If implementation requires changes in another repository, STOP.

    line 85
  15. Distinctive:

    Wait for explicit instructions.

    line 87
  16. Very specific:

    Use bun install for development and restoring existing dependencies.

    line 95
  17. Very specific:

    Use bun update for authorized existing dependency updates.

    line 96
  18. Distinctive:

    Never add new dependencies without explicit user approval.

    line 97
  19. Distinctive:

    Do not perform dependency migrations or unrelated refactoring.

    line 99
  20. Very specific:

    Keep package.json and bun.lock synchronized and commit their changes.

    line 102
  21. Very specific:

    Use --frozen-lockfile for reproducible CI and release builds.

    line 103
  22. Distinctive:

    Never directly edit generated or centrally managed files, including AGENTS.md, CLAUDE.md, GEMINI.md, managed workflows, managed skills, and …

    line 107
  23. Distinctive:

    Read-only inspection is permitted.

    line 111
  24. Distinctive:

    If a protected file needs changes, STOP and report its owner.

    line 116
  25. Distinctive:

    Never modify generated output as a workaround.

    line 117
  26. Distinctive:

    Never independently modify database structures or existing data.

    line 127
  27. Distinctive:

    All security findings (P0–P3) are hard blockers.

    line 131
  28. Distinctive:

    STOP implementation immediately and perform graceful handoff.

    line 135
  29. Distinctive:

    Do not fix, bypass, merge, or deploy.

    line 137
  30. Distinctive:

    Wait for explicit user instructions.

    line 138
  31. Very specific:

    Before editing, read AGENTS.md and inspect .agents/skills/.

    line 144
  32. Distinctive:

    Follow applicable skills without expanding task scope.

    line 152
  33. Distinctive:

    STOP only when implementation would violate a mandatory requirement.

    line 153
  34. Distinctive:

    Never substitute generic or remembered instructions for repository-local skills.

    line 155
  35. Distinctive:

    Never edit or commit them in ordinary feature PRs.

    line 164
  36. Very specific:

    Update only relevant Paradox /* ...

    line 166
  37. Distinctive:

    Do not generate unrelated documentation or examples.

    line 170
  38. Distinctive:

    Create new unit tests only.

    line 174
  39. Distinctive:

    Never introduce new E2E, smoke, integration, browser, simulator, performance, or other non-unit tests without explicit authorization.

    line 175
  40. Distinctive:

    Never weaken assertions to conceal regressions.

    line 179
  41. Distinctive:

    Run applicable mandatory CI checks without weakening or bypassing them.

    line 180
  42. Distinctive:

    Do not invent additional test matrices or acceptance criteria.

    line 181
  43. Distinctive:

    Run existing mandatory build, typecheck, lint, Knip, formatting, and other quality checks.

    line 185
  44. Distinctive:

    Do not repeatedly rerun unchanged failures without new evidence.

    line 190
  45. Distinctive:

    Never disable, bypass, or falsify mandatory checks.

    line 191
  46. Distinctive:

    Document them in PR Conversation comments.

    line 200
  47. Distinctive:

    Treat each issue, PR, review, and change request as an independent task.

    line 207
  48. Distinctive:

    Use a fresh isolated checkout or worktree for every task.

    line 210
  49. Distinctive:

    Use Conventional Commits and PR titles.

    line 214
  50. Distinctive:

    Never assign or request PR reviews from any user or team.

    line 216
  51. Distinctive:

    Leave the requested reviewers list empty.

    line 217
  52. Distinctive:

    Never merge without explicit authorization.

    line 219
  53. Distinctive:

    Commit all recoverable task changes.

    line 225
  54. Distinctive:

    Verify the exact remote HEAD SHA.

    line 227
  55. Distinctive:

    Document blockers and findings in the PR.

    line 228
  56. Distinctive:

    Keep incomplete or blocked PRs in Draft.

    line 229
  57. Distinctive:

    If remote persistence is technically impossible, preserve local work and report the failed handoff, unpushed commits, and recovery location.

    line 234
  58. Distinctive:

    Never discard unpushed work to satisfy cleanup requirements.

    line 236
  59. Distinctive:

    Never remove unrelated work, shared paths, or unpersisted data.

    line 241
  60. Distinctive:

    Read-only reviews report findings without creating commits.

    line 244
  61. Distinctive:

    Run applicable mandatory validation:

    line 248
  62. Distinctive:

    Create the required Changeset for release-impacting work.

    line 256
  63. Distinctive:

    No release impact means no Changeset.

    line 257
  64. Very specific:

    After Changeset creation, run bun run format as the final regular file-writing validation operation.

    line 259
  65. Distinctive:

    Never claim failing or unverified mandatory checks have passed.

    line 273

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 install for development and restoring existing dependencies.
  • Use bun update for 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.json and bun.lock synchronized and commit their changes.
  • Use --frozen-lockfile for 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:

  1. Commit all recoverable task changes.
  2. Push to the intended remote branch.
  3. Verify the exact remote HEAD SHA.
  4. Document blockers and findings in the PR.
  5. Keep incomplete or blocked PRs in Draft.
  6. 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 build
  • bun run check-types
  • bun run lint
  • bun 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:check
  • bun 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.