solid
Skill3 starsChanged 2 months agoMITView on GitHub
Use when locking module boundaries, class/API shape, or dependency direction after a design/spec is clear; when new packages, ports, or IO edges are about to be planned; when unit tests need many mocks; or when a review/refactor shows coupling or God-class smell. Do not use as the main skill while product decisions are still open (that is grill).
17 other projects use a version of this.
Adopted by
Most recently taken up by
- DGouron/review-flowtheir own version, first seen Nov 29, 2026
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- molt-bot/clawdbottheir own version, first seen Nov 16, 2026
- vladcheck/agentictheir own version, first seen Nov 8, 2026
- vladcheck/skillstheir own version, first seen Nov 1, 2026
- openclaw/openclawtheir own version, first seen Nov 1, 2026
Used with
Projects with it also use openclaw-performance, plugin-sdk-impact and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
clawdbotSkillopenclaw-performance
Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.
Also in 8 projects that use this
clawdbotSkillplugin-sdk-impact
Count Plugin SDK consumers across live ClawHub releases and bundled OpenClaw plugins before deprecation, removal, or behavior changes; supports public release-date filters.
Also in 8 projects that use this
openclawSkillcreative-project
Design or revise branding, visual identities, logos, posters, illustrations, and social-media assets using project artwork or image references. Inspect the existing visual language, choose references, and iterate on named candidates.
Also in 6 projects that use this
openclawSkilllabs-graduation
Move a feature out of Control UI Labs, either on by default or still off by default. Use when asked to promote, graduate or ship a Labs feature.
Also in 6 projects that use this
steipeteSkillopenclaw-writing
Write or edit OpenClaw UI copy, channel and CLI messages, slash command replies, tool error text, server errors that reach a reader, docs pages, or agent instruction files.
Also in 4 projects that use this
friuns2Skilldiscord-e2e
Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions.
Also in 8 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- molt-bot/clawdbot★ 395ksame name
- steipete/warelay★ 395ksame name
- steipete/clawdis★ 395ksame name
- moltbot/clawdbot★ 395ksame name
- openclaw/openclaw★ 395ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- vercel-labs/json-render★ 20ksame name
- ramziddin/solid-skills★ 591same name
- nank1ro/solid★ 165same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- commit-and-pushSkill
- debugSkill
- exploreSkill
- grillSkill
- issueSkill
- reviewSkill
- tddSkill
- test-designSkill
- using-creedSkill
- write-planSkill
- write-specSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Default: if product "what/why" is still open → grill, not solid.
- Distinctive: line 57
If the name needs "and" / "manager of everything" → split
- Very specific: line 62
Prefer extending via new types/strategies/composition over editing a core switch forever
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SOLID
Output language: answer and write artifacts in the user's own language (match their messages, not the repo's history).
Overview
Apply SOLID so behavior is easy to change and to test without a pile of mocks.
Companion skills: shape the product with grill → write-spec; prove behavior with tdd + test-design. This skill is only structure and dependency direction.
Core principle: hard to test usually means hard to use — fix the boundaries, don't paper over them with mocks.
Trigger modes (important)
| Mode | When | What to do |
| Gate (primary) | After write-spec (or waived design), before write-plan, if the slice adds modules / ports / IO edges | Full workflow below — announce Using solid to … |
| Rescue | Tests need ≥3 mocks; review/PR coupling; mid-tdd stuck on structure | Full workflow; then return to caller |
| Smell only (inside grill) | Comparing approaches that imply different boundaries | Do not load this skill as the main skill. Grill keeps the session; option labels may note one boundary smell ("this binds domain to SQL → mock pile later"). Formal solid waits for Gate |
Default: if product "what/why" is still open → grill, not solid.
When to Use
- Spec approved and the next step would invent packages, ports, or dependency arrows
- Designing or reviewing module boundaries, class/API shape, dependency direction
- Unit tests need many mocks to "isolate"
- Refactors aimed at testability; PR adds coupling / God class
When NOT to use:
- Product decisions still open (use grill)
- Pure glue / drive-by rename / throwaway spike
- Tiny change with no new boundary (existing type, one behavior) — skip Gate; go write-plan or tdd
- As a substitute for grilling product trade-offs
The Iron Law (non-negotiable)
1. New non-trivial behavior lives behind a boundary you can name (SRP).
2. Domain/policy does not depend on IO/framework details (DIP).
3. Fake abstractions invented only to satisfy a test are forbidden (no theater).Violating the letter is violating the spirit. "Just mock the world" and "God class is fine for now" do not count.
The five, as engineering checks
S — Single Responsibility
- One unit → one reason to change
- If the name needs "and" / "manager of everything" → split
- Separate: orchestration vs policy vs IO vs formatting
O — Open/Closed
- Prefer extending via new types/strategies/composition over editing a core switch forever
- YAGNI: don't pre-build plugin systems; do stop smearing new cases into a blob
L — Liskov Substitution
- Subtypes must honor the caller's contract (pre/postconditions, errors)
- No "inherits for reuse" that surprises callers; prefer composition
I — Interface Segregation
- Small, caller-shaped ports — not one mega-interface
- Callers shouldn't depend on methods they never use
D — Dependency Inversion
- High-level policy depends on abstractions (ports), not on DB/HTTP/FS/SDK concretes
- Adapters at the edge; core stays pure/fakeable
- Signal: unit test needs ≥3 mocks → likely DIP/SRP failure (see test-design)
Workflow (when invoked — Gate or Rescue)
Announce "Using solid to …", then:
- Name the units — what each does, how you use it, what it depends on
- Draw dependency arrows — domain → ports ← adapters (never domain → SQL/HTTP client directly)
- SRP pass — split "and" responsibilities
- ISP pass — trim fat interfaces
- DIP pass — push IO out; inject ports
- Theater check — every new interface must have a product reason, not only a test reason
- Hand off — write-plan (Gate) or resume tdd (Rescue). If product questions reopened → grill
Red Flags
- God class / package that "knows the whole feature"
- Domain imports ORM, HTTP client, or UI kit
- Subclass overrides that weaken invariants
- Interface with 15 methods for one caller that uses 2
- New interface used only in tests (no production adapter)
- Unit test mocks half the system to "isolate"
Rationalization Table
| Excuse | Reality |
| "Split later when it hurts" | It already hurts when you need 4 mocks. |
| "Concrete is simpler than a port" | Until the second IO path. Port + one adapter is cheaper than rewrites. |
| "Inheritance reuses code" | Inheritance couples hierarchies; compose instead. |
| "One service interface keeps it tidy" | Fat interfaces force fake methods and ISP debt. |
| "Mocks prove DIP" | Mocks hide DIP failure. Fewer mocks after a real port is the proof. |
| "We're still grilling — run full solid now" | Smell in option labels only. Full solid after what/why is locked. |
Checklist
- Product what/why already locked (or Rescue mid-implementation)
- Each unit has one clear purpose and a name without "and"
- Dependency arrows point inward to policy, not out to IO
- Ports are small; adapters own frameworks
- No test-only abstractions
- Ready for write-plan or tdd/test-design without mock piles
Hand-off
Transition gate — before the boundaries go to write-plan (Gate) or back to code (Rescue), ask the user (one AskUserQuestion; never auto-advance):
A) Recommended: Proceed → write-plan (Gate) / resume tdd (Rescue)
B) Review first — run **review** on these boundaries (`references/solid.md`; upstream = spec's promised boundaries), then return to this gate
C) Adjust — rework the structure, then return to this gate
D) Something else (I will type it)- Product decisions still open → grill → write-spec
- Boundaries locked → write-plan
- Implementing → tdd + test-design
- Shipping → review / commit-and-push
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.

