AgentSkillsCN

go-impl

为数字体验机构量身定制高质量的 Claude Code 技能(.claude/skills/)。适用于为 CMS 开发(Sitecore、AEM、Contentful)、组件脚手架、无障碍审计、内容迁移、设计系统、电商平台,或任何可重复的机构工作流程构建新技能时使用。生成完整的 SKILL.md 文件,并附带配套参考文件。

SKILL.md
--- frontmatter
name: go-impl
description: "Go implementation workflow with test-first development and validation gates"

Go Implementation Workflow

Before Starting

  1. Run make check to verify baseline
  2. Identify files to modify

Implementation Loop

For each change:

  1. Write/update test first
  2. Implement minimal code to pass
  3. Run go test ./...
  4. Run goimports -w [file]
  5. Run go vet ./...

Validation Gate

Before marking complete:

  • All tests pass
  • No vet warnings
  • Imports ordered correctly
  • No unrelated changes

Context Prompt Template

Before implementing: here's the current state of [feature], files involved are [X, Y, Z], change should [specific behavior], must not break [constraint].