# manusingh090/hacktober architecture

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

- Interactive diagram: https://gitdiagram.com/manusingh090/hacktober
- Repository: https://github.com/manusingh090/hacktober

## Overview

Folklore mines maintainer pull-request feedback into reusable, path-scoped conventions, then can apply those conventions to changed files and export them as an Agent Skill. Its other distinct capability is replay evaluation against held-out review comments. The CLI and web dashboard are present in the tree, but their implementation was not sampled; their orchestration links are therefore shown as unverified. The README excerpt is empty, so capability coverage relies on sampled source and the source index.

Main entry points: [`folklore/folklore/cli.py`](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/cli.py) (Command-line entry), [`folklore/folklore/github.py`](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/github.py) (Comment and PR client), [`folklore/folklore/distill.py`](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/distill.py) (Rule distillation), [`folklore/folklore/review.py`](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/review.py) (PR review harness)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Feedback collection"]
  node_cli["Command-line entry<br/>[cli.py]"]
  node_github_client["Comment and PR client<br/>[github.py]"]
  node_web["Web dashboard<br/>[web.py]"]
  node_comments["Review comments<br/>[models.py]"]
end

subgraph group_mining["Convention mining"]
  node_cluster["Comment clustering<br/>[cluster.py]"]
  node_embed["Text embeddings<br/>[embed.py]"]
  node_distill["Rule distillation<br/>[distill.py]"]
  node_rules["Convention rules<br/>[models.py]"]
  node_store[("Local cache<br/>[store.py]")]
end

subgraph group_application["Review and export"]
  node_review["PR review harness<br/>[review.py]"]
  node_evaluate["Replay evaluation<br/>[evaluate.py]"]
  node_skill["Agent Skill export<br/>[skill.py]"]
end

subgraph group_support["Shared services"]
  node_llm["Chat model client<br/>[llm.py]"]
  node_config["Environment settings<br/>[config.py]"]
  node_net["TLS configuration<br/>[net.py]"]
  node_text["Text utilities<br/>[text.py]"]
end

node_maintainer(("Maintainer"))
node_github["GitHub API"]

node_maintainer -.->|"leaves feedback"| node_github
node_github_client -->|"fetches comments"| node_github
node_github_client -->|"reads PR files"| node_github
node_github_client -->|"posts review"| node_github
node_github_client -->|"parses comments"| node_comments
node_cluster -->|"embeds comments"| node_embed
node_cluster -->|"groups feedback"| node_comments
node_cluster -->|"extracts intent"| node_text
node_distill -->|"distills clusters"| node_cluster
node_distill -->|"merges similar"| node_embed
node_distill -->|"requests rules"| node_llm
node_distill -->|"creates rules"| node_rules
node_distill -->|"formats evidence"| node_text
node_store -->|"reads and writes"| node_rules
node_store -->|"reads and writes"| node_comments
node_review -->|"requests findings"| node_llm
node_review -->|"routes by path"| node_rules
node_review -->|"grounds evidence"| node_text
node_evaluate -->|"reuses rule routing"| node_review
node_evaluate -->|"judges and predicts"| node_llm
node_skill -->|"renders conventions"| node_rules
node_skill -->|"uses rule data"| node_store
node_embed -->|"uses settings"| node_config
node_embed -->|"configures TLS"| node_net
node_llm -->|"configures TLS"| node_net
node_github_client -->|"configures TLS"| node_net
node_cli -.->|"orchestrates"| node_github_client
node_cli -.->|"orchestrates"| node_cluster
node_cli -.->|"orchestrates"| node_distill
node_cli -.->|"orchestrates"| node_review
node_cli -.->|"orchestrates"| node_evaluate
node_cli -.->|"orchestrates"| node_skill
node_web -.->|"serves review view"| node_review

click node_cli "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/cli.py"
click node_github_client "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/github.py"
click node_web "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/web.py"
click node_comments "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/models.py"
click node_cluster "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/cluster.py"
click node_embed "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/embed.py"
click node_distill "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/distill.py"
click node_rules "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/models.py"
click node_store "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/store.py"
click node_review "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/review.py"
click node_evaluate "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/evaluate.py"
click node_skill "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/skill.py"
click node_llm "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/llm.py"
click node_config "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/config.py"
click node_net "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/net.py"
click node_text "https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/text.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_cli,node_github_client,node_web,node_comments toneBlue
class node_cluster,node_embed,node_distill,node_rules,node_store toneAmber
class node_review,node_evaluate,node_skill,node_github toneMint
class node_llm,node_config,node_net,node_text toneRose
class node_maintainer toneIndigo
```

## Components

### Feedback collection

- [Command-line entry](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/cli.py): `folklore/folklore/cli.py`
- [Comment and PR client](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/github.py): `folklore/folklore/github.py`
- [Web dashboard](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/web.py): `folklore/folklore/web.py`
- [Review comments](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/models.py): `folklore/folklore/models.py`

### Convention mining

- [Comment clustering](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/cluster.py): `folklore/folklore/cluster.py`
- [Text embeddings](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/embed.py): `folklore/folklore/embed.py`
- [Rule distillation](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/distill.py): `folklore/folklore/distill.py`
- [Convention rules](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/models.py): `folklore/folklore/models.py`
- [Local cache](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/store.py): `folklore/folklore/store.py`

### Review and export

- [PR review harness](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/review.py): `folklore/folklore/review.py`
- [Replay evaluation](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/evaluate.py): `folklore/folklore/evaluate.py`
- [Agent Skill export](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/skill.py): `folklore/folklore/skill.py`

### Shared services

- [Chat model client](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/llm.py): `folklore/folklore/llm.py`
- [Environment settings](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/config.py): `folklore/folklore/config.py`
- [TLS configuration](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/net.py): `folklore/folklore/net.py`
- [Text utilities](https://github.com/manusingh090/hacktober/blob/main/folklore/folklore/text.py): `folklore/folklore/text.py`

### Other components

- **Maintainer**
- **GitHub API**

## Connections

- Maintainer → GitHub API: leaves feedback
- Comment and PR client → GitHub API: fetches comments (evidence: `folklore/folklore/github.py`)
- Comment and PR client → GitHub API: reads PR files (evidence: `folklore/folklore/github.py`)
- Comment and PR client → GitHub API: posts review (evidence: `folklore/folklore/github.py`)
- Comment and PR client → Review comments: parses comments (evidence: `folklore/folklore/github.py`)
- Comment clustering → Text embeddings: embeds comments (evidence: `folklore/folklore/cluster.py`)
- Comment clustering → Review comments: groups feedback (evidence: `folklore/folklore/cluster.py`)
- Comment clustering → Text utilities: extracts intent (evidence: `folklore/folklore/cluster.py`)
- Rule distillation → Comment clustering: distills clusters (evidence: `folklore/folklore/distill.py`)
- Rule distillation → Text embeddings: merges similar (evidence: `folklore/folklore/distill.py`)
- Rule distillation → Chat model client: requests rules (evidence: `folklore/folklore/distill.py`)
- Rule distillation → Convention rules: creates rules (evidence: `folklore/folklore/distill.py`)
- Rule distillation → Text utilities: formats evidence (evidence: `folklore/folklore/distill.py`)
- Local cache → Convention rules: reads and writes (evidence: `folklore/folklore/store.py`)
- Local cache → Review comments: reads and writes (evidence: `folklore/folklore/store.py`)
- PR review harness → Chat model client: requests findings (evidence: `folklore/folklore/review.py`)
- PR review harness → Convention rules: routes by path (evidence: `folklore/folklore/review.py`)
- PR review harness → Text utilities: grounds evidence (evidence: `folklore/folklore/review.py`)
- Replay evaluation → PR review harness: reuses rule routing (evidence: `folklore/folklore/evaluate.py`)
- Replay evaluation → Chat model client: judges and predicts (evidence: `folklore/folklore/evaluate.py`)
- Agent Skill export → Convention rules: renders conventions (evidence: `folklore/folklore/skill.py`)
- Agent Skill export → Local cache: uses rule data (evidence: `folklore/folklore/skill.py`)
- Text embeddings → Environment settings: uses settings (evidence: `folklore/folklore/embed.py`)
- Text embeddings → TLS configuration: configures TLS (evidence: `folklore/folklore/embed.py`)
- Chat model client → TLS configuration: configures TLS (evidence: `folklore/folklore/llm.py`)
- Comment and PR client → TLS configuration: configures TLS (evidence: `folklore/folklore/github.py`)
- Command-line entry → Comment and PR client: orchestrates
- Command-line entry → Comment clustering: orchestrates
- Command-line entry → Rule distillation: orchestrates
- Command-line entry → PR review harness: orchestrates
- Command-line entry → Replay evaluation: orchestrates
- Command-line entry → Agent Skill export: orchestrates
- Web dashboard → PR review harness: serves review view
