LightspeedDMS

Claude Pace Maker — Code Quality skill for Claude Code

Code Quality community

Prevent Claude Code overages by throttling tool usage when getting close to the 5-hour limit and weekly limit.

How to install Claude Pace Maker

This entry records only its repository, not the path inside it, so there is no exact command to give. Open LightspeedDMS/claude-pace-maker and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Pace Maker does

Prevent Claude Code overages by throttling tool usage when getting close to the 5-hour limit and weekly limit. Impose clean code and tdd rules before files are written to disk.

Alternatives in Code Quality

  • Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
  • Symfony TDD Pest — Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle 206 ★
  • Pragmatic Clean Code Reviewer — A Claude Code skill for conducting rigorous code reviews based on Clean Code, Clean Architecture, and The Prag 159 ★

README

Claude Pace Maker

Intelligent credit consumption throttling and code quality enforcement for Claude Code.

Features

  • Credit Throttling: Adaptive pacing for 5-hour and 7-day usage windows
  • Stale Data Detection: Resilient pacing calculations when usage data is outdated
  • Model Preference: Nudges Claude to use specific model for subagents (quota balancing)
  • Intent Validation: Requires intent declaration before code modifications
  • TDD Enforcement: Core code paths require test declarations
  • Clean Code Checks: Blocks security vulnerabilities, anti-patterns, and logic bugs
  • Folder Exclusion: Exclude paths from TDD/Clean Code enforcement
  • Session Lifecycle: Prevents premature session endings via AI validation
  • Langfuse Telemetry: Optional tracing integration with Langfuse for session/trace/span tracking
  • Blockage Telemetry: Track and report validation blocks via pace-maker blockage-stats
  • Daily Log Rotation: Automatic log rotation (one file per day, 15 days retention)
  • Enhanced Status Display: Shows versions, Langfuse connectivity, and error counts
  • Prompt Intelligence (Intel): Optional per-prompt metadata (frustration, specificity, task type, quality, iteration) attached to Langfuse traces for dashboard analytics
  • Secrets Management: Sanitizes sensitive data from Langfuse trace outputs
  • Langfuse Auto-Provisioning: Automatic API key provisioning with configurable URL
  • Danger Bash Validation: Two-phase validation for dangerous Bash commands — regex gate fast-rejects without LLM call, then LLM validates intent alignment when INTENT: is present. 55 default rules covering work destruction (git) and system destruction (rm, kill, etc.)
  • Activity Indicators: Real-time hook activity tracking (IV, TD, CC, ST, CX, PA, PL, LF, SS, SM, SE, SA, UP) with color-coded status
  • Global API Poll Coordination: SQLite singleton prevents redundant API polling across concurrent sessions
  • **Companion