# goatindex/agent-skills architecture

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

- Interactive diagram: https://gitdiagram.com/goatindex/agent-skills
- Repository: https://github.com/goatindex/agent-skills

## Overview

This repository packages two evidence-based workflow skills: AQI assessment and pattern-language creation/validation. AQI combines written guidance, rubrics, schemas, templates, and a deterministic aggregation script; the script validates and scores evaluator-authored findings and can couple output assessments to an input run. The pattern-language skill provides guidance, references, examples, and a validator for pattern-language documents. The excerpts show the AQI script’s input/output behavior and parts of pattern validation; links among unsampled guidance and assets are omitted rather than inferred.

Main entry points: [`aqi/scripts/aggregate.py`](https://github.com/goatindex/agent-skills/blob/master/aqi/scripts/aggregate.py) (Scoring Aggregator), [`pattern-language/scripts/validate_language.py`](https://github.com/goatindex/agent-skills/blob/master/pattern-language/scripts/validate_language.py) (Language Validator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_aqi["AQI Assessment"]
  node_aqi_guidance["Assessment Workflow<br/>[SKILL.md]"]
  node_aqi_inputs["Input Rubrics<br/>[rubric-inputs.md]"]
  node_aqi_outputs["Output Rubrics<br/>[rubric-outputs.md]"]
  node_aqi_schema["Findings Schema"]
  node_clarity_protocol["Clarity Protocol"]
  node_assessor_report["Assessor Report Template"]
  node_gap_letter["Gap Letter Template"]
  node_aggregate["Scoring Aggregator<br/>[aggregate.py]"]
  node_assessment_result["Scored Assessment"]
end

subgraph group_patterns["Pattern Language"]
  node_pattern_guidance["Pattern Workflow<br/>[SKILL.md]"]
  node_pattern_form["Pattern Form<br/>[pattern-form.md]"]
  node_language_structure["Language Structure"]
  node_mining["Pattern Mining<br/>[mining.md]"]
  node_intake["Pattern Intake<br/>[intake.md]"]
  node_pathfinder_guidance["Pathfinder Guidance<br/>[pathfinder.md]"]
  node_validation_guidance["Validation Guidance<br/>[validation.md]"]
  node_language_validator["Language Validator"]
  node_pattern_examples["Garden Crew Example"]
  node_pattern_result["Validated Language"]
end

node_assessor(("Assessor"))

node_assessor -->|"runs with findings"| node_aggregate
node_aggregate -->|"writes JSON"| node_assessment_result
node_assessor -->|"runs on language"| node_language_validator
node_language_validator -->|"validates structure"| node_pattern_result

click node_aqi_guidance "https://github.com/goatindex/agent-skills/blob/master/aqi/SKILL.md"
click node_aqi_inputs "https://github.com/goatindex/agent-skills/blob/master/aqi/references/rubric-inputs.md"
click node_aqi_outputs "https://github.com/goatindex/agent-skills/blob/master/aqi/references/rubric-outputs.md"
click node_aqi_schema "https://github.com/goatindex/agent-skills/blob/master/aqi/references/findings-schema.json"
click node_clarity_protocol "https://github.com/goatindex/agent-skills/blob/master/aqi/references/clarity-specificity-protocol.md"
click node_assessor_report "https://github.com/goatindex/agent-skills/blob/master/aqi/assets/assessor-report-template.md"
click node_gap_letter "https://github.com/goatindex/agent-skills/blob/master/aqi/assets/gap-letter-template.md"
click node_aggregate "https://github.com/goatindex/agent-skills/blob/master/aqi/scripts/aggregate.py"
click node_pattern_guidance "https://github.com/goatindex/agent-skills/blob/master/pattern-language/SKILL.md"
click node_pattern_form "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/pattern-form.md"
click node_language_structure "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/language-structure.md"
click node_mining "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/mining.md"
click node_intake "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/intake.md"
click node_pathfinder_guidance "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/pathfinder.md"
click node_validation_guidance "https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/validation.md"
click node_language_validator "https://github.com/goatindex/agent-skills/blob/master/pattern-language/scripts/validate_language.py"
click node_pattern_examples "https://github.com/goatindex/agent-skills/tree/master/pattern-language/examples/garden-crew"

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_aqi_guidance,node_aqi_inputs,node_aqi_outputs,node_aqi_schema,node_clarity_protocol,node_assessor_report,node_gap_letter,node_aggregate,node_assessment_result toneBlue
class node_pattern_guidance,node_pattern_form,node_language_structure,node_mining,node_intake,node_pathfinder_guidance,node_validation_guidance,node_language_validator,node_pattern_examples,node_pattern_result toneAmber
class node_assessor toneIndigo
```

## Components

### AQI Assessment

- [Assessment Workflow](https://github.com/goatindex/agent-skills/blob/master/aqi/SKILL.md): `aqi/SKILL.md`
- [Input Rubrics](https://github.com/goatindex/agent-skills/blob/master/aqi/references/rubric-inputs.md): `aqi/references/rubric-inputs.md`
- [Output Rubrics](https://github.com/goatindex/agent-skills/blob/master/aqi/references/rubric-outputs.md): `aqi/references/rubric-outputs.md`
- [Findings Schema](https://github.com/goatindex/agent-skills/blob/master/aqi/references/findings-schema.json): `aqi/references/findings-schema.json`
- [Clarity Protocol](https://github.com/goatindex/agent-skills/blob/master/aqi/references/clarity-specificity-protocol.md): `aqi/references/clarity-specificity-protocol.md`
- [Assessor Report Template](https://github.com/goatindex/agent-skills/blob/master/aqi/assets/assessor-report-template.md): `aqi/assets/assessor-report-template.md`
- [Gap Letter Template](https://github.com/goatindex/agent-skills/blob/master/aqi/assets/gap-letter-template.md): `aqi/assets/gap-letter-template.md`
- [Scoring Aggregator](https://github.com/goatindex/agent-skills/blob/master/aqi/scripts/aggregate.py): `aqi/scripts/aggregate.py`
- **Scored Assessment**

### Pattern Language

- [Pattern Workflow](https://github.com/goatindex/agent-skills/blob/master/pattern-language/SKILL.md): `pattern-language/SKILL.md`
- [Pattern Form](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/pattern-form.md): `pattern-language/references/pattern-form.md`
- [Language Structure](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/language-structure.md): `pattern-language/references/language-structure.md`
- [Pattern Mining](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/mining.md): `pattern-language/references/mining.md`
- [Pattern Intake](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/intake.md): `pattern-language/references/intake.md`
- [Pathfinder Guidance](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/pathfinder.md): `pattern-language/references/pathfinder.md`
- [Validation Guidance](https://github.com/goatindex/agent-skills/blob/master/pattern-language/references/validation.md): `pattern-language/references/validation.md`
- [Language Validator](https://github.com/goatindex/agent-skills/blob/master/pattern-language/scripts/validate_language.py): `pattern-language/scripts/validate_language.py`
- [Garden Crew Example](https://github.com/goatindex/agent-skills/tree/master/pattern-language/examples/garden-crew): `pattern-language/examples/garden-crew`
- **Validated Language**

### Other components

- **Assessor**

## Connections

- Assessor → Scoring Aggregator: runs with findings (evidence: `aqi/scripts/aggregate.py`)
- Scoring Aggregator → Scored Assessment: writes JSON (evidence: `aqi/scripts/aggregate.py`)
- Assessor → Language Validator: runs on language (evidence: `pattern-language/scripts/validate_language.py`)
- Language Validator → Validated Language: validates structure (evidence: `pattern-language/scripts/validate_language.py`)
