Distillate

AI agentsLesson 5openfrom distillate

Real-World Engineering Skills: From Unslop to Deep Architecture Refactoring

What battle-tested production agent skills look like, from style filters to specification pipelines and architecture analysis.

In Lesson 1 and Lesson 2, we introduced the concept of skills: reusable, version-controlled markdown packages that shape how agents think and act. But what does a battle-tested production skill look like in practice?

This lesson dissects the most influential open-source agent skills in modern software engineering—from style-purging filters like Cursor's unslop to Matt Pocock's masterclass engineering suite: grill-with-docs, to-spec, to-tickets, improve-codebase-architecture, and codebase-design.

The Anatomy of Real-World Skills

Real-world skills fall along a spectrum ranging from Constraint Filters (deterministic style/tone enforcement) to Cognitive Interviewers (extracting implicit design decisions) to Architectural Engines (analyzing module depth and connascence).

Case Study: unslop (Cursor Plugin Stack)

Created for the Cursor editor plugin ecosystem, unslop is designed to eradicate "AI tells" from documentation, code comments, and technical summaries.

Notice how unslop rejects vague advice like "write naturally". Instead, it provides a numbered catalog of specific syntactic violations:

The Specification Pipeline: grill-with-docs → to-spec → to-tickets

Matt Pocock’s engineering suite illustrates how multiple skills link together to form an end-to-end software development lifecycle for autonomous agents.

The Matt Pocock Workflow: Vague Idea → grill-with-docs interviews user and generates ADRs and GLOSSARY.md → to-spec synthesizes the final decisions into a specification issue → to-tickets decomposes the spec into vertical tracer-bullet slices sized for single context windows.

A. grill-with-docs: The Active Interviewer

Most developers make the mistake of asking an LLM to immediately generate code. grill-with-docs forbids immediate implementation.

B. to-spec: Capturing the Cleared Path

When a task spans multiple agent sessions, conversation history explodes. to-spec halts discovery and creates a frozen specification:

C. to-tickets: Vertical Slices over Horizontal Layers

Horizontal slicing (e.g. "Ticket 1: write all schemas", "Ticket 2: write all endpoints", "Ticket 3: write all frontend") is an AI anti-pattern: nothing works until the very end, and error states accumulate silently.

Architectural Skills: codebase-design & improve-codebase-architecture

The most advanced skills don't just format text; they encode rigorous software engineering theory into the agent's analytical lens.

codebase-design: Deep Modules & Information Hiding

Based on John Ousterhout’s A Philosophy of Software Design and David Parnas’s classic paper on modularization, this skill arms the agent with an unambiguous design rubric:

Deep vs Shallow Modules: A shallow module exposes a large, complex interface with very little hidden implementation. A deep module exposes a small, simple interface while hiding extensive internal implementation complexity.

improve-codebase-architecture: Hunting Connascence

This skill directs the agent to scan codebases for leaking concerns using Connascence (the degree to which a change in one component forces a change in another):

Connascence TypeWhat It MeansHow the Skill Fixes It
Connascence of NameModules must agree on symbol names.Acceptable at module boundaries; standard refactor.
Connascence of ExecutionOrder of operations matters (Function A must be called before Function B).Encapsulate the sequence inside a single deep method so callers cannot get the order wrong.
Connascence of AlgorithmTwo modules must share an identical calculation (e.g. hashing, checksums, token encoding).Extract algorithm into one single-purpose module; eliminate duplication.

Quick Check

Why does to-tickets recommend breaking plans into vertical "tracer bullet" slices rather than horizontal architectural layers?

References & Primary Skill Repositories