mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
Skills: Fix create, newtab and console examples, and describe all six skills
A template replaces content= in create, newtab only works with open, and dev:console keeps only messages logged after dev:debug on, so turn it on before reloading. The Claude manifest and marketplace now use the description that covers all six skills. bump.sh runs from any directory and rejects versions it can't bump later.
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian",
|
"name": "obsidian",
|
||||||
"source": "./plugins/obsidian",
|
"source": "./plugins/obsidian",
|
||||||
"description": "Claude Skills for 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"
|
"version": "1.1.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian",
|
"name": "obsidian",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"description": "Create and edit Obsidian vault files including Markdown, Bases, and Canvas. Use when working with .md, .base, or .canvas files in an Obsidian vault.",
|
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, web extraction, and templates.",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Obsidian",
|
"name": "Obsidian",
|
||||||
"url": "https://obsidian.md/"
|
"url": "https://obsidian.md/"
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ Generate 16-character lowercase hexadecimal strings (64-bit random value):
|
|||||||
| File preview | 300-500 | 200-400 | 450-750 |
|
| File preview | 300-500 | 200-400 | 450-750 |
|
||||||
| Link preview | 250-400 | 100-200 | 375-600 |
|
| Link preview | 250-400 | 100-200 | 375-600 |
|
||||||
|
|
||||||
**CJK text sizing**: CJK characters (Chinese, Japanese, Korean) are approximately 2× wider than Latin characters. For content primarily in CJK languages, multiply the suggested width by ~1.5× to avoid cramped layouts and awkward line breaks.
|
**CJK text sizing**: CJK characters (Chinese, Japanese, Korean) are wider than Latin characters. For content primarily in CJK languages, multiply the suggested width by ~1.5× to avoid cramped layouts and awkward line breaks.
|
||||||
|
|
||||||
## Validation Checklist
|
## Validation Checklist
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ obsidian create name="My Note" open overwrite
|
|||||||
|
|
||||||
Use `overwrite` only when replacing an existing file is intended.
|
Use `overwrite` only when replacing an existing file is intended.
|
||||||
|
|
||||||
Opening is opt-in: pass `open` (or `newtab` where supported) when you want the file to open. There is no `silent` flag.
|
Opening is opt-in: pass `open` to open the file, and add `newtab` to open it in a new tab. There is no `silent` flag.
|
||||||
|
|
||||||
In `content=`, `\n` becomes a newline and `\t` a tab. Every `\n` and `\t` is converted and there's no escape, so text such as the LaTeX `\theta` or the path `C:\notes` is corrupted. Write content that contains backslashes, or is longer than about 4 KB, directly to the note's file instead.
|
In `content=`, `\n` becomes a newline and `\t` a tab. Every `\n` and `\t` is converted and there's no escape, so text such as the LaTeX `\theta` or the path `C:\notes` is corrupted. Write content that contains backslashes, or is longer than about 4 KB, directly to the note's file instead.
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ Use `vault=` when the user has selected a vault. If the target is unclear and th
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
obsidian read file="My Note"
|
obsidian read file="My Note"
|
||||||
obsidian create name="New Note" content="# Hello" template="Template"
|
obsidian create name="New Note" template="Template" # a template replaces content=
|
||||||
obsidian create name="New Note" content="# Hello" open # also open in Obsidian
|
obsidian create name="New Note" content="# Hello" open # also open in Obsidian
|
||||||
obsidian append file="My Note" content="New line"
|
obsidian append file="My Note" content="New line"
|
||||||
obsidian rename path="folder/note.md" name="New name"
|
obsidian rename path="folder/note.md" name="New name"
|
||||||
@@ -94,7 +94,7 @@ obsidian tasks todo format=json # many list commands also accept format=
|
|||||||
|
|
||||||
### Develop/test cycle
|
### Develop/test cycle
|
||||||
|
|
||||||
After making code changes to a plugin or theme, follow this workflow:
|
Turn on console capture once with `obsidian dev:debug on`, so messages from the reload are kept. After making code changes to a plugin or theme, follow this workflow:
|
||||||
|
|
||||||
1. **Reload** the plugin to pick up changes:
|
1. **Reload** the plugin to pick up changes:
|
||||||
```bash
|
```bash
|
||||||
@@ -109,9 +109,8 @@ After making code changes to a plugin or theme, follow this workflow:
|
|||||||
obsidian dev:screenshot
|
obsidian dev:screenshot
|
||||||
obsidian dev:dom selector=".workspace-leaf" text
|
obsidian dev:dom selector=".workspace-leaf" text
|
||||||
```
|
```
|
||||||
4. **Check console output** for warnings or unexpected logs. Turn on capture with `dev:debug on` first:
|
4. **Check console output** for warnings or unexpected logs:
|
||||||
```bash
|
```bash
|
||||||
obsidian dev:debug on
|
|
||||||
obsidian dev:console level=error
|
obsidian dev:console level=error
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "Usage: $0 <major|minor|patch|x.y.z>" >&2
|
echo "Usage: $0 <major|minor|patch|x.y.z>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
@@ -19,10 +21,13 @@ case "$1" in
|
|||||||
major) new_version="$((major + 1)).0.0" ;;
|
major) new_version="$((major + 1)).0.0" ;;
|
||||||
minor) new_version="$major.$((minor + 1)).0" ;;
|
minor) new_version="$major.$((minor + 1)).0" ;;
|
||||||
patch) new_version="$major.$minor.$((patch + 1))" ;;
|
patch) new_version="$major.$minor.$((patch + 1))" ;;
|
||||||
[0-9]*.[0-9]*.[0-9]*) new_version="$1" ;;
|
|
||||||
*)
|
*)
|
||||||
|
if [[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
|
new_version="$1"
|
||||||
|
else
|
||||||
echo "Usage: $0 <major|minor|patch|x.y.z>" >&2
|
echo "Usage: $0 <major|minor|patch|x.y.z>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user