go-project-master

通用 Go 项目主管理工具:用于通用 Go 项目开发、代码审查、重构、测试、性能优化、安全审查以及评估生产就绪性。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "go-project-master":https://skillpi.com/zh/skills/deepskill-bcf3da187d6c1dfc2f941b081175540be27ddb547b57c6b01c10c4c99937d534。安装前核对上游来源和版本:https://skillhub.cn/skills/user_1fa06258/go-project-master。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通用 Go 项目主管理工具:用于通用 Go 项目开发、代码审查、重构、测试、性能优化、安全审查以及评估生产就绪性。

0 下载

介绍来源: third_party · user_1fa06258 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: go-engineering
description: Use this skill for general Go project development, code review, refactoring, testing, performance optimization, security review, and production readiness.

Go Engineering Skill

Purpose

This is a lightweight, reusable engineering skill for Go projects.

Use it when writing, reviewing, refactoring, optimizing, or preparing Go code for production.

It applies to:

  • API services
  • backend services
  • worker services
  • gateway services
  • CLI tools
  • SaaS backends
  • microservices
  • internal tools
  • Go libraries

How to use

Always start from this file, then read only the relevant resource documents.

Do not read every resource by default. Pick the documents based on the current task.

Resource routing

Architecture or refactoring

Read:

  • resources/architecture.md
  • resources/code-quality.md

Use for:

  • project structure
  • package design
  • interface design
  • dependency direction
  • service split
  • module boundaries
  • large refactoring

Normal coding or bug fix

Read:

  • resources/code-quality.md
  • resources/testing-ci.md

Use for:

  • feature implementation
  • bug fix
  • handler/service/repository changes
  • external client integration
  • ordinary Go code review

Performance or concurrency

Read:

  • resources/performance.md
  • resources/testing-ci.md
  • resources/observability.md

Use for:

  • latency
  • throughput
  • goroutine/channel usage
  • worker pool
  • queue
  • cache
  • database optimization
  • benchmark
  • pprof

Production, security, or observability

Read as needed:

  • resources/production.md
  • resources/security.md
  • resources/observability.md
  • resources/checklist.md

Use for:

  • config
  • logging
  • metrics
  • tracing
  • health check
  • graceful shutdown
  • deployment
  • authentication
  • authorization
  • secrets
  • rate limiting

Mandatory Go rules

  1. Request-scoped operations must accept context.Context.
  2. External calls must use timeout.
  3. Never ignore errors.
  4. Wrap errors with useful context.
  5. Never log secrets, tokens, passwords, cookies, or private keys.
  6. Avoid global mutable state.
  7. Use dependency injection.
  8. Keep business logic independent from HTTP frameworks, database drivers, queues, caches, and third-party SDKs.
  9. Define small interfaces on the consumer side.
  10. Add or update tests for new behavior.
  11. Use benchmark or profiling evidence for performance-sensitive changes.
  12. Keep the solution simple unless complexity is justified.

Required response format

For implementation tasks, respond with:

  1. Task understanding.
  2. Resources used.
  3. Design decision.
  4. Files changed.
  5. Tests added or required.
  6. Verification commands.
  7. Risks or follow-up items.

For code review tasks, respond with:

  1. Critical issues.
  2. Suggested fixes.
  3. Risk level.
  4. Tests or commands to verify.

Scripts

When code is changed, run or recommend:

bash skills/go-engineering/scripts/quality_gate.sh

For full local checks:

bash skills/go-engineering/scripts/test_all.sh

For performance-sensitive changes:

bash skills/go-engineering/scripts/bench.sh

Final checklist

Before completion, check:

  • Code is formatted.
  • Tests pass.
  • Race-sensitive code is tested with go test -race ./....
  • Errors are handled and wrapped.
  • Context and timeout are propagated.
  • Logs do not expose secrets.
  • Public APIs have validation and security controls.
  • Production services have health checks and graceful shutdown.

Default verification:

gofmt -w .
go test ./...
go test -race ./...
go vet ./...
golangci-lint run

If golangci-lint is not installed, mention that it was skipped and recommend installing it.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • Go 工程化开发覆盖全面,涵盖代码审查、重构、测试、性能优化、安全审查、生产就绪等高频刚需场景
  • 适用于多种 Go 项目类型(API 服务、微服务、CLI 工具、SaaS 后端等),受众广泛
触发精准95/100

亮点

  • description 明确描述了使用场景,触发词精准完整,边界清晰
结构规范90/100

亮点

  • 文档结构清晰,包含完整的章节划分和出口条件
  • frontmatter 完整,单文件内容组织良好
执行可靠90/100

亮点

  • 提供了详细的脚本和验证命令,覆盖主要异常场景
  • 工具来源明确,参数正确,不可逆操作有确认机制
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。