life-os-file-ops

life-os/ 目录的文件读写规范。处理 Markdown 笔记、YAML frontmatter、wiki-links、模板变量。当需要在 life-os/ 目录中创建、编辑、查找笔记时使用此技能。

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026⬇️1downloads

When & Why to Use This Skill

The Life OS File Operations skill is a specialized tool designed to manage personal knowledge bases and productivity systems within a structured directory. It streamlines the lifecycle of Markdown notes by automating file creation, editing, and searching while strictly adhering to standards for YAML frontmatter, wiki-links, and dynamic template variables. This skill ensures a highly organized 'Second Brain' by maintaining consistent metadata, tagging conventions, and hierarchical directory structures for optimal information retrieval.

Use Cases

  • Automated Daily Journaling: Generate daily notes using predefined templates that automatically resolve date and time variables for consistent and effortless record-keeping.
  • Project & Goal Tracking: Create and update project-specific files with standardized tags and status indicators to maintain a clear overview of active objectives.
  • Knowledge Interlinking: Build a robust internal wiki by automatically inserting and maintaining wiki-links between related notes, projects, and archives to improve discoverability.
  • Structured Metadata Management: Ensure all notes remain searchable and compatible with external tools by automatically managing YAML frontmatter for tags, dates, and status.
  • Efficient Information Retrieval: Quickly locate specific insights or archived data across a complex directory structure using advanced search tools like Glob and Grep.
namelife-os-file-ops
descriptionlife-os/ 目录的文件读写规范。处理 Markdown 笔记、YAML frontmatter、wiki-links、模板变量。当需要在 life-os/ 目录中创建、编辑、查找笔记时使用此技能。
allowed-toolsRead, Write, Edit, Glob, Grep

Life OS 文件操作

适用范围:life-os/ 目录

目录结构

life-os/
├── CLAUDE.md           # Vault 上下文(首先读取)
├── Daily Notes/        # YYYY-MM-DD.md 格式
├── Goals/              # 目标级联文件
├── Projects/           # 项目文件夹
├── Templates/          # 可复用模板
├── Inbox/              # GTD 待处理区
└── Archives/           # 已完成/归档

文件操作

读取

  1. 先读取 life-os/CLAUDE.md 获取上下文
  2. 使用 Glob 查找:life-os/**/*.md
  3. 检查 wiki-links 找到相关笔记

创建

  1. 检查笔记是否已存在
  2. 使用模板(life-os/Templates/)
  3. 添加 YAML frontmatter
  4. 插入相关 wiki-links

编辑

  • 保留 YAML frontmatter 结构
  • 维护现有 wiki-links
  • 使用一致的标题层级
[[Note Name]]                    # 链接到笔记
[[Note Name|显示文本]]            # 带别名
[[Note Name#Section]]            # 链接到章节
[[Folder/Note Name]]             # 带路径

YAML Frontmatter

---
date: 2024-01-15
tags: [tag1, tag2]
status: active
---

模板变量

替换规则:

  • {{date}} → 今天(YYYY-MM-DD)
  • {{date-1}} → 昨天
  • {{date+1}} → 明天
  • {{time}} → 当前时间

标签规范

  • 优先级:#priority/high, #priority/medium, #priority/low
  • 状态:#active, #waiting, #completed, #archived
  • 场景:#work, #personal, #health, #learning

相关规范

→ docs/references/life-os/markdown-standards.md → docs/references/life-os/productivity-workflow.md → docs/references/life-os/project-management.md