An agentic skills framework & software development methodology that works.
Claude Code skills for coding discipline and DDIA principles
This repo bundles two Claude Code skills. One adds guardrails for writing code and tests, and the other provides concise guidance from Designing Data-Intensive Applications for data and system design work. Together they help keep agent-written code more disciplined and data decisions more grounded.
Builders who use Claude Code and want reusable rules for writing code, tests, and data systems.
You can keep your agent from using brittle shortcuts and get a clearer path for database and distributed system choices.
What it does
Coding discipline rules
Loads rules that block silent fallbacks, catch-all error handling, hardcoded lookup tables, and other common AI coding anti-patterns.
Test-first workflow
Encourages red-green testing so code changes are checked against failing tests before the fix.
Debug log retention
Keeps debug logs in place during a fix until a human confirms the problem is solved.
DDIA reference skill
Provides a compact guide to data modeling, storage engines, replication, partitioning, transactions, and stream or batch processing.
How to get it
- 1Run
npx skills add luoling8192/ai-coding-principles
README
AI Coding Principles
A collection of Claude Code skills for coding discipline and system design knowledge.
Skills
ai-coding-discipline
Mandatory rules loaded during all code writing tasks that prevent common AI coding anti-patterns.
| # | Rule | Summary |
|---|---|---|
| 1 | No Silent Fallbacks | Don't use ?? / ` |
| 2 | No Catch-All try/catch | Business logic lets errors propagate; catch only at API boundaries |
| 3 | Tests Must Fail When Code Breaks | Verify specific outcomes, not just existence |
| 4 | No Hardcoded Lookup Tables | Implement real logic, not test-case-fitting shims |
| 5 | Red-Green Testing (TDD) | Write failing test first, then fix |
| 6 | Don't Remove Debug Logs During Fix | Logs stay until human confirms the fix works |
ddia-principles
Distilled reference guide based on Martin Kleppmann's Designing Data-Intensive Applications. Loaded when designing database schemas, choosing storage engines, implementing replication/partitioning, handling distributed transactions, or building batch/stream processing pipelines.
| Part | Topics |
|---|---|
| I: Foundations | Reliability, Scalability, Maintainability; Data Models & Query Languages; Storage & Retrieval (B-tree vs LSM-tree, OLTP vs OLAP); Encoding & Evolution |
| II: Distributed Data | Replication (single/multi-leader, leaderless); Partitioning (key-range, hash, compound); Transactions & Isolation Levels; Distributed System Challenges; Consistency & Consensus |
| III: Derived Data | Batch Processing (MapReduce, Spark, Flink); Stream Processing (Kafka, CDC, Event Sourcing); Data Integration Patterns |
Installation
npx skills add luoling8192/ai-coding-principles
License
Files in the repo
- ai-coding-discipline
- ddia-principles
- LICENSE
- README.md
- README.zh-CN.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

Production-grade engineering skills for AI coding agents.