Formal methods toolkit for multi-agent development: define agent contracts in VDM-SL, generate Phase 2 design documents (PROTOCOL.md, API-SIGNATURES.md), verify specifications, auto-prove with Z3, derive database schemas (DDL) with deviation tracking and invariant traceability, generate code scaffolds with runtime contract checks, auto-generate contract tests from specs and design documents, run end-to-end integrated workflows, route each module to the lightest capable model tier to cut token
Skills 15 in the Claude listing
Define contract マルチエージェント開発におけるエージェント間契約をVDM-SLで定義し、 設計文書(PROTOCOL.md、API-SIGNATURES.md)を生成する。 「エージェントの契約を定義したい」「エージェント間のインターフェースを仕様化したい」 「契約を書きたい」「仕様を作りたい」「エージェントの入出力を定義したい」 「新しいエージェントを追加したい」「APIの仕様を形式的に書きたい」 「プロトコル Export human spec Generate a human-readable natural language specification document (Markdown) from a VDM-SL formal specification. Extract spec Extract a provisional VDM-SL specification from existing source code. Formal methods guide Provide reference knowledge on VDM-SL and formal methods. Generate code Generate TypeScript/Python code scaffolds from VDM-SL specifications. Generate db schema VDM-SL仕様の型・不変条件・状態定義からデータベーススキーマ(DDL)を導出する。 「仕様からDBスキーマを生成して」「テーブル設計をして」「DDLを作って」 「不変条件をDB制約に変換して」「データモデルを設計して」「ER図のもとになる スキーマを作って」といったリクエストに使用する。 English triggers: "generate a database schema from th Generate tests VDM-SL仕様と設計文書(PROTOCOL.md、API-SIGNATURES.md)から Jest/Vitest互換の契約テストを自動生成する。 「仕様からテストを生成して」「契約テストを作って」「テストを自動生成して」 「不変条件のテストを書いて」「プロトコルのテストを作って」 「境界値テストを生成して」といったリクエストに使用する。 English triggers: "generate Import natural spec Import a natural language specification document (Markdown) and interactively convert it to a VDM-SL formal specification. Integrated workflow Orchestrate the full formal development pipeline end-to-end: Define (VDM-SL contract) → Verify (VDMJ) → Prove (Z3, optional) → Generate (TS/Python code) → Test (contract tests), with automated handoff Reconcile code Reconcile existing code with the confirmed VDM-SL specification. Refine spec Refine a provisional VDM-SL specification through dialogue with the user, uncovering the true specification that exists in the user's mind. Reverse workflow Orchestrate the full reverse engineering pipeline: Extract provisional spec from existing code, refine through dialogue to uncover the true spec, then reconcile code with the confirmed spec. Route models Assign each VDM-SL module to the lightest capable model tier (light / standard / heavy) based on objective complexity signals in the contract itself — operation counts, implicit definitions, state inv Smt verify Convert VDM-SL proof obligations (POs) to SMT-LIB and verify them with the Z3 solver. Verify spec VDM-SL仕様ファイルの検証(構文チェック・型チェック・証明責務生成)と、 設計文書(PROTOCOL.md、API-SIGNATURES.md)の完全性チェックを実行する。 「仕様を検証して」「VDMファイルをチェックして」「型チェックして」 「PO(証明責務)を生成して」「仕様に問題がないか確認して」 「エラーがないかチェックして」「.vdmslファイルを検証」といったリクエストに使用する。