# franrejon/academic-research-skills architecture

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

- Interactive diagram: https://gitdiagram.com/franrejon/academic-research-skills
- Repository: https://github.com/franrejon/academic-research-skills

## Overview

1. **What this repo is**
   - This is not a traditional application repo; it is a **collection of Claude Code skills**.
   - The runtime is the Claude Code / Claude Desktop agent environment, and the repo supplies **prompted workflows, agent roles, templates, and reference knowledge**.

2. **Top-level architectural shape**
   - The repo is organized into four main skill packages:
     - `deep-research`
     - `academic-paper`
     - `academic-paper-reviewer`
     - `academic-pipeline`
   - Each package is self-contained around a `SKILL.md` entrypoint, with supporting `agents/`, `references/`, `templates/`, and `examples/` directories.

3. **`deep-research`: evidence-gathering subsystem**
   - This skill is the upstream research layer.
   - It drives a 13-agent research workflow: question framing, search strategy, source verification, synthesis, report compilation, ethics review, bias analysis, meta-analysis, monitoring, and Socratic guidance.
   - Its primary output is a **research brief or evidence package** that can feed later writing or review stages.

4. **`academic-paper`: manuscript production subsystem**
   - This is the drafting and polishing layer.
   - It converts research inputs into manuscript outputs through 12 agents: intake, literature strategy, outline, argument building, drafting, citation compliance, bilingual abstracting, peer review, formatting, Socratic planning, visualization, and revision coaching.
   - Its outputs are **paper drafts and final publication-ready artifacts** in Markdown, DOCX, LaTeX, and PDF-oriented formats.

5. **`academic-paper-reviewer`: peer-review subsystem**
   - This package models a multi-perspective review board.
   - It uses a field analyst plus EIC, methodology, domain, perspective, devil’s advocate, and editorial synthesis roles.
   - It produces **review reports, decision guidance, and revision roadmaps**, with rubric-based scoring and a re-review path for revision verification.

6. **`academic-pipeline`: orchestration and state-control subsystem**
   - This is the cross-skill coordinator and the repo’s strongest architectural boundary.
   - It sequences a 10-stage workflow: research → writing → integrity verification → review → Socratic coaching → revision → re-review → further revision if needed → final integrity check → finalization → process summary.
   - It also manages **adaptive checkpoints**, **mid-entry handling**, and a **process summary with collaboration-quality evaluation**.

7. **Integrity and verification as first-class gates**
   - The pipeline includes mandatory integrity stages at **2.5** and **4.5**.
   - These are designed to verify references, claims, and data before and after review, which makes the architecture explicitly **audit-oriented** rather than purely generative.
   - This is a major boundary: content must pass validation before it is allowed to move forward.

8. **Shared contracts and handoffs**
   - The `shared/hand-off_schemas.md` file indicates that cross-skill communication is standardized.
   - The pipeline also mentions a material passport and state tracking, which implies the repo treats intermediate artifacts as **typed handoff objects**, not informal chat history.
   - This is important for diagramming: the skills are loosely coupled through agreed handoff formats.

9. **Templates, references, and examples as the knowledge layer**
   - `references/` directories hold policy-like guidance: citation standards, review rubrics, methodology frameworks, reporting guidelines, and failure-path docs.
   - `templates/` directories define reusable output structures such as review reports, research briefs, PRISMA docs, manuscripts, and revision trackers.
   - `examples/` show intended outputs and act as reference artifacts for the workflows.

10. **Deployment and integration boundary**
    - The `.claude/` folder and README describe how these skills are loaded into Claude Code, Claude Cowork, or claude.ai Projects.
    - So the “deployment” model is **file-based skill installation**, not a service deployment.
    - The repo is meant to be consumed by an LLM agent as structured knowledge and workflow definitions.

11. **Artifact flow across the system**
    - The main data flow is:
      **research question / manuscript intent → evidence gathering → draft creation → integrity validation → peer review → revision coaching → re-review → final verification → final formatted paper → process summary**
    - That flow is the core architecture to diagram: each skill owns one segment, while the pipeline skill coordinates transitions and checkpoints.

12. **External/tooling dependencies that matter**
    - The repo is designed for **Claude Code** and benefits from Claude’s multi-agent execution model.
    - For final publication artifacts, it explicitly relies on **LaTeX**, the `apa7` class, `XeCJK` for bilingual output, and **tectonic** for PDF compilation.
    - Those choices materially shape the output boundary: final deliverables are publication-grade documents, not just chat responses.

Main entry points: [`academic-pipeline/SKILL.md`](https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/SKILL.md) (Pipeline skill), [`academic-paper-reviewer/SKILL.md`](https://github.com/franrejon/academic-research-skills/blob/main/academic-paper-reviewer/SKILL.md) (Review skill), [`academic-paper/SKILL.md`](https://github.com/franrejon/academic-research-skills/blob/main/academic-paper/SKILL.md) (Paper skill), [`shared/handoff_schemas.md`](https://github.com/franrejon/academic-research-skills/blob/main/shared/handoff_schemas.md) (Handoff schemas)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_runtime(("Claude runtime<br/>agent runtime"))
  node_claude_md["CLAUDE.md<br/>loader config<br/>[CLAUDE.md]"]
  node_readme["README<br/>project guide<br/>[README.md]"]
end

subgraph group_deep_research["Deep Research"]
  node_deep_skill["Research skill<br/>skill entrypoint<br/>[SKILL.md]"]
  node_deep_agents["Research agents<br/>agent pack"]
  node_deep_refs["Research refs<br/>knowledge base"]
  node_deep_templates["Research templates<br/>artifact templates"]
end

subgraph group_academic_paper["Academic Paper"]
  node_paper_skill["Paper skill<br/>skill entrypoint<br/>[SKILL.md]"]
  node_paper_agents["Writing agents<br/>agent pack"]
  node_paper_refs["Writing refs<br/>knowledge base"]
  node_paper_templates["Paper templates<br/>artifact templates"]
end

subgraph group_paper_reviewer["Paper Reviewer"]
  node_review_skill["Review skill<br/>skill entrypoint<br/>[SKILL.md]"]
  node_review_agents["Review agents<br/>review board"]
  node_review_refs["Review refs<br/>review policy"]
  node_review_templates["Review templates<br/>report forms"]
end

subgraph group_academic_pipeline["Academic Pipeline"]
  node_pipeline_skill["Pipeline skill<br/>skill entrypoint<br/>[SKILL.md]"]
  node_pipeline_orchestrator["Orchestrator<br/>workflow controller"]
  node_integrity_gate["Integrity gate<br/>verification agent"]
  node_state_tracker["State tracker<br/>state model"]
  node_pipeline_refs["Pipeline refs<br/>protocols"]
  node_pipeline_templates["Pipeline templates<br/>status artifacts"]
end

subgraph group_shared["Shared"]
  node_handoff_schemas["Handoff schemas<br/>shared contracts<br/>[handoff_schemas.md]"]
end

node_runtime -->|"loads"| node_claude_md
node_claude_md -->|"enables"| node_deep_skill
node_claude_md -->|"enables"| node_paper_skill
node_claude_md -->|"enables"| node_review_skill
node_claude_md -->|"enables"| node_pipeline_skill
node_deep_skill -->|"uses"| node_deep_agents
node_deep_skill -->|"grounds"| node_deep_refs
node_deep_skill -->|"produces"| node_deep_templates
node_deep_agents -.->|"handoffs"| node_handoff_schemas
node_deep_skill -->|"feeds"| node_paper_skill
node_paper_skill -->|"uses"| node_paper_agents
node_paper_skill -->|"grounds"| node_paper_refs
node_paper_skill -->|"produces"| node_paper_templates
node_paper_agents -.->|"handoffs"| node_handoff_schemas
node_paper_skill -->|"coordinates with"| node_pipeline_skill
node_review_skill -->|"uses"| node_review_agents
node_review_skill -->|"grounds"| node_review_refs
node_review_skill -->|"produces"| node_review_templates
node_review_agents -.->|"handoffs"| node_handoff_schemas
node_review_skill -->|"returns to"| node_pipeline_skill
node_pipeline_skill -->|"uses"| node_pipeline_orchestrator
node_pipeline_skill -->|"gates"| node_integrity_gate
node_pipeline_skill -->|"tracks"| node_state_tracker
node_pipeline_skill -->|"grounds"| node_pipeline_refs
node_pipeline_skill -->|"produces"| node_pipeline_templates
node_pipeline_orchestrator -.->|"orchestrates"| node_handoff_schemas
node_integrity_gate -.->|"verifies"| node_handoff_schemas
node_state_tracker -.->|"records"| node_handoff_schemas
node_pipeline_skill -->|"routes to"| node_review_skill
node_review_skill -->|"supports revision"| node_paper_skill

click node_claude_md "https://github.com/franrejon/academic-research-skills/blob/main/.claude/CLAUDE.md"
click node_readme "https://github.com/franrejon/academic-research-skills/blob/main/README.md"
click node_deep_skill "https://github.com/franrejon/academic-research-skills/blob/main/deep-research/SKILL.md"
click node_deep_agents "https://github.com/franrejon/academic-research-skills/tree/main/deep-research/agents"
click node_deep_refs "https://github.com/franrejon/academic-research-skills/tree/main/deep-research/references"
click node_deep_templates "https://github.com/franrejon/academic-research-skills/tree/main/deep-research/templates"
click node_paper_skill "https://github.com/franrejon/academic-research-skills/blob/main/academic-paper/SKILL.md"
click node_paper_agents "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/agents"
click node_paper_refs "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/references"
click node_paper_templates "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/templates"
click node_review_skill "https://github.com/franrejon/academic-research-skills/blob/main/academic-paper-reviewer/SKILL.md"
click node_review_agents "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/agents"
click node_review_refs "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/references"
click node_review_templates "https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/templates"
click node_pipeline_skill "https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/SKILL.md"
click node_pipeline_orchestrator "https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/pipeline_orchestrator_agent.md"
click node_integrity_gate "https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/integrity_verification_agent.md"
click node_state_tracker "https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/state_tracker_agent.md"
click node_pipeline_refs "https://github.com/franrejon/academic-research-skills/tree/main/academic-pipeline/references"
click node_pipeline_templates "https://github.com/franrejon/academic-research-skills/tree/main/academic-pipeline/templates"
click node_handoff_schemas "https://github.com/franrejon/academic-research-skills/blob/main/shared/handoff_schemas.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_runtime,node_claude_md,node_readme toneBlue
class node_deep_skill,node_deep_agents,node_deep_refs,node_deep_templates toneAmber
class node_paper_skill,node_paper_agents,node_paper_refs,node_paper_templates toneMint
class node_review_skill,node_review_agents,node_review_refs,node_review_templates toneRose
class node_pipeline_skill,node_pipeline_orchestrator,node_integrity_gate,node_state_tracker,node_pipeline_refs,node_pipeline_templates toneIndigo
class node_handoff_schemas toneTeal
```

## Components

### Deployment

File-based installation and agent runtime entrypoints.

- **Claude runtime**: agent runtime · Claude Code / Claude Desktop environment that executes the skills.
- [CLAUDE.md](https://github.com/franrejon/academic-research-skills/blob/main/.claude/CLAUDE.md): loader config · Repository-level Claude loading and usage guidance. · `.claude/CLAUDE.md`
- [README](https://github.com/franrejon/academic-research-skills/blob/main/README.md): project guide · Top-level explanation of the skill collection and how to use it. · `README.md`

### Deep Research

Evidence-gathering and synthesis workflow.

- [Research skill](https://github.com/franrejon/academic-research-skills/blob/main/deep-research/SKILL.md): skill entrypoint · Entry point for evidence gathering and research workflows. · `deep-research/SKILL.md`
- [Research agents](https://github.com/franrejon/academic-research-skills/tree/main/deep-research/agents): agent pack · Question framing, search, verification, synthesis, bias, ethics, monitoring, and reporting roles. · `deep-research/agents`
- [Research refs](https://github.com/franrejon/academic-research-skills/tree/main/deep-research/references): knowledge base · Methodology, ethics, monitoring, and systematic-review guidance. · `deep-research/references`
- [Research templates](https://github.com/franrejon/academic-research-skills/tree/main/deep-research/templates): artifact templates · Briefs, matrices, preregistration, and PRISMA outputs. · `deep-research/templates`

### Academic Paper

Manuscript drafting and formatting workflow.

- [Paper skill](https://github.com/franrejon/academic-research-skills/blob/main/academic-paper/SKILL.md): skill entrypoint · Entry point for drafting and polishing manuscripts. · `academic-paper/SKILL.md`
- [Writing agents](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/agents): agent pack · Intake, strategy, outline, argumentation, drafting, citation, abstracting, formatting, revision, and visualization roles. · `academic-paper/agents`
- [Writing refs](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/references): knowledge base · Style, structure, citation, submission, and failure-path guidance. · `academic-paper/references`
- [Paper templates](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper/templates): artifact templates · Manuscript, abstract, and LaTeX document structures. · `academic-paper/templates`

### Paper Reviewer

Multi-perspective peer-review workflow.

- [Review skill](https://github.com/franrejon/academic-research-skills/blob/main/academic-paper-reviewer/SKILL.md): skill entrypoint · Entry point for multi-perspective peer review workflows. · `academic-paper-reviewer/SKILL.md`
- [Review agents](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/agents): review board · Field analyst, EIC, methodology, domain, perspective, devil’s advocate, and synthesis roles. · `academic-paper-reviewer/agents`
- [Review refs](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/references): review policy · Rubrics, standards, decision criteria, and journal guidance. · `academic-paper-reviewer/references`
- [Review templates](https://github.com/franrejon/academic-research-skills/tree/main/academic-paper-reviewer/templates): report forms · Peer-review reports, editorial decisions, and revision responses. · `academic-paper-reviewer/templates`

### Academic Pipeline

Cross-skill orchestration, state control, and integrity gates.

- [Pipeline skill](https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/SKILL.md): skill entrypoint · Entry point for orchestration, checkpoints, and process control. · `academic-pipeline/SKILL.md`
- [Orchestrator](https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/pipeline_orchestrator_agent.md): workflow controller · Coordinates stage sequencing, adaptive checkpoints, and handoffs. · `academic-pipeline/agents/pipeline_orchestrator_agent.md`
- [Integrity gate](https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/integrity_verification_agent.md): verification agent · Verifies claims, references, plagiarism, and evidence before and after review. · `academic-pipeline/agents/integrity_verification_agent.md`
- [State tracker](https://github.com/franrejon/academic-research-skills/blob/main/academic-pipeline/agents/state_tracker_agent.md): state model · Tracks pipeline state, mid-entry handling, and process summary data. · `academic-pipeline/agents/state_tracker_agent.md`
- [Pipeline refs](https://github.com/franrejon/academic-research-skills/tree/main/academic-pipeline/references): protocols · State machine, claim verification, plagiarism detection, and collaboration rules. · `academic-pipeline/references`
- [Pipeline templates](https://github.com/franrejon/academic-research-skills/tree/main/academic-pipeline/templates): status artifacts · Pipeline status and reporting structures. · `academic-pipeline/templates`

### Shared

Contracts reused across skills.

- [Handoff schemas](https://github.com/franrejon/academic-research-skills/blob/main/shared/handoff_schemas.md): shared contracts · Standardized cross-skill handoff objects and communication contracts. · `shared/handoff_schemas.md`

## Connections

- Claude runtime → CLAUDE.md: loads · Claude runtime loads repository instructions and skill definitions.
- CLAUDE.md → Research skill: enables · Repository loader exposes the research skill entrypoint.
- CLAUDE.md → Paper skill: enables · Repository loader exposes the manuscript skill entrypoint.
- CLAUDE.md → Review skill: enables · Repository loader exposes the review skill entrypoint.
- CLAUDE.md → Pipeline skill: enables · Repository loader exposes the orchestration skill entrypoint.
- Research skill → Research agents: uses · Research workflow delegates work to specialist agents.
- Research skill → Research refs: grounds · Research workflow relies on methodological and ethics references.
- Research skill → Research templates: produces · Research workflow emits briefs, matrices, and evidence packages.
- Research agents → Handoff schemas: handoffs · Research roles exchange standardized intermediate artifacts.
- Research skill → Paper skill: feeds · Evidence packages become inputs to manuscript production.
- Paper skill → Writing agents: uses · Writing workflow delegates to drafting, citation, and formatting roles.
- Paper skill → Writing refs: grounds · Manuscript generation is guided by style and submission references.
- Paper skill → Paper templates: produces · Writing workflow emits drafts and publication-ready document structures.
- Writing agents → Handoff schemas: handoffs · Writing roles exchange structured manuscript states.
- Paper skill → Pipeline skill: coordinates with · Manuscript work is staged and gated by the pipeline.
- Review skill → Review agents: uses · Peer review is split across multiple reviewer perspectives.
- Review skill → Review refs: grounds · Review judgments are anchored in rubrics and standards.
- Review skill → Review templates: produces · Review workflow emits reports and decision artifacts.
- Review agents → Handoff schemas: handoffs · Review board members exchange standardized findings and recommendations.
- Review skill → Pipeline skill: returns to · Revision and re-review are managed through the pipeline.
- Pipeline skill → Orchestrator: uses · The pipeline skill is driven by the orchestration agent.
- Pipeline skill → Integrity gate: gates · Mandatory validation checkpoints enforce claim and reference integrity.
- Pipeline skill → State tracker: tracks · Process state, checkpointing, and mid-entry handling are tracked explicitly.
- Pipeline skill → Pipeline refs: grounds · Execution logic follows workflow and verification protocols.
- Pipeline skill → Pipeline templates: produces · The pipeline emits status, audit, and summary artifacts.
- Orchestrator → Handoff schemas: orchestrates · Orchestration relies on typed handoffs between stages and skills.
- Integrity gate → Handoff schemas: verifies · Integrity checks validate the contents of handoff objects and claims.
- State tracker → Handoff schemas: records · State transitions are stored against shared handoff formats.
- Pipeline skill → Review skill: routes to · After integrity checks, the pipeline sends work into review.
- Review skill → Paper skill: supports revision · Review outcomes drive revision coaching and manuscript updates.
