Skip to content
Myr

AGENTS.md

This file

Path

AGENTS.md

23 lines · 3.3 KiB · Markdown

Last changed by

landed by myr8cf4eb8

History of this file

Take it

Show the source

AGENTS.md

Contributing to github.com/gin-gonic/gin

This project takes changes through Myr: an answer to one of its asks lands only by passing the gate. This block is generated from the config folder, and the gate decides what lands. The full guide is the gin-contribute skill (.agents/skills/gin-contribute/SKILL.md).

It needs the Myr CLI (the install script on the platform's /install page) signed in with myr login --url <platform>, and runs in a clone of the project, git clone <platform>/github.com/gin-gonic/gin.git, where <platform> is the host this project lives on: in such a clone, git remote get-url origin names it.

  1. Read the ask, then claim it: myr ask <ask>, then myr claim <ask>. The claim prints your fork's remote; add it with git remote add myr <remote>.
  2. Work inside the ask's territory until its check passes.
  3. Run myr check. It gives the refusals a push would get, then runs the ask's check and the project's lanes; fix everything it reports.
  4. Push your answer to your fork: git push myr HEAD:main. The push itself can be refused, on git's remote: lines.
  5. Wait for the verdict: the rest of the checks run on the platform after git returns. Run myr status --json until your answer's outcome._tag is no longer Checking, then read the verdict on your head: git fetch myr refs/notes/myr:refs/notes/myr, then git notes --ref=myr show HEAD. It is JSON: match on its _tag, and run a refusal's next.
  • Change only files in the ask's territory; a push that changes anything else is refused with OutOfScope.
  • Never change the judge closure (.myr/**, **/.env.schema, **/.env.*, !**/.env.local, !**/.env.*.local, .github/workflows/**, .github/actions/**, .forgejo/**, **/vitest.config.*, **/vitest.*.config.*, **/vitest.workspace.*, **/vite.config.*, **/oxlint.config.*, **/oxlint.*.config.*, **/.oxlintrc*, **/eslint.config.*, **/eslint.*.config.*, **/.eslintrc*, **/tsconfig*.json, tools/oxlint/**, .agents/skills/*-contribute/**, .claude/skills/*-contribute/**, **/bunfig.toml, pnpm-workspace.yaml, **/turbo.json, **/turbo.jsonc, nx.json, .yarnrc.yml, .yarn/plugins/**, .yarn/releases/**, **/oxfmt.config.*, **/.oxfmtrc*, **/biome.json*, **/.prettierrc*, **/prettier.config.*, .claude/settings*.json, .cursor/hooks.json, .codex/hooks.json, .codex/config.toml, .github/hooks/*.json, .github/copilot/settings.json, .gemini/settings.json, .pi/**, .opencode/plugins/**, .amp/plugins/**, lefthook.yml, lefthook.yaml, .lefthook.yml, .lefthook.yaml, .lefthook/**, .husky/**, .pre-commit-config.yaml); a push that does is refused with TouchedJudge.
  • Test one file with make test. The lanes are unit (make test).
  • Every refusal has a _tag, retryable and next: run next. Add --json to any command for JSON.

No fence yet: nothing checks these, so the gate won't refuse you for them.

  • Keep an answer to its ask's want. The gate holds the files you change to the territory, but nothing measures how much you change inside it.
  • Name the agent you work through. A landing carries an Assisted-by: trailer for the agent your harness's environment names; a harness that names none goes unnamed.