# aydincan/turk-hukuku-ve-codex architecture

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

- Interactive diagram: https://gitdiagram.com/aydincan/turk-hukuku-ve-codex
- Repository: https://github.com/aydincan/turk-hukuku-ve-codex

## Overview

This repository packages Turkish-law guidance as Codex Agent Skills. The documented user flow is to provide a legal issue or document, have Codex select a relevant skill, follow that skill’s topic references under repository-wide method and citation rules, and produce analysis or a draft. The tree shows many legal domains; this map groups the skills rather than enumerating them. The generator is included because it is indexed as a core module. Relationships for unsampled skill content follow README documentation, not direct source inspection.

Main entry points: [`.agents/skills`](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills) (Skill catalog), [`.agents/skills/aile-hukuku/SKILL.md`](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/aile-hukuku/SKILL.md) (Family law), [`.agents/skills/anayasa-hukuku/SKILL.md`](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/anayasa-hukuku/SKILL.md) (Constitutional law), [`.agents/skills/atif-turk-hukuku/SKILL.md`](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/atif-turk-hukuku/SKILL.md) (Citation hygiene)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and guidance"]
  node_agents["Global guidance<br/>[AGENTS.md]"]
  node_result["Analysis or draft"]
end

subgraph group_skills["Legal skills"]
  node_skillset["Skill catalog<br/>[skills]"]
  node_family["Family law<br/>[SKILL.md]"]
  node_constitutional["Constitutional law<br/>[SKILL.md]"]
  node_citation["Citation hygiene<br/>[SKILL.md]"]
  node_litigation["Legal drafting<br/>[SKILL.md]"]
end

subgraph group_knowledge["Topic knowledge"]
  node_familyrefs["Family topics<br/>[references]"]
  node_constitutionalrefs["Rights topics<br/>[references]"]
  node_citationrefs["Citation topics<br/>[references]"]
  node_litigationrefs["Drafting topics<br/>[references]"]
end

subgraph group_generation["Content generation"]
  node_generator["Skill generator<br/>[generate_codex.py]"]
end

node_user(("Legal user"))
node_codex(("Codex"))

node_user -->|"describes issue"| node_codex
node_codex -->|"loads guidance"| node_agents
node_codex -->|"selects skill"| node_skillset
node_skillset -.->|"includes domain"| node_family
node_skillset -.->|"includes domain"| node_constitutional
node_skillset -.->|"includes domain"| node_citation
node_skillset -.->|"includes domain"| node_litigation
node_family -->|"routes to topics"| node_familyrefs
node_constitutional -->|"routes to topics"| node_constitutionalrefs
node_citation -->|"routes to topics"| node_citationrefs
node_litigation -->|"routes to topics"| node_litigationrefs
node_codex -->|"produces analysis"| node_result
node_generator -->|"writes skills"| node_skillset

click node_agents "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/AGENTS.md"
click node_skillset "https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills"
click node_family "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/aile-hukuku/SKILL.md"
click node_constitutional "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/anayasa-hukuku/SKILL.md"
click node_citation "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/atif-turk-hukuku/SKILL.md"
click node_litigation "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/dava-dilekce-atolyesi/SKILL.md"
click node_familyrefs "https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/aile-hukuku/references"
click node_constitutionalrefs "https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/anayasa-hukuku/references"
click node_citationrefs "https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/atif-turk-hukuku/references"
click node_litigationrefs "https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/dava-dilekce-atolyesi/references"
click node_generator "https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/scripts/generate_codex.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_agents,node_result,node_user toneBlue
class node_skillset,node_family,node_constitutional,node_citation,node_litigation toneAmber
class node_familyrefs,node_constitutionalrefs,node_citationrefs,node_litigationrefs toneMint
class node_generator toneRose
class node_codex toneIndigo
```

## Components

### Entry and guidance

- [Global guidance](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/AGENTS.md): `AGENTS.md`
- **Analysis or draft**

### Legal skills

- [Skill catalog](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills): `.agents/skills`
- [Family law](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/aile-hukuku/SKILL.md): `.agents/skills/aile-hukuku/SKILL.md`
- [Constitutional law](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/anayasa-hukuku/SKILL.md): `.agents/skills/anayasa-hukuku/SKILL.md`
- [Citation hygiene](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/atif-turk-hukuku/SKILL.md): `.agents/skills/atif-turk-hukuku/SKILL.md`
- [Legal drafting](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/.agents/skills/dava-dilekce-atolyesi/SKILL.md): `.agents/skills/dava-dilekce-atolyesi/SKILL.md`

### Topic knowledge

- [Family topics](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/aile-hukuku/references): `.agents/skills/aile-hukuku/references`
- [Rights topics](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/anayasa-hukuku/references): `.agents/skills/anayasa-hukuku/references`
- [Citation topics](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/atif-turk-hukuku/references): `.agents/skills/atif-turk-hukuku/references`
- [Drafting topics](https://github.com/aydincan/turk-hukuku-ve-codex/tree/main/.agents/skills/dava-dilekce-atolyesi/references): `.agents/skills/dava-dilekce-atolyesi/references`

### Content generation

- [Skill generator](https://github.com/aydincan/turk-hukuku-ve-codex/blob/main/scripts/generate_codex.py): `scripts/generate_codex.py`

### Other components

- **Legal user**
- **Codex**

## Connections

- Legal user → Codex: describes issue (evidence: `README.md`)
- Codex → Global guidance: loads guidance (evidence: `README.md`)
- Codex → Skill catalog: selects skill (evidence: `README.md`)
- Skill catalog → Family law: includes domain
- Skill catalog → Constitutional law: includes domain
- Skill catalog → Citation hygiene: includes domain
- Skill catalog → Legal drafting: includes domain
- Family law → Family topics: routes to topics (evidence: `README.md`)
- Constitutional law → Rights topics: routes to topics (evidence: `README.md`)
- Citation hygiene → Citation topics: routes to topics (evidence: `README.md`)
- Legal drafting → Drafting topics: routes to topics (evidence: `README.md`)
- Codex → Analysis or draft: produces analysis (evidence: `README.md`)
- Skill generator → Skill catalog: writes skills (evidence: `scripts/generate_codex.py`)
