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.
- opensuse-packagingSkill
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
- Distinctive: line 12
Everything here is public: No personal identifiers — not yours, not anyone else's: no forge or build-service usernames, e-mail addresses, …
- Distinctive: line 25
Own words: Do not paste upstream documentation.
- Very specific: line 48
Every runnable script prints usage with -h/--help.
- Very specific: line 71
No standing permission to maintain the skill's scripts covers them.
- Distinctive: line 88
Run what CI runs (README "Development"), and for anything new:
≈ “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.
Files
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.pyenforces this; if one reaches the tip commit, amend and force-push with--force-with-leaserather than adding a scrub commit on top. - No tool or assistant attribution anywhere: no
Co-authored-by/Assisted-bytrailers, 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.shand are enforced in CI. Adding toSKILL.mdmeans 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 forscripts/refsection.py.tests/test-doc-lint.shresolves 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.mdgets a headline and the pointer. - Playbooks in
agents/are read by sub-agents that never seeSKILL.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.mdholds every script's flags and exit codes, andtests/repo/check-flags.pychecks it, and every flag cited elsewhere, against the real--help. The same holds for osc:references/osc-usage.mdhas a line for every osc subcommand the skill cites, andtests/repo/check-osc.pychecks 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 onsys.path, and ajson.pythere runs.check-skills.pyenforces 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.pyand_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 inscripts/unread only by a path in that directory (not a link from elsewhere), and only while every filescripts/tracks matches its blob on the checkout'sorigin/main(PR_GUARD_PIN_REF), and nothing untracked lies there but__pycache__; a local edit to any of them, evenscripts/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 incontrib/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 intests/fixtures/or is assembled at run time;tests/test-pr-guard.shputs everytests/test-*.shthrough the guard, and fails on an ask too unless itsasks_oknames 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
- 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.
- A new reference section — give it a
##heading sorefsection.pycan address it, and keep it independently readable: someone will read that section and nothing else. - A new script — add
--help(with anExit:line), a## <script>entry inscripts/README.mdwith its exit codes and the trap it encodes, its synopsis line inreferences/script-usage.md(CI fails without it), a one-line mention inSKILL.md's bundled-scripts list, and a test. Say what a failed lookup returns. - A new skill — a directory under
skills/whose name equals itsname:frontmatter, lowercase and hyphenated, carryinglicense:. Nothing inside a skill may reference a path outside its own directory: installers copy that directory verbatim.
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
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.

