Semgrep
vigolium/piolium
Run Semgrep static analysis scan on a codebase using parallel subagents.
Generate abstract Control Flow Graph (CFG) representations of programs showing loops, branches, and function calls for static analysis or verification.
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/control-flow-abstraction-generator .claude/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .claude/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/control-flow-abstraction-generator .agents/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .agents/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/control-flow-abstraction-generator .cursor/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .cursor/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ArabelaTso/Skills-4-SE.git --path skills/control-flow-abstraction-generator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/control-flow-abstraction-generator .gemini/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .gemini/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/control-flow-abstraction-generator .github/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .github/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ArabelaTso/Skills-4-SE control-flow-abstraction-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/control-flow-abstraction-generator .opencode/skills/control-flow-abstraction-generator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "control-flow-abstraction-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/control-flow-abstraction-generator into .opencode/skills/control-flow-abstraction-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "control-flow-abstraction-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
control-flow-abstraction-generatorGenerate abstract Control Flow Graph (CFG) representations of programs showing loops, branches, and function calls for static analysis or verification.
Control Flow Abstraction Generator is an agent skill from ArabelaTso/Skills-4-SE. Generate abstract Control Flow Graph (CFG) representations of programs showing loops, branches, and function calls for static analysis or verification. Use when users need to: (1) Visualize program control flow structure, (2) Generate CFGs for static analysis tools, (3) Create control flow abstractions for formal verification, (4) Analyze program paths and reachability, (5) Document program structure. Supports both function-level (intraprocedural) and program-level (interprocedural) analysis with multiple output…
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/cfg_patterns.md`).
It sits in Security, covering Static analysis and SAST. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
nodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Control Flow Abstraction Generator loads about 2.8k tokens when it runs, and up to ~5.4k if it reads all its reference files. Until then it costs about 148 tokens; SKILL.md has 868 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 868 words, ~2,844 tokens.
.claude/skills/control-flow-abstraction-generator/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Generate abstract Control Flow Graph representations of programs.
This skill analyzes program code and generates Control Flow Graphs (CFGs) that abstract the program's control flow structure. CFGs show how execution flows through the program via nodes (statements, conditions) and edges (control transfers), making them suitable for static analysis, formal verification, and program understanding.
Provide:
The skill will generate:
Identify program constructs:
Generate nodes for each construct:
Entry Node: Function/program start
ENTRY or function nameentryExit Node: Function/program end
EXIT or returnexitStatement Node: Regular statement
statementCondition Node: Branch decision
conditionMerge Node: Branch join point
MERGE or emptymergeConnect nodes with appropriate edges:
Sequential Edge: Normal flow
→True Edge: Condition true branch
T or trueFalse Edge: Condition false branch
F or falseBack Edge: Loop iteration
↶ or backCall Edge: Function invocation (interprocedural)
⇒ or callReturn Edge: Function return (interprocedural)
⇐ or returnLoops: Create back edges from body to header
Break: Create edge from break statement to loop exit
Continue: Create back edge from continue to loop header
Return: Create edge from return to EXIT node
Exceptions: Create exception edges from try block to catch handlers
Produce CFG in requested format(s):
Code:
def max_value(x, y):
if x > y:
result = x
else:
result = y
return resultCFG (Textual):
Node 1 (ENTRY):
Label: max_value
Successors: [2]
Node 2 (x > y):
Type: condition
Predecessors: [1]
Successors: [3 (true), 4 (false)]
Node 3 (result = x):
Type: statement
Predecessors: [2]
Successors: [5]
Node 4 (result = y):
Type: statement
Predecessors: [2]
Successors: [5]
Node 5 (MERGE):
Type: merge
Predecessors: [3, 4]
Successors: [6]
Node 6 (return result):
Type: statement
Predecessors: [5]
Successors: [7]
Node 7 (EXIT):
Predecessors: [6]CFG (Visual):
ENTRY
↓
[x > y]
↓ ↓
T↓ ↓F
↓ ↓
[result=x] [result=y]
↓ ↓
└→MERGE←┘
↓
[return result]
↓
EXITCFG (DOT):
digraph CFG {
node [shape=box];
n1 [label="ENTRY", shape=ellipse];
n2 [label="x > y", shape=diamond];
n3 [label="result = x"];
n4 [label="result = y"];
n5 [label="MERGE", shape=circle];
n6 [label="return result"];
n7 [label="EXIT", shape=ellipse];
n1 -> n2;
n2 -> n3 [label="T", color=green];
n2 -> n4 [label="F", color=red];
n3 -> n5;
n4 -> n5;
n5 -> n6;
n6 -> n7;
}Code:
def sum_to_n(n):
sum = 0
i = 0
while i < n:
sum += i
i += 1
return sumCFG (Visual):
ENTRY
↓
[sum = 0]
↓
[i = 0]
↓
┌─────────┐
↓ ↑
[i < n] ↑ (back edge)
↓ ↓ ↑
T↓ ↓F ↑
↓ ↓ ↑
[sum += i] ↑
↓ ↑
[i += 1]──────┘
↓F
[return sum]
↓
EXITKey Features:
[i < n][i += 1] to [i < n]CFG (Textual):
Node 1 (ENTRY)
→ Node 2
Node 2 (sum = 0)
→ Node 3
Node 3 (i = 0)
→ Node 4
Node 4 (i < n) [LOOP HEADER]
→T Node 5
→F Node 7
Node 5 (sum += i)
→ Node 6
Node 6 (i += 1)
→ Node 4 [BACK EDGE]
Node 7 (return sum)
→ Node 8
Node 8 (EXIT)Code:
def process(arr, threshold):
result = []
for item in arr:
if item > threshold:
result.append(item * 2)
else:
if item < 0:
continue
result.append(item)
return resultCFG (Visual):
ENTRY
↓
[result = []]
↓
[i = 0]
↓
┌──────────────────────┐
↓ ↑
[i < len(arr)] ↑
↓T ↑
[item = arr[i]] ↑
↓ ↑
[item > threshold] ↑
↓T ↓F ↑
[result.append [item<0] ↑
(item*2)] ↓T ↑
↓ └──────┘ (continue)
↓ ↓F
↓ [result.append(item)]
↓ ↓
└──→MERGE←──────┘
↓
[i += 1]───────┘
↓F
[return result]
↓
EXITKey Features:
Code:
def factorial(n):
if n <= 1:
return 1
return n * factorial(n-1)
def compute(x):
result = factorial(x)
return result + 1Intraprocedural CFG (factorial only):
factorial:ENTRY
↓
[n <= 1]
↓ ↓
T↓ ↓F
↓ ↓
[return 1] [call factorial(n-1)]
↓ ↓
↓ [return n * result]
↓ ↓
└──→EXIT←───┘Interprocedural CFG (with call edges):
compute:ENTRY
↓
[call factorial(x)] ⇒ factorial:ENTRY
↓ ↓
↓ [n <= 1]
↓ ↓ ↓
↓ ... ...
↓ ↓
[result = ...] ⇐ factorial:EXIT
↓
[return result + 1]
↓
compute:EXITKey Features:
Human-readable node and edge listing:
Node <id> (<label>):
Type: <type>
Predecessors: [<ids>]
Successors: [<ids>]Graph visualization format:
digraph CFG {
node [shape=box];
n1 [label="...", shape=...];
n1 -> n2 [label="...", color=...];
}Generate PNG/SVG with: dot -Tpng cfg.dot -o cfg.png
Machine-readable for tool integration:
{
"nodes": [
{"id": 1, "label": "...", "type": "..."}
],
"edges": [
{"from": 1, "to": 2, "type": "..."}
]
}Scope: Single function Nodes: Statements within function Edges: Control flow within function Calls: Treated as single statement nodes
Use cases:
Scope: Multiple functions Nodes: Statements across all functions Edges: Control flow + call/return edges Calls: Explicit call and return edges
Use cases:
Node A dominates node B if every path from ENTRY to B passes through A.
Uses: Loop header identification, optimization
Node A post-dominates node B if every path from B to EXIT passes through A.
Uses: Control dependence, merge point identification
Node B is reachable from node A if there exists a path from A to B.
Uses: Dead code detection, path analysis
Maximal set of nodes where every node is reachable from every other.
Uses: Loop detection, cycle analysis
Pattern: Linear flow See: cfg_patterns.md
Pattern: Diamond shape with merge See: cfg_patterns.md
Pattern: Back edge from body to header See: cfg_patterns.md
Pattern: Direct edges to exit/header See: cfg_patterns.md
Pattern: Exception edges to handlers See: cfg_patterns.md
Detailed CFG construction patterns:
Load this reference when:
© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/control-flow-abstraction-generator of ArabelaTso/Skills-4-SE.
Open the folder on GitHubat commit 4f38503
Control Flow Abstraction Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Control Flow Abstraction Generator this skillArabelaTso/Skills-4-SE | 253 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Semgrepvigolium/piolium | 140 | 1 repos | ~2.4k | Automated safety check: Notes | MIT | |
| C To AstNarwhal-Lab/MagicSkills | 316 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Semgrep Security Scantrailofbits/skills | 7.4k | — | ~3.7k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| LLM Sast ScannerSunWeb3Sec/llm-sast-scanner | 286 | — | ~6.2k | Automated safety check: Pass | None | |
| Sast SemgrepAgentSecOps/SecOpsAgentKit | 220 | 2 repos | ~2.4k | Automated safety check: Pass | Custom licence |
vigolium/piolium
Run Semgrep static analysis scan on a codebase using parallel subagents.
Narwhal-Lab/MagicSkills
Parse C source code into an Abstract Syntax Tree (AST). An agent skill from Narwhal-Lab/MagicSkills.
trailofbits/skills
Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.
SunWeb3Sec/llm-sast-scanner
General-purpose Static Application Security Testing (SAST) skill for code vulnerability analysis.
AgentSecOps/SecOpsAgentKit
Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.
netdata/netdata
Inspect, review or triage GitHub Code Scanning alerts, including CodeQL findings; apply verified dismissals when authorized.
ArabelaTso/Skills-4-SE
Generate prioritized CVE watchlists and actionable security recommendations for repositories.
ArabelaTso/Skills-4-SE
Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).
ArabelaTso/Skills-4-SE
Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.
ArabelaTso/Skills-4-SE
Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.
ArabelaTso/Skills-4-SE
Automatically migrate Spring MVC applications to Spring Boot.
ArabelaTso/Skills-4-SE
Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.
Categories
Generate abstract Control Flow Graph (CFG) representations of programs showing loops, branches, and function calls for static analysis or verification. Control Flow Abstraction Generator is an agent skill from ArabelaTso/Skills-4-SE. Generate abstract Control Flow Graph (CFG) representations of programs showing loops, branches, and function calls for static analysis or verification.
Control Flow Abstraction Generator fits situations like: visualize program control flow structure; generate CFGs for static analysis tools; create control flow abstractions for formal verification; analyze program paths and reachability.
Run `npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a claude-code`. Or copy the skill folder (skills/control-flow-abstraction-generator in ArabelaTso/Skills-4-SE) into .claude/skills/control-flow-abstraction-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a codex`. Or copy the skill folder (skills/control-flow-abstraction-generator in ArabelaTso/Skills-4-SE) into .agents/skills/control-flow-abstraction-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill control-flow-abstraction-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/control-flow-abstraction-generator, .gemini/skills/control-flow-abstraction-generator, .github/skills/control-flow-abstraction-generator and .opencode/skills/control-flow-abstraction-generator in your project.
Going by SKILL.md and its folder, Control Flow Abstraction Generator needs the command-line tools its instructions call (node). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Control Flow Abstraction Generator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Control Flow Abstraction Generator: Semgrep (vigolium/piolium, 140 stars), C To Ast (Narwhal-Lab/MagicSkills, 316 stars), Semgrep Security Scan (trailofbits/skills, 7.4k stars) and LLM Sast Scanner (SunWeb3Sec/llm-sast-scanner, 286 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on August 21, 2026.
Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.