Markdown Converter
Agent skill for markdown-converter
Purpose: short, actionable guidance for any automated coding agent (Copilot-style) working in this repository.
Sign in to like and favorite skills
Purpose: short, actionable guidance for any automated coding agent (Copilot-style) working in this repository.
golangci-lint.Why: the repository's CI enforces linting (
.github/workflows/go-test.yml), so ensure changes pass the linter locally before creating a PR.
Quick checklist for completed work
go test ./...).go vet ./....golangci-lint and address any findings.Shell invocation
bash -lc '...' so the command is executed with bash even if the user's default shell is Fish or another shell that may interpret the snippet differently.Examples:
Bash (recommended; use when your default shell may be Fish):
# Run the linter via bash so it executes under bash regardless of default shell bash -lc ' if [ -x ./bin/golangci-lint ]; then ./bin/golangci-lint run --timeout=6m else $(go env GOPATH)/bin/golangci-lint run --timeout=6m fi '
Fish (if you are actively working in Fish and not wrapping with bash):
# Use the pinned repo helper if present if test -x ./bin/golangci-lint ./bin/golangci-lint run --timeout=6m else # Fallback to GOPATH-installed binary (may need `go install` first) (go env GOPATH)/bin/golangci-lint run --timeout=6m end
Recommended local command See the "Shell invocation" section above; prefer the Bash example when sharing or running commands across environments.
Notes
golangci-lint and staticcheck in .github/workflows/go-test.yml. Running the linter locally avoids CI failures and speeds up reviews.If you'd like, I can also add a Git pre-commit hook to run the linter automatically before commits.