ホーム 暮らし Trying out [obsidian-skills] with Claude Code

Trying out [obsidian-skills] with Claude Code

東條 淳平 東條 淳平 • 更新: • 公開: • 読了約 35 分
目次

 It was a little while ago, but I learned that kepano (Steph Ango), the CEO of Obsidian's developer, released "obsidian-skills," a collection of Obsidian-specific skills for AI agents. Since it includes the skill for using the Obsidian CLI that I enabled in my previous article, I will try installing it into Claude Code and testing it until it is actually usable.

 I have introduced the environment setup for Claude Code CLI and Obsidian CLI in the past, so I will refer to those and explain starting from the state where they are already installed. If you haven't done so yet, please follow the steps in the two articles above first.

 Since you will be letting the AI handle file operations in your local environment, it is safer to take a backup before installation so that it won't be a problem if other files are deleted or edited.

1. What is obsidian-skills?

n0afc08b43a2e

 obsidian-skills is a collection of Agent Skills for Obsidian released by kepano on GitHub. It includes five skills related to Obsidian (details in Chapter 4).

 Agent Skills are an open, product-agnostic common format for instructing AI agents on how to perform tasks (procedures, conditions, rules, etc.). Since obsidian-skills also complies with this specification, it can be used commonly not only with Claude Code but also with AI agents that support the skills, such as Codex and Open Code.

2. Prerequisite: About Claude Code's skill feature

 Claude Code has a skill feature that extends what it can do by adding a SKILL.md file containing instructions. In addition to Claude Code automatically using the added skills in relevant situations, it is also possible to call them directly by typing /skill-name on the Claude Code screen. Since this feature complies with the Agent Skills specification in Chapter 1, you can import obsidian-skills as is.

 There are three locations where Claude Code reads (saves) skills. The "Project" in the table refers to the folder where Claude Code was launched. When using it with Obsidian, the Vault folder corresponds to this.

 When you save a skill, the folder name becomes the command name as is, and you will be able to call it with /skill-name on the Claude Code screen.

3. Installing

 There are three ways to import obsidian-skills into Claude Code. This time, I will proceed via the marketplace in 3-1, which can be completed on the Claude Code screen. 3-2 is the method of copying files yourself, and 3-3 is the method of installing via commands from the terminal.

3-1. Installing via the marketplace (adopting this method this time)

 This is a method using the Claude Code marketplace feature, which allows you to find and install plugins. It is the easiest when using Claude Code, but it only applies to Claude Code.

[Claude Code]

/plugin marketplace add kepano/obsidian-skills
/plugin install obsidian@obsidian-skills

・Method

 Launch Claude Code and enter the two commands above in order. The flow is to register the obsidian-skills GitHub repository as a marketplace in the first line, and install the plugin named obsidian from there in the second line. When you execute the second line, a screen will appear to choose where to enable it, so make your selection. Whichever you choose, the save location of the skill itself is the same, so if you are unsure, you can choose the option to enable it only in that folder. The actual installed skill is not saved within the project, but in the cache area under the user folder. On the project side, the setting that enabled the plugin is added to
.claude/settings.json or .claude/settings.local.json to the settings that enabled the plugin.

The execution of the first line responded immediately and said Successfully.

 When I executed the second line, the above selection (where to install) was displayed, so this time I selected the third one. By the way, regarding the difference between 2 and 3, project scope saves the use of the plugin in settings.json, which is shared via Git. Local scope saves the use of the plugin in settings.local.json, which is not shared via Git. Since this environment is not managed by Git, 3 is fine.

 I selected the third one. The image has two lines because I canceled once.

 settings.local.json was generated, and when I opened the file, it contained the following content.

3-2. Manually placing it in .claude/skills/

 This is a method where you copy the contents of the GitHub repository into the folder yourself. While 3-1 feels easier, I thought this one was more reliable. Since this is also stored in .claude, it only applies to Claude Code.

[Storage Location]

・Method

 Download the contents of the skills/ folder from the obsidian-skills GitHub repository. Click the green Code button on the right side of the page and select Download ZIP. Extract the downloaded ZIP using File Explorer. Store the extracted contents (the 5 skill folders inside the skills folder within the zip file) directly under .claude/skills/ in your Vault (or project folder).
 If you want to use it across all projects, place it in ~/.claude/skills/ (under the user's home directory). Once the layout matches the figure above, the placement is complete.
 In terms of the table in Chapter 2, .claude/skills/ is the Project storage location, and ~/.claude/skills/ is the Personal storage location.

3-3. Using the npx skills command

 This command uses npx (a package execution command included with Node.js), so it assumes that Node.js is already installed. If it is not installed, let's install it from the official Node.js website (https://nodejs.org/).
 If you are using AI agents other than Claude Code, such as Codex or Cursor, this is recommended. It also applies to Claude Code.

[SSH]

npx skills add git@github.com:kepano/obsidian-skills.git

[HTTPS]

npx skills add https://github.com/kepano/obsidian-skills

[Storage Location]

Vaultフォルダ/
├── .claude/skills/obsidian-skills/ <-- Claude Code 用に保存
└── .agents/skills/obsidian-skills/ <-- Codex や Cursor などの汎用エージェント用に保存

・Method

 Execute one of the two commands above in the terminal. Unlike the command in 3-1, this is not something you enter into the Claude Code screen. There are two types of commands: SSH and HTTPS. The first, the SSH method, connects to GitHub using a URL starting with git@, so if you have not configured SSH connections on GitHub, use the second, HTTPS method. If you don't remember setting up SSH, use the HTTPS method.

4. The 5 included skills

 obsidian-skills contains the following 5 skills for Obsidian. Each skill describes the procedure of "this file in Obsidian is written this way," along with a list of notations and commands. To make it easier to visualize, I have formatted it as "if you ask like this, it will do this for you."

 Three of them, obsidian-markdown, obsidian-bases, and json-canvas, can be used just by importing them. The remaining two require prior preparation.
 The obsidian-cli skill is a skill for operating the Vault via the Obsidian CLI, so you must first enable the CLI feature on the Obsidian side. I summarized the CLI activation and basic operations in the following past article. This time, we will proceed assuming that the Obsidian CLI is already enabled.

 For those who enabled the CLI in the previous article, you might be wondering, "I can already type commands, so how does this skill change things?" When this skill is introduced, a list of CLI syntax is displayed. Also, even if you don't remember the syntax, it is a skill where the AI agent will convert it into the appropriate CLI syntax if you just ask in natural language.

 The defuddle (Defuddle) skill is a skill that uses the Defuddle CLI to convert web articles into markdown. To use the defuddle skill, it is a prerequisite that you have the Defuddle CLI installed. To install the Defuddle CLI, you use the npm command, so a Node.js environment is required. If you do not have a Node.js environment, download and install it from the official Node.js website (https://nodejs.org/).

[npm]

npm install -g defuddle

 This command is also executed in the terminal, not on the Claude Code screen. The "-g" option specifies that it should be usable from any folder. I wanted it to be local, so I did not include that option.

 By the way, you do not need to specify which of the five to use. At the beginning of each skill, there is a condition written describing "when to use it," and the mechanism is designed so that Claude Code or the AI agent selects the one that matches your request.

5. Trying it out in practice

5-1. Checking if it has been loaded

 First, after importing obsidian-skills using the method in Chapter 3, check if the skills are recognized. Typing /skills opens the skill management menu, where you can see a list of recognized skills.

 This padlock icon ( locked by plugin) indicates a restricted state meaning, "This skill is managed collectively via /plugin (plugin functionality), so it cannot be individually turned OFF (disabled) or changed from the Skills screen." There is no particular problem with using it.

 If there are skills that do not appear, or if you suspect there is a problem with skill recognition, first try restarting Claude Code and then look at /skills again. If that still does not work, let's try diagnosing it with the /doctor command. If there are no issues, it should appear as follows. It might take some time on the first run. (Since the output is long, this is an excerpt of the obsidian-skills part.)

5-2. Trying out the 5 skills

 As per Chapter 4, without specifying which skill to use, I will enter the "Example requests" from the table in Chapter 4 directly into the Claude Code screen, and check one by one whether the intended skill is used and if the results are as expected.

 Before checking the skill operations, I moved all files directly under the Vault to an old folder. The situation before verification is as follows.

[obsidian-markdown]

関連ノートへのリンクと、注意書きのコールアウトを入れたメモを作って

Select 1

obsidian-markdown was used, and a demo note was created. It also includes a callout for the warning.

[obsidian-bases]

dailyフォルダのノートを一覧にする.baseファイルを作って

 Daily notes created in the past were displayed using Bases. obsidian-bases was used correctly.

[json-canvas]

この内容をマインドマップにして、キャンバスに置いて

Select 1 (I was wondering if it would even understand this content... since I had the AI come up with the sample. I was curious about how it would turn out, so I just went ahead with it.)

 A canvas file for the demo note was created. The json-canvas skill was used correctly.

[obsidian-cli]

 The obsidian-cli skill works on the running Obsidian, so I will open Obsidian before making the request. Since Claude Code assembles and executes Obsidian CLI commands, the point here is whether obsidian daily, which has already been verified in previous articles, is executed.

今日のデイリーノートを開いて

 I hadn't updated the installer version, so a warning appeared again... The daily note opened properly, and obsidian-cli was used.

[defuddle]

defuddle For the skill, pass the URL of the webpage you want it to read. Please replace (URL of the article you want to read) with the actual URL. To try this, you need to install the Defuddle CLI from Chapter 4 first.

(読ませたい記事のURL) の記事を読んで、メモにまとめて


I used the URL from the previous obsidian-CLI article. It summarized it well, added properties, and personally, I thought it was great. It made me want to find a use for it.
So, I tried five, and it used the intended skill for all five. I think this made for a good sample.
The folder structure after executing the five commands is as follows. I installed defuddle at this point, so files associated with the installation were added, but other than that, these are the files created by the skills.

❑ Summary

I installed and tried out obsidian-skills, which was released by kepano, the CEO of Obsidian's developer.

  • obsidian-markdown

  • obsidian-bases

  • json-canvas

  • obsidian-cli

  • defuddle

I wasn't quite sure about the use case for the first skill that creates markdown, but I thought the remaining four were extremely convenient because you can request them in natural language when needed. In particular, the content summarized by the final defuddle tool is very neatly organized, and I would like to use it somewhere in the future.

❑ Afterword

I had known about these obsidian-skills for a while, but I had prioritized other things and hadn't been able to check them out until now. This was my first time using them, and I felt they were all very convenient. (As I wrote in the summary, I haven't found a use for the markdown creation skill yet...) However, in my current life, the reality is that I rarely have a case where I actually need to use these. I want to incorporate the habit of using things like bases and canvas, but I haven't been able to do so. By introducing these skills, I can now make requests to Claude Code in natural language, so I think the hurdle has been lowered.
I couldn't read 'defuddle' and had to look it up. It's pronounced 'defuddle'. I was surprised when I saw the output results from defuddle. Please try it out at least once.

️ Environment Notes

  • Windows 11 (VRAM: 8GB RAM: 48GB)

  • Obsidian: 1.13.7

  • Obsidian Installer: 1.11.5

  • Claude Code CLI: v2.1.228

  • Node.js: v22.14.0

  • npm: 11.15.0

Reference Links

  • obsidian-skills (GitHub)

  • Extend Claude with skills (Claude Code Docs)

  • Agent Skills Specification (agentskills.io)

  • Obsidian CLI (Official Help)

  • Obsidian Flavored Markdown (Official Help)

  • Obsidian Bases Syntax (Official Help)

  • Obsidian Canvas (Official Help)

  • JSON Canvas Spec 1.0

  • Defuddle (GitHub)

  • Node.js Official

  • Trying out note operations with Obsidian CLI(Past article)

  • Overview and introduction of the Obsidian community plugin [Claudian](Past article)

  • I tried using Obsidian Bases!(Past article)


同じカテゴリの記事

東條 淳平

スポーツと芸能が交差する話題を担当。大会公式記録と所属先の発表を突き合わせ、数字は必ず出典付きで扱います。

おすすめの関連記事