Agent skill · Audited from source
Code Flow Visualizer
skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Convert Python, JavaScript, and TypeScript functions into Mermaid flowcharts
Cite
Cite this page
ModelsAtlas. “Code Flow Visualizer (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/code-flow-visualizer
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherbrycewang-stanford GitHub userOwner of the repository this skill is read from
- Source folderbrycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/tools/diagram/code-flow-visualizerThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicte1ba289846fdA new audit runs when the source changes
- Repository statusNot archivedLast push 2 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Convert Python, JavaScript, and TypeScript functions into Mermaid flowcharts
---
name: code-flow-visualizer
description: "Convert Python, JavaScript, and TypeScript functions into Mermaid flowcharts"
metadata:
openclaw:
emoji: "🔄"
category: "tools"
subcategory: "diagram"
keywords: ["code visualization", "flowchart", "Mermaid", "Python", "control flow", "AST"]
source: "https://github.com/mermaid-js/mermaid"
---
# Code Flow Visualizer
Convert Python, JavaScript, and TypeScript functions into Mermaid flowcharts by analyzing control flow structures. This skill helps researchers document and understand complex algorithmic logic, data processing pipelines, and experimental workflows embedded in code.
## Overview
Research code often contains intricate control flow: nested conditionals for data filtering, loops over experimental conditions, error handling for API calls, and branching logic for different analysis paths. Understanding this flow is critical for reproducibility, code review, and documentation, yet reading nested code can be cognitively demanding.
This skill translates source code into visual Mermaid flowcharts by parsing control flow structures (if/else, for/while loops, try/catch, match/switch, return statements) and mapping them to flowchart nodes and edges. The resulting diagrams serve as documentation supplements in README files, lab notebooks, and paper appendices.
The approach works by performing a lightweight static analysis of the code's abstract syntax tree (AST). Each control structure maps to a specific flowchart pattern: conditionals become diamond decision nodes, loops become cycles with back-edges, function calls become subroutine nodes, and return statements become terminal nodes.
## Conversion Rules
### Control Flow Mapping
| Code Structure | Flowchart Element | Mermaid Shape |
|---------------|-------------------|---------------|
| Function entry | Start node | `([Function Name])` |
| Assignment / expression | Process node | `[statement]` |
| `if` / `else if` | Decision diamond | `{condition?}` |
| `for` / `while` loop | Decision + back-edge | `{loop condition?}` with cycle |
| `try` / `catch` | Process + error path | `[try block]` with dashed error edge |
| `return` / `yield` | Terminal / output node | `([return value])` |
| Function call | Subroutine node | `[[function_name()]]` |
| `match` / `switch` | Multi-branch decision | `{value?}` with labeled edges |
### Python Example
**Input code:**
```python
def process_papers(papers, min_citations=10):
results = []
for paper in papers:
if paper.year < 2015:
continue
if paper.citation_count < min_citations:
continue
try:
abstract = fetch_abstract(paper.doi)
embeddings = compute_embeddings(abstract)
results.append({"paper": paper, "embedding": embeddings})
except APIError:
log_error(paper.doi)
return results
```
**Output flowchart:**
```mermaid
flowchart TD
Start(["process_papers(papers, min_citations=10)"]) --> Init["results = [ ]"]
Init --> Loop{"For each paper in papers?"}
Loop -->|Done| Return(["Return results"])
Loop -->|Next paper| YearCheck{"paper.year < 2015?"}
YearCheck -->|Yes| Loop
YearCheck -->|No| CitCheck{"citation_count < min_citations?"}
CitCheck -->|Yes| Loop
CitCheck -->|No| TryBlock["abstract = fetch_abstract(paper.doi)"]
TryBlock --> Embed["embeddings = compute_embeddings(abstract)"]
Embed --> Append["results.append(...)"]
Append --> Loop
TryBlock -.->|APIError| LogErr["log_error(paper.doi)"]
LogErr --> Loop
```
### JavaScript / TypeScript Example
**Input code:**
```typescript
async function searchPapers(query: string, maxResults: number = 50): Promise<Paper[]> {
const cached = await cache.get(query);
if (cached) return cached;
const results: Paper[] = [];
let offset = 0;
while (results.length < maxResults) {
const batch = await api.search(query, offset, 10);
if (batch.length === 0) break;
for (const paper of batch) {
if (paper.isRetracted) continue;
results.push(paper);
}
offset += 10;
}
await cache.set(query, results);
return results;
}
```
**Output flowchart:**
```mermaid
flowchart TD
Start(["searchPapers(query, maxResults=50)"]) --> Cache["cached = await cache.get(query)"]
Cache --> CacheHit{"cached exists?"}
CacheHit -->|Yes| ReturnCached(["Return cached"])
CacheHit -->|No| InitResults["results = [ ], offset = 0"]
InitResults --> WhileLoop{"results.length < maxResults?"}
WhileLoop -->|No| SaveCache["await cache.set(query, results)"]
WhileLoop -->|Yes| Fetch["batch = await api.search(query, offset, 10)"]
Fetch --> EmptyCheck{"batch.length === 0?"}
EmptyCheck -->|Yes| SaveCache
EmptyCheck -->|No| ForLoop{"For each paper in batch?"}
ForLoop -->|Done| IncOffset["offset += 10"]
IncOffset --> WhileLoop
ForLoop -->|Next| Retracted{"paper.isRetracted?"}
Retracted -->|Yes| ForLoop
Retracted -->|No| Push["results.push(paper)"]
Push --> ForLoop
SaveCache --> Return(["Return results"])
```
## Handling Complex Patterns
### Nested Conditionals
Deeply nested if/else chains are flattened into a decision tree. Each branch is labeled with its condition, and nodes at the same depth are arranged vertically for readability.
### Recursive Functions
Recursive calls are shown as subroutine nodes with a self-referencing edge back to the function start node. A note annotation indicates the recursion base case.
### Generator Functions (yield)
Python generators use `yield` as intermediate output nodes (shown as parallelogram shapes). The flowchart shows the suspension point and resumption path.
### Error Handling Chains
Multiple `except` clauses create parallel error paths from the `try` block, each labeled with the exception type. `finally` blocks are shown as a converging node that all paths pass through.
## Styling fExcerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit e1ba289
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills git -C Auto-Empirical-Research-Skills checkout e1ba289846fd
The author documents no install command, so this uses the repository directly. Our verdict covers commit e1ba289846fd only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
e1ba289846fd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/brycewang-stanford/code-flow-visualizer/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
brycewang-stanford/Auto-Empirical-Research-Skills
GIS analysis and remote sensing workflows for geospatial research applications
brycewang-stanford/Auto-Empirical-Research-Skills
Run and manage Google Colab notebooks for Python and ML research
brycewang-stanford/Auto-Empirical-Research-Skills
Advanced Google Scholar search techniques for comprehensive literature discovery
brycewang-stanford/Auto-Empirical-Research-Skills
Ethical Google Scholar data collection techniques and best practices
brycewang-stanford/Auto-Empirical-Research-Skills
Autonomous agent for comprehensive deep research on any topic
brycewang-stanford/Auto-Empirical-Research-Skills
Practical advice for thriving in PhD programs and academic research
Add this badge to your README
[](https://modelsatlas.com/skills/brycewang-stanford/code-flow-visualizer/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/code-flow-visualizer/"><img src="https://modelsatlas.com/skills/brycewang-stanford/code-flow-visualizer/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Code Flow Visualizer
What does the Code Flow Visualizer skill do?
Is Code Flow Visualizer safe to install?
What can Code Flow Visualizer access on my machine?
Which assistants does Code Flow Visualizer work with?
How current is this page?
Sources
- github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tre — the audited source at commit e1ba289846fd and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Code Flow Visualizer skill do?
- Is Code Flow Visualizer safe to install?
- What can Code Flow Visualizer access on my machine?