Skip to content

Take the shared instruction blocks - #97

Merged
sehkone merged 1 commit into
mainfrom
sehkone/instructions-onboarding
Aug 11, 2026
Merged

Take the shared instruction blocks#97
sehkone merged 1 commit into
mainfrom
sehkone/instructions-onboarding

Conversation

@sehkone

@sehkone sehkone commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Onboards this repository to aicers/agent-instructions, at release 0.2.1.

Blocks it takes, decided upstream in repos.json: workflow, agentcoop, rust, changelog.

What moved

AGENTS.md kept hand-written copies of rules ten other repositories also kept, in wording that had already drifted from theirs. Those sections are now generated regions between markers. CLAUDE.md was a second copy of the same text; it becomes the two-line import, so both tools read one file instead of two that can disagree.

What stays hand-written is the CI requirements. The shared Rust rules require the repository-specific section to name the exact clippy and rustfmt invocations, so that section now names the ones this CI actually runs.

What comes with it

  • .agents/instructions.toml — the release this copy came from and the blocks it carries. The drift check and the apply both read it; neither takes an input.
  • ci.yml gains an Instructions job that fails if a generated region here stops matching that release.
  • update-instructions.yml proposes each new release as a pull request, weekly. It runs on the default GITHUB_TOKEN and needs no secret.

Do not edit the marked regions

Change the wording upstream in aicers/agent-instructions and cut a release; the apply job then brings it here. Editing a region in this repository turns the drift check red.

@sehkone
sehkone force-pushed the sehkone/instructions-onboarding branch from 1e3cba1 to 42ca547 Compare August 11, 2026 09:59
This repository kept its own copy of rules that ten others also kept, in
wording that had already drifted from theirs, and a CLAUDE.md that was a
second copy of the same text again. Both are now generated: the marked
regions in AGENTS.md come from aicers/agent-instructions at the release
the pin file names, and CLAUDE.md imports AGENTS.md rather than
restating it.

Which blocks this repository takes is decided upstream in repos.json.
Everything they cover is gone from the hand-written text; what stays
below them is what only this repository knows.

Two workflow jobs come with it. The drift check fails if a generated
region here stops matching the release the pin names, and the weekly
apply proposes the next release as a pull request. Neither takes an
input or a secret; both read `.agents/instructions.toml`.
@sehkone
sehkone force-pushed the sehkone/instructions-onboarding branch from 42ca547 to 377e24b Compare August 11, 2026 11:07
@sehkone
sehkone merged commit a931999 into main Aug 11, 2026
7 checks passed
@sehkone
sehkone deleted the sehkone/instructions-onboarding branch August 11, 2026 11:49
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