smart-contract-formal-verification
하는 일
이 도구는 엄격한 수학적 시험을 사용해 스마트 계약(블록체인에서 실행되는 프로그램)이 의도한 대로 작동하는지 확인합니다. 사용되기 전에 보안 결함을 찾는 데 도움을 줍니다.
사용하는 경우
- ✓새 계약을 위한 보안 규칙을 만들 때.
- ✓감사자와 개발자가 함께 계약을 검토해야 할 때.
- ✓계약이 안전한지 보여 주는 보고서를 만들고 싶을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/smart-contract-formal-verification/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 암호화폐 거래 계약이 해커로부터 안전한지 어떻게 검증할 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
계약의 운영 규칙을 정의하고, 이 규칙이 항상 지켜지는지 수학적 시험을 적용하며, 보안 보고서를 만듭니다. 계약이 사용되기 전에 문제를 찾는 데 도움을 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Smart Contract Formal Verification
What it is: Applies rigorous mathematical invariant proofs, symbolic execution engines, and property-based fuzz tests to verify smart contract safety.
Overview
Provides a standardized, auditable framework and data model for Smart Contract Formal Verification operations across distributed engineering and decentralized application systems.
When to Use This Skill
- When formalizing architectural contracts, security invariants, or operational limits for Smart Contract Formal Verification.
- When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
- When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.
How It Works
- Define the parameters, thresholds, and identity bindings required for the target operational register.
- Select appropriate boundary enforcement values from validated enum select sets.
- Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.
Field Reference
| # | Field Name | Type | SQL Type | JSON Schema Type | Notion Property Type | Example Value |
|---|---|---|---|---|---|---|
| 1 | Formal Spec ID | id |
SERIAL PRIMARY KEY |
integer |
Text | SPEC-001 |
| 2 | Target Contract Module | text |
VARCHAR(64) |
string |
Text | vault_liquidity_engine |
| 3 | State Transition Property | text |
VARCHAR(128) |
string |
Text | Total Assets Equals Sum of Shares |
| 4 | Verification Method | select |
VARCHAR(64) |
string |
Select | Foundry Invariant Fuzzing |
| 5 | Fuzz Runs Count | number |
INTEGER |
number |
Number | 100000 |
| 6 | Symbolic Execution Engine | select |
VARCHAR(32) |
string |
Select | Certora Prover |
| 7 | Counterexample Discovered | select |
VARCHAR(16) |
string |
Select | No |
| 8 | Mathematical Theorem Proved | select |
VARCHAR(16) |
string |
Select | Yes |
| 9 | Invariant Violation Tolerance | currency |
NUMERIC(14,2) |
number |
Number | 0.00 |
| 10 | Formal Verification Status | select |
VARCHAR(32) |
string |
Select | Formally Verified |
| 11 | Proof Generation Date | date |
DATE |
string, format: date |
Date | 2026-10-01 |
Select Options
Verification Method
Foundry Invariant Fuzzing | Halmos Symbolic Execution | Certora Rule Prover | SMT Solver
Symbolic Execution Engine
Certora Prover | Halmos | Z3 SMT | None (Fuzzing Only)
Counterexample Discovered
Yes | No
Mathematical Theorem Proved
Yes | No
Formal Verification Status
Formally Verified | Violations Found | Proof In Progress
Relations
Audit Reference-> links to the formal review documentation or test repository.Target Architecture-> links to the deployed contract or autonomous agent runtime component.
Examples
Prompt
How do I configure and track Smart Contract Formal Verification for our production environment?
Recommended Next Step
Generate the unified field schema, SQL DDL migration, and JSON validation schema to register into your system catalog.
Workflow: Define criteria -> Run automated verification -> Record baseline -> Monitor invariants.
Best Practices
- Enforce strict typing on numerical bounds and currency amounts; avoid unstructured free-text fields for critical states.
- Re-run validation test suites on every state-altering commit or parameter change.
- Keep example data synthetic and isolated from production cryptographic keys or private endpoints.
Limitations
- Provides architectural specifications, data models, and verification schemas; does not execute direct transaction signing without authorized external tooling.
- Requires network connectivity and valid RPC credentials when querying on-chain states.
Security & Safety Notes
- All parameters declare
risk: safe. No unauthorized state modification or privileged credential access is performed. - Use synthetic dummy keys and mock addresses in test suites and local verification scripts.
Common Pitfalls
- Problem: Mismatched decimal precision between contract runtime and database register. Solution: Always verify decimals using the explicit field mapping in this reference.
- Problem: Missing authorization checks prior to state update.
…
자주 묻는 질문
「불변식(invariants)」이란 무엇인가요?
계약에서 항상 참이어야 하는 규칙입니다. 예를 들어 '계좌의 총 금액은 스스로 줄어들 수 없다'와 같습니다.
「기호 실행(symbolic execution)」이란 무엇인가요?
일반적인 값으로 계약을 시험해 가능한 모든 실행 경로를 보고, 그중 오류로 이어지는 경로가 있는지 확인하는 방법입니다.
이 도구가 제 계약을 고칠 수 있나요?
아니요, 이 도구는 보안 문제를 찾아냅니다. 수정은 계약 개발자가 해야 합니다.
상세 정보
작성자의 원본 설명
Foundry and Soroban formal invariant verification register: state transition rules, boundary invariant properties, and symbolic execution checks.
인기도
- GitHub 스타
- 48k
- 순위
- #5812
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.