Skip to content
Back to skills

Moss Frontmatter

ASecurity

YAML frontmatter rules for Moss note metadata. Use when adding, preserving, or editing the optional metadata block at the top of a note.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add brsbl/moss-skills --skill moss-frontmatter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Moss Frontmatter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Moss Frontmatter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brsbl-moss-frontmatter-moss-skills/badge)](https://www.skillsdirectory.com/skills/brsbl-moss-frontmatter-moss-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: moss-frontmatter
description: YAML frontmatter rules for Moss note metadata. Use when adding, preserving, or editing the optional metadata block at the top of a note.
---

# Moss Frontmatter

Frontmatter is an optional top-level YAML mapping before the note's H1.

```markdown
---
status: active
tags:
  - project
people:
  - jane
---

# Note Title
```

## Authoring Contract

- Use frontmatter for structured fields that help search, filtering, grouping, or retrieval.
- Prefer scalars and lists of strings. Moss parses nested arrays and objects but displays them read-only; preserve them unless the task explicitly requests a filesystem edit to that structure.
- `type` and `status` are workspace vocabularies, not fixed enums. Reuse values already present in the workspace when possible.
- Common fields are `type`, `people`, `description`, `tags`, and `status`; unknown fields are valid and must be preserved.
- For workspace notes under `~/Moss/Notes/`, preserve existing `created_date` and let Moss set it for new notes. Do not invent or overwrite it.
- The note title comes from the leading H1, not a `title` field.
- Do not duplicate metadata as body headings or bold labels.
- Omit frontmatter when the note has no useful metadata.

## Editing And Recovery

Filesystem writers may edit any field the task explicitly targets, including a nested value, while preserving unrelated keys. The Moss Properties UI edits supported scalar/list fields and treats nested values as read-only.

Keep YAML valid and retain the top-level mapping. If existing frontmatter is malformed, preserve it unless the user asks for repair; Moss retains malformed YAML but cannot edit it through Properties.

## Final Check

- Frontmatter is the first block and closes before the H1.
- YAML is a top-level mapping.
- Unknown and unrelated fields remain intact.
- Workspace-managed `created_date` was not invented or overwritten.

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml282 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.