pact-capabilities

Explain and apply Pact 5 capability patterns for guarded smart contract access.

1|1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill pact-capabilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pact-capabilities
Source: https://github.com/Pact-Community-Organization/github-marketplace/tree/main/skills/pact-capabilities
Command: npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill pact-capabilities

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pact 5 capability patterns are powerful and tricky to implement correctly; this skill helps engineers understand and apply them to build secure, composable contracts.

Core Features & Use Cases

  • Unmanaged (Boolean Guard) patterns for simple access checks
  • Managed (@managed) capabilities, balance tracking, and manager functions
  • Event-only (@event) capabilities and automatic event emission
  • compose-capability for inner access grants within a parent scope
  • Guidance on installation, cross-module composition, and scoped signatures
  • Real-world use cases: guarded transfers, governance votes, and upgradable module patterns

Quick Start

Install and prototype a minimal Pact module that defines a simple transfer cap and demonstrates with-capability and require-capability flows.

Frequently Asked Questions about pact-capabilities

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

FAQPage Schema
What is the difference between with-capability and require-capability in Pact smart contracts?

Pact managed capabilities use the @managed keyword to track resource balances and enforce limits via manager functions. This skill covers implementing managed capabilities for secure balance tracking and constrained access control workflows.

How do I use compose-capability for cross-module access control in Pact?

Pact event-only capabilities use the @event keyword to automatically emit events upon execution. This skill demonstrates how to implement @event capabilities for transparent tracking of governance, minting, and access control workflows.

How do I build a secure transfer module using Pact capability patterns?

Yes, Pact capabilities support upgradable module patterns and governance voting workflows. This skill explains how to apply unmanaged Boolean guards, managed capabilities, and composition patterns to secure these real-world use cases.

What are the security considerations when installing capabilities across modules in Pact?

Cross-module capability installation in Pact requires careful handling of scoped signatures and install-capability constraints. This skill details the security considerations and constraints needed to prevent unauthorized access in composed contracts.