agentleFS
LaplacianAILaplacianAI/openarity/.agents/skills/update-project-docs/SKILL.md

update-project-docs

Skill2 starsChanged 26 days agoMITView on GitHub

Update the repository's public-facing documents — README.md, CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, the issue templates and the pull request template. Covers which document owns which fact, what has to be re-verified before writing, and the GitHub community-standards checklist. Use whenever a change adds a command, an environment variable, a dependency, an endpoint, or anything else these documents claim.

  • Reads credentials

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    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:

    Do not wait to be asked. These changes make a document wrong:

    line 51
  2. Distinctive:

    Every command in these files gets run before it is committed.

    line 86
  3. Distinctive:

    Never describe a planned component in the present tense.

    line 117
  4. Very specific:

    Every relative link resolves — SECURITY.md, not a URL

    line 170
  5. Very specific:

    Every fenced block declares a language, text if nothing else fits

    line 171

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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

Update the project documents

These are the files a stranger reads before they read any code. They are wrong by default — every change to the build, the configuration or the feature set silently invalidates something in them.

Step 1 — work out which file owns the fact

Each fact lives in exactly one place. Duplicating it means one copy goes stale.

The factLives in
What the project is, what works todayREADME.md
Environment variables and their defaultsREADME.md
How to run it as a userREADME.md
How to set up a development machineCONTRIBUTING.md
Branch, commit and pull request rulesCONTRIBUTING.md
Which command must pass before pushingCONTRIBUTING.md
How to report a vulnerability, supported versionsSECURITY.md
Deliberate security decisions worth not reportingSECURITY.md
Conduct and enforcementCODE_OF_CONDUCT.md
What we ask for in a bug report.github/ISSUE_TEMPLATE/bug_report.yml
What a pull request has to demonstrate.github/pull_request_template.md
How to run the whole stack, and every make targetdeployment/README.md
The path through it, with the reasonsdeployment/QUICKSTART.md
The real secret store — init, unseal, AppRolesdeployment/OPENBAO.md
The same facts for a stranger, on the website/content/docs/

The README links the others. Nothing links back to the README.

The bottom four are the ones that rot quietly. A change to the deployment is rarely a change to a Go file, so nothing in make check fails and no test goes red — the documents simply stop describing what the commands do. make start-docker shipped with only deployment/README.md updated, leaving QUICKSTART.md walking somebody through thirteen .env lines a script now writes, and the site with no install page at all.

The site is a copy of facts that live elsewhere, so it is the last thing to be updated and the first to be wrong. site/content/docs/get-started/ describes running it, docs/platform/ describes the brain and its settings; a fact about running Openarity belongs in one of them and in the matching repository document, and nowhere else.

Step 2 — the triggers

Do not wait to be asked. These changes make a document wrong:

  • A new environment variable → the README configuration table. The add-env-var skill already tells you this.
  • A new make target a contributor needs → CONTRIBUTING.md, and the README's Development block if it is one of the everyday four.
  • A change to how the stack is started or configured → deployment/README.md for the target itself, deployment/QUICKSTART.md for the walkthrough it replaces or changes, and site/content/docs/get-started/. Check whether a manual sequence documented elsewhere is now automated: a walkthrough that still works but is no longer the way anybody does it is the kind of stale that reads as current.
  • A new command or subcommand → the README quick start, and site/content/docs/reference/cli.md, which lists the whole tree.
  • A new endpoint → apps/brain/api/openapi.yaml first, since a test fails without it, then site/content/docs/reference/http-api.md.
  • A new example under sdk/agent/examples/ → its README table and site/content/docs/agent-sdk/examples.md.
  • A dependency with a version floor — a Postgres feature, a Go version → the prerequisites in both files.
  • A feature actually shipping → move it out of "not built yet" in the README. This is the one people forget, and it is the one that matters: a README that undersells is fixed by a two-line edit, and nobody is angry.
  • A new endpoint that is unauthenticated on purpose → the "things worth knowing" list in SECURITY.md.
  • Something starting to be published — an image, a binary, a package → every sentence telling people to build it themselves. These read as helpful rather than stale, so nothing prompts you to find them; grep for the artifact's name. Do not write the install instructions until the artifact is actually fetchable: a GHCR package is private until its visibility is changed by hand, so a docker pull line committed on merge day is wrong for everyone until someone clicks it.

Step 3 — verify, do not remember

Every command in these files gets run before it is committed. Not skimmed — run.

psql -h 127.0.0.1 -U "$USER" -d postgres -c 'CREATE DATABASE openarity_docs_check'
export OPENARITY_POSTGRES_DSN="postgres://$USER@127.0.0.1:5432/openarity_docs_check?sslmode=disable"

cd apps/brain
go run ./cmd/brain migrate up      # expect: Applied migrations count=1
go run ./cmd/brain &               # expect: two listeners

curl -s 127.0.0.1:21120/healthz    # expect: ok
curl -s 127.0.0.1:21120/readyz     # expect: ready

Then drop the database. A quick-start block that has never been run in a clean database is a guess.

For the configuration table, read internal/config/config.go and copy the defaults from the struct tags. Do not type them from memory — the ports are unusual (21120, 21121) and the prefix is OPENARITY_, so a plausible guess is a wrong one.

Step 4 — say what is true, including the unflattering part

The README's job at this stage is to stop someone wasting an afternoon.

  • A status note near the top — no release, no stable API, design still moving.
  • "What works today" listing only what runs, and a closing line naming what does not exist yet.
  • Never describe a planned component in the present tense. The design document is where intentions live; the README is where facts live.

The unused configuration entries — FalkorDB, Redis, Vault, the model router — are marked "not used yet" for exactly this reason. Keep that marking accurate in both directions.

Step 5 — the two documents you do not write

  • CODE_OF_CONDUCT.md is Contributor Covenant 2.1 verbatim. GitHub matches it by content, so a paraphrase loses the community-standards checkmark. The only editable text is the contact address in the Enforcement section. If it ever needs regenerating:

    curl -sS https://raw.githubusercontent.com/EthicalSource/contributor_covenant/release/content/version/2/1/code_of_conduct.md \
      | tail -n +6 \
      | sed 's|\[INSERT CONTACT METHOD\]|<contact>|' > CODE_OF_CONDUCT.md

    tail -n +6 strips the TOML front matter the upstream file carries.

  • LICENSE is MIT, unchanged. Changing it is not a documentation task.

Step 6 — the community-standards checklist

GitHub scores this at Insights → Community Standards. All of it is present; keep it that way:

  • Description and topics in the About box — repository settings, not a file
  • README.md
  • LICENSE
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • SECURITY.md
  • Issue templates
  • Pull request template

.github/ISSUE_TEMPLATE/config.yml sets blank_issues_enabled: false, so every issue arrives through a form. Adding a template means adding it to that directory; the contact links in config.yml are what route security reports away from public issues.

Step 7 — check it renders

Markdown tables in this repository are lint-checked with MD060 in aligned style: every pipe in a table must line up with the header row. Padding cells by hand goes wrong the moment a cell is long, so let something else do it, or keep long values out of the table entirely — the Postgres DSN sits in a code block below its table for exactly this reason.

Before committing:

  • Every relative link resolves — [SECURITY.md](SECURITY.md), not a URL
  • Every fenced block declares a language, text if nothing else fits
  • The CI badge points at the workflow file that actually exists

Step 8 — commit

Documentation changes are docs: and go through a pull request like anything else, because main is protected.

docs: add contributing, security and issue templates
docs(brain): record the new OPENARITY_GRAPH_URL default

Scope it to an app only when it describes that app. The root documents are unscoped.

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.