by akinalpfdn
A modular rules & skills system for Claude Code — organize, share, and supercharge your AI coding workflow
# Add to your Claude Code skills
git clone https://github.com/akinalpfdn/claude-groundA minimal rule system for Claude Code. Gives Claude the structural discipline it lacks by default — phase tracking, decision logging, honest pushback, debug discipline, and language-specific best practices.
Claude Code is capable. But left to its own defaults it tends to:
These aren't model failures — they're defaults that go unchallenged without explicit rules.
rules/common/ — Always active, every project:
| Rule file | What it does |
|-----------|-------------|
| core.md | Phase management, approval gates, honest opposition, time estimates, periodic analysis |
| decisions.md | Decision log format and rules |
| git.md | Branch strategy, conventional commits, commit discipline, versioning |
| testing.md | When to test, naming, structure, mocks vs integration, coverage |
| debug.md | Two-attempt rule, structured analysis, no error masking |
| existing-code.md | Read before touch, follow existing patterns, separate refactoring from features |
| frontend.md | Theme-first, no inline styles, intentional design (UI projects only) |
rules/[language]/ — Language-specific best practices:
No comments yet. Be the first to share your thoughts!
| Language | Key rules | |----------|-----------| | Go | Goroutine lifecycle, error wrapping, interface design, package structure, table-driven tests | | Swift | MVVM structure, async/await + actors, memory management, error handling, testable ViewModels | | TypeScript | Component granularity, API layer separation, strict types, state discipline, RTL testing | | Kotlin | Coroutine scopes, sealed UI state, Compose theming, repository pattern, coroutine testing | | Flutter | Widget granularity, state management, AppTheme, platform isolation, widget/golden tests | | Rust | Ownership patterns, thiserror/anyhow, tokio consistency, unsafe discipline, proptest | | Python | Type hints, project structure, custom exceptions, dependency management, pytest | | .NET | Constructor DI, layered architecture, async + CancellationToken, Result pattern, Testcontainers | | Spring | Constructor injection, layered architecture, exception handling, transactions, Testcontainers |
All rules use MUST / SHOULD / RECOMMENDED severity levels so Claude knows what is a hard rule vs a best practice.
templates/ — Starting point for new projects:
CLAUDE.md — Project context file. Tech stack, architecture, active rules.DECISIONS.md — Empty decisions log, ready to fill.phases/PHASE-01.md — First phase template.Two things get installed — they go to different places:
| What | Where | Effect | |----...