agentleFS
layer5iolayer5io/sistent/.agents/skills/iterate-pr/SKILL.md

iterate-pr

Skill140 starsChanged 3 months agoApache-2.0View on GitHub

Iterate on a PR until CI passes. Optionally merge or merge and publish a release of the repo. Automates the feedback-fix-push-wait cycle.

  • Commits and pushes

10 other projects use a version of this, 1 of them edited; 1 new project in the last 4 weeks, against 0 the 4 before.

Adopted by

Surging: 1 new project took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 1 new projectWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

50 rules. 0 are common, 29 are distinctive, and 21 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 29

    Distinctive

    This author's own choices. Worth a look.

  • 21

    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. Very specific:

    Important: Run scripts from the repository root directory (where .git is located).

    line 23
  2. Distinctive:

    Every script below accepts either runner - they only use the standard library, so no dependency installation is needed either way:

    line 32
  3. Very specific:

    Before running any script command shown in this skill, check for uv first and prefer it.

    line 38
  4. Very specific:

    Do not pipe these scripts through anything that discards the exit status, and never infer "no feedback" or "checks passed" from an absent …

    line 63
  5. Distinctive:

    Count probe backstop: if any channel does come back empty, the script asks GitHub how many records that channel actually holds.

    line 81
  6. Distinctive:

    Use this deterministic precedence:

    line 108
  7. Very specific:

    If hints include --release, full-release, or terms like release, publish, ship → run release mode.

    line 110
  8. Distinctive:

    Do not fail because hints are missing or unrecognized.

    line 114
  9. Distinctive:

    Only the inline-thread signal is exact evidence, so it is the only one used.

    line 196
  10. Distinctive:

    Stop if no PR exists for the current branch.

    line 225
  11. Very specific:

    Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py to get categorized feedback already posted on the PR.

    line 229
  12. Very specific:

    Check status first. If it is not "ok", stop and report the error — do not continue as though the PR had no feedback.

    line 231
  13. Distinctive:

    If justified, implement the change

    line 273
  14. Distinctive:

    If not justified, reject it with a concise technical reason

    line 274
  15. Distinctive:

    Never leave an item without an explicit decision

    line 275
  16. Distinctive:

    When fixing feedback (all modes):

    line 277
  17. Distinctive:

    Check for similar issues in nearby code or related files

    line 279
  18. Distinctive:

    Never silently ignore review bot feedback — always verify the finding

    line 285
  19. Distinctive:

    After processing feedback, reply to PR comments/threads to acknowledge the action taken.

    line 289
  20. Very specific:

    Default mode: reply to high/medium.

    line 292
  21. Very specific:

    If thread_id exists (inline review thread), use python3 .agents/skills/iterate-pr/scripts/reply_to_thread.py

    line 296
  22. Very specific:

    If no thread_id exists, post a PR comment with gh pr comment <PR_NUMBER> --body "..."

    line 297
  23. Distinctive:

    Never add a signature, attribution line, tag, or vendor/model mention in replies

    line 310
  24. Distinctive:

    Keep replies tool-agnostic and identity-free

    line 311
  25. Distinctive:

    If the script fails, log and continue — do not block the workflow

    line 312
  26. Very specific:

    Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_checks.py to get structured failure data.

    line 316
  27. Very specific:

    Check status first; if it is not "ok", stop and report the error rather than treating the PR as green.

    line 317
  28. Distinctive:

    Wait if pending: If review bot checks (sentry, warden, cursor, bugbot, seer, codeql, coderabbit, gemini) are still running, wait before …

    line 320
  29. Very specific:

    Read the log_snippet and trace backwards from the error to understand WHY it failed — not just what failed

    line 325
  30. Distinctive:

    Read the relevant code and check for related issues (e.g., if a type error in one call site, check other call sites)

    line 326
  31. Distinctive:

    Do NOT assume what failed based on check name alone—always read the logs.

    line 330
  32. Distinctive:

    Before committing, verify your fixes locally:

    line 334
  33. Distinctive:

    If you fixed a test failure: re-run that specific test locally

    line 335
  34. Distinctive:

    If you fixed a lint/type error: re-run the linter or type checker on affected files

    line 336
  35. Distinctive:

    If local verification fails, fix before proceeding — do not push known-broken code.

    line 339
  36. Distinctive:

    Always add exactly one sign-off to each commit for the active authenticated GitHub user.

    line 348
  37. Very specific:

    Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_checks.py to get current CI status

    line 354
  38. Distinctive:

    If all checks passed → proceed to exit conditions

    line 355
  39. Distinctive:

    If any checks failed (none pending) → return to step 5

    line 356
  40. Very specific:

    If checks are still pending: a.

    line 357
  41. Very specific:

    Default mode: new high/medium

    line 360
  42. Very specific:

    Prefer Gemini review command (/gemini review) when available

    line 364
  43. Very specific:

    After all checks pass, do a final feedback check: sleep 10, then run python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py.

    line 367
  44. Very specific:

    Default mode: address any new high/medium feedback.

    line 368
  45. Distinctive:

    If step 7 required code changes (from new feedback after CI passed), return to step 2 for a fresh cycle.

    line 373
  46. Very specific:

    No new feedback remains after the latest review request - that is, every item the fetcher returned is resolved, flagged replied, or one you …

    line 377
  47. Distinctive:

    Default mode: stop after success conditions are met (do not merge automatically)

    line 384
  48. Distinctive:

    Success (default): All checks pass, post-CI feedback re-check is clean (no new unaddressed high/medium feedback including review bot …

    line 430
  49. Very specific:

    Stop: No PR exists, branch needs rebase, or either fetch script returned status: "error".

    line 438
  50. Very specific:

    If scripts fail, use gh CLI directly:

    line 443

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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
SKILL.md

Iterate on PR Until CI Passes

2.4.0 - fetch_pr_feedback.py no longer reports an empty result as a successful fetch. Every path where a feedback channel could come back empty because the request did not actually deliver now fails loudly, and a server-side count probe backstops any path not yet known. See Fetch Integrity.

Continuously iterate on the current branch until all CI checks pass and review feedback is addressed.

Requires: GitHub CLI (gh) authenticated.

Requires: Python 3.9+.

Important: Run scripts from the repository root directory (where .git is located).

Running the Bundled Scripts

Skills live in .agents/skills/ - that is the canonical path, and the only one used in this document. Some repos also expose .claude/skills as a symlink to it, but that symlink is not guaranteed: it does not survive a Windows checkout with core.symlinks=false, and not every repo carries it. Always invoke via .agents/.

Every script below accepts either runner - they only use the standard library, so no dependency installation is needed either way:

  • Preferred: uv - uv run <script>. Faster startup, isolated from system Python.
  • Fallback: python3 <script> - used automatically when uv is not on PATH.

Before running any script command shown in this skill, check for uv first and prefer it; fall back to python3 only if uv is unavailable:

if command -v uv >/dev/null 2>&1; then
  uv run .agents/skills/iterate-pr/scripts/<script>.py [args]
else
  python3 .agents/skills/iterate-pr/scripts/<script>.py [args]
fi

The rest of this document shows invocations in the shorter python3 <script> form for readability - substitute uv run per the rule above whenever uv is available.

Reading Script Output - Mandatory Gate

fetch_pr_feedback.py and fetch_pr_checks.py both emit a single JSON object with a top-level status field, and both exit non-zero on failure.

statusMeaningWhat you must do
"ok"The fetch completed. summary and feedback/checks are trustworthy.Proceed.
"error"The fetch did not complete. summary and feedback/checks are null.Stop. Surface error to the user. Never merge.

Check status before reading any other field. A failed lookup is not a clean PR. Do not pipe these scripts through anything that discards the exit status, and never infer "no feedback" or "checks passed" from an absent count - on failure the counts are null, not 0, precisely so that the two cases cannot be confused.

Fetch Integrity

The failure this skill guards against hardest is the silent one: reporting a clean PR because the feedback never arrived, rather than because there was none. A run that merges on that basis merges unreviewed code, and nothing in the output says so.

fetch_pr_feedback.py reads three independent channels - inline review threads (GraphQL), PR conversation comments (REST), and review bodies (REST). Each is treated as a channel that must deliver, not merely return:

  • gh exiting non-zero is an error, never an empty channel.
  • gh exiting 0 while writing nothing is an error too. An undelivered response and an empty one are indistinguishable downstream, so they are not allowed to look alike here.
  • A payload of unexpected shape is an error, not an absence.
  • Count probe backstop: if any channel does come back empty, the script asks GitHub how many records that channel actually holds. If the server says there are records and the fetch produced none, the script fails with the channel named and both numbers shown.

The probe costs one small extra query and only runs when a channel is already empty, so a genuinely quiet PR reports status: "ok" with zero counts and no extra cost on the common path. A PR with real feedback can no longer report zero.

Invocation and Modes

Invoke as:

  • /iterate-pr
  • /iterate-pr --merge (alias: full)
  • /iterate-pr --release
  • /iterate-pr --merge --release (alias: full-release)

In Claude Desktop, arguments are hints, not strict CLI parsing. Treat whatever follows /iterate-pr as a mode hint string.

full and full-release are the positional spellings this skill used before 2.3.0 and are still what several callers' standing instructions say. They are exact synonyms for --merge and --merge --release. Both spellings are supported and must stay supported: a caller who types full is asking for an autonomous merge run, and silently giving them default mode means the PR they expected to be merged just sits there.

Argument Hint Interpretation (Claude Desktop)

Use this deterministic precedence:

  1. If hints include --release, full-release, or terms like release, publish, ship → run release mode.
  2. Else if hints include --merge, full, or terms like autonomous, merge → run merge mode.
  3. Else run default mode.

Do not fail because hints are missing or unrecognized; default safely.

ModeBehavior
Default (/iterate-pr)Iterates on CI + high/medium feedback, asks user about low-priority items, then exits without merging.
--merge / fullFully autonomous: handles every new feedback item and replies to each one once, re-requests review (Gemini or Copilot) after each push, iterates until no new feedback and CI is green, then administratively merges the PR without waiting for a required-approval status.
--release / full-releaseDoes everything in --merge, then cuts/publishes a release for the repository.

Bundled Scripts

scripts/fetch_pr_checks.py

Fetches CI check status and extracts failure snippets from logs.

python3 .agents/skills/iterate-pr/scripts/fetch_pr_checks.py [--pr NUMBER]

Returns JSON:

{
  "status": "ok",
  "pr": {"number": 123, "branch": "feat/foo"},
  "summary": {"total": 5, "passed": 3, "failed": 2, "pending": 0},
  "checks": [
    {"name": "tests", "status": "fail", "log_snippet": "...", "run_id": 123},
    {"name": "lint", "status": "pass"}
  ]
}

scripts/fetch_pr_feedback.py

Fetches and categorizes PR review feedback using the LOGAF scale.

python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py [--pr NUMBER]

Sources covered, all paginated: review bodies (every review state, not only CHANGES_REQUESTED), inline review threads, and PR conversation comments. Each is a channel that must deliver - see Fetch Integrity - so a zero here means the PR really has nothing, never that a request quietly returned nothing.

Returns JSON with feedback categorized as:

  • high - Must address before merge (h:, blocker, changes requested)
  • medium - Should address (m:, standard feedback)
  • low - Optional (l:, nit, style, suggestion)
  • bot - Informational automated comments (Codecov, Dependabot, etc.)
  • resolved - Already resolved threads

Review bot feedback (CodeRabbit, Gemini Code Assist, Copilot, Sentry, Warden, Cursor, Bugbot, CodeQL, etc.) appears in high/medium/low with review_bot: true — it is NOT placed in the bot bucket. REVIEW_BOT_PATTERNS in scripts/fetch_pr_feedback.py owns the full roster; do not maintain a second copy of it here. Logins are matched with any trailing [bot] stripped, because REST reports coderabbitai[bot] where GraphQL reports coderabbitai for the same account; without that normalization the generic [bot] suffix rule files the fleet's main reviewer under bot and it gets skipped silently.

Each feedback item may also include:

  • thread_id - GraphQL node ID for inline review comments (used for replies via reply_to_thread.py)
  • replied - the newest comment in that thread is yours, so you have already answered it

Top-level fields:

  • status - see the mandatory gate above
  • viewer - the login gh is authenticated as
  • summary.needs_attention - open high + medium items, excluding those flagged replied
  • summary.already_replied - how many priority items were excluded on that basis

Self-authored feedback is never reported. Comments and reviews written by the PR author or by viewer are dropped, and a thread whose newest comment is yours is flagged replied and leaves needs_attention. Without both rules a --merge run answers an item, sees its own answer as new feedback, and never converges.

replied is decided per source, by the strongest evidence each one offers:

Sourcereplied when
Inline review threadthe newest comment in that thread is yours - exact
Review bodynever - a review body has no thread and no resolve button, so track in-session which you have answered
PR conversation commentnever - GitHub gives these no resolution state, so track in-session which you have answered

Only the inline-thread signal is exact evidence, so it is the only one used. Anything weaker - "the review predates something else we said" - cannot tell answering a review apart from merely typing after it, and would silently dismiss a review that arrives mid-round. Re-reporting a review you already answered is visible to you; dropping one you never read is not.

scripts/reply_to_thread.py

Replies to PR review threads. Batches multiple replies into a single GraphQL call.

python3 .agents/skills/iterate-pr/scripts/reply_to_thread.py THREAD_ID "body" [THREAD_ID "body" ...]

Arguments are alternating (thread_id, body) pairs. The script sends the reply body without adding signatures, attribution, or sign-off text. Example:

python3 .agents/skills/iterate-pr/scripts/reply_to_thread.py \
  PRRT_abc "Fixed the null check." \
  PRRT_def "Replaced with path-segment counting."

Workflow

1. Identify PR

gh pr view --json number,url,headRefName

Stop if no PR exists for the current branch.

2. Gather Review Feedback

Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py to get categorized feedback already posted on the PR.

Check status first. If it is not "ok", stop and report the error — do not continue as though the PR had no feedback.

3. Handle Feedback by Priority and Mode

Determine mode from invocation (/iterate-pr, /iterate-pr --merge, /iterate-pr --release).

Default mode (/iterate-pr)

Auto-fix (no prompt):

  • high - must address (blockers, security, changes requested)
  • medium - should address (standard feedback)

Prompt user for selection:

  • low - present numbered list and ask which to address:
Found 3 low-priority suggestions:
1. [l] "Consider renaming this variable" - @reviewer in api.py:42
2. [nit] "Could use a list comprehension" - @reviewer in utils.py:18
3. [style] "Add a docstring" - @reviewer in models.py:55

Which would you like to address? (e.g., "1,3" or "all" or "none")

Skip silently:

  • resolved threads
  • items flagged replied (you already answered them; act only when a reviewer follows up)
  • bot comments (informational only — Codecov, Dependabot, etc.)

Merge modes (/iterate-pr --merge, /iterate-pr --merge --release)

Operate autonomously. Process every new feedback item returned by fetch_pr_feedback.py (high, medium, low, and bot).

An item is new when it is not resolved, not flagged replied, and not one you already answered in an earlier round of this same session. Only inline review threads carry replied; review bodies and PR conversation comments have no resolution state, so the fetcher re-returns them verbatim on every poll and cannot make that last distinction for you. Keep your own in-session record of which ones you have replied to and do not answer them twice.

For each item:

  • Decide whether the feedback is justified
  • If justified, implement the change
  • If not justified, reject it with a concise technical reason
  • Never leave an item without an explicit decision

When fixing feedback (all modes):

  • Understand the root cause, not just the surface symptom
  • Check for similar issues in nearby code or related files
  • Fix all instances, not just the one mentioned

This includes review bot feedback (items with review_bot: true). Treat it the same as human feedback:

  • Real issue found → fix it
  • False positive → reject with explanation
  • Never silently ignore review bot feedback — always verify the finding

Replying to Comments

After processing feedback, reply to PR comments/threads to acknowledge the action taken.

Scope by mode:

  • Default mode: reply to high/medium; reply to low only when fixed or declined by the user
  • Merge modes: reply to every new feedback item, including informational bot feedback - one reply per item per session, not one per poll

How to reply:

  • If thread_id exists (inline review thread), use python3 .agents/skills/iterate-pr/scripts/reply_to_thread.py
  • If no thread_id exists, post a PR comment with gh pr comment <PR_NUMBER> --body "..."
  • In merge modes, a round is incomplete until every new item has a corresponding reply; an item you answered in an earlier round of this session already has one, so leave it alone rather than replying again

Batch inline replies for a round into a single call:

python3 .agents/skills/iterate-pr/scripts/reply_to_thread.py \
  PRRT_abc "Fixed — description of change." \
  PRRT_def "Not applicable — reason."

Reply format:

  • 1-2 sentences: what was changed, why it's not an issue, or acknowledgment of declined items
  • Never add a signature, attribution line, tag, or vendor/model mention in replies
  • Keep replies tool-agnostic and identity-free
  • If the script fails, log and continue — do not block the workflow

4. Check CI Status

Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_checks.py to get structured failure data. Check status first; if it is not "ok", stop and report the error rather than treating the PR as green.

Wait if pending: If review bot checks (sentry, warden, cursor, bugbot, seer, codeql, coderabbit, gemini) are still running, wait before proceeding—they post actionable feedback that must be evaluated. Informational bots (codecov) are not worth waiting for.

5. Fix CI Failures

For each failure in the script output:

  1. Read the log_snippet and trace backwards from the error to understand WHY it failed — not just what failed
  2. Read the relevant code and check for related issues (e.g., if a type error in one call site, check other call sites)
  3. Fix the root cause with minimal, targeted changes
  4. Find existing tests for the affected code and run them. If the fix introduces behavior not covered by existing tests, extend them to cover it (add a test case, not a whole new test file)

Do NOT assume what failed based on check name alone—always read the logs. Do NOT "quick fix and hope" — understand the failure thoroughly before changing code.

6. Verify Locally, Then Commit and Push

Before committing, verify your fixes locally:

  • If you fixed a test failure: re-run that specific test locally
  • If you fixed a lint/type error: re-run the linter or type checker on affected files
  • For any code fix: run existing tests covering the changed code

If local verification fails, fix before proceeding — do not push known-broken code.

git add <files>
gh auth status -a
git commit --signoff -m "fix: <descriptive message>"
git push

Always add exactly one sign-off to each commit for the active authenticated GitHub user. Check gh auth status -a before committing to confirm the active account, use git commit --signoff, and do not add any other trailers, signatures, or tool attribution to commits or PR comments.

7. Monitor CI and Address Feedback

Poll CI status and review feedback in a loop instead of blocking:

  1. Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_checks.py to get current CI status
  2. If all checks passed → proceed to exit conditions
  3. If any checks failed (none pending) → return to step 5
  4. If checks are still pending: a. Run python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py for new review feedback b. Address feedback based on mode:
    • Default mode: new high/medium
    • Merge modes: every new item (high/medium/low/bot) and reply to each item - "new" as defined in step 3, so a review body or PR comment you already answered this session is skipped, not re-answered c. If changes were needed, commit and push (this restarts CI) d. In merge modes, after each push, explicitly re-request review:
    • Prefer Gemini review command (/gemini review) when available
    • Otherwise request Copilot review by commenting @copilot review on the PR e. Sleep 30 seconds (don't increase on subsequent iterations), then repeat from sub-step 1
  5. After all checks pass, do a final feedback check: sleep 10, then run python3 .agents/skills/iterate-pr/scripts/fetch_pr_feedback.py.
    • Default mode: address any new high/medium feedback; if changes are needed, return to step 6
    • Merge modes: address any new item; if changes are needed, return to step 6 and re-request review

8. Repeat

If step 7 required code changes (from new feedback after CI passed), return to step 2 for a fresh cycle. CI failures during monitoring are already handled within step 7's polling loop.

In merge modes, continue looping until both conditions are true:

  • CI checks are green
  • No new feedback remains after the latest review request - that is, every item the fetcher returned is resolved, flagged replied, or one you already answered this session. Do not wait for the fetcher to return an empty list; it never will while an unresolved review body or PR conversation comment exists.

9. Finish by Mode

  • Default mode: stop after success conditions are met (do not merge automatically)
  • --merge: once CI is green and no new feedback remains, merge administratively - do not wait for a required-approval status to clear:
gh pr merge <PR_NUMBER> --admin --delete-branch

--admin uses the authenticated account's admin/maintainer permissions to bypass the required-approving-review branch-protection rule; it does not bypass or skip the CI-green and feedback-resolved checks this skill already enforces in steps 4-7, and it never fabricates or requests an approving review from another account. If the command fails (e.g. the authenticated account lacks admin/maintainer rights on the repo, or a check can't be bypassed), stop and surface the gh error to the user - do not retry under a different identity and do not fall back silently.

  • --release: complete --merge mode merge, then cut a release.

    First check whether this repository ships its own release skill (look for cut-release or similar under .agents/skills/). If it does, use it instead of the generic steps below - it knows this repo's drafter, tag and post-publish workflow conventions, and the generic path does not.

    Otherwise, resolve the repo from the checkout rather than hardcoding it:

    REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
    1. Find the draft release tag:
      gh release list --repo "$REPO" --json tagName,isDraft --jq '.[] | select(.isDraft) | .tagName'
    2. Review draft notes:
      gh release view vX.Y.Z --repo "$REPO"
    3. Publish the release:
      gh release edit vX.Y.Z --repo "$REPO" --draft=false --latest

    Publishing a GitHub release does not prove the artifact reached its registry. Verify at the real surface - the package registry, the version endpoint - not the release page.

Exit Conditions

Success (default): All checks pass, post-CI feedback re-check is clean (no new unaddressed high/medium feedback including review bot findings), user has decided on low-priority items.

Success (--merge): All checks pass, no new feedback remains after the latest review request (step 8's definition - not an empty fetcher result), every new feedback item has a reply (one per item per session, not one per poll), and the PR is administratively merged (no wait on a required-approval status).

Success (--release): --merge success criteria are met and the draft GitHub release has been published.

Ask for help: Same failure after 2 attempts, feedback needs clarification, infrastructure issues, or gh pr merge --admin fails (insufficient permissions or an unbypassable check) - surface the error rather than retrying under a different identity or falling back silently.

Stop: No PR exists, branch needs rebase, or either fetch script returned status: "error". A status: "error" is never a success condition and never a reason to merge.

Fallback

If scripts fail, use gh CLI directly:

  • gh pr checks --json name,state,bucket,link
  • gh run view <run-id> --log-failed
  • gh api repos/{owner}/{repo}/pulls/{number}/comments
  • gh api repos/{owner}/{repo}/pulls/{number}/reviews

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.