eiffel-contracts

Generate Eiffel class skeletons with preconditions, postconditions, and invariants.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/simple-eiffel/eiffel-spec-kit --skill eiffel-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eiffel-contracts
Source: https://github.com/simple-eiffel/eiffel-spec-kit/tree/main/eiffel-contracts
Command: npx skills add https://github.com/simple-eiffel/eiffel-spec-kit --skill eiffel-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of Eiffel class skeletons with preconditions, postconditions, and invariants, together with skeletal test classes, so developers can start from a contracts-first baseline.

Core Features & Use Cases

  • Generates contract-enabled class skeletons with require/ensure/invariant blocks and feature stubs.
  • Produces skeletal test classes that exercise the contracts and provide a starting point for verification.
  • Prepares project structure (ECF, MML model queries) to support phase-1 workflow in the Eiffel Spec Kit.

Quick Start

Run /eiffel.contracts <project-path> to create phase-1 artifacts for your Eiffel project.

Frequently Asked Questions about eiffel-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Eiffel class skeletons with preconditions and postconditions?

You can generate Eiffel class skeletons with require, ensure, and invariant blocks by running the /eiffel.contracts command on your project path to bootstrap contract-driven development.

What is contract-driven development in Eiffel and how do I set it up?

Contract-driven development in Eiffel starts from class skeletons with preconditions, postconditions, and invariants. This skill automates that baseline setup, producing ECF configurations and MML model queries for immediate verification.

How do I create skeletal test classes for Eiffel contracts?

Creating skeletal test classes for Eiffel contracts happens automatically when generating class skeletons. The skill produces test scaffolding that exercises your require and ensure blocks to provide a starting point for verification.

Does the Eiffel Spec Kit support MML model queries and ECF setup?

Yes, the Eiffel Spec Kit workflow supports MML model queries and ECF setup. This skill prepares your project structure with these configurations as part of the phase-1 bootstrapping process.

Can I bootstrap Eiffel invariant blocks and feature stubs automatically?

Yes, you can bootstrap Eiffel invariant blocks and feature stubs automatically. The skill generates contract-enabled class skeletons with all require, ensure, and invariant blocks included.

When should I use a contracts-first approach for Eiffel projects?

Use a contracts-first approach during phase 1 of your Eiffel project to establish preconditions, postconditions, and invariants before implementation, enabling immediate contract verification through skeletal tests.