Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Frontmatter ¶
type Frontmatter struct {
Priority int `yaml:"priority,omitempty"` // Rule priority (higher = more important)
Tools []string `yaml:"tools,omitempty"` // Which tools this rule applies to
Applies string `yaml:"applies,omitempty"` // File pattern this rule applies to (e.g., "*.ts")
}
Frontmatter represents the optional YAML frontmatter in a rule file
type Rule ¶
type Rule struct {
Name string `json:"name"`
Frontmatter *Frontmatter `json:"frontmatter,omitempty"`
Content string `json:"content"` // Markdown content
Path string `json:"path"` // Source file path
// Runtime fields (not serialized)
Scope string `json:"-"` // "local" or "global" - where this rule came from
}
Rule represents a rule/instruction configuration
Click to show internal directories.
Click to hide internal directories.