# magnus919/agent-skills architecture

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

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

## Overview

This repository is a catalog of reusable agent skills, with several skills shipping executable tools. The clearest runtime workflows in the sampled sources are structured multi-agent debate, binary triage, and paired evaluation. The graph focuses on those implementations and their evidenced internal dependencies; many other catalog skills are documented in the README but have no sampled runtime wiring here.

Main entry points: [`agent-council/agent_council/graph.py`](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/graph.py) (Debate orchestration), [`eval_runner/paired.py`](https://github.com/magnus919/agent-skills/blob/main/eval_runner/paired.py) (Paired evaluation), [`agent-council/agent_council/phases/synthesis.py`](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/synthesis.py) (Decision synthesis), [`agent-council/agent_council/state.py`](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/state.py) (Debate state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_debate["Agent Council"]
  node_council_cli["Debate CLI<br/>[cli.py]"]
  node_debate_flow["Debate orchestration<br/>[graph.py]"]
  node_phase_select["Select agents<br/>[select.py]"]
  node_phase_compose["Compose agents<br/>[compose.py]"]
  node_phase_premortem["Premortem<br/>[premortem.py]"]
  node_phase_position["Initial positions<br/>[position.py]"]
  node_phase_cross["Cross-examination<br/>[cross_examine.py]"]
  node_convergence["Convergence checks<br/>[convergence.py]"]
  node_phase_synthesis["Decision synthesis<br/>[synthesis.py]"]
  node_guardrails["Claim verification<br/>[guardrails.py]"]
  node_council_state["Debate state<br/>[state.py]"]
  node_council_config["Model configuration<br/>[config.py]"]
end

subgraph group_binary["Binary Analysis"]
  node_binary_cli["Binary analysis CLI<br/>[main.py]"]
  node_rule_engine["Triage rule engine<br/>[engine.py]"]
  node_backend_adapter["Backend adapter<br/>[base.py]"]
  node_domain_entities["Analysis entities<br/>[entities.py]"]
end

subgraph group_eval["Evaluation Runner"]
  node_paired_eval["Paired evaluation<br/>[paired.py]"]
  node_eval_runner["Trial runner<br/>[runner.py]"]
  node_grader["Deterministic grader<br/>[grader.py]"]
  node_comparison["Case comparison<br/>[comparison.py]"]
  node_evidence_contract["Evidence contracts"]
end

subgraph group_catalog["Skill Catalog"]
  node_skill_collection["Reusable skill catalog"]
end

node_operator(("Skill user"))
node_eval_user(("Evaluation operator"))

node_operator -->|"submits question"| node_council_cli
node_council_cli -->|"starts debate"| node_debate_flow
node_debate_flow -->|"selects agents"| node_phase_select
node_debate_flow -->|"composes agents"| node_phase_compose
node_debate_flow -->|"runs premortem"| node_phase_premortem
node_debate_flow -->|"forms positions"| node_phase_position
node_debate_flow -->|"runs rounds"| node_phase_cross
node_debate_flow -->|"checks stopping"| node_convergence
node_debate_flow -->|"builds report"| node_phase_synthesis
node_phase_synthesis -->|"verifies claims"| node_guardrails
node_phase_synthesis -->|"computes metrics"| node_convergence
node_debate_flow -->|"updates state"| node_council_state
node_convergence -->|"reads state"| node_council_state
node_phase_cross -->|"reads positions"| node_council_state
node_phase_cross -->|"loads settings"| node_council_config
node_phase_synthesis -->|"reads debate"| node_council_state
node_guardrails -->|"loads settings"| node_council_config
node_eval_user -->|"requests comparison"| node_paired_eval
node_paired_eval -->|"runs trials"| node_eval_runner
node_paired_eval -->|"grades outcomes"| node_grader
node_paired_eval -->|"compares cases"| node_comparison
node_paired_eval -->|"loads contracts"| node_evidence_contract
node_rule_engine -->|"queries backend"| node_backend_adapter
node_rule_engine -->|"emits observations"| node_domain_entities
node_operator -->|"chooses workflow"| node_skill_collection

click node_council_cli "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/cli.py"
click node_debate_flow "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/graph.py"
click node_phase_select "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/select.py"
click node_phase_compose "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/compose.py"
click node_phase_premortem "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/premortem.py"
click node_phase_position "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/position.py"
click node_phase_cross "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/cross_examine.py"
click node_convergence "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/convergence.py"
click node_phase_synthesis "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/synthesis.py"
click node_guardrails "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/guardrails.py"
click node_council_state "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/state.py"
click node_council_config "https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/config.py"
click node_binary_cli "https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/cli/main.py"
click node_rule_engine "https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/rules/engine.py"
click node_backend_adapter "https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/adapters/base.py"
click node_domain_entities "https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/domain/entities.py"
click node_paired_eval "https://github.com/magnus919/agent-skills/blob/main/eval_runner/paired.py"
click node_eval_runner "https://github.com/magnus919/agent-skills/blob/main/eval_runner/runner.py"
click node_grader "https://github.com/magnus919/agent-skills/blob/main/eval_runner/grader.py"
click node_comparison "https://github.com/magnus919/agent-skills/blob/main/eval_runner/comparison.py"
click node_evidence_contract "https://github.com/magnus919/agent-skills/blob/main/eval_runner/evidence_contract.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_council_cli,node_debate_flow,node_phase_select,node_phase_compose,node_phase_premortem,node_phase_position,node_phase_cross,node_convergence,node_phase_synthesis,node_guardrails,node_council_state,node_council_config,node_operator toneBlue
class node_binary_cli,node_rule_engine,node_backend_adapter,node_domain_entities toneAmber
class node_paired_eval,node_eval_runner,node_grader,node_comparison,node_evidence_contract toneMint
class node_skill_collection toneRose
class node_eval_user toneIndigo
```

## Components

### Agent Council

- [Debate CLI](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/cli.py): `agent-council/agent_council/cli.py`
- [Debate orchestration](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/graph.py): `agent-council/agent_council/graph.py`
- [Select agents](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/select.py): `agent-council/agent_council/phases/select.py`
- [Compose agents](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/compose.py): `agent-council/agent_council/phases/compose.py`
- [Premortem](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/premortem.py): `agent-council/agent_council/phases/premortem.py`
- [Initial positions](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/position.py): `agent-council/agent_council/phases/position.py`
- [Cross-examination](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/cross_examine.py): `agent-council/agent_council/phases/cross_examine.py`
- [Convergence checks](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/convergence.py): `agent-council/agent_council/convergence.py`
- [Decision synthesis](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/phases/synthesis.py): `agent-council/agent_council/phases/synthesis.py`
- [Claim verification](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/guardrails.py): `agent-council/agent_council/guardrails.py`
- [Debate state](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/state.py): `agent-council/agent_council/state.py`
- [Model configuration](https://github.com/magnus919/agent-skills/blob/main/agent-council/agent_council/config.py): `agent-council/agent_council/config.py`

### Binary Analysis

- [Binary analysis CLI](https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/cli/main.py): `binary-analysis/scripts/binary_analysis/cli/main.py`
- [Triage rule engine](https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/rules/engine.py): `binary-analysis/scripts/binary_analysis/rules/engine.py`
- [Backend adapter](https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/adapters/base.py): `binary-analysis/scripts/binary_analysis/adapters/base.py`
- [Analysis entities](https://github.com/magnus919/agent-skills/blob/main/binary-analysis/scripts/binary_analysis/domain/entities.py): `binary-analysis/scripts/binary_analysis/domain/entities.py`

### Evaluation Runner

- [Paired evaluation](https://github.com/magnus919/agent-skills/blob/main/eval_runner/paired.py): `eval_runner/paired.py`
- [Trial runner](https://github.com/magnus919/agent-skills/blob/main/eval_runner/runner.py): `eval_runner/runner.py`
- [Deterministic grader](https://github.com/magnus919/agent-skills/blob/main/eval_runner/grader.py): `eval_runner/grader.py`
- [Case comparison](https://github.com/magnus919/agent-skills/blob/main/eval_runner/comparison.py): `eval_runner/comparison.py`
- [Evidence contracts](https://github.com/magnus919/agent-skills/blob/main/eval_runner/evidence_contract.py): `eval_runner/evidence_contract.py`

### Skill Catalog

- **Reusable skill catalog**

### Other components

- **Skill user**
- **Evaluation operator**

## Connections

- Skill user → Debate CLI: submits question (evidence: `agent-council/agent_council/cli.py`)
- Debate CLI → Debate orchestration: starts debate (evidence: `agent-council/agent_council/cli.py`)
- Debate orchestration → Select agents: selects agents (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Compose agents: composes agents (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Premortem: runs premortem (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Initial positions: forms positions (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Cross-examination: runs rounds (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Convergence checks: checks stopping (evidence: `agent-council/agent_council/graph.py`)
- Debate orchestration → Decision synthesis: builds report (evidence: `agent-council/agent_council/graph.py`)
- Decision synthesis → Claim verification: verifies claims (evidence: `agent-council/agent_council/phases/synthesis.py`)
- Decision synthesis → Convergence checks: computes metrics (evidence: `agent-council/agent_council/phases/synthesis.py`)
- Debate orchestration → Debate state: updates state (evidence: `agent-council/agent_council/graph.py`)
- Convergence checks → Debate state: reads state (evidence: `agent-council/agent_council/convergence.py`)
- Cross-examination → Debate state: reads positions (evidence: `agent-council/agent_council/phases/cross_examine.py`)
- Cross-examination → Model configuration: loads settings (evidence: `agent-council/agent_council/phases/cross_examine.py`)
- Decision synthesis → Debate state: reads debate (evidence: `agent-council/agent_council/phases/synthesis.py`)
- Claim verification → Model configuration: loads settings (evidence: `agent-council/agent_council/guardrails.py`)
- Evaluation operator → Paired evaluation: requests comparison (evidence: `eval_runner/paired.py`)
- Paired evaluation → Trial runner: runs trials (evidence: `eval_runner/paired.py`)
- Paired evaluation → Deterministic grader: grades outcomes (evidence: `eval_runner/paired.py`)
- Paired evaluation → Case comparison: compares cases (evidence: `eval_runner/paired.py`)
- Paired evaluation → Evidence contracts: loads contracts (evidence: `eval_runner/paired.py`)
- Triage rule engine → Backend adapter: queries backend (evidence: `binary-analysis/scripts/binary_analysis/rules/engine.py`)
- Triage rule engine → Analysis entities: emits observations (evidence: `binary-analysis/scripts/binary_analysis/rules/engine.py`)
- Skill user → Reusable skill catalog: chooses workflow
