Agent skill

check

Verifies code quality through linting, type-checking, formatting, and testing. Use when asked to "run checks", "validate code", "lint this", "check for errors", "run tests", or "verify code quality" before or after changes.

Stars 1
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/jiyeol-lee/dotfiles/tree/main/.opencode/skills/check

SKILL.md

Quick Start

  • Runs linters and reports violations (does NOT auto-fix lint errors)
  • Runs type checkers and reports errors
  • Auto-fixes formatting only (prettier, black, go fmt, ruff format)
  • Runs tests (unit + integration)
  • Philosophy: Verify and report. Only auto-fix formatting. All other issues go to orchestrator.

Workflow

  1. Detect language/toolchain from project files (package.json, go.mod, pyproject.toml, etc.)
  2. Run checks in order: lint → type-check → format → test
  3. Collect all results before reporting (do not stop at first failure)
  4. Report all findings to orchestrator with file paths and error messages

Read references/commands.md when you need language-specific validation commands for a language not listed in the auto-fix policy below.

Example: TypeScript Project Check

> Project detected: TypeScript (package.json with typescript dependency)

Step 1 — Lint:
  $ npx eslint src/
  ✗ 2 errors found
    src/api.ts:14 — no-unused-vars
    src/utils.ts:8 — @typescript-eslint/no-explicit-any

Step 2 — Type check:
  $ npx tsc --noEmit
  ✗ 1 error found
    src/api.ts:22 — Type 'string' is not assignable to type 'number'

Step 3 — Format (auto-fix allowed):
  $ npx prettier --write "src/**/*.ts"
  ✓ 3 files reformatted

Step 4 — Tests:
  $ npm test
  ✓ 42 tests passed, 0 failed

Report to orchestrator:
  - 2 lint errors (for code agent to fix)
  - 1 type error (for code agent to fix)
  - 3 files auto-formatted
  - All tests passing

Auto-fix Policy

Formatters ONLY — these are allowed to auto-fix:

Language Commands
JavaScript/TS prettier --write, prettier -w
Go go fmt, gofmt, gofmt -w
Python black, ruff format

Constraints (Never Allowed)

  • Running lint auto-fix commands (eslint --fix, ruff --fix)
  • Running E2E tests (playwright, cypress)
  • Modifying source code to fix errors (report them instead)

Report to Orchestrator

  • All lint errors with file paths and line numbers (for code agent to fix)
  • All type errors with file paths and line numbers (for code agent to fix)
  • Test failures with names and error output (for code agent to fix)
  • Files that were auto-formatted (informational)

Expand your agent's capabilities with these related and highly-rated skills.

jiyeol-lee/dotfiles

pull-request

Analyzes branch diffs, drafts PR titles and bodies following Conventional Commits, and creates or updates pull requests via GitHub CLI. Use when user asks to "create a PR", "open a pull request", "update PR description", "draft a PR", or "submit changes for review".

1 1
Explore
jiyeol-lee/dotfiles

commit

Analyzes repository state, proposes commit messages following Conventional Commits, and applies commits after user approval. Use when asked to "commit", "commit changes", "save my work", "create a commit", or "stage and commit".

1 1
Explore
jiyeol-lee/dotfiles

review

Performs code review analysis across Quality, Regression, Documentation, and Performance focus areas with severity-classified findings. Use when user asks to "review code", "review this PR", "check code quality", "review changes", or "do a code review".

1 1
Explore
jiyeol-lee/dotfiles

task-breakdown

Decomposes complex goals into atomic, dependency-aware work items with execution plans. Use when asked to "break down this task", "create a task plan", "decompose this goal", "split this work", "plan the implementation", "what are the steps", or "create an execution plan".

1 1
Explore
jiyeol-lee/dotfiles

code

Implements features, fixes bugs, refactors code, and writes unit and integration tests. Use when asked to "implement", "fix a bug", "refactor", "add a feature", "write tests", "add test coverage", or "update code".

1 1
Explore
jiyeol-lee/dotfiles

grill-me

Conducts thorough interviews to deeply understand user needs, requirements, and context before any implementation begins. Use when requirements are unclear, assumptions need validation, edge cases need exploration, when the user says "grill me", "ask me questions", "help me think through this", or when the underlying problem isn't fully understood.

1 1
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results