okforest/slug
File and directory names of concepts are slugs: lowercase letters, digits, hyphens, and underscores.
A concept’s ID is its path without .md (metrics/monthly-churn), and OKForest uses it in addresses and citations. Names made of lowercase letters, digits, hyphens, and underscores read the same everywhere: in URLs, without escaping; on file systems that ignore case; and when people and AI assistants type them. Hyphens are usual (monthly-churn), but a concept named after something that has underscores, such as a table (n_day_active_users), can keep them, so it’s found by that name.
Example
Section titled “Example”This file breaks the rule:
---type: Metrictitle: Churn ratedescription: The yearly share of customers who cancel.---
The churn rate is the customers who cancel in a year, divided by the customers at its start.okforest validate reports:
Churn Rate.md warning File name `Churn Rate` is not a slug: use lowercase letters, digits, hyphens, and underscores (e.g. `churn-rate`). okforest/slugFixed, renamed to churn-rate.md:
---type: Metrictitle: Churn ratedescription: The yearly share of customers who cancel.---
The churn rate is the customers who cancel in a year, divided by the customers at its start.