# hardikpandya/stop-slop architecture

> Architecture diagram of the GitHub repository hardikpandya/stop-slop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hardikpandya/stop-slop
- Repository: https://github.com/hardikpandya/stop-slop

## Overview

#### Purpose and Delivery Model
Stop Slop is a promptable writing-editing skill, not an executable application. It supplies instructions and reference material for an LLM to identify and revise prose that exhibits common AI-generated stylistic patterns. Consumers load it into Claude Code, Claude Projects, custom instructions, or an API system prompt.

Primary entry point: `SKILL.md`.

#### Core Instruction Layer
`SKILL.md` defines the operational behavior: inspect supplied prose, detect prohibited language and stylistic patterns, revise toward direct, active, human-sounding writing, and assess output quality. It is the authoritative instruction payload that must remain available to the model during editing.

Paths:
- `SKILL.md`
- `README.md`

#### Phrase Detection Corpus
The phrase corpus supplies concrete lexical signals for “AI tells,” including throat-clearing introductions, emphasis crutches, business jargon, vague claims, and meta-commentary. The core skill can consult this material on demand rather than embedding every banned phrase in the main prompt.

Paths:
- `references/phrases.md`
- `SKILL.md`

#### Structural Pattern Rules
Structural guidance identifies higher-level prose shapes that phrase matching cannot reliably catch: binary contrasts, negative lists, dramatic fragments, rhetorical framing, false agency, detached narrator voice, and passive constructions. These rules constrain sentence construction and paragraph-level revision.

Paths:
- `references/structures.md`
- `SKILL.md`

#### Transformation Examples
Examples establish the intended interpretation of the rules through before/after prose transformations. They serve as few-shot calibration for models or engineers integrating the skill, especially where a literal rule could produce awkward revisions.

Paths:
- `references/examples.md`
- `SKILL.md`

#### Editing and Evaluation Flow
A host LLM receives source prose plus `SKILL.md`. It evaluates wording against the phrase corpus, checks sentence and structural rules, rewrites offending content while preserving meaning, then scores the result across directness, rhythm, trust, authenticity, and density. A total below 35/50 triggers further revision.

The important boundary is between the host runtime—which performs reasoning and generation—and this repository—which provides static prompt knowledge only.

#### Runtime and Integration Boundaries
There is no application runtime, database, build system, or external API implementation in the repository. The material runtime is an LLM platform, such as Claude Code, Claude Projects, or an API caller that injects these Markdown files into prompt context. Reference files are designed for selective loading when the main skill needs detailed phrase, structure, or example guidance.

Paths:
- `SKILL.md`
- `references/`
- `README.md`

Main entry points: [`SKILL.md`](https://github.com/hardikpandya/stop-slop/blob/main/SKILL.md) (Core editing skill), [`references/phrases.md`](https://github.com/hardikpandya/stop-slop/blob/main/references/phrases.md) (Phrase corpus), [`references/structures.md`](https://github.com/hardikpandya/stop-slop/blob/main/references/structures.md) (Structural rules), [`references/examples.md`](https://github.com/hardikpandya/stop-slop/blob/main/references/examples.md) (Transformation examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Static skill package"]
  node_readme["Integration guide<br/>documentation<br/>[README.md]"]
  node_skill["Core editing skill<br/>prompt instructions<br/>[SKILL.md]"]
  node_phrases["Phrase corpus<br/>reference corpus<br/>[phrases.md]"]
  node_structures["Structural rules<br/>reference rules<br/>[structures.md]"]
  node_examples["Transformation examples<br/>few-shot reference<br/>[examples.md]"]
end

subgraph group_runtime["Host runtime"]
  node_host{{"LLM platform<br/>external runtime"}}
  node_source["Source prose<br/>editing input"]
  node_detection["Pattern assessment<br/>LLM reasoning stage"]
  node_revision["Meaning-preserving rewrite<br/>LLM generation stage"]
  node_quality["Quality scoring<br/>LLM evaluation stage"]
  node_result["Edited prose<br/>editing output"]
end

node_readme -.->|"guides integration"| node_host
node_host -->|"loads"| node_skill
node_skill -.->|"consults on demand"| node_phrases
node_skill -.->|"consults on demand"| node_structures
node_skill -.->|"uses for calibration"| node_examples
node_source -->|"evaluate"| node_detection
node_skill -->|"editing instructions"| node_detection
node_phrases -.->|"lexical signals"| node_detection
node_structures -.->|"structural constraints"| node_detection
node_examples -.->|"revision calibration"| node_revision
node_detection -->|"identified issues"| node_revision
node_revision -->|"draft"| node_quality
node_quality -.->|"below 35/50"| node_revision
node_quality -->|"acceptable output"| node_result

click node_readme "https://github.com/hardikpandya/stop-slop/blob/main/README.md"
click node_skill "https://github.com/hardikpandya/stop-slop/blob/main/SKILL.md"
click node_phrases "https://github.com/hardikpandya/stop-slop/blob/main/references/phrases.md"
click node_structures "https://github.com/hardikpandya/stop-slop/blob/main/references/structures.md"
click node_examples "https://github.com/hardikpandya/stop-slop/blob/main/references/examples.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_skill,node_phrases,node_structures,node_examples toneBlue
class node_host,node_source,node_detection,node_revision,node_quality,node_result toneAmber
```

## Components

### Static skill package

Prompt knowledge supplied to a host LLM.

- [Integration guide](https://github.com/hardikpandya/stop-slop/blob/main/README.md): documentation · Explains how consumers load and use the skill. · `README.md`
- [Core editing skill](https://github.com/hardikpandya/stop-slop/blob/main/SKILL.md): prompt instructions · Authoritative editing behavior and quality threshold. · `SKILL.md`
- [Phrase corpus](https://github.com/hardikpandya/stop-slop/blob/main/references/phrases.md): reference corpus · Lexical signals for common AI-written prose patterns. · `references/phrases.md`
- [Structural rules](https://github.com/hardikpandya/stop-slop/blob/main/references/structures.md): reference rules · Sentence and paragraph patterns beyond phrase matching. · `references/structures.md`
- [Transformation examples](https://github.com/hardikpandya/stop-slop/blob/main/references/examples.md): few-shot reference · Before/after revisions calibrate rule interpretation. · `references/examples.md`

### Host runtime

External LLM environment performs reasoning and generation.

- **LLM platform**: external runtime · Claude Code, Projects, or an API caller injects prompt context.
- **Source prose**: editing input · User-supplied prose evaluated and revised by the host LLM.
- **Pattern assessment**: LLM reasoning stage · Checks lexical and structural violations.
- **Meaning-preserving rewrite**: LLM generation stage · Produces direct, active, human-sounding prose.
- **Quality scoring**: LLM evaluation stage · Scores directness, rhythm, trust, authenticity, and density; revise below 35/50.
- **Edited prose**: editing output

## Connections

- Integration guide → LLM platform: guides integration
- LLM platform → Core editing skill: loads
- Core editing skill → Phrase corpus: consults on demand
- Core editing skill → Structural rules: consults on demand
- Core editing skill → Transformation examples: uses for calibration
- Source prose → Pattern assessment: evaluate
- Core editing skill → Pattern assessment: editing instructions
- Phrase corpus → Pattern assessment: lexical signals
- Structural rules → Pattern assessment: structural constraints
- Transformation examples → Meaning-preserving rewrite: revision calibration
- Pattern assessment → Meaning-preserving rewrite: identified issues
- Meaning-preserving rewrite → Quality scoring: draft
- Quality scoring → Meaning-preserving rewrite: below 35/50
- Quality scoring → Edited prose: acceptable output
