Growing Outside In Systems logo

Growing Outside In Systems

Community
lexler
growing-outside-in-systems

Drive feature development using Outside-In TDD with Hexagonal Architecture. Design emerges through inline code, in-memory fakes, interface extraction, and deferred I/O. Use when building features, writing tests, or structuring backend services. Triggers on: TDD, outside-in, hexagonal, ports and adapters, emergent design, acceptance test, component test, walking skeleton, in-memory fakes, component, contract test, adapter, fast tests, sub-second feedback. Language-agnostic (Go, Rust, Python, TypeScript, Java, C#).

Overview

Publisherlexler
Repositoryskill-factory
Skill namegrowing-outside-in-systems
Stars
239
Forks
63
Bundled files
4
LicenseApache-2.0
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.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Growing Outside In Systems 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/lexler/skill-factory/tree/main/output_skills/practices/growing-outside-in-systems
  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/lexler/skill-factory.git /tmp/skill-factory
mkdir -p .claude/skills
cp -r /tmp/skill-factory/output_skills/practices/growing-outside-in-systems .claude/skills/growing-outside-in-systems
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Growing Outside In Systems 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 Growing Outside In Systems 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 Growing Outside In Systems 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.

STARTER_CHARACTER = 🔴🟢

Outside-In TDD with Hexagonal Architecture

Build features by driving design from the outside in. Every feature starts with a failing acceptance test. Design emerges through disciplined Red-Green-Refactor cycles. Infrastructure is deferred until the domain API is proven.

Unlike inside-out TDD with mocks, this approach tests behavior at the boundary — not implementation details — making the suite refactor-friendly by design. See methodology.md.

For canonical terms used throughout, see references/glossary.md.


The Two Loops

Outer loop (Acceptance test): Write a failing test scoped at the service/system boundary. This test exercises integration across Bounded Contexts using in-memory adapters. It defines "done."

Inner loop (Red-Green-Refactor): Cycles inside a Bounded Context to make the outer test pass. Drop into this loop only to implement what the acceptance test demands.

Every feature starts from the outside in. The acceptance test drives the process.


Test Priorities

Acceptance and component tests are the primary instruments. Unit tests are the exception.

  • Acceptance tests — service/system boundary, in-process, in-memory adapters; read as specifications
  • Component tests — single Bounded Context; drives internal module design via in-memory adapters
  • Unit tests — exception only: well isolated ,genuinely complex, algorithmic, or combinatorial logic

See testing-strategy.md for full definitions, the testing matrix, and contract test patterns.


The Testing Matrix

FastSlow
Large ScopeAcceptance & Component — daily driverE2E — minimize
Small ScopeUnit — use sparinglyContract — CI only

Sub-second feedback is non-negotiable. If tests take seconds, the team stops refactoring and the system decays.


Emergent Design Workflow

Follow this sequence strictly within each Bounded Context:

  1. Inline — implement logic naively inside business code; use local variables, lists, maps; no abstractions
  2. In-Memory adapter — once behavior is verified, extract logic into a dedicated in-memory adapter implementation
  3. Interface — extract the adapter interface from what actually emerged (not theoretical guesses)
    • Checkpoint: all types in the interface must live inside the hexagon
    • I/O Checkpoint: if no I/O and not out-of-process → keep inside hexagon; do not create a port
  4. Deferred I/O — implement the real adapter (database, network, file system) only after the API is mature
  5. Refactor the inline code inside the hexagon

The sequence is non-negotiable. Each step collects evidence about what the adapter actually needs. See methodology.md for detailed rationale and the walking skeleton.


Hexagonal Architecture

The Domain Layer is the center. All I/O lives behind adapter interfaces at the boundary.

Dependency Rule: Infrastructure(adapters) → Application(ports) → Domain (outer depends on inner, never reverse)

I/O Classification Rule: if it does not do I/O and does not run out-of-process → belongs inside the hexagon; otherwise → adapter.

Port-referenced types must live inside the hexagon. If a port signature references a type in the adapter layer, the hexagon depends outward — a violation.

Naming:

  • Ports: For[Something] (e.g., ForCalculatingTaxes, ForGettingTaxRates)
  • Adapters: [Something]Adapter (e.g., WebUIAdapter, SQLDatabaseAdapter)

See folder-structure.md for full folder structure, private/public hexagon split, cross-hexagon dependency rule, adapter design patterns, and test seams.


In-Memory Fakes, Not Mocks

Use in-memory fakes for all adapter boundaries. Never mocks or stubs for domain-level testing.

Fakes are real implementations backed by simple data structures (maps, lists). They have actual behavior. Mocks only verify call sequences — they couple tests to implementation details and break on every refactor.

Contract tests verify the real adapter matches the fake's behavior. See testing-strategy.md.


Walking Skeleton

For new projects or major new components: build a minimal end-to-end implementation first to pay integration cost upfront. Once upright, pivot to the emergent design workflow. See methodology.md.


Composition Root (Configurator)

Wires all adapter interfaces at startup. Used in two contexts:

  • Production: real adapter implementations (database, network, file system)
  • Tests: in-memory adapter implementations → fast, deterministic test harness

The same business logic runs in both contexts — only the adapters differ.


Feature Implementation Order

  1. Write a failing acceptance test — defines "done"
  2. Drop into the inner loop — Red-Green-Refactor
  3. Follow the emergent design sequence — Inline → In-Memory → Interface → Deferred I/O
  4. Add component tests if needed — when a Bounded Context grows complex
  5. Add unit tests only when justified — complex algorithms, combinatorial logic
  6. Implement real adapters last — verify with contract tests against in-memory fakes

Listen to the Tests

Difficulty writing a test is a design signal, not a skill problem:

  • Hard to set up → too many dependencies; split or rethink adapter boundaries
  • Hard to assert on → API is hiding or tangling information callers need
  • Fragile, breaks on refactor → testing implementation details; step up to component/acceptance test
  • Slow → hitting real I/O; find the missing adapter boundary

Do not fight the tests. Reshape the code until the test is easy to write.


Reference Documentation

  • glossary.md — canonical terms
  • folder-structure.md — folder structure, private/public hexagon, cross-hexagon rules, adapter patterns, test seams
  • testing-strategy.md — full testing matrix, acceptance/component test rules, contract test pattern
  • methodology.md — why outside-in over regular TDD, walking skeleton, emergent design deep-dive, listen to the tests, anti-patterns

Sources

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Growing Outside In Systems AI skill do?

Drive feature development using Outside-In TDD with Hexagonal Architecture. Design emerges through inline code, in-memory fakes, interface extraction, and deferred I/O. Use when building features, writing tests, or structuring backend services. Triggers on: TDD, outside-in, hexagonal, ports and adapters, emergent design, acceptance test, component test, walking skeleton, in-memory fakes, component, contract test, adapter, fast tests, sub-second feedback. Language-agnostic (Go, Rust, Python, TypeScript, Java, C#).

Why use Growing Outside In Systems on TypingMind?

Because you install it once and use it with any model. Growing Outside In Systems 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 Growing Outside In Systems in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lexler/skill-factory/tree/main/output_skills/practices/growing-outside-in-systems. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Growing Outside In Systems?

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 Growing Outside In Systems?

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

Is the Growing Outside In Systems AI skill free?

Yes. It is published on GitHub by lexler under the Apache-2.0 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 👇