بنقرة واحدة
use-modern-go
Apply modern Go guidelines for go-revjs, targeting Go 1.23 features that are valid for this repository.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Apply modern Go guidelines for go-revjs, targeting Go 1.23 features that are valid for this repository.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Guide for adding HTTP API routes in go-revjs. Use when creating new route modules or REST-style endpoints.
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.
| name | use-modern-go |
| description | Apply modern Go guidelines for go-revjs, targeting Go 1.23 features that are valid for this repository. |
This repository targets Go 1.23.0 and uses toolchain go1.24.2.
When writing Go code here, prefer modern standard-library patterns that are valid for Go 1.23 without relying on newer language or library features.
any instead of interface{}errors.Is and errors.As for wrapped error checkserrors.Join when multiple independent errors need to be returned togetherstrings.Cut, strings.CutPrefix, strings.CutSuffix over manual slicing when appropriateslices and maps helpers instead of manual loops when that makes the code clearermin, max, and clear where they simplify logicsync.OnceFunc and sync.OnceValue for one-time initialization helperstime.Since and time.Until instead of manual subtractionUse the most modern approach that keeps the code obvious to maintainers already working in this codebase.