بنقرة واحدة
obsidian-base-use
创建、配置和管理 Obsidian BASE 数据库,包括设置过滤器、属性、公式和视图。当用户提到 BASE、数据库、数据管理、项目管理或需要创建动态数据视图时使用此技能。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
创建、配置和管理 Obsidian BASE 数据库,包括设置过滤器、属性、公式和视图。当用户提到 BASE、数据库、数据管理、项目管理或需要创建动态数据视图时使用此技能。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use this skill when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use this skill when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use this skill when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
创建和使用 Obsidian Templater 模板,包括动态变量、JavaScript 代码、系统命令和高级模板功能。当用户提到模板、Templater、动态内容、自动化笔记创建或需要模板语法帮助时使用此技能。
| name | obsidian_base_use |
| description | 创建、配置和管理 Obsidian BASE 数据库,包括设置过滤器、属性、公式和视图。当用户提到 BASE、数据库、数据管理、项目管理或需要创建动态数据视图时使用此技能。 |
Provide clear, step-by-step guidance for Claude.
BASE 是 Obsidian 的数据库功能,允许您基于文件属性、标签和内容创建动态视图。
![[文件名.base]]base 代码块# 基础配置
name: "项目数据库"
description: "项目管理数据库"
# 过滤器 - 定义包含哪些文件
filters:
and:
- file.hasTag("项目")
- file.inFolder("Projects")
- file.name != "模板"
# 属性定义 - 显示哪些属性
properties:
优先级:
displayName: "优先级"
type: "select"
options: ["高", "中", "低"]
截止日期:
displayName: "截止日期"
type: "date"
进度:
displayName: "进度"
type: "number"
min: 0
max: 100
# 公式属性 - 动态计算属性
formulas:
总价: "单价 * 数量"
状态: 'if(进度 == 100, "✅ 完成", if(截止日期 < today(), "⚠️ 逾期", "🔄 进行中"))'
剩余天数: '(截止日期 - today()).toFixed(0)'
# 视图配置 - 不同的展示方式
views:
- type: table
name: "项目表格"
filters:
and:
- '优先级 == "高"'
order:
- 截止日期
- file.name
groupBy: 状态
- type: kanban
name: "项目看板"
groupBy: 状态
order:
- 优先级
- type: calendar
name: "项目日历"
dateProperty: 截止日期
tags: [项目, 重要]file.name - 文件名file.path - 文件路径file.size - 文件大小file.ctime - 创建时间file.mtime - 修改时间filters:
and:
- file.hasTag("项目") # 包含特定标签
- file.inFolder("Projects") # 在特定文件夹
- file.name.contains("重要") # 文件名包含文本
- '优先级 == "高"' # 属性值等于
- '进度 > 50' # 数值比较
- '截止日期 > today()' # 日期比较
filters:
or:
- file.hasTag("项目")
- file.hasTag("任务")
and:
- file.inFolder("工作")
- not: file.hasTag("已完成")
formulas:
总价: "单价 * 数量"
平均分: "(分数1 + 分数2 + 分数3) / 3"
折扣价: "原价 * 0.8"
formulas:
全名: "姓氏 + ' ' + 名字"
状态: 'if(完成, "已完成", "进行中")'
优先级显示: '"优先级:" + 优先级'
formulas:
剩余天数: '(截止日期 - today()).toFixed(0)'
创建天数: '(today() - file.ctime).toFixed(0)'
是否逾期: '截止日期 < today()'
name: "项目管理数据库"
filters:
and:
- file.inFolder("Projects")
properties:
优先级:
displayName: "优先级"
type: "select"
options: ["高", "中", "低"]
截止日期:
displayName: "截止日期"
type: "date"
进度:
displayName: "进度"
type: "number"
min: 0
max: 100
formulas:
状态: 'if(进度 == 100, "✅ 完成", if(截止日期 < today(), "⚠️ 逾期", "🔄 进行中"))'
剩余天数: '(截止日期 - today()).toFixed(0)'
views:
- type: table
name: "项目概览"
order:
- 优先级
- 截止日期
- type: kanban
name: "项目看板"
groupBy: 状态
name: "读书笔记数据库"
filters:
and:
- file.hasTag("书籍")
properties:
作者:
displayName: "作者"
总页数:
displayName: "总页数"
type: "number"
已读页数:
displayName: "已读页数"
type: "number"
开始日期:
displayName: "开始日期"
type: "date"
formulas:
阅读进度: '(已读页数 / 总页数 * 100).toFixed(1)'
状态: 'if(阅读进度 == 100, "✅ 已读完", "📖 阅读中")'
views:
- type: table
name: "阅读清单"
filters:
and:
- '阅读进度 < 100'
order:
- 开始日期
name: "任务管理数据库"
filters:
and:
- file.hasTag("任务")
properties:
截止日期:
displayName: "截止日期"
type: "date"
优先级:
displayName: "优先级"
type: "select"
options: ["紧急", "重要", "一般"]
状态:
displayName: "状态"
type: "select"
options: ["待开始", "进行中", "已完成", "已取消"]
formulas:
是否逾期: '截止日期 < today()'
状态显示: 'if(状态 == "已完成", "✅ " + 状态, if(是否逾期, "⚠️ " + 状态, 状态))'
views:
- type: kanban
name: "任务看板"
groupBy: 状态
order:
- 优先级
- 截止日期
Show concrete examples of using this Skill.