subnet-governance

Set up on-chain governance for Avalanche Subnets with OpenZeppelin contracts.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Ayomisco/avaxskills --skill subnet-governance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subnet-governance
Source: https://github.com/Ayomisco/avaxskills/tree/main/website/public/subnet-governance
Command: npx skills add https://github.com/Ayomisco/avaxskills --skill subnet-governance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openzeppelin/contracts, @openzeppelin/contracts-upgradeable, @openzeppelin/contracts/governance, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for implementing secure, transparent, and community-driven on-chain governance for Avalanche Subnets.

Core Features & Use Cases

  • Governor Contract Setup: Guides deploying and configuring governor contracts with voting parameters, quorum, and timelock controls.
  • Proposal Management: Facilitates proposing protocol upgrades, configuration changes, or emergency actions via integrated scripts.
  • Emergency and Security Controls: Implements guardian roles, pause mechanisms, and precompile governance change proposals to ensure protocol safety during crises.
  • Use Case: A community deploys this Skill to facilitate token holder voting on subnet upgrades, validator set changes, or critical parameter adjustments, ensuring trustless decision-making.

Quick Start

Use the subnet-governance skill to set up governor contracts, deploy the timelock, and initiate a governance proposal for subnet parameter changes.

Frequently Asked Questions about subnet-governance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up on-chain governance for an Avalanche Subnet?

To set up on-chain governance for an Avalanche Subnet, you deploy governor contracts with specific voting parameters, configure a timelock for delayed execution, and use scripts to manage proposals. This framework enables transparent, community-driven protocol upgrades.

Can I implement emergency pauses and guardian roles for Avalanche Subnet proposals?

Yes, you can implement emergency pauses and guardian roles for Avalanche Subnet proposals. The governance framework includes security controls that allow designated guardians to halt operations and initiate emergency actions during crises.

Does this governance framework support OpenZeppelin contracts and timelock execution?

Yes, the governance framework relies on OpenZeppelin contracts and governance libraries to implement timelock execution. It uses these dependencies to securely schedule and execute protocol upgrades after community voting concludes.

What is the best way to manage validator approval processes within a decentralized subnet framework?

The best way to manage validator approval processes within a decentralized subnet framework is through custom precompile interaction scripts. These scripts facilitate proposing and voting on validator set changes via the governor contracts.

How do token holders vote on subnet parameter adjustments using this governance system?

Token holders vote on subnet parameter adjustments by submitting protocol upgrade proposals through integrated scripts. The governor contract then tallies votes against a configured quorum before executing the parameter changes via timelock.

Are there limitations when modifying precompile governance settings on an Avalanche Subnet?

Modifying precompile governance settings on an Avalanche Subnet requires going through the timelock execution process. Changes cannot be applied instantly and must be proposed, approved by token holders, and scheduled to ensure protocol safety.