Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/defi-protocol-templates
Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems.
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
and 1 more in the full report
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Before registering a new governance proposal, what condition must be checked on the proposer's voting power?
| Checked | Without skill | With skill |
|---|---|---|
| checks proposer past votes at previous block against proposalThreshold | Missed | Passed |
The instructions your model reads when the skill loads.
Production-ready templates for common DeFi protocols including staking, AMMs, governance, lending, and flash loans.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract StakingRewards is ReentrancyGuard, Ownable {
IERC20 public stakingToken;
IERC20 public rewardsToken;
uint256 public rewardRate = 100; // Rewards per second
uint256 public lastUpdateTime;
uint256 public rewardPerTokenStored;
mapping(address => uint256) public userRewardPerTokenPaid;
mapping(address => uint256) public rewards;
mapping(address => uint256) public balances;
uint256 private _totalSupply;
event Staked(address indexed user, uint256 amount);
event Withdrawn(address indexed user, uint256 amount);
event RewardPaid(address indexed user, uint256 reward);
test cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.