goast-policy
v0.1.0Guide for writing goast Rego policies: AST input format, Rego v1 rule contract, recipes, and testing workflow
by Masayoshi MizutaniApache-2.075updated 4 weeks ago
Source
git clone https://github.com/m-mizutani/goastClone the source, then follow the repository's marketplace instructions for your runtime. The repository root is the plugin root.
Layout
├── .claude-plugin/plugin.json└── skills/goast-policy/SKILL.md
Skills1
Write, review, and debug Rego policies for goast — the Go AST static analysis tool that lints Go source code with OPA. Use this skill whenever the user wants to create a custom Go lint rule with goast, write or fix a .rego file for `package goast`, understand goast's AST JSON input format, translate a Go coding convention ("forbid fmt.Println", "every function must take context.Context first") into a policy, or debug why a goast policy does not match. Trigger even if the user only says "add a goast rule" or shows a failing `goast eval` run.
Manifests1
{
"name": "goast-policy",
"description": "Guide for writing goast Rego policies: AST input format, Rego v1 rule contract, recipes, and testing workflow",
"version": "0.1.0",
"author": {
"name": "Masayoshi Mizutani",
"url": "https://github.com/m-mizutani"
},
"homepage": "https://github.com/m-mizutani/goast",
"repository": "https://github.com/m-mizutani/goast",
"license": "Apache-2.0",
"keywords": [
"goast",
"rego",
"opa",
"go",
"static-analysis",
"lint"
]
}