# mankidev/antialgorithm architecture

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

- Interactive diagram: https://gitdiagram.com/mankidev/antialgorithm
- Repository: https://github.com/mankidev/antialgorithm

## Overview

antialgorithm is an agent skill for creative work, accompanied by scripts for idea seeding, tracking reused creative moves, roughening SVG artwork, and checking SVG text legibility. The principal workflow is an agent using the skill to develop a creative result; optional scripts support ideation and visual finishing or review. The README documents these capabilities, while excerpts show the script implementations and history calls. The exact contents of SKILL.md and visuals.md were not sampled, so their internal behavior is not detailed.

Main entry points: [`SKILL.md`](https://github.com/mankidev/antialgorithm/blob/main/SKILL.md) (Creative skill), [`scripts/seed.py`](https://github.com/mankidev/antialgorithm/blob/main/scripts/seed.py) (Seed generator), [`scripts/moves.py`](https://github.com/mankidev/antialgorithm/blob/main/scripts/moves.py) (Move log), [`scripts/check.py`](https://github.com/mankidev/antialgorithm/blob/main/scripts/check.py) (SVG checker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Agent guidance"]
  node_skillguide["Creative skill<br/>[SKILL.md]"]
  node_visualrules["Visual rules<br/>[visuals.md]"]
end

subgraph group_creative["Creative tools"]
  node_seed["Seed generator<br/>[seed.py]"]
  node_moves["Move log<br/>[moves.py]"]
  node_history[("History store<br/>[history.py]")]
end

subgraph group_visual["SVG tools"]
  node_rough["SVG roughener<br/>[rough.py]"]
  node_check["SVG checker<br/>[check.py]"]
end

node_user(("User or agent"))
node_renderer["SVG renderer"]
node_result["Creative output"]

node_user -->|"uses"| node_skillguide
node_user -->|"runs"| node_seed
node_user -->|"records or views"| node_moves
node_user -->|"roughens SVG"| node_rough
node_user -->|"checks SVG"| node_check
node_skillguide -->|"guides creation"| node_result
node_visualrules -->|"guides visual work"| node_result
node_moves -->|"loads and saves"| node_history
node_seed -->|"loads and saves"| node_history
node_check -->|"renders with"| node_renderer

click node_skillguide "https://github.com/mankidev/antialgorithm/blob/main/SKILL.md"
click node_visualrules "https://github.com/mankidev/antialgorithm/blob/main/visuals.md"
click node_seed "https://github.com/mankidev/antialgorithm/blob/main/scripts/seed.py"
click node_moves "https://github.com/mankidev/antialgorithm/blob/main/scripts/moves.py"
click node_history "https://github.com/mankidev/antialgorithm/blob/main/scripts/history.py"
click node_rough "https://github.com/mankidev/antialgorithm/blob/main/scripts/rough.py"
click node_check "https://github.com/mankidev/antialgorithm/blob/main/scripts/check.py"

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_skillguide,node_visualrules,node_user toneBlue
class node_seed,node_moves,node_history toneAmber
class node_rough,node_check toneMint
class node_renderer,node_result toneIndigo
```

## Components

### Agent guidance

- [Creative skill](https://github.com/mankidev/antialgorithm/blob/main/SKILL.md): `SKILL.md`
- [Visual rules](https://github.com/mankidev/antialgorithm/blob/main/visuals.md): `visuals.md`

### Creative tools

- [Seed generator](https://github.com/mankidev/antialgorithm/blob/main/scripts/seed.py): `scripts/seed.py`
- [Move log](https://github.com/mankidev/antialgorithm/blob/main/scripts/moves.py): `scripts/moves.py`
- [History store](https://github.com/mankidev/antialgorithm/blob/main/scripts/history.py): `scripts/history.py`

### SVG tools

- [SVG roughener](https://github.com/mankidev/antialgorithm/blob/main/scripts/rough.py): `scripts/rough.py`
- [SVG checker](https://github.com/mankidev/antialgorithm/blob/main/scripts/check.py): `scripts/check.py`

### Other components

- **User or agent**
- **SVG renderer**
- **Creative output**

## Connections

- User or agent → Creative skill: uses (evidence: `README.md`)
- User or agent → Seed generator: runs (evidence: `README.md`)
- User or agent → Move log: records or views (evidence: `README.md`)
- User or agent → SVG roughener: roughens SVG (evidence: `README.md`)
- User or agent → SVG checker: checks SVG (evidence: `README.md`)
- Creative skill → Creative output: guides creation (evidence: `README.md`)
- Visual rules → Creative output: guides visual work (evidence: `README.md`)
- Move log → History store: loads and saves (evidence: `scripts/moves.py`)
- Seed generator → History store: loads and saves (evidence: `scripts/seed.py`)
- SVG checker → SVG renderer: renders with (evidence: `scripts/check.py`)
