invariant-detector

Detect and group business rules from JavaScript code guards.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/ForgePlan/marketplace --skill invariant-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: invariant-detector
Source: https://github.com/ForgePlan/marketplace/tree/main/plugins/forgeplan-brownfield-pack/skills/invariant-detector
Command: npx skills add https://github.com/ForgePlan/marketplace --skill invariant-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Forgeplan, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The invariant-detector Skill addresses the challenge of implicit business rules within code, providing a means to extract and group them for better visibility and auditability.

Core Features & Use Cases

  • Invariant Detection: Extracts business rules from code guards and groups them semantically.
  • Code Auditing: Enhances code auditing by surfacing hidden business logic.
  • Use Case: Imagine you have a codebase with complex access controls. The Skill can detect and categorize access rules, helping identify security gaps or areas requiring review.

Quick Start

Run the 'extract invariant detector' command to initiate the process.

Frequently Asked Questions about invariant-detector

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

FAQPage Schema
How do I extract business rules from JavaScript code guards?

To extract business rules from JavaScript code guards, the invariant-detector applies predefined patterns and heuristic classification to detect, group, and surface hidden validation logic for improved auditability.

What is invariant detection for software security compliance?

Invariant detection for security compliance is the process of identifying and grouping implicit business rules within code guards to enhance auditability and expose hidden logic.

Can I audit complex access controls using heuristic code analysis?

You can audit complex access controls using heuristic code analysis to categorize extracted rules, which helps identify security gaps and areas requiring review.

Do I need specific code patterns for business rule extraction?

Yes, business rule extraction requires analysis of code artifacts containing specific patterns, entities, and validation structures to successfully detect and group invariants.

How do I start extracting invariants from my codebase?

To start extracting invariants from your codebase, run the 'extract invariant detector' command to initiate the automated detection and grouping process.

What are the limitations of heuristic classification for code auditing?

Heuristic classification for code auditing is limited to analyzing artifacts with specific predefined patterns and entities, meaning uncategorized or dynamic validation logic may remain undetected.