capability-analysis

Audit Pact 5 capability guards across modules for enforcement and governance.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pact-based capability auditing helps teams verify correct policy enforcement and security boundaries across modules.

Core Features & Use Cases

  • Identify all defined capabilities (defcap) and their usage across functions.
  • Validate installation and management of @managed capabilities, including allowance tracking and guard integration.
  • Review cross-module capability composition and ensure no bypass paths exist.

Quick Start

Provide a Pact 5 module or snippet to begin a capability-guard audit.

Frequently Asked Questions about capability-analysis

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

FAQPage Schema
How do I audit Pact 5 capability guards in my smart contract modules?

To audit Pact 5 capability guards, provide your module or code snippet to analyze defcap definitions, verify @managed capability installation, and ensure guard enforcement aligns with governance policies.

What does @managed capability allowance tracking verify during a security audit?

@managed capability allowance tracking verifies that installation, guard integration, and management scope align correctly, ensuring no unauthorized policy bypass paths exist across cross-module interactions.

How can I check for bypass paths in cross-module capability composition?

To check for bypass paths in cross-module capability composition, analyze how capabilities are acquired and enforced across modules to confirm guard enforcement prevents unauthorized access.

Can I get concrete remediation steps for misaligned Pact capability guards?

Yes, analyzing Pact capability guards provides concrete remediation steps by identifying edge cases in defcap usage and suggesting fixes to ensure guards align with governance and reduce risk.

When do I need to analyze install-capability scope for governance compliance?

You need to analyze install-capability scope when validating policy enforcement and security boundaries across modules, ensuring that guard enforcement patterns correctly restrict unauthorized actions.

What are common edge cases when verifying Pact capability guard enforcement?

Common edge cases involve incorrect @managed capability installation, misaligned cross-module composition, and bypass paths where guard enforcement fails to restrict capabilities according to governance policies.