Skip to content

feat: add Git hooks for automatic rule validation #2

@thatonecodes

Description

@thatonecodes

Summary

Introduce built-in Git hook support to automatically validate rules before they are committed. This ensures you don't accidentally push invalid or malformed rules.

Proposed Features

  • rulesify hooks install
    Installs a pre-commit hook into the current repo that automatically runs rulesify validate --all.

  • rulesify hooks status
    Show the status of the installed/not installed Git hook in the current repo.

  • rulesify hooks uninstall
    Cleanly removes the installed Git hook.

Benefits

  • Prevents invalid rules from entering version control
  • Enforces team-wide consistency without requiring CI
  • Encourages safe workflows when collaborating across multiple tools

Happy to help with implementation or testing if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions