scaffold-contract — community scaffold-contract, morpho-vault-v2-adapters, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for DeFi-focused AI Agents requiring standardized Solidity contract structures and NatSpec documentation Morpho vault v2 adapters for popular DeFi protocols

mgnfy-view mgnfy-view
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The scaffold-contract skill by mgnfy-view is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for DeFi-focused AI Agents requiring standardized Solidity contract structures and NatSpec documentation

Core Value

Empowers agents to create audit-friendly Solidity modules with a standard structure, leveraging Morpho vault v2 adapters for popular DeFi protocols like Ethereum, and utilizing NatSpec documentation for transparent contract development

Capabilities Granted for scaffold-contract

Generating new contract or module skeletons for DeFi protocol development
Creating consistent layouts for vault, strategy, adapter, or manager implementation
Establishing a standard contract surface for spec-to-implementation processes

! Prerequisites & Limits

  • Focuses solely on contract structure and interfaces, not behavior or tests
  • Requires Solidity programming language compatibility
  • Limited to DeFi protocol development use cases
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

scaffold-contract

Install scaffold-contract, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Skill: scaffold-contract

Purpose

Create a new Solidity module skeleton with a standard, audit-friendly structure and NatSpec documentation, suitable for DeFi protocol development.

This skill focuses only on structure and interfaces, not behavior or tests.

When to Invoke

  • Starting a new contract or module
  • Adding a new vault, strategy, adapter, or manager
  • Establishing a consistent layout before implementation begins
  • Preparing a contract surface before spec-to-implementation

Inputs Required

  • Contract name
  • Module type (e.g. vault, strategy, adapter, library)
  • Upgradeability model (immutable or upgradeable)
  • Solidity version (if different from repo default)
  • Required inheritance (base contracts, mixins)
  • Required interfaces to implement

Actions

1) Generate a Solidity contract skeleton

The generated contract must include:

  • SPDX identifier
  • Solidity pragma
  • Imports following .codex/constraints/solidity-style.md
  • Contract declaration
  • Explicit sections for:
    • constants
    • immutables
    • state variables
    • errors
    • events
    • constructor or initializer
    • external/public function declarations
    • internal helper functions

All public and external functions must include NatSpec comments describing:

  • intent
  • parameters
  • return values
  • assumptions (if any)

Function bodies may be empty or revert with a NotImplemented-style custom error where appropriate.

2) Define explicit placeholders (TODOs)

Add inline TODO comments indicating where future work belongs, including:

  • business logic
  • accounting paths
  • external integrations
  • access control checks
  • invariants that must later hold

TODOs must include context explaining what is missing and why.

Constraints and Safety Rules

  • Must not implement business logic
  • Must not generate or modify any tests
  • Must not introduce external calls
  • Must not assume ERC20 compliance
  • Must comply with all rules in .codex/constraints/solidity-style.md
  • Storage layout for upgradeable contracts must be:
    • explicit
    • append-only
    • clearly sectioned
  • Public APIs must be:
    • fully declared
    • documented
    • unimplemented where appropriate

Outputs

  • src/<module-path>/<Contract>.sol

No test files, mocks, or scaffolding may be generated by this skill.

Verification

  • Contract compiles with forge build
  • Formatting passes forge fmt
  • No tests are created or modified

Handoff

After successful execution, this skill should be followed by:

  • spec-to-implementation to implement behavior
  • implementation-to-tests to generate scenario-based tests

Example Prompts

  • “Use scaffold-contract to create an upgradeable ERC4626-style vault named MorphoVault with documented public interfaces only.”
  • “Scaffold a non-upgradeable adapter contract implementing IMarketAdapter without adding any logic or tests.”

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is scaffold-contract?

Ideal for DeFi-focused AI Agents requiring standardized Solidity contract structures and NatSpec documentation Morpho vault v2 adapters for popular DeFi protocols

How do I install scaffold-contract?

Run the command: npx killer-skills add mgnfy-view/morpho-vault-v2-adapters/scaffold-contract. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for scaffold-contract?

Key use cases include: Generating new contract or module skeletons for DeFi protocol development, Creating consistent layouts for vault, strategy, adapter, or manager implementation, Establishing a standard contract surface for spec-to-implementation processes.

Which IDEs are compatible with scaffold-contract?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for scaffold-contract?

Focuses solely on contract structure and interfaces, not behavior or tests. Requires Solidity programming language compatibility. Limited to DeFi protocol development use cases.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add mgnfy-view/morpho-vault-v2-adapters/scaffold-contract. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use scaffold-contract immediately in the current project.

Related Skills

Looking for an alternative to scaffold-contract or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI