Repository navigation
chore(docs): update AGENTS.md to reflect recent changes - #136
Merged
Merged
Conversation
Routes now need explicit `route` and `methods` options — PR #130 found all ten existing routes were missing them and 404ing in production, because plugin-api never inferred the path/method from the file name as the docs claimed. Also note the Dockerfile's `stars prepare` step and the new semantic-pull-requests PR title lint (#128). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_016cicF4DnR42LTcwkyF9LMM
|
Note The title starts with
|
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — the docs now match how routes are actually registered, and the new notes sit next to the existing related gotchas.
Reviewed changes
Reviewed the full diff of both files. I checked each factual claim against the repo.
- Route registration docs (
.github/copilot-instructions.md): the "Internal API" bullet and "API Route Structure" section now sayrouteandmethodsare passed explicitly tosuper(), and file location is only a convention. The example constructor and a second "non-obvious gotcha" were added. Every route insrc/routes/sets both options, and the plugin-api router registers routes throughroute.methods. - Dockerfile note (
.github/copilot-instructions.md): the Troubleshooting entry now mentions that the builder stage runspnpm exec stars prepare. This matchesDockerfile:55. - PR title linting (
.github/copilot-instructions.md,AGENTS.md): the lowercase-subject rule and the sticky comment are described correctly. They matchsemantic-pull-requests.yml(subjectPattern: ^(?![A-Z]).+$, comment posted on error and deleted once the title is valid).
claude-sonnet-5-5 | 𝕏
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.

Context
Weekly AGENTS.md review of PRs merged into
mainin the last 7 days(#128–#131).
What changed and why
.github/copilot-instructions.md— the "Internal API" key pattern and"API Route Structure" section said plugin-api infers a route's path and
method from its file location. That's no longer accurate (if it ever was):
fix: build Ring's image and serve its routes again #130 found all ten existing routes were missing explicit
route/methodsoptions and were 404ing in production as a result. Corrected the
description, the code example, and added a second "non-obvious gotcha"
entry for it, since this is exactly the kind of silent failure the existing
gotcha about route
namecollisions already warns about.pnpm exec stars preparebeforeprisma:generate/buildnow (fix: build Ring's image and serve its routes again #130), next to the existingTroubleshooting entry about that same step in CI.
semantic-pull-requests.ymlworkflow (ci: post sticky comment on invalid PR title #128): PR titlesfollow Conventional Commits with a lowercase subject, and CI posts/removes
a sticky comment on failures. Added a one-line mention to both
AGENTS.md's quick reference andcopilot-instructions.md's commitmessage section.
#129 (raising Staryl's free limits, adding a Reddit limit) and #131 (dropping
an unused Kodiak config block) didn't need any documentation changes — the
existing
limits.tsfile reference already covers #129, and #131 is internalCI config with no agent-facing convention.
Generated by Claude Code


Confidence Score: 5/5
This documentation-only PR appears safe to merge.Reviews (1) · Last reviewed commit: "docs: update AGENTS.md to reflect recent..." · Reviewed by Greptile