docs(brain): update metadata conventions for tags and project scope

Add 'tags' and 'project' optional frontmatter fields and templates across all document types in AGENTS.md.
This commit is contained in:
kiskaadee committed 2026-09-08 13:11:58 -05:00
1 parent c30f9a873c
commit 0ac4f3f70e
1 file changed
+41 -6
+41 -6
View File
@@ -54,7 +54,16 @@ Unchanged in structure. Contains LeetCode writeups and Python solution files wit
## Metadata Convention ## Metadata Convention
Every markdown document must have a YAML frontmatter block. `type` is the only universally required field. All other fields are type-specific. Every markdown document must have a YAML frontmatter block. `type` is the only universally required field. All other fields are type-specific or optional metadata extensions.
### Core & Optional Fields
- **`type`** *(Required)*: `knowledge`, `project`, `plan`, `guide`, `decision`, `journal`, `discussion`, `experiment`, `practice`, `inbox`, `reference`.
- **`tags`** *(Optional)*: List of keyword tags (e.g., `tags: [homelab, ddns, networking]` or YAML list format) applicable to any document type for cross-cutting discovery.
- **`project`** *(Optional)*: Project identifier (e.g., `project: homelab`, `project: dynu-monitor`, `project: bitetrack`) indicating context ownership.
- **`status`** *(Conditional)*: Lifecycle status for plans (`draft`, `active`, `completed`, `abandoned`), decisions (`proposed`, `accepted`, `superseded`), projects (`planned`, `active`, `paused`, `completed`), knowledge (`draft`, `stable`), and practice (`active`, `completed`).
### Frontmatter Templates
```yaml ```yaml
# knowledge # knowledge
@@ -62,13 +71,16 @@ Every markdown document must have a YAML frontmatter block. `type` is the only u
type: knowledge type: knowledge
status: draft | stable status: draft | stable
topics: [list, of, topics] topics: [list, of, topics]
tags: [optional, tags]
related: [optional, relative, paths] related: [optional, relative, paths]
project: optional-project-name
--- ---
# project (overview files only) # project (overview files)
--- ---
type: project type: project
status: planned | active | paused | completed status: planned | active | paused | completed
tags: [list, of, tags]
--- ---
# plan # plan
@@ -76,12 +88,14 @@ status: planned | active | paused | completed
type: plan type: plan
status: draft | active | completed | abandoned status: draft | active | completed | abandoned
project: project-name project: project-name
tags: [list, of, tags]
--- ---
# guide # guide
--- ---
type: guide type: guide
project: project-name project: project-name
tags: [list, of, tags]
--- ---
# decision # decision
@@ -89,12 +103,32 @@ project: project-name
type: decision type: decision
status: proposed | accepted | superseded status: proposed | accepted | superseded
project: project-name project: project-name
tags: [list, of, tags]
--- ---
# journal (no status field — journals are historical by definition) # journal (historical record)
--- ---
type: journal type: journal
date: YYYY-MM-DD date: YYYY-MM-DD
tags: [list, of, tags]
project: optional-project-name
---
# experiment (prototypes, investigations, runbooks)
---
type: experiment
status: draft | active | completed
project: project-name
tags: [list, of, tags]
date: YYYY-MM-DD
---
# discussion (conversations, architectural evaluations)
---
type: discussion
project: project-name
tags: [list, of, tags]
date: YYYY-MM-DD
--- ---
# practice # practice
@@ -102,17 +136,18 @@ date: YYYY-MM-DD
type: practice type: practice
status: completed | active status: completed | active
topics: [list, of, topics] topics: [list, of, topics]
tags: [optional, tags]
--- ---
# inbox (no status — classification happens during processing) # inbox (unprocessed captures)
--- ---
type: inbox type: inbox
created: YYYY-MM-DD created: YYYY-MM-DD
tags: [optional, tags]
project: optional-project-name
--- ---
``` ```
Valid `type` values: `knowledge`, `project`, `plan`, `guide`, `decision`, `journal`, `discussion`, `experiment`, `practice`, `inbox`, `reference`.
**Important:** Folder location does not automatically determine every metadata field. A document inside `projects/homelab/plans/` is a `plan`, not a `project`. The folder establishes context. The `type` field establishes semantic role. **Important:** Folder location does not automatically determine every metadata field. A document inside `projects/homelab/plans/` is a `plan`, not a `project`. The folder establishes context. The `type` field establishes semantic role.
--- ---