qalam-skills
AGENTS.md1 starsChanged 15 days agoMITView on GitHub
Rules for any agent editing this repository. They exist because this pack is consumed by four different hosts and by people who did not write it. 1. A skill is portable or it is broken. Frontmatter uses only the six Agent Skills fields: name, description, license, compatibility, metadata, allowed-tools. No model, context, hooks, or paths in a shipped skill. 2. Determinism belongs in qalam/, not in a prompt. If a step can be computed, add a function and a CLI…
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,196 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 repository9 other files it gives its agents.
- arabic-styleSkill
- extract-docsSkill
- glossary-builderSkill
- localize-appSkill
- rtl-layoutSkill
- skill-forgeSkill
- subtitle-translateSkill
- translate-docsSkill
- translation-qaSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 11
Determinism belongs in
qalam/, not in a prompt: If a step can be computed, add a function and a CLI subcommand. - Distinctive: line 18
Reports refuse to overclaim: Every skill states what it did not verify.
- Very specific: line 33
run qalam install --dry-run to confirm the installer still resolves it,
- Distinctive: line 62
Every bug you fix gets a test that fails before the fix.
≈ “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
Working on Qalam
Rules for any agent editing this repository. They exist because this pack is consumed by four different hosts and by people who did not write it.
The invariants
- A skill is portable or it is broken. Frontmatter uses only the six Agent
Skills fields:
name,description,license,compatibility,metadata,allowed-tools. Nomodel,context,hooks, orpathsin a shipped skill. - Determinism belongs in
qalam/, not in a prompt. If a step can be computed, add a function and a CLI subcommand. Do not ask a model to count. - No third-party dependencies, no network calls. The package must run on a bare Python 3.9 interpreter.
- Silent loss is the worst failure. A blank chunk, a missing translation, a
dropped word, or a skipped cue must produce a warning or an error — never a
clean exit. See
merge_outputs,RunState.record, andwrap_lines. - Reports refuse to overclaim. Every skill states what it did not verify.
- Arabic is first-class, not a locale. Direction, punctuation, numerals, harakat, and gender agreement are design constraints, not decorations.
Before you commit
python3 -m unittest discover -s tests -t . # must be green
python3 -m qalam skill check skills --strict # must be clean
python3 demo/run_demo.py # must end with artefactsFor a skill change, also:
- bump
metadata.qalam.versionin the affectedSKILL.md, - run
qalam install --dry-runto confirm the installer still resolves it, - re-read the failure table: did you add a failure mode that is not listed?
Adding a skill
python3 -m qalam skill new my-skill "What it does and when. Use when…" --root skillsThen, in order: write the description for triggering (not for impressiveness), add the governing rule, number the procedure, add a failure table, link only the references that the procedure actually needs, and add a row to the skills table in both READMEs.
A skill needs a reason to exist beyond "a prompt I like". If the work is
always-on guidance, it belongs in AGENTS.md. If it is a deterministic
transformation, it belongs in qalam/. A skill is for a procedure a model must
follow in order, with judgement between steps.
Style
- Prose over bullet lists in skill bodies; tables for enumerable facts.
- Name the command, with placeholders in angle brackets.
- One idea per paragraph. No hype, no "powerful", no "seamless".
- British spelling in docs is fine; be consistent within a file.
- Arabic examples must be real Arabic, not transliterated English.
Testing expectations
- Every bug you fix gets a test that fails before the fix.
- Tests are offline, use
tempfile, and never touch a real home directory. - The shell-safety test in
tests/test_install.py::test_home_is_isolated_per_testexists because an earlier version of that suite wrote into the developer's real~/.config/opencode. Do not weaken it.
Licensing
MIT. Contributions are under the same licence.
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.

