# petergyang/no-ai-slop architecture

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

- Interactive diagram: https://gitdiagram.com/petergyang/no-ai-slop
- Repository: https://github.com/petergyang/no-ai-slop

## Overview

#### Purpose and delivery model

No AI Slop is a distributable agent skill for editing or detecting formulaic AI-writing patterns while retaining the author’s voice. It is not a conventional application: its primary runtime is a compatible AI agent (ChatGPT, Codex, Claude Code, or skill-aware CLI). The authored behavior lives in `skills/no-ai-slop/SKILL.md`; installable plugin metadata is in `.codex-plugin/plugin.json`.

#### User entry points

The primary invocation is the `/no-ai-slop` skill command, which accepts writing to revise or a detection-oriented prompt. The skill also supports a deliberate satire/generation mode for producing exaggerated “slop.” Agent discovery and integration are defined through:
- `skills/no-ai-slop/SKILL.md`
- `agents/openai.yaml`
- `.codex-plugin/plugin.json`

#### Core editing policy

`SKILL.md` is the system’s central specification and execution contract. It defines the catalog of unwanted patterns, voice-preservation constraints, editing workflow, and expected reporting of changes. The skill must distinguish between identifying patterns and asserting that text was AI-written; detection quotes patterns rather than inferring authorship.
- `skills/no-ai-slop/SKILL.md`

#### Pattern detection and revision stages

The skill’s main control flow is: receive text and user intent; classify the requested mode; inspect text for the defined slop patterns and general prose issues; either report matched language or revise it; then explain material edits. The pattern catalog includes binary contrasts, generic openers, faux-insight framing, reveal constructions, empty emphasis, puffery, vague attribution, synonym cycling, and manufactured profundity.
- `skills/no-ai-slop/SKILL.md`
- `skills/no-ai-slop/eval.md`

#### Quality boundary and evaluation

The evaluation document acts as a quality gate for the skill’s output. It checks that revisions remove target patterns without replacing them with equally generic phrasing, preserve concrete details and voice, and meet the required response behavior. This separates the editable instruction set from its acceptance criteria.
- `skills/no-ai-slop/eval.md`
- `skills/no-ai-slop/SKILL.md`

#### Packaging and distribution

The repository packages the skill as a Codex/ChatGPT plugin. Plugin identity, capabilities, and discovery metadata are declared in `.codex-plugin/plugin.json`. `scripts/build_plugin.py` builds and validates the package, creating a release boundary between authored skill files and a distributable artifact. GitHub Actions automates this plugin-oriented lifecycle.
- `.codex-plugin/plugin.json`
- `scripts/build_plugin.py`
- `.github/workflows/plugin.yml`

#### External ecosystem and governance

The project relies on external agent platforms and the `npx skills` installation ecosystem rather than hosting its own service or database. Its operational/legal boundary is documented by repository-level privacy and terms documents, while `agents/openai.yaml` provides provider-specific agent configuration.
- `agents/openai.yaml`
- `PRIVACY.md`
- `TERMS.md`

Main entry points: [`skills/no-ai-slop/SKILL.md`](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md) (/no-ai-slop skill), [`scripts/build_plugin.py`](https://github.com/petergyang/no-ai-slop/blob/main/scripts/build_plugin.py) (Plugin builder), [`.codex-plugin/plugin.json`](https://github.com/petergyang/no-ai-slop/blob/main/.codex-plugin/plugin.json) (Plugin manifest), [`skills/no-ai-slop/eval.md`](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/eval.md) (Output quality gate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Skill authoring"]
  node_skill["/no-ai-slop skill<br/>skill specification<br/>[SKILL.md]"]
  node_mode["Mode classification<br/>skill stage<br/>[SKILL.md]"]
  node_patterns["Pattern catalog<br/>editing policy<br/>[SKILL.md]"]
  node_inspection["Text inspection<br/>skill stage<br/>[SKILL.md]"]
  node_response["Revision or detection report<br/>skill output<br/>[SKILL.md]"]
  node_evaluation["Output quality gate<br/>acceptance criteria<br/>[eval.md]"]
end

subgraph group_distribution["Plugin delivery"]
  node_agent_config["OpenAI agent config<br/>provider configuration<br/>[openai.yaml]"]
  node_plugin_manifest["Plugin manifest<br/>plugin metadata<br/>[plugin.json]"]
  node_builder["Plugin builder<br/>build script<br/>[build_plugin.py]"]
  node_ci["Plugin automation<br/>GitHub Actions workflow<br/>[plugin.yml]"]
end

subgraph group_ecosystem["External ecosystem"]
  node_agent{{"Compatible AI agent<br/>agent runtime"}}
  node_install{{"npx skills ecosystem<br/>installation channel"}}
end

node_user(("Author<br/>user input"))
node_governance["Privacy and terms<br/>governance documents<br/>[PRIVACY.md]"]

node_user -->|"invokes"| node_agent
node_agent -->|"loads command"| node_skill
node_skill -->|"classifies intent"| node_mode
node_mode -->|"revision or detection"| node_inspection
node_mode -->|"satire generation"| node_response
node_patterns -->|"guides matching"| node_inspection
node_inspection -->|"drives output"| node_response
node_skill -->|"defines"| node_patterns
node_evaluation -.->|"accepts output quality"| node_response
node_skill -->|"packages"| node_builder
node_plugin_manifest -->|"supplies metadata"| node_builder
node_agent_config -.->|"integrates provider"| node_plugin_manifest
node_ci -->|"runs"| node_builder
node_builder -->|"publishes package"| node_install
node_install -->|"installs skill"| node_agent
node_governance -.->|"governs use"| node_agent

click node_skill "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md"
click node_mode "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md"
click node_patterns "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md"
click node_inspection "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md"
click node_response "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md"
click node_evaluation "https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/eval.md"
click node_agent_config "https://github.com/petergyang/no-ai-slop/blob/main/agents/openai.yaml"
click node_plugin_manifest "https://github.com/petergyang/no-ai-slop/blob/main/.codex-plugin/plugin.json"
click node_builder "https://github.com/petergyang/no-ai-slop/blob/main/scripts/build_plugin.py"
click node_ci "https://github.com/petergyang/no-ai-slop/blob/main/.github/workflows/plugin.yml"
click node_governance "https://github.com/petergyang/no-ai-slop/blob/main/PRIVACY.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_skill,node_mode,node_patterns,node_inspection,node_response,node_evaluation toneBlue
class node_agent_config,node_plugin_manifest,node_builder,node_ci toneAmber
class node_agent,node_install toneMint
class node_user,node_governance toneNeutral
```

## Components

### Skill authoring

The authored instruction set and its quality contract.

- [/no-ai-slop skill](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md): skill specification · Central execution contract for editing, detection, and satire modes. · `skills/no-ai-slop/SKILL.md`
- [Mode classification](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md): skill stage · Selects revision, detection, or deliberate satire generation. · `skills/no-ai-slop/SKILL.md`
- [Pattern catalog](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md): editing policy · Defines formulaic patterns and voice-preservation constraints. · `skills/no-ai-slop/SKILL.md`
- [Text inspection](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md): skill stage · Finds target patterns and general prose issues. · `skills/no-ai-slop/SKILL.md`
- [Revision or detection report](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/SKILL.md): skill output · Revises text or quotes matched language without asserting authorship. · `skills/no-ai-slop/SKILL.md`
- [Output quality gate](https://github.com/petergyang/no-ai-slop/blob/main/skills/no-ai-slop/eval.md): acceptance criteria · Checks pattern removal, retained voice and detail, and response behavior. · `skills/no-ai-slop/eval.md`

### Plugin delivery

Packaging and automated release of the skill.

- [OpenAI agent config](https://github.com/petergyang/no-ai-slop/blob/main/agents/openai.yaml): provider configuration · Provider-specific agent integration. · `agents/openai.yaml`
- [Plugin manifest](https://github.com/petergyang/no-ai-slop/blob/main/.codex-plugin/plugin.json): plugin metadata · Declares plugin identity, capabilities, and discovery metadata. · `.codex-plugin/plugin.json`
- [Plugin builder](https://github.com/petergyang/no-ai-slop/blob/main/scripts/build_plugin.py): build script · Builds and validates the distributable package. · `scripts/build_plugin.py`
- [Plugin automation](https://github.com/petergyang/no-ai-slop/blob/main/.github/workflows/plugin.yml): GitHub Actions workflow · Automates the plugin-oriented lifecycle. · `.github/workflows/plugin.yml`

### External ecosystem

Agent runtimes and installation channels consume the plugin.

- **Compatible AI agent**: agent runtime · Runs the installed skill command.
- **npx skills ecosystem**: installation channel · External installation ecosystem for the distributed skill.

### Other components

- **Author**: user input · Supplies text and an editing or detection request.
- [Privacy and terms](https://github.com/petergyang/no-ai-slop/blob/main/PRIVACY.md): governance documents · Documents the project's operational and legal boundary. · `PRIVACY.md`

## Connections

- Author → Compatible AI agent: invokes
- Compatible AI agent → /no-ai-slop skill: loads command
- /no-ai-slop skill → Mode classification: classifies intent
- Mode classification → Text inspection: revision or detection
- Mode classification → Revision or detection report: satire generation
- Pattern catalog → Text inspection: guides matching
- Text inspection → Revision or detection report: drives output
- /no-ai-slop skill → Pattern catalog: defines
- Output quality gate → Revision or detection report: accepts output quality
- /no-ai-slop skill → Plugin builder: packages
- Plugin manifest → Plugin builder: supplies metadata
- OpenAI agent config → Plugin manifest: integrates provider
- Plugin automation → Plugin builder: runs
- Plugin builder → npx skills ecosystem: publishes package
- npx skills ecosystem → Compatible AI agent: installs skill
- Privacy and terms → Compatible AI agent: governs use
