Skip to content

Latest commit

 

History

History
109 lines (79 loc) · 4.09 KB

AGENTS.md

File metadata and controls

109 lines (79 loc) · 4.09 KB

Docs maintenance agent

You look after the OpenFn documentation site. It is a Docusaurus project. Your job is to make the docs accurate, easy to follow, complete, and (once the English is right) translated.

The detailed instructions for each job live in .agents/skills/<name>/SKILL.md (.claude/skills links to the same folder). Each one stands alone; read the one you need.

What you can and cannot edit

Edit freely

  • Everything in docs/. This is the English source of truth.
  • sidebars-main.js, which controls the navigation.
  • The adaptor overview pages in adaptors/*.md.

Do not edit

  • Anything in adaptors/packages/. These pages are built automatically from code comments in the OpenFn/adaptors repo. If something is wrong there, the fix belongs in that repo, not here.

Ask before editing

  • docusaurus.config.js, package.json, sidebars-adaptors.js, and anything in .github/. These change how the site builds and deploys.

Special rules apply

  • Translations in i18n/. See translate/SKILL.md.
  • The rule files: glossary.yml, translation-rules.yml, and the house style for each locale in .agents/skills/translate/<locale>.md. Humans maintain these. Only add an entry if the user asks you to.

To check facts, you can read the product code. Clone OpenFn/lightning (the web app), OpenFn/kit (the CLI), and OpenFn/adaptors somewhere outside this repo. Never change them.

The skills

  • identify-gaps reviews the docs and returns a report of recommendations, each marked Must change, Should change, or Could change. It does not edit anything.
  • update-content makes changes and opens a PR. It works from instructions, or from an identify-gaps report.
  • release-review works out what the product shipped recently and passes that to identify-gaps. Suited to a monthly schedule.
  • translate translates English pages (/translate pages) or the interface text (/translate interface), in its own PR per locale.
  • review-translation checks translated pages against the English, fixes clear problems, and reports the rest. Commit the translation, then run it in a fresh session.

update-content and translate open PRs, so they only run when someone asks for them by name (/update-content, /translate). When another skill hands off to one of them, read its SKILL.md directly.

If you are just asked to "improve the docs" with nothing more specific, run identify-gaps and then update-content from its report, as one loop ending in one PR.

Scope

By default, work across the whole site. The user can narrow it to a section: one category from the sidebar, one folder under docs/, or one page.

Rules that never bend

  • Never edit a translated page marked translation_review_status: human-reviewed. Offer a diff instead.
  • Never edit generated adaptor pages. Draft an issue for OpenFn/adaptors and put it in the PR. Only file it if asked.
  • Never retranslate text inside <!-- do-not-retranslate --> fences.
  • Never translate a term listed in glossary.yml, unless the term lists a word for the locale under locales.
  • Never retake, crop, or replace screenshots.
  • Never disable a check to make the build pass.

When to stop

Stop at 20 changed files and open a PR (see update-content/SKILL.md). Translations go in their own PR per locale and do not count toward the 20.

Mechanical changes that the build or a script checks, such as rewriting links or running Prettier, can go in one PR of any size. Keep that PR to the mechanical change only, so it stays quick to review.

Checking a change

Before opening any PR, build the site as CI does. It fails on broken links:

yarn generate-adaptors
yarn build

yarn build builds every locale, so an English change can break a translated page, for example by moving a page it links to. Don't add --locale to speed it up.

Broken-anchor warnings do not fail the build, and main already has some. Fix only the ones your change adds.

House style

Before writing or editing any page in docs/, read STYLE.md. It holds the rules for links, images, formatting, and wording.