agentleFS
the-inconvenience-storethe-inconvenience-store/skills/.agents/skills/audit-upstream/SKILL.md

audit-upstream

Skill1 starsChanged 28 days agoMITView on GitHub

Audit the canonical skills fork and pstack, and classify changes worth adopting.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    pstack: Read the watchlist procedure and its mapping.

    line 22
  2. Distinctive:

    Read each report's changed paths and diffs, including docs.

    line 26
  3. Distinctive:

    When the user asks to adopt upstream changes, implement the meaningful behavior and its connected docs, manifests, router entries, and …

    line 39
  4. Very specific:

    Verify that the fork report follows the report template, that the pstack report records both upstream revisions and its watchlist results, …

    line 55
  5. Distinctive:

    Always finish by telling the user:

    line 57

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

Audit Upstream

1. Generate the reports

From the repository root, run:

./scripts/audit-upstream.py

By default this writes two report paths under docs/upstream/: a fork reconciliation against the local working tree, and a pstack comparison from its last-reviewed commit to the current upstream commit. Use --source fork or --source pstack when the user asks for only one. Pass --upstream-dir (fork) or --pstack-dir only for a trusted checkout the user supplied. Read the printed reports. If one audit fails, assess any successful report and name the missing source.

2. Check each source using its own policy

  • Fork: Read config.json. Confirm that every upstream skill is mapped, new, or ignored, and every local skill is mapped or reported as absent upstream. Keep rename mappings and ignores as policy; call out suspected changes rather than silently remapping them. Account for duplicate targets, unclassified skills, and stale ignores.
  • pstack: Read the watchlist procedure and its mapping. Assess watched diffs against the corresponding local guidance, investigate missing paths, and inspect newly added unwatched skills. Treat pstack as a source of ideas, not a fork whose local differences must be reconciled.

3. Assess the changes

Read each report's changed paths and diffs, including docs. For the fork, also read each new and absent entry; for pstack, open the pinned source of each new unwatched skill. Replace each generated assessment with an adopt, defer, or ignore summary that distinguishes:

  • upstream changes worth considering for adoption;
  • intentional fork divergence, including branding and invocation changes;
  • possible upstream deletions that leave local content behind;
  • documentation changes that need to accompany any adopted skill change.

The step is complete when every non-empty report category is represented in the assessment or explicitly identified as mechanical noise.

For pstack, advance the last-reviewed commit only after accounting for every watched change and new skill. Keep the evidence report for the comparison that informed the decision.

4. Implement approved changes

When the user asks to adopt upstream changes, implement the meaningful behavior and its connected docs, manifests, router entries, and invocation metadata according to this repository's instructions.

For a new fork skill classified during implementation, add an explicit mapping in config.json, including the docs mapping when one exists, or add a reasoned ignore if the user declines. For a newly adopted pstack source, add its upstream path and local landing points to pstack.json instead.

Localize adopted content. Search the implemented skill and every connected local file case-insensitively for upstream branding and identifiers:

rg -ni 'matt([ -]?pocock)?|mattpocock' <adopted paths>

Replace user-facing and internal references with this fork's vocabulary: inconvenient, the appropriate renamed skill such as ask-inconvenient or bootstrap-skills, and the-inconvenience-store/skills where a repository identifier is needed. Inspect every match rather than applying a blind replacement. Preserve upstream identity only where exact provenance, fetch URLs, mapping keys, raw diffs, or attribution require it.

After fork adoption, rerun ./scripts/audit-upstream.py --source fork and explain every remaining changed mapping as intentional or finish applying the missing behavior. After pstack adoption, check the adopted behavior and its local consumers directly: the upstream-to-upstream diff cannot prove local adoption. Preserve the original pstack report, including its comparison revisions and decisions.

5. Finish with a decision summary

Verify that the fork report follows the report template, that the pstack report records both upstream revisions and its watchlist results, and that all generated reports remain under docs/upstream/ without unresolved template tokens.

Always finish by telling the user:

  • which changes are meaningful and why, grouped by adopt, defer, or ignore rather than by raw file count;
  • the report paths and counts for each source;
  • which remaining differences are intentional fork policy.

For an audit-only run, explicitly offer to implement the meaningful changes. For an implementation run, summarize what was implemented and offer to implement any meaningful changes that remain; say clearly when none remain. The audit is incomplete if the final response only reports counts or a file path.

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.