Not in the top 1,000 by GitHub stars

luoling8192/ai-coding-principles

A collection of Claude Code skills that enforce coding discipline and prevent common AI coding anti-patterns.

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

ai-coding-discipline/SKILL.md

Week of Nov 2, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → 27db986fd279

No earlier version was observed for comparison.

Compare on GitHub

ddia-principles/SKILL.md

Week of Nov 2, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → 27db986fd279

No earlier version was observed for comparison.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit 27db986fd2790ad1a1818a7f1b2c5d91b3843b8e

173GitHub stars
1star in 7 days
2skills in this repository
0commits in 30 days

Heat

1.7
  • Star growth, last 7 daysNot available
  • Star growth, last 24 hoursNot available
  • Rank movement, last 7 daysNot available
  • Commits, last 30 daysNot available
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekNot available

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Oct 25, 2026Nov 5, 2026173

30-day change not yet available: not enough history.

Individual skills in this repository

How it works

ai-coding-discipline

When your agent uses it

Mandatory coding discipline rules that prevent common AI coding anti-patterns. MUST be loaded for ALL code writing, editing, reviewing, bug fixing, and testing tasks. Trigger on: writing code, editing code, fixing bugs, writing tests, implementing features, refactoring, code review, creating functions, adding error handling, debugging. This skill enforces fail-fast principles, proper error propagation, meaningful tests, and disciplined debugging workflows. Always active when Claude writes or modifies code.

What it loads into context

Frontmatter

111 tokens

Always available to the agent

SKILL.md

1,761 tokens

When the skill is activated

Reference documents

0 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Rule 1: No Silent Fallbacks
  2. Rule 2: No Catch-All try/catch in Business Logic
  3. Rule 3: Tests Must Fail When Code Breaks
  4. Rule 4: No Hardcoded Lookup-Table Implementations
  5. Rule 5: Red-Green Testing (TDD Order)
  6. Rule 6: Never Remove Debug Logs During a Fix
  7. Quick Reference: Self-Check Before Submitting Code

Files

  • SKILL.mdcore7,445 bytes
Read SKILL.md

# AI Coding Discipline

> These rules override default AI coding tendencies. Follow them in ALL code you write or modify.

---

## Rule 1: No Silent Fallbacks

**Never use fallback values to mask data that should not be missing.**

```typescript
// FORBIDDEN — hides upstream bugs
const price = product?.price ?? 0;
const userName = user?.name || "Unknown";
View the complete source on GitHub

Skills included

  • ai-coding-discipline
  • ddia-principles

Repository facts

License
MIT
Created
Mar 22, 2026
Last pushed
Mar 26, 2026
Forks
11
Open issues
0
Project activity
Slowing

Before you install

Instructions only

Automated signals, not a guarantee

Checked Nov 6, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 6 notes
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ddia-principles/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • No broad tool permissions
  • No dangerous shell commands
  • No network access
  • No hidden or obfuscated text
  • No instruction overrides
  • No executable scripts
  • No access to secrets
  • No requests to vote in Hot

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

No combined signals at this commit.

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeCompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md ai-coding-discipline/SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.