software-design-philosophy
Skill1 starsChanged 6 months agoMITView on GitHub
Apply John Ousterhout's design principles — deep modules, complexity management, strategic investment — to produce AI-generated code that is maintainable, not just functional.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- DylanHalstead/skillstheir own version, first seen Nov 29, 2026
- XueHua-s/ouchn-learntheir own version, first seen Nov 22, 2026
- luoling8192/skillstheir own version, first seen Nov 1, 2026
- Adhamxon/claude-code-skillstheir own version, first seen Jul 30, 2026
- wondelai/skillstheir own version, first seen Jul 16, 2026
- hotopla5976/software-design-philosophy-skilltheir own version, first seen Mar 11, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- wondelai/skills★ 2.8ksame name
- luoling8192/software-design-philosophy-skill★ 339same name
- luoling8192/skills★ 24same name
- XueHua-s/ouchn-learn★ 16same name
- Adhamxon/claude-code-skills★ 2same name
- DylanHalstead/skills★ 1same name
- hotopla5976/software-design-philosophy-skill★ 0same name
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 repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- advanced-orchestrationSkill
- architect-agentSkill
- implementer-agentSkill
- quality-councilSkill
- reviewer-agentSkill
- tester-agentSkill
- writer-critic-pairSkill
- authoring-skillsSkill
- api-endpoint-qualitySkill
- async-job-qualitySkill
- auth-qualitySkill
- db-migration-qualitySkill
- frontend-state-qualitySkill
- acceptance-criteriaSkill
- adaptive-flowSkill
- adaptive-prompt-selectionSkill
- adversarial-code-reviewSkill
- architecture-decision-recordsSkill
- brainstormingSkill
- brownfield-spec-enhancementSkill
- bug-fix-lifecycleSkill
- checkpoint-validationSkill
- cicd-integrationSkill
- clarify-before-codeSkill
- claude-code-hooks-packSkill
- code-context-packSkill
- code-intelligence-reviewSkill
- context-policySkill
- context-rich-implementationSkill
- crash-proof-planningSkill
- critique-pass-protocolSkill
- dependency-aware-task-orderingSkill
- deprecation-migrationSkill
- disciplined-diagnosisSkill
- docs-authorSkill
- executing-plansSkill
- external-skillSkill
- finishing-a-development-branchSkill
- git-guardrailsSkill
- goal-driven-executionSkill
- grill-user-before-buildingSkill
- guard-bypass-protocolSkill
- improve-codebase-architectureSkill
- incremental-reviewSkill
- issue-slicingSkill
- lessons-learned-dbSkill
- loop-engineeringSkill
- model-aware-configSkill
- model-weakness-memorySkill
- multi-repo-learningSkill
- orchestration-workflowsSkill
- plan-driven-executionSkill
- plan-from-specSkill
- prd-from-contextSkill
- project-constitutionSkill
- prompt-architectureSkill
- prototype-before-commitmentSkill
- quality-engineSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
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 37
Check for tactical acceleration: Ask: am I taking the quickest path to make this work today?
- Distinctive: line 43
Prefer deep classes over deep hierarchies: Before adding inheritance, ask: does this actually reduce caller complexity?
- Distinctive: line 57
Paralysis: Not every decision needs strategic weight.
“Common” is measured: kept by at least 6 in 10 of the 7 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
Software-Design-Philosophy Prompt
Purpose
Apply John Ousterhout's design principles — deep modules, complexity management, strategic investment — to produce AI-generated code that is maintainable, not just functional.
When to use
- Designing new modules, APIs, or abstractions
- Reviewing a system for complexity accumulation
- Deciding between tactical "just fix it" vs strategic design investment
- Choosing between deep vs shallow module boundaries
- Evaluating inheritance hierarchies vs composition
Inputs
- Module or API surface description (current or desired)
- List of known change drivers (what is likely to evolve)
- Existing interface signatures and implementation sizes
- Complexity signals: how many lines to implement a simple feature? How many files must change?
Workflow
- Assess module depth. Compare interface complexity (parameters, types, preconditions) against implementation complexity. Flag shallow modules — those where the interface is nearly as complex as the implementation. For AI: avoid generating thin wrappers that expose all internals.
- Check for tactical acceleration. Ask: am I taking the quickest path to make this work today? If yes, pause and identify the strategic alternative. Spend design time proportional to the expected lifespan of the code.
- Enforce information hiding. Identify each design decision that is likely to change (the "secrets"). Verify those secrets are encapsulated behind stable interfaces, not leaked into callers. For AI: when generating code, explicitly note what is likely to change.
- Evaluate complexity accumulation. Review the last 5–10 changes to the module. Is each change adding new parameters, new exposed state, or new caller-visible behavior? If complexity is trending upward, refactor before adding more. For AI: flag when a module needs simplification before extension.
- Prefer deep classes over deep hierarchies. Before adding inheritance, ask: does this actually reduce caller complexity? If the hierarchy exists only to share implementation, prefer composition or a flatter design.
Outputs
- Module depth report: interface vs implementation complexity ratio
- Identified "secrets" that are currently exposed
- List of tactical shortcuts that should be replaced
- Refactoring proposals for modules trending toward complexity
- Composition alternatives for proposed inheritance chains
Failure modes
- False depth. A module with few parameters but complex hidden side effects is not deep — it's leaky. Side effects count as interface complexity.
- Premature deepening. Abstracting before understanding the variation domain creates wrong abstractions. Let concrete needs drive module shape.
- Paralysis. Not every decision needs strategic weight. Use the 80/20 heuristic: ~20% of modules deserve deep design thinking.
- Dogmatic information hiding. Hiding everything prevents extension points. Secrets = things likely to change; everything else can be reasonable to expose.
Verification checklist
- Each module's interface is measurably simpler than its implementation
- No module exposes implementation details as API surface
- Design decisions likely to change are hidden behind interfaces
- Recent changes have not increased module complexity monotonically
- Inheritance hierarchies are shallow (≤ 2–3 levels) and justified per-level
- Composition is preferred over inheritance for code reuse
- Strategic improvements account for ~20% of development time
- Shallow modules have been identified and flagged for merging or deepening
Related skills
- Code Complete Construction Discipline — defensive programming, naming, data-first design complement deep module design
- Clean Code — naming and function shape interface concerns
- Software Engineering at Google — review and testing culture for managing complexity
Constitution alignment
Aligns with the project's emphasis on clarity and maintainability over raw feature velocity. Deep modules directly serve the "what before how" principle by forcing interface design before implementation.
Ghi chú tiếng Việt
Áp dụng tư duy "deep module" khi thiết kế API: interface đơn giản hơn implementation rõ rệt. Dành ~20% thời gian cho cải tiến cấu trúc thay vì chỉ thêm tính năng. Giấu thông tin dễ thay đổi sau interface ổn định. Phát hiện và tái cấu trúc module đang tích lũy độ phức tạp.
Attribution: "A Philosophy of Software Design (John Ousterhout, Yaknyam Press) — ideas adapted, original wording."
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.

