Add Rule

Create governance rule entries in Supabase rule_ledger and distribute them via MCP or SQL.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/BedaBeda-Growth/bedabeda-growth-site --skill add-rule-bedabeda-growth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Add Rule
Source: https://github.com/BedaBeda-Growth/bedabeda-growth-site/tree/main/skills/add-rule
Command: npx skills add https://github.com/BedaBeda-Growth/bedabeda-growth-site --skill add-rule-bedabeda-growth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Add Rule skill provides a centralized way to create and publish governance policies into a shared rule ledger (Supabase Postgres) so rules can be consistently enforced across all repositories via MCP or direct SQL.

Core Features & Use Cases

  • Create rule metadata entries (rule_key, name, description, domain, trigger_type, trigger_name, priority, severity, autonomy_level) in rule_ledger.rules.
  • Support multiple deployment methods: Supabase MCP, direct psql, or Python-based workflows for integration into existing repos.
  • Ensure mandatory distribution step: run distribute_rules.py across all repos to propagate the new or updated rule.
  • Include guidance for updating or absorbing rule variants (--update) and verification steps.

Quick Start

Draft a new rule and distribute it across all repos using MCP and the distribute_rules.py script.

Frequently Asked Questions about Add Rule

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

FAQPage Schema
How do I create and enforce governance rules across multiple repositories?

To create and enforce governance rules across multiple repositories, you can draft and validate rule metadata in a centralized Supabase rule ledger, then use the distribute_rules.py workflow to propagate changes via MCP or direct SQL.

What is a centralized rule ledger and how does it work for compliance management?

A centralized rule ledger is a Supabase Postgres database that stores governance policy metadata like rule keys, severity, and autonomy levels. It ensures rules are consistently enforced across all connected repositories via MCP tooling.

How do I distribute updated SQL compliance policies to all connected workspaces?

You distribute updated SQL compliance policies by running the mandatory distribute_rules.py script across all target repositories, ensuring the new or updated rules from the Supabase ledger are propagated and applied consistently.

Can I use Supabase MCP to manage company governance rules without direct database access?

Yes, you can use Supabase MCP as an alternative to direct psql access to manage company governance rules. This allows you to draft, validate, and distribute rule metadata entries directly through MCP tooling integrations.

What metadata fields are required when defining a new governance rule in the ledger?

Defining a new governance rule requires metadata fields including rule_key, name, description, domain, trigger_type, trigger_name, priority, severity, and autonomy_level in the rule_ledger.rules table.

How do I update existing rule variants and verify they are applied correctly?

You update existing rule variants by using the --update flag when drafting changes, then running the distribute_rules.py workflow to propagate them, followed by executing the provided verification steps to ensure correct application.