portolan-skills
AGENTS.md8 starsChanged 4 months agoApache-2.0View on GitHub
These rules apply to AI agents working in any portolan-sdi repo. Every downstream repo repeats this text verbatim as a synced block at the top of its own AGENTS.md. Repo-specific instructions live below the block and override the canonical rules in that repo only. Claude Code does not read AGENTS.md. Each repo has a one-line CLAUDE.md that imports it instead. Put repo-specific instructions in AGENTS.md, never in CLAUDE.md, which the sync overwrites. The portolan-spec repo is ground truth for the…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- git-backed-catalogSkill
- portolan-bootstrapSkill
- portolan-cliSkill
- portolan-migrateSkill
- portolan-thumbnailsSkill
- reading-portolanSkill
- register-catalogSkill
- report-catalog-issueSkill
- sourcecoopSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before documenting any command, flag, or API, verify it exists in the released tool.
- Distinctive: line 14
Every repo uses Apache-2.0 except portolan-browser and portolan-nl-demo, which are ISC forks.
- Distinctive: line 16
Never bypass pre-commit hooks or CI gates.
- Distinctive: line 18
Write commits in conventional form.
- Distinctive: line 51
Every written artifact follows the prose rules in norms/prose.md.
- Distinctive: line 53
Before drafting substantial public copy like a README, a docs page, or an announcement, fetch and read norms/prose.md and
- Distinctive: line 67
Follow the contributing guide and the code of conduct.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
<!-- ops-sync:begin — synced from portolan-sdi/portolan-ops. Edit there, not here. -->Portolan agent norms
These rules apply to AI agents working in any portolan-sdi repo. Every downstream repo repeats this text verbatim as a synced block at the top of its own AGENTS.md. Repo-specific instructions live below the block and override the canonical rules in that repo only.
Claude Code does not read AGENTS.md. Each repo has a one-line CLAUDE.md that imports it instead. Put repo-specific instructions in AGENTS.md, never in CLAUDE.md, which the sync overwrites.
Ground rules
The portolan-spec repo is ground truth for the Portolan specification. The CLI, rashid, the registry, and every other tool implement the specification. They are downstream of it. Never describe the CLI as the source of truth. Propose spec changes in portolan-spec.
Before documenting any command, flag, or API, verify it exists in the released tool. A fabricated example persists beyond the session that wrote it.
Every repo uses Apache-2.0 except portolan-browser and portolan-nl-demo, which are ISC forks. See norms/repos.md for the record. Never introduce code under another license without a human decision recorded there.
Never bypass pre-commit hooks or CI gates. Green means green.
Write commits in conventional form. Squash-merge makes the pull request title become the commit message.
Pull requests and issues
Write every issue and pull request in two layers. The human layer first states what is wrong or missing. It explains why the problem matters and what should happen instead. Someone who did not follow your investigation should understand it in about a minute. The agent layer then provides evidence and implementation detail. It also records constraints, edge cases, and verification.
There is no word limit. A 700-word issue is good when its first 150 words make the outcome obvious. A 150-word issue is bad when it compresses the meaning into prose the reader has to unpack. Optimize for fast comprehension, not for short tickets.
Write them in Simplified Technical English (ASD-STE100). The rules are an output style, .claude/output-styles/simplified-technical-english.md, which every repo receives. A hook prints it at session start. Sentences run under 20 words and express one idea. Use the active voice, and use only the infinitive, the imperative, and simple tenses. Use a verb rather than a noun made from a verb. Keep the technical content exactly as precise as it was, and simplify only the language around it. Describe the design as it stands now rather than the approaches you discarded.
The structural contract CI enforces on a pull request:
- The sections
## What changed,## Why, and## Verificationexist and are not empty. - The prose references the issue the change resolves, as
#Nor its URL. - Verification pastes the command you ran and its output in a fenced block under
## Verification. It identifies the data it read, as a URL or catalog path. - A change that alters no behavior ticks the waiver checkbox instead. Keep its wording intact because the check matches the phrase "does not alter behavior".
Good evidence shows the fix works against real data. Proving a command exits zero is not enough. Take the failing command from the issue, run it against the same catalog, and show it now succeeds. A wall of pytest output does not count.
Issues follow the same shape. A bug report shows the failure and identifies the data. Write a feature request to show what the current tool cannot do, or what the workaround costs. A task states the outcome and the command that proves it is done.
Each repo uses the org issue template. The language itself is checked before a body is ever filed: .claude/hooks/writing_check.py runs on gh issue create and gh pr create, and reports the specific problems it found. Run writing_check.py --print-rules to read the rules. When it is wrong about a line, say so in the body with <!-- ste-ok: RULE_ID why this is correct -->. Dependabot is exempt from the CI check.
That check matches words and punctuation, but cannot assess tone or padding. It also cannot assess prose that argues for its own value. Passing proves nothing about how the body reads. Read what you wrote before you file it. Cut sentences that only make the change sound good.
Documentation
Agents writing or restructuring documentation follow two exemplars named in norms/docs.md. obstore demonstrates a concise, human-readable README that delegates to good docs elsewhere. scaffold-docs-skill shows how to build docs that have a clear human-facing surface, maintain examples via tests so they never drift, and auto-generate API docs instead of duplicating them. Both make documentation easy to maintain and easy to update. Draft top-down with human review between layers. Do not draft a README from a generic template or from memory.
These rules apply to every docs change. Use sentence-case headings without emoji. Use absolute dates like "in July 2026", never "recently". Run every command example against the released tool before you publish it.
Voice and messaging
Every written artifact follows the prose rules in norms/prose.md. Vale checks Markdown and website copy. The writing hook checks the prose in issues and pull requests. Apply the rules while drafting, not as cleanup.
Before drafting substantial public copy like a README, a docs page, or an announcement, fetch and read norms/prose.md and copy/messaging.md in full. If you cannot fetch them, say so and stop. Write from the actual files, not from memory.
How Portolan is described comes from copy/messaging.md alone.
Org-wide facts
The canonical homepage is https://www.portolan-sdi.org/. Canonical URLs live in copy/urls.md. Do not hardcode variants.
Community discussion happens in the Portolan Google Group and the Portolan channel in Cloud-Native Geo Slack. Planning happens in org-level GitHub projects.
Contribution rules
The AI policy applies to every contribution. An agent may draft the diff and the pull request body. A human must read, understand, and approve both before review is requested. Agents never open PRs, post comments, or take action in shared spaces without human approval.
Follow the contributing guide and the code of conduct.
Sync discipline
Files between ops-sync markers are synced from portolan-ops. They are overwritten on every sync run. To change one, edit it in portolan-ops, never in place.
One canonical home per fact. If a value like a color, URL, or policy line exists in portolan-ops, link to it rather than copying it.
<!-- ops-sync:end -->Skills track pinned upstreams
Every skill states facts about portolan-cli, rashid, the specification, the catalog template, or the registry. pins.toml names the version of each that the skills describe. scripts/check_drift.py checks every portolan, rashid, and gh command in a bash fence, every PORTO-* and PTL-* id, every cited specs/...md path, and every sample body marked <!-- drift-sample: issue --> or <!-- drift-sample: pr --> against those versions. Run it before you file a change:
uv run scripts/check_drift.pyPre-commit runs it with --offline. The Drift workflow runs it on every pull request and once a week. The weekly run fails when a pin lags its upstream and keeps one tracking issue open.
Each SKILL.md has <!-- drift: depends-on: ... --> on line 6. That comment lists the upstreams the skill states facts about. There is no last-verified date. git log pins.toml records when a pin last moved.
A skill restates nothing that portolan <cmd> --help, the spec, or rashid output can answer. Cite a spec rule by its id, such as PORTO-CORE-081. Do not paraphrase the rule. To show a wrong command on purpose, put <!-- drift-skip: <reason> --> on the line before the fence.
To move a pin, edit pins.toml. Then run the checker and fix every finding in the same pull request.
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.

