agentleFS
tt-a1itt-a1i/archify/archify-pr/SKILL.md

archify-pr

Skill101k starsChanged 34 days agoApache-2.0View on GitHub

Explain git branch changes, diffs, and GitHub pull requests or GitLab merge requests with visual architecture, workflow, sequence, ERD, or lifecycle walkthroughs. When a pull request carries material architectural, flow, schema, or async-state changes, lightly offer optional Archify PR diagrams and their review benefit without forcing them; build and attach Camo-safe dual-theme story or static diagrams when the user agrees or explicitly asks. Requires the companion archify core Skill.

1 other project uses a version of this; 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 Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 1 new project
Oct 2026Nov 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

Who's talking about tt-a1i/archify

The biggest 5 of 113 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 113

Talked about on GitHub, Bluesky, YouTube, the web and Hacker News (113 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 27

22 more on Bluesky

On YouTube · 23

18 more on YouTube

On the web · 12

7 more on the web

On Hacker News · 1

  • Sep 7, 2026Archify1 point · 1 comment
  • Other versions1 project uses a version of this.

    Word for word · 1

    1. UniClipboard/UniClipboard★ 2.1k100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

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

    Every command goes through this Skill's wrapper, bin/archify-pr.mjs:

    line 14
  2. Very specific:

    When the user asks to explain or visualize a PR, a branch change, or a git diff, or to run archify pr, start the workflow directly.

    line 26
  3. Distinctive:

    When the user only asks to create or summarize a PR:

    line 32
  4. Very specific:

    Run node <archify-pr-root>/bin/archify-pr.mjs pr preflight --repo-root <repo> --json.

    line 34
  5. Very specific:

    Read policy and materiality from the result.

    line 35
  6. Very specific:

    If materiality.shouldOffer is false, finish the ordinary PR flow silently.

    line 53
  7. Distinctive:

    When unsure, stay silent. A missed offer costs less than an unwanted interruption.

    line 67
  8. Distinctive:

    Use the user's current language and at most three short lines:

    line 71
  9. Distinctive:

    When the user agrees, or asks explicitly, read PR workflow for the full manifest, change-mark, story, command and attach loop.

    line 79
  10. Very specific:

    If the wrapper exits with archify-pr/core-skill-missing, the core archify Skill is not installed or ARCHIFY_BIN is wrong.

    line 90
  11. Very specific:

    Never write SAFE, LOW RISK, MERGEABLE, NO IMPACT, VERIFIED PR or any other risk verdict.

    line 96
  12. Very specific:

    Do not pad a pack with a view whose only content is unchanged.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Archify PR

Turn a branch change or pull request into diagrams that show what changed, where it propagates, and with what neighbours. Read the code as the authority; report evidence, never a risk verdict.

Every command goes through this Skill's wrapper, bin/archify-pr.mjs:

node <archify-pr-root>/bin/archify-pr.mjs pr validate <manifest.json> --repo-root <repo> --json

The wrapper delegates unchanged to the installed core archify/bin/archify.mjs. It never downloads or installs anything.

Route the request

Explicit PR visualization

When the user asks to explain or visualize a PR, a branch change, or a git diff, or to run archify pr, start the workflow directly. Read references/pr-workflow.md, pin the three-dot range from git merge-base, and build the pack; do not ask whether a diagram is wanted.

For GitLab merge requests, build static views with --platform gitlab and attach them to a comment using the full MR URL. On GitHub, use the target from the request or preflight policy. When only the default applies and the shared PR already has a written description, show the attach dry run or confirm the target before writing.

Ordinary PR preparation

When the user only asks to create or summarize a PR:

  1. Run node <archify-pr-root>/bin/archify-pr.mjs pr preflight --repo-root <repo> --json. Pass the PR base with --base <ref> when it differs from the repository default.
  2. Read policy and materiality from the result.
  3. Follow the mode:
    • on-demand: stay silent and complete the text-only PR flow.
    • ask: make the optional offer only when the filter recommends it.
    • proactive (opt-in only): attach a diagram to a material PR without asking.

Interaction modes

  • ask (default, no rules line needed): offer diagrams for material changes only, then follow the user's answer.
  • on-demand: never offer; act only on an explicit request. Rule line: [archify pr: on-demand].
  • proactive: build and attach for material changes without asking. Only when the user explicitly requests this mode. Rule line: [archify pr: proactive].

A rule may also select the attach target, for example [archify pr: ask, target=comment]. An explicit request takes precedence (pass --mode or --target to preflight), followed by the current agent’s personal rules, then the repository root’s AGENTS.md or CONTRIBUTING.md. The default is ask with target body. Repository rules requesting proactive resolve to ask. Preflight discovers personal rules for Codex, Claude Code, Cursor and Devin. See personal rule discovery; pass --global-rules <path> to select the current agent’s personal file explicitly.

To switch personal modes, only when the user asks, write or replace one rule line in the current agent's global rules file (such as ~/.codex/AGENTS.md, ~/.claude/CLAUDE.md or ~/.config/devin/AGENTS.md) and name the file. Deleting the line restores the repository or default policy. Never switch to proactive unasked.

Materiality filter

If materiality.shouldOffer is false, finish the ordinary PR flow silently. For a candidate, inspect the changed code before offering. Stay silent when the change is any of:

  • docs, Markdown, comments or copy only;
  • lockfiles, version or dependency manifests, or simple configuration values;
  • formatting, lint fixes, or file renames without a logic change;
  • tests only, with no production architecture, interface or state change;
  • a small single-point edit: one or two files clearly under about 40 changed lines, with no cross-module chain, API contract, state machine or migration change. Schema and migration changes remain candidates even below this threshold.

Offer a diagram only when at least one is true:

  • a cross-module or cross-service topology or responsibility change spanning two or more layers or three or more core modules;
  • an async queue, scheduled job, retry, idempotency or state-machine transition change;
  • a database schema, foreign-key or index migration, or an added, removed or changed public API contract.

When unsure, stay silent. A missed offer costs less than an unwanted interruption.

The offer

Use the user's current language and at most three short lines:

  1. Name the part of this diff that is hard to read, concretely.
  2. State the concrete value: for example one looping story walkthrough plus collapsible static before/after diagrams, hosted through GitHub user-attachments. On GitLab, offer static diagrams in an MR comment.
  3. Say it is optional. If the user declines or ignores it, finish the text-only PR and do not ask again.

Build and attach

When the user agrees, or asks explicitly, read PR workflow for the full manifest, change-mark, story, command and attach loop. It covers:

  • the git merge-base three-dot range and pinned baseSha / headSha;
  • merged-superset views with one hop of context and change marks;
  • the Story dynamic walkthrough with storyOnly helper views and collapsed static references;
  • detail.mode: "diff" excerpts from real Git revisions;
  • pr validate, pr build, pr attach --dry-run, then pr attach;
  • diagnostic repair for pr-pack/*, pr-story/* and pr-attach/*.

Missing core Skill

If the wrapper exits with archify-pr/core-skill-missing, the core archify Skill is not installed or ARCHIFY_BIN is wrong. Report the diagnostic and the install command it suggests to the user. Never run npx skills add, install, update or uninstall the core Skill yourself unless the user explicitly asks.

Evidence rules

  • Reproduce the three-dot diff the forge shows; never diff the working tree or a moved two-dot base.
  • Cite repository paths and lines at the pinned revisions.
  • Never write SAFE, LOW RISK, MERGEABLE, NO IMPACT, VERIFIED PR or any other risk verdict. Report counts, names and diagrams; the reviewer owns the verdict.
  • Do not pad a pack with a view whose only content is unchanged.

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.