Hook Development for Claude Code Plugins
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
Install claudesidian shell command to launch Claude Code from anywhere.
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .claude/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .claude/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-commandType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .agents/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .agents/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .cursor/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .cursor/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/heyitsnoah/claudesidian.git --path .agents/skills/install-claudesidian-command--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .gemini/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .gemini/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-commandInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .github/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .github/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/heyitsnoah/claudesidian.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/install-claudesidian-command .opencode/skills/install-claudesidian-command && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "install-claudesidian-command" agent skill from https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/install-claudesidian-command into .opencode/skills/install-claudesidian-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "install-claudesidian-command", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
install-claudesidian-commandInstall claudesidian shell command to launch Claude Code from anywhere.
Install Claudesidian Command is an agent skill from heyitsnoah/claudesidian. Install claudesidian shell command to launch Claude Code from anywhere. Use when the user wants to install a shell alias/launcher for their vault, or asks to set up the claudesidian command.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with Bash. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6c56f35. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
claudeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Install Claudesidian Command loads about 2.7k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 814 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from heyitsnoah/claudesidian at commit 6c56f35, republished under its MIT licence (© heyitsnoah). 814 words, ~2,671 tokens.
.claude/skills/install-claudesidian-command/SKILL.md (or your agent's skills folder).Creates a shell alias/function that allows you to run claudesidian from
anywhere to open your vault in Claude Code.
Install a shell command that:
Similar to having a quick launcher for your vault.
The command will be an alias that:
cd /path/to/your/vaultclaude --resume 2>/dev/null|| claude(cd "/path/to/vault" && (claude --resume 2>/dev/null || claude))Important: The path must be properly escaped to handle spaces and special characters.
This automatically enters resume mode if there's an existing session, or starts a new one if not.
Add the alias to the appropriate config file:
~/.bashrc or ~/.bash_profile~/.zshrc~/.config/fish/config.fishDetects the user's default shell, with support for command-line override:
# Check if shell specified as argument (/install-claudesidian-command zsh)
if [ -n "$1" ]; then
# User provided shell type as argument
SHELL_TYPE="$1"
else
# Auto-detect from $SHELL (user's default shell, not current shell)
SHELL_TYPE=$(basename "$SHELL")
fi
# Validate shell type and set appropriate config file
case "$SHELL_TYPE" in
zsh)
CONFIG_FILE="$HOME/.zshrc"
;;
bash)
# Prefer .bashrc on Linux, .bash_profile on macOS
if [ -f "$HOME/.bashrc" ]; then
CONFIG_FILE="$HOME/.bashrc"
else
CONFIG_FILE="$HOME/.bash_profile"
fi
;;
fish)
CONFIG_FILE="$HOME/.config/fish/config.fish"
;;
*)
echo "❌ Unsupported shell: $SHELL_TYPE"
echo " Supported shells: bash, zsh, fish"
echo " Usage: /install-claudesidian-command [bash|zsh|fish]"
exit 1
;;
esac
echo "🐚 Installing for: $SHELL_TYPE"
echo "📝 Config file: $CONFIG_FILE"Key improvements:
$SHELL to detect default shell (not $ZSH_VERSION/$BASH_VERSION
which detect current session)Detect shell: Use argument if provided, otherwise auto-detect from
$SHELL
Get vault path: Use pwd to get current directory
Escape the path: Properly escape quotes and special characters for shell safety
# Escape backslashes FIRST (so we don't double-escape ones we add later)
ESCAPED_PATH="${VAULT_PATH//\\/\\\\}"
# Then escape double quotes
ESCAPED_PATH="${ESCAPED_PATH//\"/\\\"}"Check if already installed: Search config file for existing
claudesidian alias/function
# Check for existing alias/function
if grep -q "alias claudesidian\|function claudesidian" "$CONFIG_FILE"; then
echo "⚠️ Found existing claudesidian command:"
grep -A 3 "claudesidian" "$CONFIG_FILE"
echo ""
read -p "Replace it? (yes/no): " replace_answer
if [[ ! "$replace_answer" =~ ^[Yy] ]]; then
echo "Installation cancelled. Existing command preserved."
exit 0
fi
# Mark for replacement (will remove before adding new one)
REPLACING=true
fiGet user confirmation: Show what will be added and get final confirmation
Create backup: Only if proceeding with modification
# Create backup with timestamp
BACKUP_FILE="$CONFIG_FILE.backup-$(date +%Y%m%d-%H%M%S)"
cp "$CONFIG_FILE" "$BACKUP_FILE"
echo "💾 Backup created: $BACKUP_FILE"Build the safe alias/function command: Use the escaped path from step 3
# CRITICAL: Use $ESCAPED_PATH in the command (not raw $VAULT_PATH)
if [ "$SHELL_TYPE" = "fish" ]; then
# Fish uses function syntax, not alias
COMMAND_TEXT="function claudesidian
cd \"$ESCAPED_PATH\" && (claude --resume 2>/dev/null; or claude)
cd -
end"
else
# Bash/Zsh use alias syntax
# IMPORTANT: Use double quotes around $ESCAPED_PATH to preserve escaping
COMMAND_TEXT="alias claudesidian='(cd \"$ESCAPED_PATH\" && (claude --resume 2>/dev/null || claude))'"
fiRemove old command if replacing:
if [ "$REPLACING" = true ]; then
# Bash/Zsh: alias is a single line — delete just that line
sed -i.tmp '/^alias claudesidian/d' "$CONFIG_FILE"
# Fish: function spans multiple lines — delete from `function claudesidian`
# to the matching `end`
sed -i.tmp '/^function claudesidian/,/^end$/d' "$CONFIG_FILE"
rm -f "$CONFIG_FILE.tmp"
fiWhy two separate sed calls: A combined range like
/alias claudesidian\|function claudesidian/,/^end$/d would, for the alias
case, keep eating lines until it found the next ^end$ somewhere else in
the file (or EOF). That could nuke unrelated config below. Single-line
delete for the alias, range delete for the function — never combine them.
Add command to config file: Append using the escaped command text
echo "$COMMAND_TEXT" >> "$CONFIG_FILE"Show success message: With instructions to reload shell
Bash/Zsh Example (with spaces in path to demonstrate escaping):
🔧 Installing claudesidian command...
📁 Vault path: /home/user/My Obsidian Vault
🐚 Shell detected: zsh
📝 Config file: /home/user/.zshrc
💾 Backup created: /home/user/.zshrc.backup-20250107-143025
✅ Installed! Added to /home/user/.zshrc:
alias claudesidian='(cd "/home/user/My Obsidian Vault" && (claude --resume 2>/dev/null || claude))'
🔄 To activate, run:
source ~/.zshrc
Or start a new terminal session.
✨ Test it: Type 'claudesidian' from any directory!Fish Shell Example:
🔧 Installing claudesidian command...
📁 Vault path: /home/user/My Obsidian Vault
🐚 Shell detected: fish
📝 Config file: /home/user/.config/fish/config.fish
💾 Backup created: /home/user/.config/fish/config.fish.backup-20250107-143025
✅ Installed! Added to /home/user/.config/fish/config.fish:
function claudesidian
cd "/home/user/My Obsidian Vault" && (claude --resume 2>/dev/null; or claude)
cd -
end
🔄 To activate, run:
source ~/.config/fish/config.fish
Or start a new terminal session.
✨ Test it: Type 'claudesidian' from any directory!The implementation properly handles paths with:
/Users/noah/My Vault/Users/noah/vault's backupPaths are double-quoted and any embedded quotes/backslashes are escaped.
Fish shell uses different syntax than Bash/Zsh:
Bash/Zsh (alias):
alias claudesidian='(cd "/path" && command)'Fish (function):
function claudesidian
cd "/path" && (command; or fallback)
cd -
endKey differences:
function keyword instead of alias for complex commands; or instead of || for fallback logiccd - to return to previous directory (instead of subshell)The installation automatically detects Fish and uses the correct syntax.
This command modifies your shell configuration file (a sensitive operation). Safety measures:
If anything goes wrong, restore from: $CONFIG_FILE.backup-YYYYMMDD-HHMMSS
() (or cd - in Fish) so it returns to your
original directory afterYYYYMMDD-HHMMSS)Install for your default shell (auto-detected):
/install-claudesidian-commandInstall for specific shell (override auto-detection):
/install-claudesidian-command zsh
/install-claudesidian-command bash
/install-claudesidian-command fishWhen to specify shell:
Bash/Zsh (alias with subshell):
alias claudesidian='(cd "/path/to/vault" && (claude --resume 2>/dev/null || claude))'(cd "/path/to/vault" && ...) - Subshell that changes directory temporarily
(path is double-quoted for safety)claude --resume 2>/dev/null - Tries to resume existing session, suppresses
error|| claude - If resume fails (no session), starts new sessionFish (function with cd -):
function claudesidian
cd "/path/to/vault" && (claude --resume 2>/dev/null; or claude)
cd -
endcd "/path/to/vault" - Changes to vault directory (path is double-quoted for
safety)claude --resume 2>/dev/null - Tries to resume existing session, suppresses
error; or claude - If resume fails (no session), starts new session (Fish
syntax)cd - - Returns to previous directory after Claude exits© heyitsnoah, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/install-claudesidian-command of heyitsnoah/claudesidian.
Open the folder on GitHubat commit 6c56f35
Install Claudesidian Command next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Install Claudesidian Command this skillheyitsnoah/claudesidian | 2.6k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Plugin Settings Patternanthropics/claude-plugins-official | 38k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Mole Bug Patternstw93/Mole | 70k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| E2Ecallstack/react-native-pager-view | 3.4k | 1 repos | ~2.1k | Automated safety check: Pass | MIT |
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
anthropics/claude-plugins-official
Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
callstack/react-native-pager-view
Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.
automazeio/ccpm
Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.
heyitsnoah/claudesidian
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.
heyitsnoah/claudesidian
Add or update YAML frontmatter properties to enhance Obsidian note organization.
heyitsnoah/claudesidian
Remove AI-generated jargon and restore human voice to text. An agent skill from heyitsnoah/claudesidian.
heyitsnoah/claudesidian
Download files from URLs to the Obsidian attachments folder and organize them with descriptive names.
heyitsnoah/claudesidian
Work with git worktrees for isolated parallel development. An agent skill from heyitsnoah/claudesidian.
heyitsnoah/claudesidian
Interactive pragmatic code review focusing on YAGNI and KISS principles.
Works with
Install claudesidian shell command to launch Claude Code from anywhere. Install Claudesidian Command is an agent skill from heyitsnoah/claudesidian. Install claudesidian shell command to launch Claude Code from anywhere.
Install Claudesidian Command fits situations like: the user wants to install a shell alias/launcher for their vault; asks to set up the claudesidian command.
Run `npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a claude-code`. Or copy the skill folder (.agents/skills/install-claudesidian-command in heyitsnoah/claudesidian) into .claude/skills/install-claudesidian-command in your project. Claude Code loads it when a task matches its description.
Run `npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a codex`. Or copy the skill folder (.agents/skills/install-claudesidian-command in heyitsnoah/claudesidian) into .agents/skills/install-claudesidian-command in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/install-claudesidian-command, .gemini/skills/install-claudesidian-command, .github/skills/install-claudesidian-command and .opencode/skills/install-claudesidian-command in your project.
Going by SKILL.md and its folder, Install Claudesidian Command needs the command-line tools its instructions call (claude).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Install Claudesidian Command is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Install Claudesidian Command: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars), Mole Bug Patterns (tw93/Mole, 70k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
heyitsnoah (a GitHub user) maintains it in heyitsnoah/claudesidian, which has 2,597 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on April 11, 2026.
Source: heyitsnoah/claudesidian on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.