devenv-pre-commit

Automates linting, formatting, type-checking and testing workflows on modified files since merge-base.

Updated Jul 4, 2024
One-click install
npx skills add https://github.com/workinprogress-ai/devenv --skill devenv-pre-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devenv-pre-commit
Source: https://github.com/workinprogress-ai/devenv/tree/main/copilot/skills/devenv-pre-commit
Command: npx skills add https://github.com/workinprogress-ai/devenv --skill devenv-pre-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates the uncertainty of whether your code is ready for version control by automating the execution of linting, formatting, type-checking, and testing across your project.

Core Features & Use Cases

  • Intelligent Detection: Automatically identifies project types and resolves the correct commands from your configuration files or devenv conventions.
  • Comprehensive Reporting: Runs all quality checks and aggregates failures into a single, actionable report with file-line references.
  • Safe Auto-fixes: Suggests and applies tool-specific auto-fixes for formatting and linting issues with explicit user confirmation.
  • Use Case: After finishing a feature, use this skill to verify that your changes meet all project quality standards before you perform a git commit.

Quick Start

Run the devenv-pre-commit skill to verify that your current changes are ready for commit.

Frequently Asked Questions about devenv-pre-commit

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

FAQPage Schema
How do I run linting and tests on only modified files before a git commit?

To run linting and tests on modified files before a git commit, this skill scopes analysis to changed files since the merge-base. It automatically resolves and executes quality gate commands from project-specific configuration files or devenv conventions.

What is the best way to automate code quality checks before committing changes?

Automating code quality checks before committing involves running linting, formatting, type-checking, and testing workflows against your project. This skill automates these workflows and aggregates failures into a single actionable report with file-line references.

Can I automatically fix formatting and linting issues during pre-commit verification?

Yes, you can automatically fix formatting and linting issues during pre-commit verification. The skill suggests and applies tool-specific auto-fixes with explicit user confirmation before applying changes to your modified files.

Does pre-commit quality gate automation work in multi-repo workspaces?

Pre-commit quality gate automation works in multi-repo workspaces by scoping analysis to changed files since the merge-base. This ensures efficient verification across multiple repositories without running unnecessary checks.

Do I need project-specific configuration files to run automated pre-commit checks?

Yes, you need project-specific configuration files or standard devenv conventions to run automated pre-commit checks. The skill requires these to intelligently detect project types and resolve the correct quality gate commands.

Why does my pre-commit skill not resolve the correct quality gate commands?

Your pre-commit skill may not resolve quality gate commands if it cannot find project-specific configuration files or standard devenv conventions. It relies on these inputs to intelligently detect project types and execute the correct linting and testing workflows.