oc-bug-check

Run code quality checks on staged changes in Git pre-commit hooks.

Updated May 15, 2026
One-click install
npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-bug-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oc-bug-check
Source: https://github.com/asfbay-bit/opchain-skills/tree/main/skills/oc-bug-check
Command: npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-bug-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript, eslint, prettier, vitest, npm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that all commits pass a rigorous quality check before being committed to the repository, preventing issues from reaching production.

Core Features & Use Cases

  • Pre-commit QA: Runs a suite of checks (type safety, linting, tests, anti-patterns, secret detection, build verification, dependency scanning) on all staged changes.
  • Blocker Management: Blocks commits with failures, allowing only passes or warnings.
  • Fast Feedback: Completes checks in under 2 minutes, providing immediate feedback on code quality.
  • Use Case: Before making any changes to your codebase, run /oc-bugcheck to ensure that your commits meet the quality standards. This is especially useful for teams following continuous integration practices.

Quick Start

Run the /oc-bugcheck command before every commit to ensure your code is error-free.

Frequently Asked Questions about oc-bug-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code quality checks on staged Git changes before committing?

To automate pre-commit QA for staged Git changes, you can run a suite of code quality checks including type safety, linting, and tests. This prevents low-quality commits from reaching production by blocking failures.

What checks should a pre-commit hook run to prevent bad commits in TypeScript projects?

A pre-commit hook for TypeScript projects should run type checking, ESLint linting, Prettier formatting, Vitest tests, secret detection, and build verification. These checks ensure error-free commits by validating staged changes.

Do I need ESLint and Prettier installed to use automated pre-commit validation?

Yes, you need ESLint, Prettier, TypeScript, Vitest, and npm installed. These dependencies provide the core type checking, formatting, linting, and testing capabilities required to validate staged changes.

Can I block Git commits that fail linting and testing checks?

Yes, you can block Git commits that fail linting and testing checks. Blocker management prevents commits with failures, only allowing passes or warnings, ensuring code quality standards are met.

What is the best way to run fast QA checks on staged files without slowing down Git commits?

The best way to run fast QA checks on staged files is to use an automated pre-commit hook that completes validation in under 2 minutes. This provides immediate feedback on code quality without delaying commits.

Why does my pre-commit hook not catch type errors and anti-patterns in staged changes?

Pre-commit hooks may miss type errors and anti-patterns if they do not execute TypeScript type checking and anti-pattern detection on staged changes. Automating these checks ensures failures are caught before committing.