rules

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRuleSet

func ValidateRuleSet(rs *RuleSet) error

Types

type Rule

type Rule struct {
	Name     string
	Path     string
	Content  string
	Priority int
	Tags     []string
	Enabled  bool
	ApplyTo  string
	Scoped   bool
}

func ParseDirectory

func ParseDirectory(dir string) ([]Rule, error)

func ParseScopedDirectory

func ParseScopedDirectory(dir string) ([]Rule, error)

type RuleSet

type RuleSet struct {
	ProjectName        string
	ProjectDescription string
	Global             []Rule
	Scoped             []Rule
}

func ApplyVariables

func ApplyVariables(rs *RuleSet, variables map[string]string) (*RuleSet, error)

func LoadRuleSet

func LoadRuleSet(skillkitDir string, projectName string, projectDescription string) (*RuleSet, error)

func LoadRuleSetForProject

func LoadRuleSetForProject(projectRoot string, cfg *config.Config) (*RuleSet, error)

func MergeRules

func MergeRules(global []Rule, scoped []Rule, packs []registry.Pack) *RuleSet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL