scc-stack
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Own docs/stack.md — every adopted technology with one line on why it earned its place. Use it before adding a dependency to any manifest, when a technology is swapped or dropped, and on any stack.* finding.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- gauntlet-loopSkill
- scc-adrSkill
- scc-codewikiSkill
- scc-glossarySkill
- scc-initSkill
- scc-plan-runSkill
- scc-prdSkill
- scc-wikiSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Say what it costs: Every dependency is a supply-chain surface, a version to keep current, and an API someone will have to learn.
- Distinctive: line 48
Ask the three questions, in this order:
- Distinctive: line 64
Delete it from the manifest, delete the entry, and say in the commit what replaced it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You own docs/stack.md. The rule it enforces is in
.claude/rules/knowledge-base.md, and it is short: technology
not listed here is an open decision, never something adopted silently.
This is checkable because dependency manifests are structured data. scc validate
reads the direct dependencies out of every manifest it knows — go.mod,
package.json, requirements.txt, pyproject.toml, Cargo.toml,
composer.json, pom.xml — and reports any that stack.md does not mention.
Indirect dependencies are skipped: nobody decided those.
Nothing asked for
$ARGUMENTS is the technology being adopted or dropped. Empty, run scc validate
and work through the stack.undocumented-dependency findings: for each, either
record the decision or establish that nobody can justify the dependency and remove
it. Both are correct outcomes; listing a name with no reason is not.
Adding a dependency is two steps
Adding it to the manifest is the first. The second is here, and it happens in the same change, not later:
- Say what problem it solves — the one you actually have, not the category.
- Say what it was chosen over, if anything real was considered. This is the line that pays off in a year, when someone asks why not the obvious alternative.
- Say what it costs. Every dependency is a supply-chain surface, a version to keep current, and an API someone will have to learn. If you cannot name the cost you have not finished evaluating it.
## Go
- **stdlib only** — the binary ships to six platforms and every dependency is a
supply-chain surface. A dependency has to be worth that.The validator matches on the module path or its last segment, so writing chi for
github.com/go-chi/chi is enough. It is looking for a decision, not a spelling.
Before you add anything
Ask the three questions, in this order:
- Can the standard library do it? For most of what a dependency is reached for first, it can, at the cost of code you then own. Sometimes that trade is right.
- Is this dependency load-bearing or convenient? A convenience with a maintainer who stops answering is a migration you did not plan.
- Does the project already have something that does this? Two libraries solving one problem is a cost paid by everyone who reads the code afterwards, forever.
If the answer is not obviously yes, stop and ask. Adopting technology is a decision with a long tail, and it is one of the few things worth interrupting an automatic run for. Bringing a dependency in unasked is not autonomy, it is a commitment made on someone else's behalf.
Removing one
Delete it from the manifest, delete the entry, and say in the commit what replaced it. A stack entry for something no longer installed is worse than a missing one: it describes a project that does not exist.
When it is also an ADR
stack.md is the inventory — what is adopted, and why. An ADR is the record of
a decision that is hard to reverse. Reach for the adr skill as well when the
choice locks something in: a database, a wire protocol, a framework the code will
shape itself around, a vendor with data in it.
The two do not duplicate each other. The stack entry stays one line and names the ADR; the ADR carries the context, the alternatives, and the consequences.
Findings
| Finding | What it means | The fix |
stack.missing | The project declares dependencies and has no stack.md. | Write it, one entry per direct dependency already installed. Expect to discover at least one nobody can justify. |
stack.undocumented-dependency | Something is installed that stack.md does not mention. | Record the decision — or, if no one can state what it is for, remove the dependency. Both are correct outcomes. Silencing the finding by listing the name with no reason is not. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

