docs(skill): add explicit HTTP verb guidance for server actions in agent skill - #1369
Merged
Merged
Conversation
Add a comprehensive HTTP Verbs Decision Guide for server actions to .agents/skills/webjs/ (SKILL.md, references/data-and-actions.md, references/muscle-memory-gotchas.md) and website docs (website/app/docs/server-actions/page.ts). Explicitly guides AI agents to use export const method = 'GET' for RPC data queries while keeping form-bound actions strictly on POST.
vivek7405
commented
Aug 9, 2026
vivek7405
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review: HTTP verb guidance addition verified
Reviewed the updated skill reference documentation and website docs. The decision table and explicit rules clearly delineate form-bound POST actions vs RPC GET read queries and mutating verbs. All 84 unit and scaffold integration tests pass and webjs check is green.
vivek7405
marked this pull request as ready for review
August 9, 2026 18:44
vivek7405
commented
Aug 9, 2026
vivek7405
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review: HTTP verb decision guide additions verified
The documentation updates clearly delineate form-bound POST actions vs RPC GET read queries and mutating verbs across .agents/skills/webjs/ and the website docs site. All 84 unit and scaffold integration tests pass and webjs check is green.
10 tasks
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.
Closes #1367
Add a comprehensive HTTP Verbs Decision Guide for server actions to
.agents/skills/webjs/(SKILL.md,references/data-and-actions.md,references/muscle-memory-gotchas.md) and the website documentation (website/app/docs/server-actions/page.ts).Summary of Changes
<form action=${fn}>) strictly require POST (default). Binding a GET action to a form produces a 405 runtime error andwebjs checkviolation (form-action-not-a-get-action). Manually settingmethod="get"on a bound form emits aWEBJS_FORM_SUBMITTED_AS_GETdiagnostic warning.export const method = 'GET'for read-only RPC queries (await getTodos()) to enable URL search param passing, ETags, 304 revalidation, andexport const cache = ...HTTP headers.export const invalidates = (args...) => ['tag']).Definition of Done Verification Checklist
node --test packages/cli/test/**/*.js packages/cli/test/**/*.mjs test/scaffolds/scaffold-integration.test.js(84/84 pass)( cd examples/blog && npx webjs check ) && ( cd website && npx webjs check )website/app/docs/server-actions/page.tsupdated