Skip to content

okforest/slug

warningOKForest conventions

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.

This file breaks the rule:

Churn Rate.md
---
type: Metric
title: Churn rate
description: 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/slug

Fixed, renamed to churn-rate.md:

churn-rate.md
---
type: Metric
title: Churn rate
description: 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.