원클릭으로
go-dev-workflow
Flujo de desarrollo en GoFHIR. Usar al configurar ambiente, ejecutar comandos make, o trabajar con git hooks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Flujo de desarrollo en GoFHIR. Usar al configurar ambiente, ejecutar comandos make, o trabajar con git hooks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guía para trabajar con StructureDefinitions y ElementDefinitions en FHIR. Usar cuando se necesite entender o manipular definiciones de estructura.
Diseño de arquitectura limpia y modular en Go. Usar al diseñar un nuevo módulo, definir capas y responsabilidades, u organizar código.
Benchmarks y profiling en Go. Usar al medir rendimiento, comparar implementaciones, o identificar bottlenecks.
Patrones de caching y pooling en Go. Usar al implementar caches, reducir allocations, o cachear resultados costosos.
Revisión de código Go. Usar al revisar PRs, verificar calidad de código, o identificar problemas potenciales.
Composición, embedding y extensibilidad en Go. Usar al extender tipos existentes o combinar comportamientos.
| name | go-dev-workflow |
| description | Flujo de desarrollo en GoFHIR. Usar al configurar ambiente, ejecutar comandos make, o trabajar con git hooks. |
| allowed-tools | Read, Grep, Glob, Bash(make:*, git:*, go:*) |
Flujo completo de desarrollo en GoFHIR.
# 1. Instalar herramientas de desarrollo
make tools
# 2. Instalar git hooks
make hooks-install
# 3. Descargar dependencias
make deps
# Formatear código
make fmt
# Ejecutar linter
make lint
# Ejecutar tests
make test # Con race detector
make test-short # Sin race detector (más rápido)
make test-fhirpath # Solo fhirpath
make test-validator # Solo validator
# Ver cobertura
make coverage # Abre en navegador
make coverage-check # Verifica threshold (50%)
make bench # Ejecutar todos
make bench-fhirpath # Solo fhirpath
make bench-validator # Solo validator
make bench-baseline # Guardar baseline
make bench-compare # Comparar con baseline
make security # gosec + govulncheck
make gosec # Solo gosec
make govulncheck # Solo vulnerabilidades
make doc # Inicia godoc en :6060
make ci # Ejecuta lint + test + security + build
make ci-quick # Sin race detector
make hooks-install # Instala hooks
make hooks-uninstall # Desinstala hooks
make hooks-run # Ejecuta pre-commit manualmente
Ejecuta automáticamente antes de cada commit:
go fmt - Verifica formatogo vet - Análisis estáticogolangci-lint - Linting completoValida formato Conventional Commits:
type(scope): description
# Tipos válidos:
feat # Nueva funcionalidad
fix # Corrección de bug
docs # Documentación
style # Formato (no afecta lógica)
refactor # Refactorización
perf # Mejora de rendimiento
test # Tests
build # Sistema de build
ci # CI/CD
chore # Otros
revert # Revertir commit
Ejemplos:
git commit -m "feat(validator): add profile validation"
git commit -m "fix(fhirpath): handle null in where()"
git commit -m "docs: update README"
Solo en push a main/master:
# 1. Crear branch
git checkout -b feat/nueva-funcionalidad
# 2. Desarrollar con formato continuo
make fmt
# 3. Verificar antes de commit
make lint
make test-short
# 4. Commit (hooks se ejecutan automáticamente)
git add .
git commit -m "feat(module): description"
# 5. Antes de PR
make ci
# 6. Push (pre-push hook ejecuta tests)
git push -u origin feat/nueva-funcionalidad
Para desarrollo en contenedor:
| Archivo | Propósito |
|---|---|
Makefile | Comandos de desarrollo |
.golangci.yml | Configuración de linters |
.editorconfig | Estilo de código por editor |
scripts/hooks/* | Git hooks nativos |
.devcontainer/ | Configuración DevContainer |