AI Coding Skills: Discipline, Not a Framework — Three Lessons From a Permission-Control Gone Wrong
This article looks at why AI coding sessions go off the rails — sprawling diffs, null-pointer exceptions on startup, unreadable naming — and argues the root cause is usually how we constrain the model, not the model itself. It covers three recurring failure modes (scope creep, breakage, ossification), why popular "interrogative review" skills still fail when the context changes, how document-alignment (S1) and domain-modeling (S2) variants fix specific gaps, and how discipline silently hardens into a framework when it becomes a fixed template. It closes with four practical habits: selecting a skill by task profile rather than popularity, writing an applicability spec with explicit non-applicable and stop conditions, defining acceptance criteria before execution steps, and managing skills like code.
Introduction: 40+ files changed for permission control, and nothing runs
Adding authorization to a business system is one of the most ordinary tasks in day-to-day development. The requirements are simple, the call chain is visible. What you usually get instead is a change spanning dozens of files, a null-pointer exception the moment the service boots, three new problems surfacing when you ask for a fix, and code where the variable names read like tongue twisters and the comments describe something other than what the code does. Three months later the requirement changes, you want to make a move, and you find you’re afraid to touch the thing.
Many people blame “the AI isn’t smart enough.” A better question: is the problem in how we handed it constraints? An instruction without discipline is a commission without acceptance criteria. The model fills the blanks with its own interpretation, and its interpretation is not necessarily your interpretation of the project.
A curious turn: the author delists his own flagship skill
Recently, in AI-coding circles, a repository collecting skills for AI coding tools picked up a lot of attention in a few months. Collections like this spare developers from figuring everything out themselves — you pick a ready-made skill package per scenario. The most discussed item, authored by the maintainer, was a “follow-up questioning review” skill: a reviewer designed to interrogate a proposal relentlessly and challenge every vague point one by one.
Then the author did something: he took that flagship skill out of the default recommendations. The move often gets read as a public self-retraction. In context, it looks more like a public demonstration: a skill’s value lies not in being enshrined, but in being used — and replaced.
Throughout this article, “skill” means a package of instructions for an AI coding tool. It typically has three parts: when to activate, what rules to follow, and what steps to execute. It is, in essence, an engineered instruction document. Below, S1 and S2 stand for two common varieties of follow-up-questioning skill; the discussion is about usage, not about specific implementations.
1. Code broken by AI breaks in its own way
These bad outcomes are rarely a single mistake. They are different links in the same failure chain:
- Scope creep. A model without boundary constraints tends to treat “while I’m here” as a requirement. One authorization change touches several entry points, so it keeps going down the call chain.
- Breakage. As the surface area grows, context lengthens and logic interleaves. The model’s grip on how state relates across all those places loosens, producing null-pointer errors and missing default values.
- Ossification. To make “it runs” true first, the code fills up with defensive checks and patch-style branches. None of it forms a coherent design, and nobody dares clean it up afterward.
The bill lands on a human. You absorb the cost of the model’s one bad judgment, and months later you pay to maintain a stopgap. The problem is that the constraint was written in the wrong place.
2. Scope creep: an undisciplined instruction invites improvisation
Compare two ways of writing the same request. The results can differ completely.
Vague instruction:
Add permission control to the system, and mind code quality.
Disciplined instruction:
1. Analyze only, no code yet. List every authorization entry point and explain how each one currently determines the caller's identity.2. Produce a change list: what changes in each file, why it changes, and which edits are incidental.3. Wait for my confirmation before touching anything; no file gets modified without it.4. After each file, tell me separately how to verify it.
The second version says nothing about how to model permissions. It fixes the order of actions, the scope of the change, and the verification method. That is exactly the line between discipline and a process framework: discipline constrains how work is done; a framework prescribes which process to follow.
3. Breakage: the same skill fails once the context changes
After that follow-up-questioning skill took off, variants multiplied. The two most common are:
- S1: align on documentation first. Read the project docs and interface specs before asking questions, so you don’t interrogate a guess.
- S2: align on the domain model first. Map the core concepts in the system and their relationships before discussing implementation details.
Their relationship to the original is worth a closer look:
| Derived skill | New pre-step | Original gap it addresses |
|---|---|---|
| S1 (documentation alignment) | Read project docs and interface specs before answering | Questions rest on assumptions; conclusions drift from the implementation |
| S2 (domain modeling) | Map core concepts and boundaries before discussing the approach | Questioning scatters and never gets to the main thread |
| Original (review questioning) | Challenge each vague point and risk in the proposal | A proposal gets implemented without ever being examined |
The original’s strength is that it is direct and applies pressure. Its weakness is that questioning from zero tends to scatter, and the answers often stay on the surface. Neither S1 nor S2 negates it; they put “gather facts first, establish structure first” ahead of the questioning.
From this comes the first rule of discipline: a skill’s value is situational. Within a single task, reordering three skills changes the outcome; switch scenarios and yesterday’s best skill may immediately feel heavy.
The same reasoning explains that null-pointer incident. The model was told to “mind code quality,” but that sentence has no executable meaning. Had it first been asked to enumerate the authorization entry points and then explain where each one’s identity signal comes from, a lot of “obvious” assumptions would have surfaced before any code was written.
4. Ossification: discipline quietly becoming a new framework
Here is the tension: the same README tells people not to enshrine a skill, and then lays out a systematic set of derivatives. That is not a contradiction, but it points to a general risk: once discipline hardens into a fixed template, mandatory steps, or a directory structure, it reproduces the framework’s drawbacks.
| Dimension | Discipline (correct use of a skill) | Framework (common process-oriented method) |
|---|---|---|
| Purpose | Temporary constraint for a specific task | Fixed method spanning the whole process |
| Granularity | Concrete enough to check line by line | Abstract enough to cover many scenarios |
| Replacement cost | Low; its job is done when the task ends | High; existing artifacts and conventions get bound to it |
| Upgrade path | Edit a passage of text, adjust as you use it | Migrate as a whole, relearn from scratch |
| Composition | Assembled on demand, arranged per task | Preset stages and artifacts |
An easily overlooked example: one team wrote “always produce a complete change-design document before every modification” as a skill. It is genuinely useful in a module with complex requirements; applied to a task that changes a line of UI copy, it becomes pure overhead. With no exception clause for “lightweight tasks skip the document,” that rule eventually gets bypassed entirely.
Good discipline carries its own failure conditions: it states when to use it and when not to. Once a skill is copied word-for-word into a dozen projects, it stops being discipline and becomes one more convention to maintain.
5. A real counter-example: writing the rules file as a junkyard
In the discussion around S2, one community example was especially convincing: someone used it to generate thousands of lines of rules across dozens of files, and the author’s own verdict was “a junkyard.”
What deserves analysis is not the volume but why the content spiraled:
- Rules stacked on rules. Every lesson learned gets appended, and expired entries are never removed. Each time, the model has to arbitrate priority among a large mass of instructions that duplicate or contradict one another.
- Lessons hardened into dogma. A rule written as a remedy after one incident gets generalized into a universal requirement for every scenario.
- No unified maintenance. Multiple people, multiple projects editing independently, contradictory conventions coexisting in the same file.
Information theory offers a plain truth here: when a text says everything, the information it actually conveys approaches zero. Rule files work the same way. The more entries, the harder it is for the model to tell which one actually applies right now.
6. Treating skills as discipline: methods you can apply
Four starting points for turning the idea into daily practice.
1. Pick a skill by task profile, not by popularity
When a task arrives, ask three questions:
- Does it touch critical paths like permissions, data consistency, or money? If so, activate stricter review and confirmation steps.
- Is the main difficulty unclear requirements or implementation complexity? The former: align on documentation first. The latter: do domain modeling first.
- Is the expected change a few files or dozens? For the latter, split it into several smaller tasks and activate only one rule of discipline at a time.
Cutting losses when the judgment was wrong matters more than “picking right” on the first try.
2. Write a spec sheet for every skill
At minimum, a skill usable as discipline should state five things:
# File header (example structure; exact format depends on the tool)- Name:- Applicable scenarios:- Non-applicable scenarios: # failure conditions, the most commonly omitted- Definition of done: # what counts as finished- Stop conditions: # what makes you halt and ask a human# Body: concrete executable steps, not high-level principles
The critical part is “non-applicable scenarios.” Many skills are abandoned not because they were written badly, but because nobody ever considered when they should not be used.
3. Write acceptance criteria before execution steps
Phrases like “high code quality” or “watch the edge cases” cannot be verified. Replace them with observable outcomes:
# Counter-exampleMind code quality and handle exceptions well.# Better1. This change adds no new global mutable state.2. All external inputs are validated for null and format at the entry point; a failed validation returns an explicit error code.3. No new naming that is only understandable via a comment.4. When done, list the affected interfaces and give at least one way to verify each.
The order cannot be reversed. Execution steps only have a basis once acceptance criteria exist; otherwise the skill itself is just an exhortation with nothing to grab onto.
4. Manage skills like code
- Version them. Keep them in a repository, so every change is traceable and revertible.
- Evolve in small steps. Start at a dozen lines; each change targets one specific class of problem. Don’t try to write the complete thing at once.
- Clean up periodically. Model capabilities keep changing. A constraint written last year to patch a weakness may be redundant this year.
- Keep exception clauses. State explicitly which steps lightweight scenarios can skip, so discipline doesn’t get bypassed wholesale for being too heavy.
7. Back to the start: delisting the flagship is discipline rotating
The author delisting his flagship skill looks like self-repudiation. In practice he did three things:
- Acknowledged that the skill has boundaries of applicability;
- Passed the baton to the derivative better suited to the current scenario;
- Reminded users that the collection’s value lies in being decomposable and recomposable.
What’s worth remembering is not how much attention some skill once drew, but one short line: a skill is discipline, not a framework. Whoever enshrines a skill and dares not touch it has not really learned to use it. When the constraint is specific enough, use documentation alignment today, switch to domain modeling tomorrow if it fits better — no agonizing, no nostalgia required.
This is not an argument for constant tinkering, but for being lightweight and honest: write only the constraint that is useful right now, and let it retire when the task ends. Seen that way, how popular a skill library is doesn’t matter much. What a team really needs to answer is whether it can distill concrete, verifiable, replaceable engineering discipline, one rule at a time.
