custom-builtin-functions

Official

Extend Rego with custom built-ins.

Authorchainloop-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The OPA/Rego policy engine supports custom built-in functions written in Go.

Core Features & Use Cases

  • Builtin registration: Create and register a custom builtin in Go (e.g., chainloop.my_function).
  • Policy usage: Use the builtin within Rego policies to implement domain logic.
  • Error handling & context: Ensure proper error messages and support for cancellation via BuiltinContext.

Quick Start

Add a Go implementation for your builtin, register it with the initialization code, and call chainloop.my_function(input) from your Rego policy to compute a result or enforce a rule.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: custom-builtin-functions
Download link: https://github.com/chainloop-dev/chainloop/archive/main.zip#custom-builtin-functions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.