Agent skill
quality-gates
This skill should be used when the user wants to run code quality checks (linting, formatting, type checking, tests) on the lazyopencode project. Use this skill when asked to "run quality gates", "check the code", "run tests", "lint the code", or verify code quality before committing.
Install this agent skill to your Project
npx add-skill https://github.com/NikiforovAll/LazyOpenCode/tree/main/.opencode/skill/quality-gates
SKILL.md
Quality Gates
Run code quality checks for the lazyopencode project. This skill executes the same checks used in pre-commit hooks plus tests.
Quality Checks
The following checks are run in order:
| Check | Command | Purpose |
|---|---|---|
| Ruff Lint | uv run ruff check src tests --fix |
Lint code and auto-fix issues |
| Ruff Format | uv run ruff format src tests |
Format code consistently |
| Mypy | uv run mypy src |
Static type checking |
| Pytest | uv run pytest tests/ -q |
Run test suite |
Usage
To run all quality gates:
scripts/check_quality.sh
Or run individual checks as needed using the commands above.
Workflow
- Run the
scripts/check_quality.shscript from the project root - Review any failures and fix issues
- Re-run until all checks pass
- Present user with concise summary of results in markdown table format
Common Issues
- Ruff lint failures: Usually auto-fixed. If not, check the error message for manual fixes needed.
- Mypy errors: Type annotation issues. Add or fix type hints as indicated.
- Test failures: Review test output, fix failing tests or underlying code.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agents-compat-skill
Skill discovered from .agents/ path
project-skill
Project-specific skill
task-tracker
Track and manage development tasks
deploy-helper
Helps with deployment tasks and scripts
my-skill
A skill with nested file structure for testing
opencode-marketplace
Reference guide for the opencode-marketplace CLI tool. Use this skill when users want to install, uninstall, update, list, or scan OpenCode plugins; manage plugin components (commands, agents, skills); work with plugin scopes (user/project); handle GitHub-based plugins; or need guidance on plugin structure and conventions.
Didn't find tool you were looking for?