# laragear/softchestrate architecture

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

- Interactive diagram: https://gitdiagram.com/laragear/softchestrate
- Repository: https://github.com/laragear/softchestrate

## Overview

Softchestrate is a model- and harness-neutral library of agent and skill definitions for delegating software work. Its documented main workflow is: a user invokes the planning skill, which creates a durable plan; the orchestration skill dispatches one phase at a time to a phase-executor agent, with specialist agents available on demand. Other skills cover focused development tasks. The harness supplies runtime models, tools, and permissions. Relationships are limited to those documented in the README; the sampled source files are evaluation utilities, not the product runtime.

Main entry points: [`agents/phase-executor.md`](https://github.com/laragear/softchestrate/blob/1.x/agents/phase-executor.md) (Phase executor), [`skills/planning-implementations/SKILL.md`](https://github.com/laragear/softchestrate/blob/1.x/skills/planning-implementations/SKILL.md) (Plan implementations), [`skills/orchestrating-plans/SKILL.md`](https://github.com/laragear/softchestrate/blob/1.x/skills/orchestrating-plans/SKILL.md) (Orchestrate plans), [`agents/build-doctor.md`](https://github.com/laragear/softchestrate/blob/1.x/agents/build-doctor.md) (Build doctor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Plan orchestration"]
  node_plan_skill["Plan implementations<br/>[SKILL.md]"]
  node_orchestrate_skill["Orchestrate plans<br/>[SKILL.md]"]
end

subgraph group_skills["Development skills"]
  node_devcontainers["Create devcontainers<br/>[SKILL.md]"]
  node_deploy_builds["Deploy builds<br/>[SKILL.md]"]
  node_disprove_audits["Disprove audit findings<br/>[SKILL.md]"]
  node_investigate["Investigate with evidence<br/>[SKILL.md]"]
  node_migrate_schemas["Migrate schemas<br/>[SKILL.md]"]
  node_replicate["Replicate production locally<br/>[SKILL.md]"]
  node_upgrade["Upgrade dependencies<br/>[SKILL.md]"]
  node_write_comments["Write code comments<br/>[SKILL.md]"]
end

subgraph group_agents["Subagent definitions"]
  node_phase_executor["Phase executor<br/>[phase-executor.md]"]
  node_build_doctor["Build doctor<br/>[build-doctor.md]"]
  node_test_runner["Test runner<br/>[test-runner.md]"]
  node_code_reviewer["Code reviewer<br/>[code-reviewer.md]"]
  node_code_explorer["Code explorer<br/>[code-explorer.md]"]
  node_codemod_runner["Codemod runner<br/>[codemod-runner.md]"]
  node_fixture_factory["Fixture factory"]
  node_general_purpose["General purpose<br/>[general-purpose.md]"]
  node_lint_fixer["Lint fixer"]
  node_refactoring_applier["Refactoring applier"]
  node_refactoring_finder["Refactoring finder"]
  node_security_auditor["Security auditor"]
end

node_user(("Software team"))
node_harness["Agent harness"]

node_user -->|"creates plan"| node_plan_skill
node_plan_skill -->|"persists plan"| node_orchestrate_skill
node_orchestrate_skill -->|"dispatches phases"| node_phase_executor
node_phase_executor -.->|"calls on demand"| node_build_doctor
node_phase_executor -.->|"calls on demand"| node_test_runner
node_phase_executor -.->|"calls on demand"| node_code_reviewer
node_plan_skill -->|"uses runtime"| node_harness

click node_plan_skill "https://github.com/laragear/softchestrate/blob/1.x/skills/planning-implementations/SKILL.md"
click node_orchestrate_skill "https://github.com/laragear/softchestrate/blob/1.x/skills/orchestrating-plans/SKILL.md"
click node_phase_executor "https://github.com/laragear/softchestrate/blob/1.x/agents/phase-executor.md"
click node_build_doctor "https://github.com/laragear/softchestrate/blob/1.x/agents/build-doctor.md"
click node_test_runner "https://github.com/laragear/softchestrate/blob/1.x/agents/test-runner.md"
click node_code_reviewer "https://github.com/laragear/softchestrate/blob/1.x/agents/code-reviewer.md"
click node_code_explorer "https://github.com/laragear/softchestrate/blob/1.x/agents/code-explorer.md"
click node_codemod_runner "https://github.com/laragear/softchestrate/blob/1.x/agents/codemod-runner.md"
click node_fixture_factory "https://github.com/laragear/softchestrate/blob/1.x/agents/fixture-factory-generator.md"
click node_general_purpose "https://github.com/laragear/softchestrate/blob/1.x/agents/general-purpose.md"
click node_lint_fixer "https://github.com/laragear/softchestrate/blob/1.x/agents/lint-static-analysis-fixer.md"
click node_refactoring_applier "https://github.com/laragear/softchestrate/blob/1.x/agents/refactoring-applier.md"
click node_refactoring_finder "https://github.com/laragear/softchestrate/blob/1.x/agents/refactoring-finder.md"
click node_security_auditor "https://github.com/laragear/softchestrate/blob/1.x/agents/security-auditor.md"
click node_devcontainers "https://github.com/laragear/softchestrate/blob/1.x/skills/creating-devcontainers/SKILL.md"
click node_deploy_builds "https://github.com/laragear/softchestrate/blob/1.x/skills/deploying-builds/SKILL.md"
click node_disprove_audits "https://github.com/laragear/softchestrate/blob/1.x/skills/disproving-audit-findings/SKILL.md"
click node_investigate "https://github.com/laragear/softchestrate/blob/1.x/skills/investigating-with-evidence/SKILL.md"
click node_migrate_schemas "https://github.com/laragear/softchestrate/blob/1.x/skills/migrating-schemas/SKILL.md"
click node_replicate "https://github.com/laragear/softchestrate/blob/1.x/skills/replicating-production-locally/SKILL.md"
click node_upgrade "https://github.com/laragear/softchestrate/blob/1.x/skills/upgrading-dependencies/SKILL.md"
click node_write_comments "https://github.com/laragear/softchestrate/blob/1.x/skills/writing-code-comments/SKILL.md"

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_plan_skill,node_orchestrate_skill toneBlue
class node_devcontainers,node_deploy_builds,node_disprove_audits,node_investigate,node_migrate_schemas,node_replicate,node_upgrade,node_write_comments toneAmber
class node_phase_executor,node_build_doctor,node_test_runner,node_code_reviewer,node_code_explorer,node_codemod_runner,node_fixture_factory,node_general_purpose,node_lint_fixer,node_refactoring_applier,node_refactoring_finder,node_security_auditor toneMint
class node_user,node_harness toneIndigo
```

## Components

### Plan orchestration

- [Plan implementations](https://github.com/laragear/softchestrate/blob/1.x/skills/planning-implementations/SKILL.md): `skills/planning-implementations/SKILL.md`
- [Orchestrate plans](https://github.com/laragear/softchestrate/blob/1.x/skills/orchestrating-plans/SKILL.md): `skills/orchestrating-plans/SKILL.md`

### Development skills

- [Create devcontainers](https://github.com/laragear/softchestrate/blob/1.x/skills/creating-devcontainers/SKILL.md): `skills/creating-devcontainers/SKILL.md`
- [Deploy builds](https://github.com/laragear/softchestrate/blob/1.x/skills/deploying-builds/SKILL.md): `skills/deploying-builds/SKILL.md`
- [Disprove audit findings](https://github.com/laragear/softchestrate/blob/1.x/skills/disproving-audit-findings/SKILL.md): `skills/disproving-audit-findings/SKILL.md`
- [Investigate with evidence](https://github.com/laragear/softchestrate/blob/1.x/skills/investigating-with-evidence/SKILL.md): `skills/investigating-with-evidence/SKILL.md`
- [Migrate schemas](https://github.com/laragear/softchestrate/blob/1.x/skills/migrating-schemas/SKILL.md): `skills/migrating-schemas/SKILL.md`
- [Replicate production locally](https://github.com/laragear/softchestrate/blob/1.x/skills/replicating-production-locally/SKILL.md): `skills/replicating-production-locally/SKILL.md`
- [Upgrade dependencies](https://github.com/laragear/softchestrate/blob/1.x/skills/upgrading-dependencies/SKILL.md): `skills/upgrading-dependencies/SKILL.md`
- [Write code comments](https://github.com/laragear/softchestrate/blob/1.x/skills/writing-code-comments/SKILL.md): `skills/writing-code-comments/SKILL.md`

### Subagent definitions

- [Phase executor](https://github.com/laragear/softchestrate/blob/1.x/agents/phase-executor.md): `agents/phase-executor.md`
- [Build doctor](https://github.com/laragear/softchestrate/blob/1.x/agents/build-doctor.md): `agents/build-doctor.md`
- [Test runner](https://github.com/laragear/softchestrate/blob/1.x/agents/test-runner.md): `agents/test-runner.md`
- [Code reviewer](https://github.com/laragear/softchestrate/blob/1.x/agents/code-reviewer.md): `agents/code-reviewer.md`
- [Code explorer](https://github.com/laragear/softchestrate/blob/1.x/agents/code-explorer.md): `agents/code-explorer.md`
- [Codemod runner](https://github.com/laragear/softchestrate/blob/1.x/agents/codemod-runner.md): `agents/codemod-runner.md`
- [Fixture factory](https://github.com/laragear/softchestrate/blob/1.x/agents/fixture-factory-generator.md): `agents/fixture-factory-generator.md`
- [General purpose](https://github.com/laragear/softchestrate/blob/1.x/agents/general-purpose.md): `agents/general-purpose.md`
- [Lint fixer](https://github.com/laragear/softchestrate/blob/1.x/agents/lint-static-analysis-fixer.md): `agents/lint-static-analysis-fixer.md`
- [Refactoring applier](https://github.com/laragear/softchestrate/blob/1.x/agents/refactoring-applier.md): `agents/refactoring-applier.md`
- [Refactoring finder](https://github.com/laragear/softchestrate/blob/1.x/agents/refactoring-finder.md): `agents/refactoring-finder.md`
- [Security auditor](https://github.com/laragear/softchestrate/blob/1.x/agents/security-auditor.md): `agents/security-auditor.md`

### Other components

- **Software team**
- **Agent harness**

## Connections

- Software team → Plan implementations: creates plan (evidence: `README.md`)
- Plan implementations → Orchestrate plans: persists plan (evidence: `README.md`)
- Orchestrate plans → Phase executor: dispatches phases (evidence: `README.md`)
- Phase executor → Build doctor: calls on demand (evidence: `README.md`)
- Phase executor → Test runner: calls on demand (evidence: `README.md`)
- Phase executor → Code reviewer: calls on demand (evidence: `README.md`)
- Plan implementations → Agent harness: uses runtime (evidence: `README.md`)
