# pedrohcgs/claude-code-my-workflow architecture

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

- Interactive diagram: https://gitdiagram.com/pedrohcgs/claude-code-my-workflow
- Repository: https://github.com/pedrohcgs/claude-code-my-workflow

## Overview

This repository is a forkable Claude Code workflow for academic research and teaching, rather than a conventional application. A user states a goal; Claude plans and invokes specialized skills and agents to produce or review artifacts, with verification and quality gates supporting the work. The tree and README establish the major capability areas and gate roles, but sampled source is mostly gate/checker code, so detailed connections among skills, agents, and artifact workflows are not asserted.

Main entry points: [`scripts/backtest.sh`](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/backtest.sh) (Gate suite), [`.claude/skills`](https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills) (Task skills), [`CLAUDE.md`](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/CLAUDE.md) (Claude workflow), [`scripts/file-issue.py`](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/file-issue.py) (Issue filing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Work orchestration"]
  node_claude["Claude workflow<br/>[CLAUDE.md]"]
  node_skills["Task skills<br/>[skills]"]
  node_issue_filing["Issue filing<br/>[file-issue.py]"]
end

subgraph group_expertise["Specialist guidance"]
  node_agents["Specialist agents<br/>[agents]"]
  node_rules["Workflow rules<br/>[rules]"]
end

subgraph group_research["Research work"]
  node_research_methods["Research methods<br/>[skills]"]
  node_data_analysis["Data analysis<br/>[SKILL.md]"]
  node_simulation["Simulation studies<br/>[SKILL.md]"]
  node_replication["Replication packages<br/>[SKILL.md]"]
  node_paper_review["Paper review<br/>[SKILL.md]"]
  node_literature["Literature review<br/>[SKILL.md]"]
end

subgraph group_outputs["Academic outputs"]
  node_writing["Academic writing"]
  node_slides["Slides and lectures<br/>[SKILL.md]"]
  node_quarto["Quarto documents<br/>[SKILL.md]"]
end

subgraph group_quality["Quality gates"]
  node_repro_audit["Reproducibility audit<br/>[SKILL.md]"]
  node_claim_review["Claim verification<br/>[SKILL.md]"]
  node_backtest["Gate suite<br/>[backtest.sh]"]
  node_derived_counts["Count checks"]
  node_ledger_coverage["Ledger coverage"]
  node_repo_hygiene["Repository hygiene"]
  node_skill_integrity["Skill integrity"]
  node_staleness["Staleness checks<br/>[check-staleness.py]"]
  node_surface_sync["Surface consistency"]
  node_tikz_check["TikZ prevention"]
  node_quality_score["Quality scoring<br/>[quality_score.py]"]
  node_slide_qa["Slide QA<br/>[slide-qa.py]"]
  node_finding_validation["Finding validation"]
end

node_researcher(("Researcher"))

node_researcher -->|"states goal"| node_claude
node_claude -->|"invokes skills"| node_skills
node_skills -->|"delegates work"| node_agents
node_researcher -->|"requests research"| node_research_methods
node_researcher -->|"requests analysis"| node_data_analysis
node_researcher -->|"requests study"| node_simulation
node_researcher -->|"requests package"| node_replication
node_researcher -->|"requests review"| node_paper_review
node_researcher -->|"requests review"| node_literature
node_researcher -->|"requests writing"| node_writing
node_researcher -->|"requests slides"| node_slides
node_researcher -->|"requests document"| node_quarto
node_skills -->|"supports audits"| node_repro_audit
node_skills -->|"supports verification"| node_claim_review
node_claude -.->|"follows guidance"| node_rules
node_backtest -->|"runs gate"| node_derived_counts
node_backtest -->|"runs gate"| node_ledger_coverage
node_backtest -->|"runs gate"| node_repo_hygiene
node_backtest -->|"runs gate"| node_skill_integrity
node_backtest -->|"runs gate"| node_staleness
node_backtest -->|"runs gate"| node_surface_sync
node_backtest -.->|"runs gate"| node_tikz_check
node_claude -->|"scores materials"| node_quality_score
node_skills -.->|"files issues"| node_issue_filing
node_skills -.->|"validates findings"| node_finding_validation
node_skills -.->|"checks slides"| node_slide_qa

click node_claude "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/CLAUDE.md"
click node_skills "https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills"
click node_agents "https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/agents"
click node_rules "https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/rules"
click node_research_methods "https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills"
click node_data_analysis "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/data-analysis/SKILL.md"
click node_simulation "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/simulation-study/SKILL.md"
click node_replication "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/replication-package/SKILL.md"
click node_paper_review "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/review-paper/SKILL.md"
click node_literature "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/lit-review/SKILL.md"
click node_writing "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/output-styles/academic-writing.md"
click node_slides "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/create-lecture/SKILL.md"
click node_quarto "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/translate-to-quarto/SKILL.md"
click node_repro_audit "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/audit-reproducibility/SKILL.md"
click node_claim_review "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/verify-claims/SKILL.md"
click node_backtest "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/backtest.sh"
click node_derived_counts "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-derived-counts.py"
click node_ledger_coverage "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-ledger-coverage.py"
click node_repo_hygiene "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-repo-hygiene.py"
click node_skill_integrity "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-skill-integrity.py"
click node_staleness "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-staleness.py"
click node_surface_sync "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-surface-sync.py"
click node_tikz_check "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-tikz-prevention.py"
click node_issue_filing "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/file-issue.py"
click node_quality_score "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/quality_score.py"
click node_slide_qa "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/slide-qa.py"
click node_finding_validation "https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/validate-findings.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_claude,node_skills,node_issue_filing toneBlue
class node_agents,node_rules toneAmber
class node_research_methods,node_data_analysis,node_simulation,node_replication,node_paper_review,node_literature toneMint
class node_writing,node_slides,node_quarto toneRose
class node_repro_audit,node_claim_review,node_backtest,node_derived_counts,node_ledger_coverage,node_repo_hygiene,node_skill_integrity,node_staleness,node_surface_sync,node_tikz_check,node_quality_score,node_slide_qa,node_finding_validation,node_researcher toneIndigo
```

## Components

### Work orchestration

- [Claude workflow](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/CLAUDE.md): `CLAUDE.md`
- [Task skills](https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills): `.claude/skills`
- [Issue filing](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/file-issue.py): `scripts/file-issue.py`

### Specialist guidance

- [Specialist agents](https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/agents): `.claude/agents`
- [Workflow rules](https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/rules): `.claude/rules`

### Research work

- [Research methods](https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills): `.claude/skills`
- [Data analysis](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/data-analysis/SKILL.md): `.claude/skills/data-analysis/SKILL.md`
- [Simulation studies](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/simulation-study/SKILL.md): `.claude/skills/simulation-study/SKILL.md`
- [Replication packages](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/replication-package/SKILL.md): `.claude/skills/replication-package/SKILL.md`
- [Paper review](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/review-paper/SKILL.md): `.claude/skills/review-paper/SKILL.md`
- [Literature review](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/lit-review/SKILL.md): `.claude/skills/lit-review/SKILL.md`

### Academic outputs

- [Academic writing](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/output-styles/academic-writing.md): `.claude/output-styles/academic-writing.md`
- [Slides and lectures](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/create-lecture/SKILL.md): `.claude/skills/create-lecture/SKILL.md`
- [Quarto documents](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/translate-to-quarto/SKILL.md): `.claude/skills/translate-to-quarto/SKILL.md`

### Quality gates

- [Reproducibility audit](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/audit-reproducibility/SKILL.md): `.claude/skills/audit-reproducibility/SKILL.md`
- [Claim verification](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/.claude/skills/verify-claims/SKILL.md): `.claude/skills/verify-claims/SKILL.md`
- [Gate suite](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/backtest.sh): `scripts/backtest.sh`
- [Count checks](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-derived-counts.py): `scripts/check-derived-counts.py`
- [Ledger coverage](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-ledger-coverage.py): `scripts/check-ledger-coverage.py`
- [Repository hygiene](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-repo-hygiene.py): `scripts/check-repo-hygiene.py`
- [Skill integrity](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-skill-integrity.py): `scripts/check-skill-integrity.py`
- [Staleness checks](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-staleness.py): `scripts/check-staleness.py`
- [Surface consistency](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-surface-sync.py): `scripts/check-surface-sync.py`
- [TikZ prevention](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/check-tikz-prevention.py): `scripts/check-tikz-prevention.py`
- [Quality scoring](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/quality_score.py): `scripts/quality_score.py`
- [Slide QA](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/slide-qa.py): `scripts/slide-qa.py`
- [Finding validation](https://github.com/pedrohcgs/claude-code-my-workflow/blob/main/scripts/validate-findings.py): `scripts/validate-findings.py`

### Other components

- **Researcher**

## Connections

- Researcher → Claude workflow: states goal (evidence: `README.md`)
- Claude workflow → Task skills: invokes skills (evidence: `README.md`)
- Task skills → Specialist agents: delegates work (evidence: `README.md`)
- Researcher → Research methods: requests research (evidence: `README.md`)
- Researcher → Data analysis: requests analysis (evidence: `README.md`)
- Researcher → Simulation studies: requests study (evidence: `README.md`)
- Researcher → Replication packages: requests package (evidence: `README.md`)
- Researcher → Paper review: requests review (evidence: `README.md`)
- Researcher → Literature review: requests review (evidence: `README.md`)
- Researcher → Academic writing: requests writing (evidence: `README.md`)
- Researcher → Slides and lectures: requests slides (evidence: `README.md`)
- Researcher → Quarto documents: requests document (evidence: `README.md`)
- Task skills → Reproducibility audit: supports audits (evidence: `README.md`)
- Task skills → Claim verification: supports verification (evidence: `README.md`)
- Claude workflow → Workflow rules: follows guidance
- Gate suite → Count checks: runs gate (evidence: `README.md`)
- Gate suite → Ledger coverage: runs gate (evidence: `README.md`)
- Gate suite → Repository hygiene: runs gate (evidence: `README.md`)
- Gate suite → Skill integrity: runs gate (evidence: `README.md`)
- Gate suite → Staleness checks: runs gate (evidence: `README.md`)
- Gate suite → Surface consistency: runs gate (evidence: `README.md`)
- Gate suite → TikZ prevention: runs gate
- Claude workflow → Quality scoring: scores materials (evidence: `README.md`)
- Task skills → Issue filing: files issues
- Task skills → Finding validation: validates findings
- Task skills → Slide QA: checks slides
