.claude/skills/lint-check/SKILL.md
Run pre-commit hooks and golangci-lint to verify code quality before finishing work
npx skillsauth add okteto/okteto lint-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run all quality checks (pre-commit hooks and golangci-lint) before considering work complete. Use this skill when finishing a task, before committing, or when preparing a PR.
First, check what files have been modified:
git status --short
If there are no modified files, inform the user and exit.
Run pre-commit on all modified files:
pre-commit run --files <list-of-modified-files>
Important: If pre-commit modifies files (like prettier formatting), stage those changes:
git add <files-modified-by-pre-commit>
Then re-run pre-commit to verify all checks pass.
If any Go files were modified, run the full lint suite:
make lint
This runs both pre-commit hooks and golangci-lint with the project's configuration.
If all checks pass:
Present a success message:
✅ All quality checks passed!
Pre-commit: Passed
golangci-lint: 0 issues
Your changes are ready to commit.
If checks fail:
After successful checks, suggest appropriate next steps:
.copyright-header.tmplIf lint output is too large (>30KB), read the full output file and summarize:
If changes are in tools/ directory, also run:
cd tools && make lint
If only documentation files (*.md) were changed:
User says: "I'm done with this feature"
development
Start a new feature development session with branch setup and requirements gathering
tools
Record a lesson learned after a user correction, or review existing lessons at session start
tools
Fix all CVEs in the Okteto CLI Docker image by scanning with Trivy and updating vulnerable dependencies and binaries
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.