Generate
alirezarezvani/claude-skills
Generate Playwright tests. An agent skill from alirezarezvani/claude-skills.
Uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification.
$ npx skills add ArabelaTso/Skills-4-SE --skill abstract-invariant-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ArabelaTso/Skills-4-SE abstract-invariant-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/abstract-invariant-generator .claude/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .claude/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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/abstract-invariant-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 abstract-invariant-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ArabelaTso/Skills-4-SE abstract-invariant-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/abstract-invariant-generator .agents/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .agents/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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 abstract-invariant-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ArabelaTso/Skills-4-SE abstract-invariant-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/abstract-invariant-generator .cursor/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .cursor/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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/abstract-invariant-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 abstract-invariant-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ArabelaTso/Skills-4-SE abstract-invariant-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/abstract-invariant-generator .gemini/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .gemini/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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 abstract-invariant-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 abstract-invariant-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/abstract-invariant-generator .github/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .github/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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 abstract-invariant-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 abstract-invariant-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/abstract-invariant-generator .opencode/skills/abstract-invariant-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 "abstract-invariant-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/abstract-invariant-generator into .opencode/skills/abstract-invariant-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "abstract-invariant-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.
abstract-invariant-generatorUses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification.
Abstract Invariant Generator is an agent skill from ArabelaTso/Skills-4-SE. Uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification. Generates invariants that capture program behavior and support correctness proofs in Dafny, Isabelle, Coq, and other verification systems. Use when adding formal specifications to code, generating verification conditions, inferring contracts for functions, or discovering loop invariants for proofs.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/function_contracts.md`, `references/invariant_templates.md` and `references/loop_invariants.md`).
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.
6 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python, dafny, isabelle, coq and c).
From 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.
Abstract Invariant Generator loads about 2.4k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 422 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). 422 words, ~2,418 tokens.
.claude/skills/abstract-invariant-generator/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.This skill uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions. It generates formal specifications that support verification and reasoning about program correctness.
Analyze the code to identify where invariants are needed:
Loop Invariants: For each loop
while condition:
# Need: invariant that holds before/after each iteration
bodyFunction Contracts: For each function
def function(params):
# Need: precondition (what must be true on entry)
body
# Need: postcondition (what is guaranteed on exit)Assertions: For verification points
# Need: invariant that holds at this point
assert propertyUse abstract domains to infer properties:
Interval Analysis: Infer numeric ranges
i = 0
while i < n:
# Inferred: 0 ≤ i < n
i += 1
# Inferred: i = nRelational Analysis: Infer relationships between variables
i = 0
j = 0
while i < n:
# Inferred: i = j
i += 1
j += 1Shape Analysis: Infer data structure properties
while node is not None:
# Inferred: node is in the linked list
node = node.nextFor each loop, generate an invariant that:
Template-Based Generation:
Counter Loop:
i = 0
while i < n:
arr[i] = 0
i += 1Generated Invariant:
invariant 0 ≤ i ≤ n
invariant ∀k. 0 ≤ k < i ⟹ arr[k] = 0Accumulator Loop:
sum = 0
i = 0
while i < len(arr):
sum += arr[i]
i += 1Generated Invariant:
invariant 0 ≤ i ≤ len(arr)
invariant sum = Σ(arr[0..i-1])Search Loop:
i = 0
found = False
while i < len(arr) and not found:
if arr[i] == target:
found = True
else:
i += 1Generated Invariant:
invariant 0 ≤ i ≤ len(arr)
invariant ∀k. 0 ≤ k < i ⟹ arr[k] ≠ target
invariant found ⟹ arr[i] = targetInfer what must be true for the function to work correctly:
Array Access Function:
def get_element(arr, index):
return arr[index]Generated Precondition:
requires 0 ≤ index < len(arr)
requires arr is not NoneDivision Function:
def divide(x, y):
return x / yGenerated Precondition:
requires y ≠ 0Linked List Function:
def get_next(node):
return node.nextGenerated Precondition:
requires node is not NoneInfer what the function guarantees on exit:
Maximum Function:
def find_max(arr):
max_val = arr[0]
for i in range(1, len(arr)):
if arr[i] > max_val:
max_val = arr[i]
return max_valGenerated Postcondition:
ensures result ∈ arr
ensures ∀x ∈ arr. x ≤ resultSorting Function:
def sort(arr):
# ... sorting logic ...
return sorted_arrGenerated Postcondition:
ensures len(result) = len(arr)
ensures ∀i. 0 ≤ i < len(result)-1 ⟹ result[i] ≤ result[i+1]
ensures multiset(result) = multiset(arr)Search Function:
def binary_search(arr, target):
# ... search logic ...
return indexGenerated Postcondition:
ensures result = -1 ∨ (0 ≤ result < len(arr) ∧ arr[result] = target)
ensures result ≠ -1 ⟹ arr[result] = target
ensures result = -1 ⟹ target ∉ arrFormat invariants for the target verification system:
Dafny:
method FindMax(arr: array<int>) returns (max: int)
requires arr.Length > 0
ensures max in arr[..]
ensures forall i :: 0 <= i < arr.Length ==> arr[i] <= max
{
max := arr[0];
var i := 1;
while i < arr.Length
invariant 1 <= i <= arr.Length
invariant max in arr[..i]
invariant forall k :: 0 <= k < i ==> arr[k] <= max
{
if arr[i] > max {
max := arr[i];
}
i := i + 1;
}
}Isabelle/HOL:
lemma find_max_correct:
assumes "length arr > 0"
shows "find_max arr ∈ set arr ∧
(∀x ∈ set arr. x ≤ find_max arr)"Coq:
Lemma find_max_correct : forall (arr : list nat),
length arr > 0 ->
In (find_max arr) arr /\
(forall x, In x arr -> x <= find_max arr).ACSL (for C):
/*@ requires n > 0;
@ requires \valid(arr + (0..n-1));
@ ensures \result >= 0 && \result < n;
@ ensures \forall integer k; 0 <= k < n ==> arr[k] <= arr[\result];
@*/
int find_max(int arr[], int n) {
int max_idx = 0;
/*@ loop invariant 1 <= i <= n;
@ loop invariant 0 <= max_idx < i;
@ loop invariant \forall integer k; 0 <= k < i ==> arr[k] <= arr[max_idx];
@ loop variant n - i;
@*/
for (int i = 1; i < n; i++) {
if (arr[i] > arr[max_idx]) {
max_idx = i;
}
}
return max_idx;
}Input Code (Python):
def insertion_sort(arr):
for i in range(1, len(arr)):
key = arr[i]
j = i - 1
while j >= 0 and arr[j] > key:
arr[j + 1] = arr[j]
j -= 1
arr[j + 1] = keyAnalysis:
Outer Loop (for i in range(1, len(arr))):
Inner Loop (while j >= 0 and arr[j] > key):
Generated Invariants (Dafny):
method InsertionSort(arr: array<int>)
requires arr.Length >= 0
ensures sorted(arr[..])
ensures multiset(arr[..]) == multiset(old(arr[..]))
modifies arr
{
var i := 1;
while i < arr.Length
invariant 1 <= i <= arr.Length
invariant sorted(arr[..i])
invariant multiset(arr[..]) == multiset(old(arr[..]))
{
var key := arr[i];
var j := i - 1;
while j >= 0 && arr[j] > key
invariant -1 <= j < i
invariant sorted(arr[..j+1])
invariant sorted(arr[j+2..i+1])
invariant forall k :: j+2 <= k <= i ==> arr[k] > key
invariant multiset(arr[..]) == multiset(old(arr[..]))
{
arr[j + 1] := arr[j];
j := j - 1;
}
arr[j + 1] := key;
i := i + 1;
}
}
predicate sorted(s: seq<int>) {
forall i, j :: 0 <= i < j < |s| ==> s[i] <= s[j]
}Explanation:
Outer Loop Invariants:
1 <= i <= arr.Length: Loop counter boundssorted(arr[..i]): First i elements are sortedmultiset(arr[..]) == multiset(old(arr[..])): Permutation preservationInner Loop Invariants:
-1 <= j < i: Loop counter boundssorted(arr[..j+1]): Elements before j+1 remain sortedsorted(arr[j+2..i+1]): Shifted elements remain sortedforall k :: j+2 <= k <= i ==> arr[k] > key: Shifted elements are greater than keymultiset(arr[..]) == multiset(old(arr[..])): Permutation preservationinvariant 0 ≤ i ≤ n
invariant low ≤ mid ≤ highinvariant ∀k. 0 ≤ k < i ⟹ P(arr[k])
invariant sorted(arr[0..i])
invariant arr[i] = max(arr[0..i])invariant i + j = n
invariant i = 2 * j
invariant sum = Σ(arr[0..i-1])invariant acyclic(list)
invariant node ∈ reachable(head)
invariant size(tree) = ninvariant multiset(arr) = multiset(old(arr))
invariant set(arr) = set(old(arr))Sometimes initial invariants are too weak. Strengthen them:
Weak:
invariant 0 ≤ i ≤ nStrengthened:
invariant 0 ≤ i ≤ n
invariant ∀k. 0 ≤ k < i ⟹ processed(arr[k])Technique: Add properties about what has been accomplished so far.
Generate invariants for each level:
for i in range(n):
for j in range(m):
matrix[i][j] = 0Invariants:
Outer loop:
invariant 0 ≤ i ≤ n
invariant ∀r. 0 ≤ r < i ⟹ (∀c. 0 ≤ c < m ⟹ matrix[r][c] = 0)
Inner loop:
invariant 0 ≤ j ≤ m
invariant ∀c. 0 ≤ c < j ⟹ matrix[i][c] = 0Handle all exit paths:
while i < n and not found:
if arr[i] == target:
found = True
i += 1Invariants:
invariant 0 ≤ i ≤ n
invariant found ⟹ arr[i-1] = target
invariant ¬found ⟹ (∀k. 0 ≤ k < i ⟹ arr[k] ≠ target)For detailed invariant generation techniques and patterns:
© 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 4 other files (references) in skills/abstract-invariant-generator of ArabelaTso/Skills-4-SE.
Open the folder on GitHubat commit 4f38503
Abstract Invariant 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 |
|---|---|---|---|---|---|---|
| Abstract Invariant Generator this skillArabelaTso/Skills-4-SE | 253 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Generatealirezarezvani/claude-skills | 28k | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Cloud Function Generatorjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~568 | Automated safety check: Pass | MIT | |
| Lambda Function Generatorjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~570 | Automated safety check: Pass | MIT | |
| Window Function Generatorjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~580 | Automated safety check: Pass | MIT | |
| Graphical Abstract Generatoraipoch/medical-research-skills | 1.9k | — | ~3.2k | Automated safety check: Pass | MIT |
alirezarezvani/claude-skills
Generate Playwright tests. An agent skill from alirezarezvani/claude-skills.
jeremylongshore/tons-of-skills-marketplace
Generate cloud function generator operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.
jeremylongshore/tons-of-skills-marketplace
Generate lambda function generator operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.
jeremylongshore/tons-of-skills-marketplace
Generate window function generator operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.
aipoch/medical-research-skills
Converts a biomedical study storyline into a graphical abstract and, when direct image capability is available, generates the graphical abstract directly; otherwise it falls back to prompts, Mermaid…
nexu-io/open-design
Generate images and videos using fal.ai AI models. An agent skill from nexu-io/open-design.
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.
Uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification. Abstract Invariant Generator is an agent skill from ArabelaTso/Skills-4-SE. Uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification.
Abstract Invariant Generator fits situations like: adding formal specifications to code; generating verification conditions; inferring contracts for functions; discovering loop invariants for proofs.
Run `npx skills add ArabelaTso/Skills-4-SE --skill abstract-invariant-generator -a claude-code`. Or copy the skill folder (skills/abstract-invariant-generator in ArabelaTso/Skills-4-SE) into .claude/skills/abstract-invariant-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ArabelaTso/Skills-4-SE --skill abstract-invariant-generator -a codex`. Or copy the skill folder (skills/abstract-invariant-generator in ArabelaTso/Skills-4-SE) into .agents/skills/abstract-invariant-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 abstract-invariant-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/abstract-invariant-generator, .gemini/skills/abstract-invariant-generator, .github/skills/abstract-invariant-generator and .opencode/skills/abstract-invariant-generator in your project.
SKILL.md names no scripts, command-line tools or credentials: Abstract Invariant Generator is instructions for the agent only. 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.
Abstract Invariant 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.4k tokens (SKILL.md is roughly 9.7k 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 9.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Abstract Invariant Generator: Generate (alirezarezvani/claude-skills, 28k stars), Cloud Function Generator (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Lambda Function Generator (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Window Function Generator (jeremylongshore/tons-of-skills-marketplace, 2.8k 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 170 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.