custom-builtin-functions
OfficialExtend Rego with custom built-ins.
Software Engineering#golang#opa#rego#custom-builtins#policy-engine#chainloop.my_function#builtin-registration
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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.