Speq Design Philosophy logo

Speq Design Philosophy

Community
marconae
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.

Overview

Publishermarconae
Repositoryspeq-skill
Skill namespeq-design-philosophy
Stars
54
Forks
10
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by marconae on GitHub. Read the source before you install it.

Installation

Install the Speq Design Philosophy AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-design-philosophy
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marconae/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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Speq Design Philosophy in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Speq Design Philosophy on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Speq Design Philosophy is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Speq Design Philosophy AI skill do?

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

Why use Speq Design Philosophy on TypingMind?

Because you install it once and use it with any model. Speq Design Philosophy is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Speq Design Philosophy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-design-philosophy. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Speq Design Philosophy?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Speq Design Philosophy?

As many as you like. As long as a model supports skills, you can use Speq Design Philosophy with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Speq Design Philosophy AI skill free?

Yes. It is published on GitHub by marconae under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇