Codify Rule — Git skill for Claude Code
Codify a recurring anti-pattern into a semgrep rule.
How to install Codify Rule
Installs to ~/.claude/commands/qyndex-claude-init-codify-rule.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/qyndex/claude-init/HEAD/.claude/commands/codify-rule.md -o ~/.claude/commands/qyndex-claude-init-codify-rule.md Restart Claude Code, or start a new session, for it to be picked up.
What Codify Rule does
description: Codify a recurring anti-pattern into a semgrep rule. Fires when an incident's recurred_at counter ≥ 2, or manually for any anti-pattern. Auto-drafts under .semgrep/learned/ and opens a PR. argument-hint: " [--dry-run]" allowed-tools: Read, Glob, Grep, Bash, Edit, Write disable-model-invocation: true
/codify-rule — turn recurring incidents into lint rules
Round 5 E2. The audit found incidents accumulate `recurred_at:` markers but never become enforcem
Alternatives in Git
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Auteur — The Claude Code skill that directs a website like a film 1k ★
- Autofix PR — Auto-Fix PR 263 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Code Playbook
Правила работы с Claude Code и конвейером GitHub — каждое с историей поломки, из которой выросло · Incident-ba
Bob Fix Precommit
Run pre-commit on a git repo and resolve everything it fires, where safe to auto-fix. Never auto-allowlists se
Spine Backfill
Recover a unit's spine contract from its existing prose as evidence, and re-plan an already-authored or reconc
Ao Worker Dispatch
Checklist for dispatching AO workers — prevents recurring python binary, commit discipline, and branch drift f
How To Preserve Game State
Preserve game progress across uninstall/reinstall and sync across iPhone, iPad, and Apple Watch using iCloud K
Knowledge Graph
Built on Anthropic internal engineering practices and Karpathy's AutoResearch methodology. A zero-dependency,
Related Agents
Prod Incident Responder
Reads recent prod logs, picks the highest-impact recurring error, drafts a minimal fix PR with a regression te
Taa Brain
Use this agent for TAA Brain operations - recalling institutional memory before pipeline stages (patterns, pas
Opengrep Rule Engineer
Expert in OpenGrep (FOSS Semgrep fork) and Semgrep rule authoring. Writes precise patterns, taint-tracking rul