Repository navigation
docs: trim AGENTS.md to what the code does not show, and fix stale claims - #192
Merged
Merged
Conversation
…aims The root guide loads in every session, and most of what it carried was already in package.json, .env.example, wrangler.toml, the Sentry config, the plugin's skill listing or the skill bodies. AGENTS.md goes from 20,606 to 15,322 characters. Two path-bound rules move to nested guides with a CLAUDE.md symlink, so they load only where they apply: the browser-only-library pattern to components/AGENTS.md, and the [slug] RESERVED_SEGMENTS exclusion to pages/AGENTS.md. The root keeps a one-line pointer to each. Both project SKILL.md descriptions are now quoted. Unquoted, the ": " inside them is a mapping error under strict YAML. Stale claims, each checked against the code: - A local 403 can be the atlas role gap, not only a stale key. - /implement-ticket and /finalize-pr open a draft PR and push. Neither waits for CI. - check.sh is the leanGate that /finalize-pr runs, not a skill. - The rule table lists code-comments.md, the one rule with no paths:. - server/AGENTS.md: depth > 1 without populate is a 400, and getPageLocaleStatus makes one attempt (maxAttempts: 1), no retry. - docs/rules/rest-api.md: the example query sends select and populate. The eslint.config.js comment and the DESIGN_SYSTEM.md resource line no longer point at removed AGENTS.md sections. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
pushed a commit
that referenced
this pull request
Oct 20, 2026
AGENTS.md was the one conflicted file, in two hunks. The command list took main's trim and kept this branch's `check:wrangler` entry. #192 cut every command package.json already shows; check:wrangler is a script there too, but its comment carries the prerequisite — ladle:build writes the `build/` the dry run reads — which package.json cannot show. The two reference-doc lines are one edit from each side: "Ladle playground" is this branch's, and "a 403 is a stale key or a missing role" is #192's stale-claim fix. Both kept. #192 deleted tailwind.config.ts for the CSS-first `@theme`, and this branch is what first puts ladle:build and check:wrangler in the gate job, so both were re-run against the merge rather than assumed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0117m7rQTWeApAfzWKT6VgHE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.mdloads in every session. It now holds only what the code, the config and the skill listing do not already show: 20,606 → 15,322 characters (−26%).CLAUDE.mdsymlink, so they load only where they apply.AGENTS.md,server/AGENTS.mdanddocs/rules/rest-api.mdare fixed. Each one was checked against the code first. The docs follow the code.eslint.config.jsand one phrase inDESIGN_SYSTEM.md. Both pointed atAGENTS.mdsections that this PR removes.Change outline
Trims in
AGENTS.mdCut, because another file already holds the fact:
package.json)package.jsonscripts). The section becomes "Commands package.json does not show" and keepssync:translationsandcheck.sh.envcopy step, the dev-mode notes and the variable-source table (.env.example,wrangler.toml,vite.config.ts). ThePUBLIC__-is-not-public warning staysserver/entry.ts,wrangler.toml)pageContextbullet (types/vike.d.ts) and the Sentry section (sentry.browser.config.ts,vite.config.ts)/finalize-prstep list, the plugin skill list, theworkflow.jsondescription and the worktree note. These copies of the skills had drifted from themNew nested guides
components/AGENTS.md(+CLAUDE.mdsymlink)ClientOnly+React.lazy)pages/AGENTS.md(+CLAUDE.mdsymlink)[slug]RESERVED_SEGMENTSexclusionThe header blockquote and "Nested guides" in "Where everything lives" now list both guides.
YAML quoting fix
The
description:values in.claude/skills/component-development/SKILL.mdand.claude/skills/design-extraction/SKILL.mdare now double-quoted. Unquoted, the:inside each value is a mapping error under strict YAML:ruby -ryamlraisesPsych::SyntaxErroron the old frontmatter.Stale fixes
AGENTS.mdDebugging, and the local-environment linesahaj-atlas-client).GET /api/clients/metells the two apartAGENTS.mdPR Workflow, phase 1/finalize-propens a draft PR and pushes. Neither skill waits for CIAGENTS.mdcommandspr-preplisted as a skillcheck.shis theleanGatein.claude/workflow.json, and/finalize-prruns itAGENTS.mdrule tablecode-comments.mdpaths:loads in every session.rest-apinow covers "Adding a query function", not "a cached" oneserver/AGENTS.mdpopulatereturns "missing fields"sahajcloud-client.tssay. Missing fields come from apopulateentry that leaves them outserver/AGENTS.mdgetPageLocaleStatus"retries once"maxAttempts: 1: one attempt, no retrydocs/rules/rest-api.mdfindsendsdepth: 2with noselectand nopopulateNot stale: "Nothing in this repo caches them". The KV removal (#98) has landed on
main, andserver/CACHING.mdagrees.Validation
SKILL.mdfrontmatters parse withruby -ryamlsafe_load.node --check eslint.config.jsandeslint eslint.config.jspass.tests/guards/design-tokens.test.ts, the guard that readsDESIGN_SYSTEM.md, passes 4 of 4.🤖 Generated with Claude Code