Skip to content

Interface: MarkdownFrontmatterSourceNode<T> ​

Defined in: ast/domain/markdown-frontmatter-source-node.ts:10

Passive AST node loading frontmatter-annotated rules or skills from Markdown files (md.*).

Always resolves control-plane rule and skill paths against the immutable host repository root.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TunknownResolved rule or skill payload type.

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__dataType?readonlyBivariantCallback<[data: T], void>Phantom type brand preserving the resolved content type T.BaseSourceASTNode.__dataTypeast/base/base-source-ast-node.ts:18
idreadonlystringLogical identifier of the source descriptor.BaseSourceASTNode.idast/base/base-source-ast-node.ts:16
kind?readonly| "skill" | "global-rules" | "scoped-rule" | "scoped-rules" | "skills" | "frontmatter"Optional loader kind discriminant distinguishing rules and skills.-ast/domain/markdown-frontmatter-source-node.ts:15
pathOrGlobreadonlystringFile path or glob pattern targeting Markdown documents with YAML frontmatter.-ast/domain/markdown-frontmatter-source-node.ts:13
typereadonly"markdown:frontmatter"Unique string-literal discriminant of the source node.BaseSourceASTNode.typeast/base/base-source-ast-node.ts:14

Released under the MIT License.