Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add otaviof/gosmith --skill "go-check"
Install specific skill from multi-skill repository
# Description
Run Go verification pipeline (build + test + vet + lint).
# SKILL.md
name: go-check
description: Run Go verification pipeline (build + test + vet + lint).
argument-hint: [--quick|--full]
allowed-tools: Bash
model: haiku
Instructions
-
Validate: Check
go.modexists in cwd or parent dirs -
Detect automation: Check for
Makefilewith targets:build,test,vet,lint -
Dispatch:
--quick: Build + vet only (skip tests)--full: Build + test + vet + lint + staticcheck-
(default): Build + test + vet
-
Execute:
- Makefile path:
make build test vet(or available targets) - Raw path:
go build ./... && go test ./... && go vet ./... -
Capture duration per step with
timecommand -
Aggregate: Collect exit codes, durations, error summaries
-
Format:
```markdown
## GO CHECK RESULTS
| Step | Status | Duration |
|---|---|---|
| build | PASS | 2.1s |
| test | PASS | 4.3s |
| vet | PASS | 0.8s |
Overall: PASS
```
- Report:
- Summary table with overall status
-
If FAIL: Include first error from failed step
-
Edge cases:
- No go.mod: "Not a Go project"
- Partial failure: Continue remaining steps, report all
- Missing Makefile targets: Fall back to raw Go commands
--fullwithout lint tools: Warn "staticcheck not found, skipping"
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.