Logo: Speq Design Philosophy

Speq Design Philosophy

Organisatioun
exasol-labs
speq-design-philosophy

Complexity-management design principles (deep modules, information hiding, dependency direction) for speq agents like /speq-plan or /speq-implement. Not for general design work.

Iwwersiicht

Editeurexasol-labs
Repositoryspeq-skill
Skill-Nummspeq-design-philosophy
Stären
54
Forks
6
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    exasol-labs huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Speq Design Philosophy an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/exasol-labs/speq-skill/tree/main/.claude/skills/speq-design-philosophy
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exasol-labs/speq-skill.git /tmp/speq-skill
mkdir -p .claude/skills
cp -r /tmp/speq-skill/.claude/skills/speq-design-philosophy .claude/skills/speq-design-philosophy
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Speq Design Philosophy an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Speq Design Philosophy automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Speq Design Philosophy net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Design Philosophy

Complexity-management framework. Draws on J. Ousterhout's A Philosophy of Software Design and the dependency rule from R. Martin's Clean Architecture.

Core Principle

Complexity is what erodes a system's understandability over time. Judge every design decision by whether it adds or removes complexity. Do not judge by line count, module count, or named patterns.

Deep Modules

Weigh a module by what it does for callers relative to what its interface costs them to learn. Deep: the interface is far easier to use than the internals would be to rebuild. Shallow: learning the interface costs almost as much as writing the code yourself.

SignalFix
Interface as complex as a caller would write themselvesDeepen it — absorb more complexity, expose less
Many small modules named for a role, not a responsibility (-Manager, -Handler, -Processor)"Classitis" — merge related shallow modules into one deeper one
A function whose entire body is a call to another function with the same argumentsMerge it into whichever side actually holds logic

Depth, not size, decides whether an abstraction earns its place.

Information Hiding & Coupling

A module is well-designed when the rest of the system stays ignorant of a decision it makes internally. Coupling: the same decision surfaces in more than one module. Treat coupling as the defect class that deserves the closest attention.

  • Temporal coupling: modules organized around execution order (read, then parse, then write) instead of around what each stage knows. Every stage then carries the same format knowledge.
  • Implicit coupling: two modules independently assume the same data format, protocol, or convention, with nothing enforcing agreement.

Fix: combine the modules that share the decision, or give the decision its own module and make both depend on it.

General- vs. Special-Purpose Modules

Test: an interface handles every need the code has today (see /speq-code-guardrails' YAGNI Checks for the "not tomorrow's" half) without forcing narrow, special-case methods onto callers.

A configuration parameter is a decision the module declined to make. Prefer a sensible default, auto-detection, or elimination.

Strategic vs. Tactical Programming

Tactical: ship the feature, leave the module harder to work with. Strategic: invest 10-20% of every change in design quality, not a separate cleanup phase. Flag a pattern of tactical shipping as a risk. Do not emulate it.

Comments as Design Intent

Per /speq-code-guardrails' Comments rule: a public/interface doc comment states design intent, not just purpose. If the comment is hard to write, the abstraction usually has no coherent shape yet. This does not relax the ban on inline or private-method comments.

Dependencies & Boundaries

Per Martin's Clean Architecture:

  • Dependencies point from volatile to stable. Business logic never names a delivery mechanism, storage engine, or framework.
  • Business logic performs no I/O and reads no ambient state.
  • The consumer defines the abstraction it needs, in its own vocabulary — never shaped around a provider's API (Dependency Inversion).
  • Construct concrete implementations only at the entry point; no module builds its own dependencies.
  • No cycles in the module dependency graph.
  • Group modules by reason to change, not by technical role.
  • Extend by adding a case, not by editing a dispatch (Open/Closed).

Quick Diagnostic

If a change introduces a new module, interface, or boundary, answer every question. No silent pass. A "no" names the fix. A change that introduces none of these can skip the table.

QuestionIf no
Does a one-sentence summary capture what a module is responsible for?It's doing too much, or nothing coherent — split it
Is calling the module noticeably easier than reimplementing it would be?The interface costs more than it saves — hide more, expose less
Would changing how a module works internally force an edit anywhere outside it?A decision has leaked across a boundary — pull it into one owning module
Does a public doc comment explain the reasoning behind an abstraction, not only restate its name?Rewrite it — resistance to writing it usually means the design needs rework
Is there exactly one module that owns each significant design decision?Reorganize by what code knows, not by when it executes
Could someone unfamiliar with the codebase tell where one module ends and the next begins, without reading either's internals?Simplify the interfaces, or state the boundary in the interface doc comment
Does any tactical shortcut in this change have a scheduled follow-up to revisit it?Schedule one, or reconsider taking the shortcut at all
Does business logic depend only inward — never on a delivery mechanism, storage engine, or framework?Invert the dependency; the consumer defines the abstraction

Attribution

Draws on established practice, including J. Ousterhout (A Philosophy of Software Design), R. Martin (Clean Architecture), and D. Parnas (information hiding). Inspired by the wondelai/skills collection.

Heefeg gestallte Froen

Wat mécht de KI-Skill Speq Design Philosophy?

Complexity-management design principles (deep modules, information hiding, dependency direction) for speq agents like /speq-plan or /speq-implement. Not for general design work.

Firwat Speq Design Philosophy op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Speq Design Philosophy besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Speq Design Philosophy an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/exasol-labs/speq-skill/tree/main/.claude/skills/speq-design-philosophy an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Speq Design Philosophy benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Speq Design Philosophy benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Speq Design Philosophy domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Speq Design Philosophy gratis?

Jo. exasol-labs huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇