一键导入
common-tasks
Common development tasks for Glens. Use this when building, adding modules, CLI flags, config options, or running the change checklist.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Common development tasks for Glens. Use this when building, adding modules, CLI flags, config options, or running the change checklist.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Architecture patterns for Glens Go code. Use this when writing or reviewing Go functions — composable design, error handling, and logging patterns.
Go-specific test patterns for this project. Use this when writing Go tests — table-driven tests, interface mocking, reusable setup functions, testify assertions, and parallel sub-tests.
Integration and end-to-end testing design for this project. Use this when writing integration tests (*_integration_test.go), E2E binary tests, or when deciding what belongs in integration vs unit tests.
Expert test automation strategy for Go projects. Use this when writing, reviewing, or designing test suites — especially when deciding what to test, naming tests, or identifying corner cases.
| name | common-tasks |
| description | Common development tasks for Glens. Use this when building, adding modules, CLI flags, config options, or running the change checklist. |
cd cmd/glens # or cmd/tools/demo, cmd/tools/accuracy, pkg/logging
make all # fmt-check + vet + lint + test (identical to CI)
make build
cmd.Flags().String("flag-name", "default", "Clear description")
_ = viper.BindPFlag("config.key", cmd.Flags().Lookup("flag-name"))
mkdir cmd/tools/<name> && cd cmd/tools/<name>go mod init glens/tools/<name>use ./cmd/tools/<name> to go.workMakefile and .pre-commit-config.yaml from an existing tool..github/workflows/tool-<name>.yml..github/workflows/release.yml.# configs/config.example.yaml
new_option: "${ENV_VAR}"
go.work # workspace root
pkg/logging/ # generic zerolog wrapper
cmd/glens/ # main CLI (cobra commands, internal/ packages)
cmd/tools/demo/ # OpenAPI spec visualiser
cmd/tools/accuracy/ # endpoint accuracy reporter
configs/ # example configuration files
docs/ # user guides and architecture diagrams
test_specs/ # OpenAPI specs used in integration tests
pkg/ vs internal/)?If any answer is "no", reconsider the approach.