mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| caf3e98cd2 | |||
| 398127736b | |||
| 85add51f43 | |||
| 96cf4d19ff | |||
| 48a7ca3f32 | |||
| 37a56a6a58 | |||
| 15272076ad | |||
| 9cab7195e3 | |||
| 086e1e95e9 | |||
| 47e9b1fde7 | |||
| a652d28755 |
@@ -9,8 +9,8 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"source": "./plugins/obsidian",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, web extraction, and templates.",
|
||||
"version": "1.1.0"
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates.",
|
||||
"version": "1.2.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"source": "./plugins/obsidian",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, web extraction, and templates."
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
name: Gemini release archive
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.release.tag_name }}
|
||||
|
||||
- name: Check the manifest version matches the tag
|
||||
env:
|
||||
TAG: ${{ github.event.release.tag_name }}
|
||||
run: |
|
||||
version="$(jq -r .version plugins/obsidian/gemini-extension.json)"
|
||||
if [[ "$version" != "${TAG#v}" ]]; then
|
||||
echo "gemini-extension.json is $version but the release tag is $TAG" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- run: ./scripts/package-gemini.sh dist/obsidian-gemini.tar.gz
|
||||
|
||||
- name: Attach the archive to the release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ github.event.release.tag_name }}
|
||||
run: gh release upload "$TAG" dist/obsidian-gemini.tar.gz --clobber
|
||||
@@ -0,0 +1 @@
|
||||
dist/
|
||||
@@ -46,6 +46,12 @@ To use ssh instead, if you have a GitHub SSH key set up:
|
||||
npx skills add git@github.com:obsidianmd/obsidian-skills.git
|
||||
```
|
||||
|
||||
### Gemini CLI
|
||||
|
||||
```sh
|
||||
gemini extensions install https://github.com/obsidianmd/obsidian-skills
|
||||
```
|
||||
|
||||
### Manually
|
||||
|
||||
#### Claude Code
|
||||
@@ -78,6 +84,8 @@ Update the plugin version in every manifest with:
|
||||
|
||||
The script also accepts `major`, `minor`, or an explicit version like `1.1.0`.
|
||||
|
||||
Gemini CLI installs from the latest GitHub release, so publish a release for each version, tagged with the version number. The `Gemini release archive` workflow then attaches `obsidian-gemini.tar.gz`, which has real copies of the skills. Don't attach other files to a release, because Gemini CLI only picks a file when there's exactly one; otherwise it falls back to the source archive, which has no Gemini manifest. To build the archive locally, run `./scripts/package-gemini.sh`.
|
||||
|
||||
## Skills
|
||||
|
||||
| Skill | Description |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates.",
|
||||
"author": {
|
||||
"name": "Obsidian",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates.",
|
||||
"author": {
|
||||
"name": "Obsidian"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"version": "1.2.0",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates."
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
||||
"name": "obsidian",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates.",
|
||||
"author": {
|
||||
"name": "Obsidian",
|
||||
@@ -24,7 +24,7 @@
|
||||
"interface": {
|
||||
"displayName": "Obsidian",
|
||||
"shortDescription": "Work with your local vault",
|
||||
"longDescription": "Search, read, create, and organize notes in a local Obsidian vault. Create and edit Obsidian Markdown with links, properties, and callouts. This plugin also lets you build Bases views, Canvas diagrams, extract web pages to Markdown, and render templates.\n\nThis plugin is currently desktop-only and requires Obsidian to be open and running with the CLI enabled. In the future we will add MCP so you can interact with your vault remotely and in the ChatGPT mobile app.",
|
||||
"longDescription": "Search, read, create, and organize notes in a local Obsidian vault. Create and edit Obsidian Markdown with links, properties, and callouts. This plugin also lets you build Bases views, Canvas diagrams, extract web pages to Markdown, render templates, and sync and publish vaults with Obsidian Headless.\n\nThis plugin is currently desktop-only and requires Obsidian to be open and running with the CLI enabled. In the future we will add MCP so you can interact with your vault remotely and in the ChatGPT mobile app.",
|
||||
"category": "Productivity",
|
||||
"developerName": "Obsidian",
|
||||
"defaultPrompt": [
|
||||
@@ -57,7 +57,7 @@
|
||||
},
|
||||
"publication": {
|
||||
"countries": [],
|
||||
"release_notes": "Six Obsidian skills for Markdown, Bases, Canvas, the Obsidian CLI, Defuddle, and Knap, with desktop execution metadata and setup guidance for the CLI and helper tools."
|
||||
"release_notes": "Adds an Obsidian Headless skill to sync and publish vaults without the desktop app, kanban views in Bases, and fixes for Bases display names and the CLI on WSL."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ description: Create and edit Obsidian Bases (.base files) with views, filters, f
|
||||
3. **Add formulas** (optional): Define computed properties in the `formulas` section
|
||||
4. **Configure views**: Add one or more views (`table`, `cards`, `list`, `map`, or `kanban`) with `order` specifying which properties to display
|
||||
5. **Validate**: Verify the file is valid YAML with no syntax errors. Check that all referenced properties and formulas exist. Common issues: unquoted strings containing special YAML characters, mismatched quotes in formula expressions, referencing `formula.X` without defining `X` in `formulas`
|
||||
6. **Test in Obsidian**: Open the `.base` file in Obsidian to confirm the view renders correctly. If it shows a YAML error, check quoting rules below
|
||||
6. **Test in Obsidian**: Open the `.base` file in Obsidian to confirm the view renders correctly. If it shows a YAML error, check quoting rules below. If it doesn't open as a base at all, check that Bases is turned on in Settings → Core plugins
|
||||
|
||||
## Schema
|
||||
|
||||
@@ -32,9 +32,10 @@ filters:
|
||||
formulas:
|
||||
formula_name: 'expression'
|
||||
|
||||
# Configure display names and settings for properties
|
||||
# Configure display names and settings for properties.
|
||||
# Note properties need the `note.` prefix here, or the setting is ignored.
|
||||
properties:
|
||||
property_name:
|
||||
note.property_name:
|
||||
displayName: "Display Name"
|
||||
formula.formula_name:
|
||||
displayName: "Formula Display Name"
|
||||
@@ -131,6 +132,8 @@ filters:
|
||||
2. **File properties** - File metadata: `file.name`, `file.mtime`, etc.
|
||||
3. **Formula properties** - Computed values: `formula.my_formula`
|
||||
|
||||
In `order`, `filters`, `groupBy`, and `sort`, a note property can be written bare (`author`) or prefixed (`note.author`). In the top-level `properties:` section, always write `note.author`, because Obsidian ignores a bare key there and shows the raw name as the column header.
|
||||
|
||||
### File Properties Reference
|
||||
|
||||
| Property | Type | Description |
|
||||
@@ -360,7 +363,7 @@ formulas:
|
||||
priority_label: 'if(priority == 1, "🔴 High", if(priority == 2, "🟡 Medium", "🟢 Low"))'
|
||||
|
||||
properties:
|
||||
status:
|
||||
note.status:
|
||||
displayName: Status
|
||||
formula.days_until_due:
|
||||
displayName: "Days Until Due"
|
||||
@@ -414,10 +417,10 @@ formulas:
|
||||
year_read: 'if(finished_date, date(finished_date).year, "")'
|
||||
|
||||
properties:
|
||||
author:
|
||||
note.author:
|
||||
displayName: Author
|
||||
formula.status_icon:
|
||||
displayName: ""
|
||||
displayName: "Status"
|
||||
formula.reading_time:
|
||||
displayName: "Est. Time"
|
||||
|
||||
@@ -561,6 +564,22 @@ formulas:
|
||||
'if(due_date, (date(due_date) - today()).days, "")'
|
||||
```
|
||||
|
||||
**`displayName` ignored, column shows the raw name**: prefix note properties with `note.` in the `properties:` section.
|
||||
|
||||
```yaml
|
||||
# WRONG - displayName ignored, column header shows "status"
|
||||
properties:
|
||||
status:
|
||||
displayName: Status
|
||||
|
||||
# CORRECT - column header shows "Status"
|
||||
properties:
|
||||
note.status:
|
||||
displayName: Status
|
||||
```
|
||||
|
||||
**Empty `displayName` doesn't hide a header**: `displayName: ""` falls back to the property name, the same as leaving it out, so `formula.status_icon` shows `status_icon`. Use a non-empty name such as `displayName: "Status"`.
|
||||
|
||||
**Referencing undefined formulas**: Ensure every `formula.X` in `order` or `properties` has a matching entry in `formulas`.
|
||||
|
||||
```yaml
|
||||
|
||||
@@ -11,6 +11,8 @@ Use the `obsidian` CLI to interact with a running Obsidian instance. Requires Ob
|
||||
|
||||
Run `obsidian help` to check availability. If the command is missing, explain how to turn on the CLI using https://help.obsidian.md/cli. The `obsidian` command ships with the Obsidian installer; don't install the unrelated npm package `obsidian-cli`. If it can't find Obsidian, ask the user to open the desktop app, then retry. In a sandboxed shell the same message can mean the sandbox blocked the CLI's local socket.
|
||||
|
||||
On WSL, run `Obsidian.com` from the Windows install folder, not `Obsidian.exe`. `Obsidian.com` is the console wrapper that prints the output; `Obsidian.exe` exits without printing anything.
|
||||
|
||||
The CLI exits with status 0 even when a command fails, so read its output before reporting that a command succeeded.
|
||||
|
||||
Quote parameters for the current shell, and pass note text as literal argument data, never as executable shell syntax.
|
||||
|
||||
@@ -12,6 +12,7 @@ files=(
|
||||
"plugins/obsidian/plugin.json"
|
||||
"plugins/obsidian/.claude-plugin/plugin.json"
|
||||
"plugins/obsidian/.cursor-plugin/plugin.json"
|
||||
"plugins/obsidian/gemini-extension.json"
|
||||
".claude-plugin/marketplace.json"
|
||||
)
|
||||
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
out="${1:-dist/obsidian-gemini.tar.gz}"
|
||||
plugin="plugins/obsidian"
|
||||
|
||||
stage="$(mktemp -d)"
|
||||
trap 'rm -rf "$stage"' EXIT
|
||||
|
||||
cp "$plugin/gemini-extension.json" "$plugin/LICENSE" "$stage/"
|
||||
# Gemini copies an installed extension with fs.cp, which breaks symlinks, so the archive needs real files.
|
||||
cp -RL "$plugin/skills" "$stage/skills"
|
||||
|
||||
mkdir -p "$(dirname "$out")"
|
||||
tar -czf "$out" -C "$stage" gemini-extension.json LICENSE skills
|
||||
|
||||
echo "Wrote $out"
|
||||
Reference in New Issue
Block a user