基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/authgear/authgear-server --skill add-go-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | add-go-test |
| description | Write or extend Go unit tests in this repo. Use when the user asks to add or update Go tests. |
| argument-hint | <package or behavior> |
Follow this skill when adding Go tests.
Always inspect existing *_test.go files in the package first. This repo uses different testing styles in different packages:
Convey (BDD-style): Many packages use github.com/smartystreets/goconvey. Identified by import . "github.com/smartystreets/goconvey/convey" and test structure like:
func TestFoo(t *testing.T) {
Convey("description", func() {
// assertions here
So(result, ShouldEqual, expected)
})
}
Standard testing.T: Some packages use plain *testing.T with manual assertions.
When in doubt, use Convey if the package has any imports of it. Convey provides better error messages and matches the repo's BDD conventions.
*_test.go files first to identify the testing style being used.go test on the affected package. If the change crosses packages or touches shared code, run the narrowest broader test set that proves the change is safe.So() assertions for consistency with the package style, not manual if statements.Guidelines for updating or designing pages in the portal React frontend (portal/src). Covers component conventions, link rendering rules, i18n patterns, and common pitfalls.
Produce a structured code review report for the current branch's PR (purpose, API interface changes, code quality, bugs, security, performance), with a mandatory second verification pass. Use when the user asks "what does this PR do", "review this branch/PR", or asks to confirm/double-check review findings and look for more issues.
Add or change a feature config field/section in pkg/lib/config (authgear.features.yaml). Use when adding a new feature config field, adding a new top-level section, or touching an existing section's Merge implementation.