Implement Pre-Commit Hooks Integration

Community

Automate code rendering before commit.

Authorem-jones
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the rendering of OpenSpec artifact files (spec.md and tasks.md) from your td state before every Git commit, ensuring documents are always synchronized with the source of truth without manual intervention.

Core Features & Use Cases

  • Automatic Document Rendering: Ensures spec.md and tasks.md are up-to-date with td state before each commit.
  • Commit Validation: Fails commits if rendering errors occur, prompting agents to fix issues.
  • Staged File Management: Automatically stages newly rendered files, allowing for review before final commit.
  • Use Case: As a developer, you make changes to your proposal.md. When you try to commit, the hook automatically renders the updated spec.md and tasks.md, stages them, and allows you to review before finalizing the commit.

Quick Start

Commit your changes to openspec/changes/my-feature/proposal.md and the hook will automatically render and stage the updated spec.md and tasks.md.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Implement Pre-Commit Hooks Integration
Download link: https://github.com/em-jones/staccato-toolkit/archive/main.zip#implement-pre-commit-hooks-integration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.