Skip to content

Add AGENTS.md and a conventions check - #11

Merged
Mistium merged 3 commits into
developfrom
agents-md
Nov 1, 2026
Merged

Mistium merged 3 commits into
developfrom
agents-md

Conversation

@Mistium

@Mistium Mistium commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Adds AGENTS.md, a short guide for coding agents working in this repo. It covers where code goes, what other packages and extensions rely on, and which checks to run.

scripts/check-conventions.mjs enforces two MistWarp rules that were only checked in review: no code comments and no em dashes in added lines. It uses TypeScript's parser, so typescript is now a dev dependency, and it runs on pull requests. Tool directives are allowed, and so are comments that move along with their code. require-jsdoc is off, because it contradicted the no-comments rule.

This repo's existing CI workflow runs no tests: it only sends a repository_dispatch to PenguinMod/penguinmod.github.io, so the check gets its own workflow (conventions.yml).

There is no change to behaviour.

The check passes on this branch, and an independent review checked every claim in AGENTS.md against the code.

CI. The Node.js CI workflow only sent a repository dispatch to PenguinMod using a secret this repo doesn't have, so it failed on every push and ran no tests. It now installs with --legacy-peer-deps and runs the jest suite (88 tests) and the production build, and the conventions workflow installs the same way. ESLint isn't in CI yet because the existing code has 1,162 lint errors; AGENTS.md says to lint the files you touch.

AGENTS.md tells coding agents where code goes, what consumers rely on, and which checks to
run. scripts/check-conventions.mjs rejects code comments and em dashes in added lines, and
runs on pull requests. eslint-config-scratch's require-jsdoc rule contradicted the
no-comments rule, so it is off.
…t AGENTS.md details

The conventions check now reads deleted files, compares comment text instead of whole
lines, skips JSX text and allows em dashes on moved lines. require-jsdoc is also off in
src/.eslintrc.js, which is a root config the top-level setting never reached.
…atch

The Node.js CI workflow only sent a repository_dispatch to PenguinMod with a
secret this repo doesn't have, so it failed on every push and ran no tests.
It now installs with --legacy-peer-deps, runs the jest suite and the
production build. The conventions workflow installs the same way, and
AGENTS.md says how to install and what CI checks.
@Mistium
Mistium merged commit 0b242d7 into develop Nov 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant