Individual skill
formal-spec-generator
Generate formal specifications (definitions, predicates, invariants, pre/post-conditions) in Isabelle/HOL or Coq from informal requirements, source code, pseudocode, or mathematical descriptions. Use when users need to: (1) Formalize algorithms or data structures, (2) Create function specifications with contracts, (3) Generate predicates and properties for verification, (4) Translate informal requirements into formal logic, (5) Specify invariants for loops or data structures, or (6) Create formal definitions for mathematical concepts. Supports both Isabelle/HOL and Coq equally.
skills/formal-spec-generator/SKILL.md
Source commit 4f38503747e0617504bce5329283ef837d375c09
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Instructions only
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 260
- Repository last updated
- Aug 21, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- metaprogramming Repository topic
- software-development Repository topic
- software-engineering Repository topic
- claude Repository topic
- claude-code Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 6,042 bytesSKILL.mdcore · 6,042 bytesSKILL.mdcore · 6,042 bytesreferences/coq_patterns.mddoc · 2,836 bytesreferences/examples.mddoc · 7,343 bytesreferences/isabelle_patterns.mddoc · 2,657 bytes
Read excerpt
# Formal Specification Generator
Generate formal specifications in Isabelle/HOL or Coq from informal descriptions, source code, or mathematical statements.
## Workflow
### 1. Understand the Input
Identify what type of input is provided:
- **Informal requirements**: Natural language descriptions (e.g., "a function that sorts a list")
- **Source code**: Existing implementations in Python, C, Java, or other languages
- **Pseudocode**: Algorithmic descriptions with semi-formal structure
- **Mathematical definitions**: Properties or theorems to formalize