KS
Killer-Skills

scaffold-contract — Categories.community

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

Quality Score

Top 5%
42
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add mgnfy-view/morpho-vault-v2-adapters

Agent Capability Analysis

The scaffold-contract MCP Server by mgnfy-view is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

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 MCP Server

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
Project
SKILL.md
2.8 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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.”

Related Skills

Looking for an alternative to scaffold-contract or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication