agentleFS
openSUSEopenSUSE/openSUSE-packaging-skill/AGENTS.md

openSUSE-packaging-skill

AGENTS.md11 starsChanged 11 days agoApache-2.0View on GitHub

For whoever changes this repository, human or agent. The division of labour: - README.md — for someone deciding whether to install the skill. - skills/opensuse-packaging/SKILL.md — for the agent at run time. Loaded on every trigger, so it is byte-capped and routes rather than explains. - AGENTS.md (this file) — conventions that would otherwise be rediscovered. - Everything here is public. No personal identifiers — not yours, not anyone else's: no forge or build-service usernames, e-mail addresses, real maintainer names,…

  • 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,040 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 repositoryOne other file it gives its agents.

The file

We split this AGENTS.md 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. Distinctive:

    Everything here is public: No personal identifiers — not yours, not anyone else's: no forge or build-service usernames, e-mail addresses, …

    line 12
  2. Distinctive:

    Own words: Do not paste upstream documentation.

    line 25
  3. Very specific:

    Every runnable script prints usage with -h/--help.

    line 48
  4. Very specific:

    No standing permission to maintain the skill's scripts covers them.

    line 71
  5. Distinctive:

    Run what CI runs (README "Development"), and for anything new:

    line 88

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

Contributing to this repository

For whoever changes this repository, human or agent. The division of labour:

  • README.md — for someone deciding whether to install the skill.
  • skills/opensuse-packaging/SKILL.md — for the agent at run time. Loaded on every trigger, so it is byte-capped and routes rather than explains.
  • AGENTS.md (this file) — conventions that would otherwise be rediscovered.

Ground rules

  • Everything here is public. No personal identifiers — not yours, not anyone else's: no forge or build-service usernames, e-mail addresses, real maintainer names, local home paths, or build hostnames. Write generically (<your-obs-account>, "the maintainer"). Public record ids — boo#, sr#, CVE numbers, package names — are fine. check-skills.py enforces this; if one reaches the tip commit, amend and force-push with --force-with-lease rather than adding a scrub commit on top.
  • No tool or assistant attribution anywhere: no Co-authored-by/Assisted-by trailers, no generated-with footers, no AI authorship claims in commits, PRs, docs or code comments.
  • Verify against upstream, not memory. A rule worth writing down is worth checking first. Field experience is a hypothesis: most of it turns out to be already documented, already wrong, or true only of the one case that produced it.
  • Conventional Commits, with the why in the body. The diff shows what changed; the message must say what it was for, and what you verified.
  • Own words. Do not paste upstream documentation; state the rule and cite the source.

Token budget

SKILL.md is injected whole on every trigger, so its size is a correctness property rather than a matter of taste. The references are read one section at a time and must stay readable that way.

  • Budgets live in tests/test-skill-budget.sh and are enforced in CI. Adding to SKILL.md means trading something out of it.
  • State a rule once, in the file that owns the topic. Elsewhere write a pointer: references/<file>.md "<Section>", which is literally the argument list for scripts/refsection.py. tests/test-doc-lint.sh resolves every pointer, so a renamed section breaks the build instead of rotting.
  • Never tell anyone to read a reference whole — same lint fails on it. Detail belongs in a reference section; SKILL.md gets a headline and the pointer.
  • Playbooks in agents/ are read by sub-agents that never see SKILL.md. Their "read this first" list must hold exactly the sections every run of that block needs; everything conditional goes in a trigger table. Brief a sub-agent with the playbook and the sections — never with "read SKILL.md".

Scripts

  • Every runnable script prints usage with -h/--help. A leading underscore (_forges.py) means an imported module, not a command.
  • The docs cite exact invocations so an agent never spends a turn probing --help: references/script-usage.md holds every script's flags and exit codes, and tests/repo/check-flags.py checks it, and every flag cited elsewhere, against the real --help. The same holds for osc: references/osc-usage.md has a line for every osc subcommand the skill cites, and tests/repo/check-osc.py checks each citation's subcommand and options against osc's own parser. Citing a new osc subcommand means adding its line there.
  • A failed lookup must never read as good news. This is the recurring bug class here: a watcher that reported success when its query failed, a status script that printed IN-SYNC when it could not read any version, a missing script whose "No such file" was counted as "nothing to do". When touching one, ask what an empty or failed fetch returns, and make it loud — exit non-zero and say UNKNOWN rather than guess.
  • Output is compact plain text meant to be read by an agent in one tool result: no raw JSON dumps, no whole logs. Prefer one line per finding and a verdict line.
  • Standard library only, Python 3.11+. The suites are offline; network lookups are stubbed.
  • A shell script runs inline Python isolated (python3 -I -c, python3 -I -): otherwise the working directory, often a package checkout, comes first on sys.path, and a json.py there runs. check-skills.py enforces it.
  • The pool PR gate changes only with the maintainer's explicit approval — target-gate.sh (builds and stamps a pool tree), pool-pr.sh (the only route to a pool PR), leap-sync.sh (sync, then the gate), pr-guard.py and _pr_guard.py (the harness hook and its rules). No standing permission to maintain the skill's scripts covers them. The guard runs the scripts in scripts/ unread only by a path in that directory (not a link from elsewhere), and only while every file scripts/ tracks matches its blob on the checkout's origin/main (PR_GUARD_PIN_REF), and nothing untracked lies there but __pycache__; a local edit to any of them, even scripts/README.md, has it read them all until the change is merged. So merging a change to any script changes what the guard lets through: no other script may push, write a pool PR or touch a stamp. The guard itself is installed as a pinned copy of its two files that the skill does not update; its harness wiring is drafted in contrib/harness/.
  • Every suite must run unrefused under pr-guard.py, which reads each script a command runs. Text a suite needs that the guard refuses — a pool PR write, merge or stamp path — goes in tests/fixtures/ or is assembled at run time; tests/test-pr-guard.sh puts every tests/test-*.sh through the guard, and fails on an ask too unless its asks_ok names the suite and the rule.

Before you push

Run what CI runs (README "Development"), and for anything new:

Break it first. A check that has never failed is not yet a check. Introduce the defect it exists to catch, watch it go red, then make it pass. The obvious runner loop here, for t in ...; do bash "$t" || break; done, returns 0 on a failing suite — it would have reported success forever.

main is protected: work on a branch, open a PR, and let the required checks run.

Adding to the skill

  1. A new rule — decide which file owns the topic; add it there and point at it from anywhere else that needs it. Check the budget still passes.
  2. A new reference section — give it a ## heading so refsection.py can address it, and keep it independently readable: someone will read that section and nothing else.
  3. A new script — add --help (with an Exit: line), a ## <script> entry in scripts/README.md with its exit codes and the trap it encodes, its synopsis line in references/script-usage.md (CI fails without it), a one-line mention in SKILL.md's bundled-scripts list, and a test. Say what a failed lookup returns.
  4. A new skill — a directory under skills/ whose name equals its name: frontmatter, lowercase and hyphenated, carrying license:. Nothing inside a skill may reference a path outside its own directory: installers copy that directory verbatim.

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.