Sci-Plot
Turn any AI skill into portable Markdown prompt assets — no paid agent, no runtime lock-in.
Feed it any skill repository (a GitHub URL, a local folder, or your own rules) plus a business topic.
It distills those rules into structured .md prompt files — an auditable intermediate representation —
that you can paste into ChatGPT, Claude, Doubao, Midjourney, a local script, or any renderer.
Zero runtime dependencies, zero vendor lock-in. The compiled .md assets work in any chat client, any coding agent, or fully offline — no Codex subscription, no API keys, no special CLI.
A scientific-figure preset pack ships as the built-in reference domain; the compiler itself is domain-agnostic.
Features · Architecture · Workflow · Quick Start · FAQ · 🌐 Project Overview
中文说明文档
📌 Project Overview
Most AI skills are written for one specific agent. They assume a particular CLI, a paid coding assistant, local packages, and API credentials. Switch clients, lose the network, or skip the subscription, and the skill stops working. Three structural problems follow:
- Environment lock-in: Agent-bound skills couple to a specific runtime, CLI and credential set. Any network or subscription change breaks them. This project ships zero external runtime dependencies — its output is plain text.
- Black-box output: A directly generated bitmap cannot be surgically edited; one wrong label ruins the whole file. Markdown assets can be tweaked in seconds.
- No durable asset: One-off generations cannot be reviewed, versioned, or diffed in Git. A
.md prompt package can.
| Dimension |
❌ Environment-bound Skills (Black Box) |
✅ Portable Prompt Compiler (White Box IR) |
| Execution Model |
Runs a brittle toolchain inside one agent |
Extracts rules, compiles structured Markdown IR |
| Output Asset |
Disposable bitmap or one-off chat reply |
Portable, auditable prompt package (.md IR) |
| Error Recovery |
Regenerate the whole artifact |
1-second surgical edits to any term, label or color |
| Consumption |
Locked to the agent the skill was written for |
Any LLM, any image tool, any offline renderer |
| Environment Risk |
Needs the right agent, packages, tokens and network |
Zero runtime dependencies — no paid agent required |
| Asset Persistence |
Binary blobs, cannot review in Git pull requests |
100% human-readable, auditable, Git-friendly |
flowchart TD
subgraph Trad["❌ Traditional: Direct Image Generation (Black Box)"]
direction LR
T1(["API Call<br/><i>Tightly Coupled</i>"]) --> T2(["Fixed Bitmap<br/><i>PNG / JPEG</i>"]) --> T3{{"💥 Fatal Bottleneck<br/><i>Single Typo Ruins Entire Figure</i>"}}
end
subgraph Sci["✅ Sci-Plot: Prompts as Intermediate Representation (White Box)"]
direction LR
S1(["Extract Rules<br/><i>Explicit & Implicit</i>"]) --> S2(["Structured IR<br/><i>Prompt Package</i>"]) --> S3{{"✨ Zero-Failure Control<br/><i>1s Micro-Edits · Any Platform</i>"}}
end
style Trad fill:#F2F4F7,stroke:#CBD5E0,stroke-width:1.5px,color:#435266
style Sci fill:#E8F5F2,stroke:#A7D8CE,stroke-width:1.5px,color:#0B644F
style T1 fill:#FFFFFF,stroke:#94A3B8,stroke-width:1.5px,color:#435266
style T2 fill:#FFFFFF,stroke:#94A3B8,stroke-width:1.5px,color:#435266
style T3 fill:#E9ECF1,stroke:#6B7A8D,stroke-width:2px,color:#0E1A2B
style S1 fill:#FFFFFF,stroke:#0B8A78,stroke-width:1.5px,color:#0B644F
style S2 fill:#FFFFFF,stroke:#0B8A78,stroke-width:1.5px,color:#0B644F
style S3 fill:#E8F5F2,stroke:#0B8A78,stroke-width:2px,color:#0B644F
🖼️ Visual Architecture Diagram
The end-to-end workflow and dual-track rule isolation pipeline is illustrated below:

Figure 1: Sci-Plot Workflow Architecture (v1.2.0) — From input detection to dual-track rule matching, scope isolation, and multi-platform consumption.
[!TIP]
Explore Live Interactive Architecture Diagrams (Powered by Archify):
✨ Core Features
1. Dual-Track Rules Pool
- Local Rules Pool (
references/rules-pool/local/): Houses core, battle-tested presets (paper-figure, journal-minimal, sketchnote, warm-notes, business-research). Users can drop custom .md rules here for immediate zero-config use.
- Cloud & External Rules Pool (
references/rules-pool/cloud/):
- Authoritative Journal Standards: Official guidelines for Nature, IEEE, Cell, Science;
- Dynamic URL Parser: Pass any URL containing figure guidelines; the agent extracts dimensions, colors, and constraints on the fly;
- External Skill Capability Harvester: When an external image generation skill is available, extract its prompt engineering templates and domain vocabulary, while strictly blocking its image generation API calls. Zero environment overhead, 100% capability reuse.
2. Scope Isolation ("烟消云散")
During exploratory rounds, the agent can recommend and search across pools. Once you confirm a specific rule, all unselected rules, candidate links, and exploratory noise are completely cleared from the active prompt context.
The final prompt compilation step loads strictly:
$$\text{Base Physical Guardrails (base-rules.md)} + \text{Sole Selected Rule}$$
This eliminates hallucinated rule conflicts (e.g., mixing Nature minimal palettes with IEEE bold borders).
3. Universal Skill Harvester (Heuristic Radar)
For external or public GitHub skill repositories, Sci-Plot dynamically discovers, extracts, and normalizes figure guidelines while keeping your workspace completely clean:
flowchart TD
User(["📥 Input: GitHub Skill Repo / Journal Guidelines URL"]) --> Router{"📡 Adaptive Ingestion Radar"}
Router -->|⚡ Fast-Track| S1["<b>Route 1: Universal Heuristic Radar</b><br/><i>1-second zero-overhead scan</i>"]
Router -->|🌐 Online Fluid| S2["<b>Route 2: AI Live Semantic Reading</b><br/><i>Read raw GitHub files directly</i>"]
Router -->|📦 Sandbox Fallback| S3["<b>Route 3: Ephemeral Temp Clone</b><br/><i>Isolated background analysis</i>"]
S1 --> Synth[["🧠 AI Semantic Extraction & Rule Synthesis<br/><i>Extracts Aspect Ratio, Hex Palettes, Technical Vocab</i>"]]
S2 --> Synth
S3 --> Synth
Synth --> Save[("💾 Materialize Local Rule<br/><code>references/rules-pool/local/downloaded-*.md</code>")]
Save --> Purge(["✨ Physical Deep Clean<br/><i>Zero Residue: Clones & temp files deleted immediately</i>"])
Purge --> Ready(["🎯 100% Offline Asset Ready<br/><i>Permanent, portable, zero runtime dependencies</i>"])
classDef input fill:#EDF2FF,stroke:#1E4FD8,stroke-width:1.5px,color:#153DB0;
classDef router fill:#F7F8FA,stroke:#6B7A8D,stroke-width:2px,color:#0E1A2B;
classDef route fill:#F2F5F9,stroke:#94A3B8,stroke-width:1.5px,color:#435266;
classDef synth fill:#F2F5F9,stroke:#4C5FD0,stroke-width:2px,color:#153DB0;
classDef storage fill:#EDF2FF,stroke:#1E4FD8,stroke-width:2px,color:#153DB0;
classDef clean fill:#FDF3E4,stroke:#B4690E,stroke-width:1.5px,color:#8A5008;
classDef done fill:#E8F5F2,stroke:#0B8A78,stroke-width:2px,color:#0B644F;
class User input;
class Router router;
class S1,S2,S3 route;
class Synth synth;
class Save storage;
class Purge clean;
class Ready done;
4. Four-Tier Quality Assurance Gate
Prompt precision is the lifeline of Sci-Plot. Four defensive layers ensure zero-defect output:
flowchart LR
L1(["<b>🛡️ Gate 1: Base Rules</b><br/>Physical Guardrails<br/><i>No 3D · Labels ≤ 8 chars · Focal 75-85%</i>"])
--> L2(["<b>🔍 Gate 2: Skill Verifier</b><br/>Harvester Checklist<br/><i>Aspect Ratio · Hex Palette · Zero API</i>"])
--> L3(["<b>💨 Gate 3: Scope Isolation</b><br/>Context Purge<br/><i>Clear Candidate Noise · Zero Conflict</i>"])
--> L4(["<b>🧪 Gate 4: Compliance Linter</b><br/>Automated Testing<br/><i>6 Test Suites · White Canvas · High Contrast</i>"])
--> Output(["<b>🎯 Publication-Grade IR</b><br/>Ready for Cross-Platform Use"])
classDef g1 fill:#EDF2FF,stroke:#1E4FD8,stroke-width:1.5px,color:#153DB0;
classDef g2 fill:#EDF2FF,stroke:#1E4FD8,stroke-width:1.5px,color:#153DB0;
classDef g3 fill:#FDF3E4,stroke:#B4690E,stroke-width:1.5px,color:#8A5008;
classDef g4 fill:#F2F5F9,stroke:#6C7FE0,stroke-width:1.5px,color:#153DB0;
classDef g5 fill:#E8F5F2,stroke:#0B8A78,stroke-width:2px,color:#0B644F;
class L1 g1;
class L2 g2;
class L3 g3;
class L4 g4;
class Output g5;
| Defense Gate |
Core Mechanism |
Guaranteed Outcome |
| Gate 1: Physical Guardrails |
Invariant base rules (base-rules.md) |
Strictly eliminates 3D/photorealism; caps labels at ≤ 8 chars to prevent garbled text; enforces 75-85% visual gravity |
| Gate 2: Harvester Checklist |
5-point verification checklist |
Requires explicit aspect ratio, exact Hex color palette, domain vocabulary, and pure prompt template; blocks API calls |
| Gate 3: Scope Isolation |
"烟消云散" context purge |
Completely unloads exploratory candidate rules and dialogue history; final context loads strictly Base Rules + Sole Selected Rule |
| Gate 4: Compliance Linter |
Automated test suite (run_all_tests.py) |
6 test suites verify pure white background, negative constraints, file integrity, and non-destructive execution |
🛠️ Tech Stack
| Layer |
Component |
Implementation Details |
| Skill Protocol |
Agent Skill Specification |
Standard YAML frontmatter + 5-round deterministic pipeline (SKILL.md) |
| Engine & Scripts |
Python 3.10+ |
Pure Standard Library (urllib.request, json, ssl, base64, re, pathlib) — Zero External Dependencies |