ワンクリックで
add-api-route
Guide for adding HTTP API routes in go-revjs. Use when creating new route modules or REST-style endpoints.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guide for adding HTTP API routes in go-revjs. Use when creating new route modules or REST-style endpoints.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Guide for creating new biz modules in go-revjs. Use when adding business logic modules or generated biz/repo scaffolding.
Apply Go best practices, idioms, and conventions when writing, reviewing, or refactoring go-revjs backend code.
Use when designing or refactoring react-revjs frontend pages that should feel compact, refined, content-dense, tool-like, doc-like, or suitable for search/detail/BBS style content pages instead of marketing landing pages.
Use when adding or changing js-deob cases, transforms, decoder handling, switch-flattening rules, or deobfuscation pattern support. Requires adding or updating focused tests for the new case and running the full js-deob test suite to confirm existing behavior is not broken.
Use when a react-revjs page component has substantial logic (state, derived values, handlers, side effects) that should be extracted into a dedicated hook file so the TSX file is reduced to pure rendering.
Automate browser interactions, test web pages and work with Playwright tests.
| name | add-api-route |
| description | Guide for adding HTTP API routes in go-revjs. Use when creating new route modules or REST-style endpoints. |
Use this workflow when adding a new route module under internal/routes/v1.
internal/routes/v1/gen.gointernal/routes/v1/internal/routes/provider.goEdit internal/routes/v1/gen.go and add:
//go:generate nr gen -t route -n your_feature --v2
From internal/routes/v1/ run:
go generate .
Match revjs conventions:
NewYourFeatureRoutelog.Named("your-feature-route")/v1, /auth/v1, or /admin/v1 patterns as appropriatecore.WrapData(...) and return (any, *core.RtnStatus) through wrapped handlers when the module follows that stylemdw.MustLoginMiddleware() or mdw.MustWithRoleMiddleware(...) where access control is requiredinternal/routes/provider.go if generation did not already add itcmd/app/ if constructor dependencies changedsnake_case for route generator names.