Expand description
Read / render / merge generated skillify rule files (.cursor/rules/<slug>.mdc).
Generated rules are namespaced with a skillify- prefix so they never collide
with hand-written rules. Each file embeds a machine-readable provenance comment
(version, created, …) that lets a re-run MERGE — bumping the version only
when the distilled body actually changes (idempotent otherwise).
Structs§
- Existing
Rule - The fields parsed back out of an existing generated rule.
Enums§
- Write
Outcome - Result of writing a candidate to disk.
Constants§
- SLUG_
PREFIX - Namespace prefix for generated rule slugs/files.
Functions§
- extract_
description - Read the
description:value from a generated rule’s frontmatter. - full_
slug - Full namespaced slug for a candidate slug (
stop-before-build→skillify-stop-before-build). - parse_
existing - Parse the provenance + body out of an existing generated rule.
- render
- Render a complete
.mdcdocument for a candidate atversion. - rule_
path - File path for a full (already-namespaced) slug.
- rules_
dir <output_root>/.cursor/rules.- write_
candidate - Write a candidate, creating a new file or merging into an existing one. Idempotent: an unchanged body is left untouched.