·solidity-security
!

solidity-security

0xlayerghost/solidity-agent-kit

[AUTO-INVOKE]는 Solidity 계약(.sol 파일)을 작성하거나 수정하기 전에 호출되어야 합니다. 개인 키 처리, 접근 제어, 재진입 방지, 가스 안전 및 사전 감사 체크리스트를 다룹니다. 트리거: .sol 소스 파일 생성, 편집 또는 검토와 관련된 모든 작업입니다.

7설치·1트렌드·@0xlayerghost

설치

$npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-security

SKILL.md

| External ETH/token transfer | Use ReentrancyGuard + Checks-Effects-Interactions (CEI) pattern | | ERC20 token interaction | Use SafeERC20 — call safeTransfer / safeTransferFrom, never raw transfer / transferFrom | | Owner-only function | Inherit Ownable2Step (preferred) or Ownable from OZ 4.9.x — Ownable2Step prevents accidental owner loss |

| Multi-role access | Use AccessControl from @openzeppelin/contracts/access/AccessControl.sol | | Token approval | Use safeIncreaseAllowance / safeDecreaseAllowance from SafeERC20 — never raw approve | | Price data needed | Use Chainlink AggregatorV3Interface if feed exists; otherwise TWAP with min-liquidity check — never use spot pool price directly |

| Upgradeable contract | Prefer UUPS (UUPSUpgradeable) over TransparentProxy; always use Initializable | | Solidity version < 0.8.0 | Must use SafeMath — but strongly prefer upgrading to 0.8.20+ | | Emergency scenario | Inherit Pausable, add whenNotPaused to user-facing functions; keep admin/emergency functions unpaused |

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-security
카테고리
!보안
인증됨
최초 등록
2026-02-17
업데이트
2026-02-18

빠른 답변

solidity-security이란?

[AUTO-INVOKE]는 Solidity 계약(.sol 파일)을 작성하거나 수정하기 전에 호출되어야 합니다. 개인 키 처리, 접근 제어, 재진입 방지, 가스 안전 및 사전 감사 체크리스트를 다룹니다. 트리거: .sol 소스 파일 생성, 편집 또는 검토와 관련된 모든 작업입니다. 출처: 0xlayerghost/solidity-agent-kit.

solidity-security 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-security 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/0xlayerghost/solidity-agent-kit

상세

카테고리
!보안
출처
skills.sh
최초 등록
2026-02-17