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.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill formal-spec-generator
Generate formal specifications in Isabelle/HOL or Coq from informal descriptions, source code, or mathematical statements.
Identify what type of input is provided:
Ask the user which formal proof assistant to target:
If not specified, default to generating both versions.
Determine what needs to be formalized:
Use the reference files for syntax and patterns:
Generate specifications that include:
sorry in Isabelle or Admitted in Coq)Organize the generated specifications clearly:
For Isabelle/HOL:
theory TheoryName
imports Main
begin
(* Data type definitions *)
datatype ...
(* Function definitions *)
fun function_name :: "types" where
...
(* Predicates and properties *)
definition property_name :: "type" where
...
(* Correctness specifications *)
theorem theorem_name:
"specification"
sorry
end
For Coq:
Require Import List Arith.
Import ListNotations.
(* Data type definitions *)
Inductive ...
(* Function definitions *)
Fixpoint function_name ... :=
...
(* Predicates and properties *)
Definition property_name ... : Prop :=
...
(* Correctness theorems *)
Theorem theorem_name :
specification.
Proof.
Admitted.
When given natural language descriptions:
Example: "A function that finds the maximum element in a non-empty list"
list nat (precondition: non-empty)natWhen given existing implementations:
When given mathematical statements:
For complete worked examples including insertion sort, binary search, and stack data structures, see examples.md.
sorry/AdmittedGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take arabelatso/formal-spec-generator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.