Oh My Harness banner
kyu1204 kyu1204

Oh My Harness

AI community

Description

Tame your AI coding agents with natural language. Generate enforced guardrails (CLAUDE.md, hooks, settings) from a single command.

Installation

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

README

🐴 oh-my-harness

**Tame your AI coding agents with natural language.**

[![npm version](https://img.shields.io/npm/v/oh-my-harness.svg)](https://www.npmjs.com/package/oh-my-harness) [![npm downloads](https://img.shields.io/npm/dm/oh-my-harness.svg)](https://www.npmjs.com/package/oh-my-harness) [![CI](https://github.com/kyu1204/oh-my-harness/actions/workflows/ci.yml/badge.svg)](https://github.com/kyu1204/oh-my-harness/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/github/license/kyu1204/oh-my-harness.svg)](LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-5.7+-blue.svg)](https://www.typescriptlang.org/) [![Node.js](https://img.shields.io/badge/Node.js-20+-green.svg)](https://nodejs.org/)

Stop hand-writing CLAUDE.md files. Describe your project, get enforced guardrails.


😀 The Problem

Every AI code agent needs configuration files. Claude Code needs `CLAUDE.md` + hooks. Cursor needs `.cursorrules`. Codex needs `AGENTS.md`. You end up:

  • πŸ“‹ Copy-pasting config files between projects
  • πŸ”“ Forgetting to set up TDD enforcement hooks
  • πŸ’₯ Agents committing code without running tests
  • 🎲 Inconsistent behavior across projects

✨ The Solution

oh-my-harness init "React + FastAPI fullstack, TDD enforced, lint on save"

That's it. oh-my-harness generates **enforced guardrails** β€” not just instructions, but hooks that actually **block** bad behavior:

  • ❌ Commit without tests passing? Blocked.
  • ❌ Edit source without updating tests first? Blocked. (TDD Guard)
  • ❌ Write to node_modules/ or .next/? Blocked.
  • ❌ Run rm -rf /? Blocked.
  • ❌ Commit on a merged branch? Blocked.
  • βœ… Auto-lint on every file save? Done.
  • βœ… Auto-create PR after push? Done.
  • πŸ“Š Track all hook events for analytics? Done.

πŸš€ Quick Start

# Zero-install: run directly with npx
npx oh-my-harness init "TypeScript Next.js frontend with Python FastAPI backend"

#