# deepshare-official/ccf-figure architecture

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

- Interactive diagram: https://gitdiagram.com/deepshare-official/ccf-figure
- Repository: https://github.com/deepshare-official/ccf-figure

## Overview

CCF Figure is an AI-assistant skill that turns a researcher’s paper into a publication-ready scientific figure or a prompt for an image model. The documented workflow classifies the paper, chooses a diagram structure, assembles a bilingual prompt, then supports visual self-checks and up to three revision rounds. The graph uses the root-level files present in the supplied tree; the README describes a references directory, but it is not present there, so its documented assets are mapped to the matching files that do exist. No source excerpts were available to verify implementation details.

Main entry points: [`SKILL.md`](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md) (Prompt assembly), [`figure-types.md`](https://github.com/deepshare-official/ccf-figure/blob/main/figure-types.md) (Figure self-check), [`prompt-template.md`](https://github.com/deepshare-official/ccf-figure/blob/main/prompt-template.md) (Bilingual prompt templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Figure workflow"]
  node_skill["Skill workflow<br/>[SKILL.md]"]
  node_classify["Paper classification<br/>[SKILL.md]"]
  node_select["Diagram selection<br/>[SKILL.md]"]
  node_assemble["Prompt assembly<br/>[SKILL.md]"]
  node_result["Figure or prompt"]
end

subgraph group_guidance["Prompt guidance"]
  node_types["Diagram types and checks<br/>[figure-types.md]"]
  node_templates["Bilingual prompt templates<br/>[prompt-template.md]"]
end

subgraph group_iteration["Review and revision"]
  node_self_check["Figure self-check<br/>[figure-types.md]"]
  node_revision["Revision protocol<br/>[SKILL.md]"]
end

node_researcher(("Researcher"))
node_assistant(("Claude Code or Codex"))
node_paper["Paper content"]
node_image_model(("Image model"))

node_researcher -->|"provides request"| node_assistant
node_assistant -->|"invokes"| node_skill
node_skill -->|"classifies"| node_classify
node_classify -->|"informs"| node_select
node_select -->|"matches structure"| node_types
node_select -->|"guides"| node_assemble
node_templates -->|"supplies templates"| node_assemble
node_assemble -->|"produces"| node_result
node_result -.->|"optional generation"| node_image_model
node_result -->|"checks"| node_self_check
node_self_check -->|"guides revisions"| node_revision
node_researcher -->|"requests changes"| node_revision
node_revision -->|"updates prompt"| node_assemble

click node_skill "https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md"
click node_classify "https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md"
click node_select "https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md"
click node_assemble "https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md"
click node_types "https://github.com/deepshare-official/ccf-figure/blob/main/figure-types.md"
click node_templates "https://github.com/deepshare-official/ccf-figure/blob/main/prompt-template.md"
click node_self_check "https://github.com/deepshare-official/ccf-figure/blob/main/figure-types.md"
click node_revision "https://github.com/deepshare-official/ccf-figure/blob/main/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_skill,node_classify,node_select,node_assemble,node_result toneBlue
class node_types,node_templates toneAmber
class node_self_check,node_revision toneMint
class node_researcher,node_assistant,node_paper,node_image_model toneIndigo
```

## Components

### Figure workflow

- [Skill workflow](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md): `SKILL.md`
- [Paper classification](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md): `SKILL.md`
- [Diagram selection](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md): `SKILL.md`
- [Prompt assembly](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md): `SKILL.md`
- **Figure or prompt**

### Prompt guidance

- [Diagram types and checks](https://github.com/deepshare-official/ccf-figure/blob/main/figure-types.md): `figure-types.md`
- [Bilingual prompt templates](https://github.com/deepshare-official/ccf-figure/blob/main/prompt-template.md): `prompt-template.md`

### Review and revision

- [Figure self-check](https://github.com/deepshare-official/ccf-figure/blob/main/figure-types.md): `figure-types.md`
- [Revision protocol](https://github.com/deepshare-official/ccf-figure/blob/main/SKILL.md): `SKILL.md`

### Other components

- **Researcher**
- **Claude Code or Codex**
- **Paper content**
- **Image model**

## Connections

- Researcher → Claude Code or Codex: provides request
- Claude Code or Codex → Skill workflow: invokes
- Skill workflow → Paper classification: classifies
- Paper classification → Diagram selection: informs
- Diagram selection → Diagram types and checks: matches structure
- Diagram selection → Prompt assembly: guides
- Bilingual prompt templates → Prompt assembly: supplies templates
- Prompt assembly → Figure or prompt: produces
- Figure or prompt → Image model: optional generation
- Figure or prompt → Figure self-check: checks
- Figure self-check → Revision protocol: guides revisions
- Researcher → Revision protocol: requests changes
- Revision protocol → Prompt assembly: updates prompt
