Index of every page on this site: llms.txt
All skills
Run it yourself

Creates and edits Obsidian Bases: .base files and embedded base code blocks with table, cards, list, kanban or map views, filters, formulas, properties and summaries. Use for a database-like view of notes, or groupBy, sort or limit in a base. Not for note frontmatter, Dataview queries or vault CLI operations.

  • 5 files
  • 46.5 KB
  • MIT
  • Updated last week
  • GitHub
Use this Skill: https://skilld.dev/gh/goberomsu/secondbrain-skills/bases

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Complete Examples

Task Tracker Base

filters:
  and:
    - file.hasTag("task")
    - 'file.ext == "md"'

formulas:
  days_until_due: 'if(due, (date(due) - today()).days, "")'
  is_overdue: 'if(due, date(due) < today() && status != "done", false)'
  priority_label: 'if(priority == 1, "🔴 High", if(priority == 2, "🟡 Medium", "🟢 Low"))'

properties:
  status:
    displayName: Status
  formula.days_until_due:
    displayName: "Days Until Due"
  formula.priority_label:
    displayName: Priority

views:
  - type: table
    name: "Active Tasks"
    filters:
      and:
        - 'status != "done"'
    order:
      - file.name
      - status
      - formula.priority_label
      - due
      - formula.days_until_due
    groupBy:
      property: status
      direction: ASC
    summaries:
      formula.days_until_due: Average

  - type: table
    name: "Completed"
    filters:
      and:
        - 'status == "done"'
    order:
      - file.name
      - completed_date

Reading List Base

filters:
  or:
    - file.hasTag("book")
    - file.hasTag("article")

formulas:
  reading_time: 'if(pages, (pages * 2).toString() + " min", "")'
  status_icon: 'if(status == "reading", "📖", if(status == "done", "✅", "📚"))'
  year_read: 'if(finished_date, date(finished_date).year, "")'

properties:
  author:
    displayName: Author
  formula.status_icon:
    displayName: ""
  formula.reading_time:
    displayName: "Est. Time"

views:
  - type: cards
    name: "Library"
    order:
      - cover
      - file.name
      - author
      - formula.status_icon
    filters:
      not:
        - 'status == "dropped"'

  - type: table
    name: "Reading List"
    filters:
      and:
        - 'status == "to-read"'
    order:
      - file.name
      - author
      - pages
      - formula.reading_time

Daily Notes Index

filters:
  and:
    - file.inFolder("Daily Notes")
    - '/^\d{4}-\d{2}-\d{2}$/.matches(file.basename)'

formulas:
  word_estimate: '(file.size / 5).round(0)'
  day_of_week: 'date(file.basename).format("dddd")'

properties:
  formula.day_of_week:
    displayName: "Day"
  formula.word_estimate:
    displayName: "~Words"

views:
  - type: table
    name: "Recent Notes"
    limit: 30
    order:
      - file.name
      - formula.day_of_week
      - formula.word_estimate
      - file.mtime

Worked Example: Expected Rows and Order

Three notes, one base, and the exact result the view should produce. Use this shape to state an expectation before opening the app, so a mismatch is a finding instead of a surprise.

Study-A.md, Study-B.md, Study-C.md:

---
kind: study
status: active
priority: 2
---
Alpha preserved.
---
kind: study
status: active
priority: 1
---
Beta preserved.
---
kind: study
status: archived
priority: 0
---
Gamma preserved.

Studies.base:

filters:
  and:
    - kind == "study"
    - status == "active"
views:
  - type: table
    name: Active studies
    groupBy:
      property: status
      direction: ASC
    sort:
      - property: priority
        direction: ASC
    order:
      - file.name
      - priority
    limit: 2

Expected rendered result:

# Group file.name priority
1 status active Study-B 1
2 status active Study-A 2
  • Study-C is absent because status == "active" excludes it, not because of the limit.
  • Study-B precedes Study-A because sort orders by priority ascending, while order only decides that the name column sits left of the priority column.
  • One group header appears, because every surviving row shares the same status value.
  • The toolbar reports the number of results in the view; compare it with the row count you expected rather than reading it as a vault-wide count.

This result was observed in Obsidian 1.12.7 with the Bases core plugin enabled, over exactly these three notes. Scope any behavioural claim to the build you actually ran; another build is a separate observation.

Recording the expectation this way makes two failures distinguishable: a wrong document (the readback does not match what you wrote) and a wrong result (the document is right and the rendered rows still differ).

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at fe0f898. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week

README badge

README badge for goberomsu/secondbrain-skills/bases