go-formatting
Go formatting skill for gofmt, goimports, and IDE configuration.
Skill by caraya
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/caraya-go-formatting
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/go-formatting
What's inside
- Skill name
go-formatting- Description
- Go formatting skill for gofmt, goimports, and IDE configuration. Trigger phrases: format Go, gofmt, goimports, code style, linting, format on save, golangci-lint.
- License
- MIT
- Instructions
- 104 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Go Formatting
## Use When
- Setting up or validating code formatting for Go projects.
- Configuring gofmt, goimports, and linters.
- Integrating formatting into IDE or pre-commit hooks.
## Standard Formatters
1. **gofmt** (built-in)
- Go's standard formatter; enforced by convention.
- No configuration needed; opinionated about style.
- Run: `gofmt -w .` to format in place.
2. **goimports** (import management)
- Extends gofmt to organize imports and add missing dependencies.
- Removes unused imports automatically.
- Install: `go install golang.org/x/tools/cmd/goimports@latest`.
- Run: `goimports -w .` to format and organize imports.
3. **golangci-lint** (comprehensive linting)
- Aggregates multiple linters; catches style and logical issues.
- Can auto-fix many issues with `--fix` flag.
- Install: `go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest`.
## Configuration
### `.golangci.yml` (golangci-lint):
```yaml
linters:
enable:
- gofmt
- goimports
- vet
- errcheck
- staticcheck
- unused
linters-settings:
gofmt:
simplify: true
```
### VS Code `.vscode/settings.json`:
```json
{
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.defaultFormatter": "golang.go"
},
"go.formatOnSave": true,
"go.formatTool": "goimports",
"go.lintOnSave": "package",
"go.lintTool": "golangci-lint"
}
```
## Checklist
1. Consistency
- gofmt baseline is applied (Go convention).
- goimports is used to manage imports.
- golangci-lint is configured and shared with team.
2. IDE integration
- Format-on-save is enabled in VS Code.
- Go extension is installed and active.
3. Pre-commit hooks
- Use `pre-commit` framework or git hooks to run gofmt and goimports.
- Prevents unformatted code from entering the repository.
4. Import organization
- goimports automatically removes unused imports.
- Imports are grouped: stdlib, third-party, local.
## Formatting Rules
- Indentation: Tabs (Go standard, not spaces).
- Line width: No hard limit; keep readable (convention is ~80 chars for exported docs).
- Naming: camelCase for functions and variables, PascalCase for exported symbols.
- Brackets: Opening bracket stays on same line as declaration (Go convention).
## Common Commands
- Format: `gofmt -w .`.
- Format and organize imports: `goimports -w .`.
- Check formatting: `gofmt -d .` (shows diffs without changing files).
- Lint: `golangci-lint run ./...`.
- Lint and fix: `golangci-lint run --fix ./...`.
## Output Requirements
When setting up or validating formatting, provide:
- Formatter versions and configuration.
- IDE integration status.
- Pre-commit hook setup summary.
- Any conflicts or inconsistencies found.From caraya/agent-skills, MIT.
More from caraya/agent-skills
- 0.592score
design-system
caraya
Organise and maintain a consistent design system through contracts, discovery, reuse and verification.
SkillAFreshness: A★ 1Claude Code +9 - 0.582score
dev
caraya
Development workflows for the playwright-cli repository.
SkillAFreshness: A★ 1Claude Code +9 - 0.497score
delivery-self-paced
caraya
Instructional design patterns for self-paced developer education: motivation maintenance, progress tracking, chunking for independent study, asynchronous…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
delivery-classroom
caraya
Instructional design patterns for synchronous classroom delivery of developer education: lecture + live coding, pacing, group dynamics, real-time feedback…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-methodology
caraya
General debugging skill for investigative workflow, error interpretation, and common debugging patterns across languages.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
delivery-workshop
caraya
Instructional design patterns for hands-on developer workshops: intensive practice, collaborative problem-solving, peer learning, facilitated labs, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-pedagogy
caraya
Explicit debugging instruction for developers: five-stage framework, hypothesis testing, tools, and common error patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
accessibility-core
caraya
Accessibility skill for WCAG 2.1 AA compliance, keyboard navigation, ARIA labels, focus management, meaningful empty and error states, responsive design, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
accessibility-react
caraya
React-specific accessibility skill for WCAG 2.1 AA compliance, keyboard navigation, ARIA patterns, focus management, meaningful empty and error states…
SkillCFreshness: C★ 1Claude Code +9 - 0.429score
go-debugging
caraya
Go debugging skill for delve setup, race condition detection, goroutine tracking, and panic diagnosis.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
devrel-integration
caraya
Integrating instructional design with developer relations: developer journey, segmentation, DDMU, and community learning pathways.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
evaluation-iteration
caraya
Evaluation approaches and iterative development for learning products: pilot plans, SAM cycles, Kirkpatrick, and friction logging.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 22, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/caraya/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from caraya
- 0.592score
design-system
caraya
Organise and maintain a consistent design system through contracts, discovery, reuse and verification.
SkillAFreshness: A★ 1Claude Code +9 - 0.582score
dev
caraya
Development workflows for the playwright-cli repository.
SkillAFreshness: A★ 1Claude Code +9 - 0.497score
delivery-classroom
caraya
Instructional design patterns for synchronous classroom delivery of developer education: lecture + live coding, pacing, group dynamics, real-time feedback…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
delivery-self-paced
caraya
Instructional design patterns for self-paced developer education: motivation maintenance, progress tracking, chunking for independent study, asynchronous…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-methodology
caraya
General debugging skill for investigative workflow, error interpretation, and common debugging patterns across languages.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-pedagogy
caraya
Explicit debugging instruction for developers: five-stage framework, hypothesis testing, tools, and common error patterns.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
go-formatting skill. Agent Mart. https://agentmart.dev/skills/caraya-go-formatting (last updated 2026-10-24)