Agent skill

Install Claudesidian Command

by heyitsnoah in heyitsnoah/claudesidian

Install claudesidian shell command to launch Claude Code from anywhere.

MITAuto-check passed

Install Install Claudesidian Command

skills CLI
$ npx skills add heyitsnoah/claudesidian --skill install-claudesidian-command -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install heyitsnoah/claudesidian install-claudesidian-command --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
install-claudesidian-command
GitHub stars
2.6k
Token cost
~2.7k tokens
SKILL.md length
814 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Install claudesidian shell command to launch Claude Code from anywhere.

  • Works in 4 steps: Detect Current Setup → Create the Command → Install to Shell Config → …
  • The user wants to install a shell alias/launcher for their vault
  • SKILL.md covers Task, Process, Shell Detection and Installation Steps, plus 7 more sections
  • Calls claude

What it does

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.

When your agent uses it

  • The user wants to install a shell alias/launcher for their vault
  • Asks to set up the claudesidian command

Example prompts

  • “/install-claudesidian-command”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Detect Current Setup
  2. Create the Command
  3. Install to Shell Config
  4. Verify Installation

What it can do on your machine

Read from SKILL.md and the folder at commit 6c56f35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • claude

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from heyitsnoah/claudesidian at commit 6c56f35, republished under its MIT licence (© heyitsnoah). 814 words, ~2,671 tokens.

Download SKILL.mdSave it as .claude/skills/install-claudesidian-command/SKILL.md (or your agent's skills folder).
name
install-claudesidian-command
description
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.

Install Claudesidian Command

Creates a shell alias/function that allows you to run claudesidian from anywhere to open your vault in Claude Code.

Task

Install a shell command that:

  1. Changes to your claudesidian vault directory
  2. Launches Claude Code
  3. Works from any directory in your terminal

Similar to having a quick launcher for your vault.

Process

1. Detect Current Setup
  • Check which shell the user is using (bash/zsh/fish)
  • Find the current working directory (vault path)
  • Determine the appropriate config file
2. Create the Command

The command will be an alias that:

  • Changes to the vault directory: cd /path/to/your/vault
  • Tries to resume existing session: claude --resume 2>/dev/null
  • Falls back to new session if no existing one: || claude
  • All in one command with properly escaped path: (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.

3. Install to Shell Config

Add the alias to the appropriate config file:

  • Bash: ~/.bashrc or ~/.bash_profile
  • Zsh: ~/.zshrc
  • Fish: ~/.config/fish/config.fish
4. Verify Installation
  • Show the added line
  • Remind user to reload their shell or source the config
  • Provide test command

Shell Detection

Detects the user's default shell, with support for command-line override:

bash
# 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:

  • Uses $SHELL to detect default shell (not $ZSH_VERSION/$BASH_VERSION which detect current session)
  • Supports command-line argument to override auto-detection
  • Shows detected shell and config file for transparency
  • Validates shell type and provides clear error message for unsupported shells

Installation Steps

  1. Detect shell: Use argument if provided, otherwise auto-detect from $SHELL

  2. Get vault path: Use pwd to get current directory

  3. Escape the path: Properly escape quotes and special characters for shell safety

    bash
    # 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//\"/\\\"}"
  4. Check if already installed: Search config file for existing claudesidian alias/function

    bash
    # 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
    fi
  5. Get user confirmation: Show what will be added and get final confirmation

  6. Create backup: Only if proceeding with modification

    bash
    # 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"
  7. Build the safe alias/function command: Use the escaped path from step 3

    bash
    # 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))'"
    fi
  8. Remove old command if replacing:

    bash
    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"
    fi

    Why 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.

  9. Add command to config file: Append using the escaped command text

    bash
    echo "$COMMAND_TEXT" >> "$CONFIG_FILE"
  10. Show success message: With instructions to reload shell

Show full SKILL.md (400 more words)Show less

Example Output

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!

Handling Special Characters

The implementation properly handles paths with:

  • Spaces: /Users/noah/My Vault
  • Quotes: /Users/noah/vault's backup
  • Special characters that need escaping

Paths are double-quoted and any embedded quotes/backslashes are escaped.

Fish Shell Support

Fish shell uses different syntax than Bash/Zsh:

Bash/Zsh (alias):

bash
alias claudesidian='(cd "/path" && command)'

Fish (function):

fish
function claudesidian
    cd "/path" && (command; or fallback)
    cd -
end

Key differences:

  • Fish uses function keyword instead of alias for complex commands
  • Fish uses ; or instead of || for fallback logic
  • Fish uses cd - to return to previous directory (instead of subshell)
  • Multi-line function definition instead of single-line alias

The installation automatically detects Fish and uses the correct syntax.

Security Considerations

This command modifies your shell configuration file (a sensitive operation). Safety measures:

  • You'll see exactly what will be added before any changes
  • Timestamped backup is automatically created before modification
  • Vault path is properly escaped to prevent injection attacks
  • Only the claudesidian command is modified - nothing else in your config
  • Asks permission before replacing existing commands

If anything goes wrong, restore from: $CONFIG_FILE.backup-YYYYMMDD-HHMMSS

Important Notes

  • The command uses a subshell () (or cd - in Fish) so it returns to your original directory after
  • Automatically tries to resume existing sessions, falls back to new session
  • If alias/function already exists, asks user if they want to replace it
  • Always shows what will be added before modifying config files
  • Always creates timestamped backup of config file before modifying (format: YYYYMMDD-HHMMSS)
  • Backups are kept indefinitely - users can manually clean up old backups if needed
  • Shows backup location so users know where to restore from if needed

Usage Examples

Install for your default shell (auto-detected):

/install-claudesidian-command

Install for specific shell (override auto-detection):

/install-claudesidian-command zsh
/install-claudesidian-command bash
/install-claudesidian-command fish

When to specify shell:

  • You use multiple shells and want to install for a specific one
  • Auto-detection picked the wrong shell
  • You're setting up for someone else

How It Works

Bash/Zsh (alias with subshell):

bash
alias claudesidian='(cd "/path/to/vault" && (claude --resume 2>/dev/null || claude))'
  1. (cd "/path/to/vault" && ...) - Subshell that changes directory temporarily (path is double-quoted for safety)
  2. claude --resume 2>/dev/null - Tries to resume existing session, suppresses error
  3. || claude - If resume fails (no session), starts new session
  4. After Claude exits, subshell closes and returns to original directory automatically

Fish (function with cd -):

fish
function claudesidian
    cd "/path/to/vault" && (claude --resume 2>/dev/null; or claude)
    cd -
end
  1. cd "/path/to/vault" - Changes to vault directory (path is double-quoted for safety)
  2. claude --resume 2>/dev/null - Tries to resume existing session, suppresses error
  3. ; or claude - If resume fails (no session), starts new session (Fish syntax)
  4. 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

Files

Just SKILL.md in .agents/skills/install-claudesidian-command of heyitsnoah/claudesidian.

Open the folder on GitHubat commit 6c56f35

Compare with similar skills

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.

Install Claudesidian Command compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Install Claudesidian Command this skillheyitsnoah/claudesidian2.6k—~2.7kAutomated safety check: PassMIT
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official38k7 repos~3kAutomated safety check: PassApache-2.0
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
E2Ecallstack/react-native-pager-view3.4k1 repos~2.1kAutomated safety check: PassMIT

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    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.

    38k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • 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.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Neat-Freak Knowledge Closeout

    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.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • E2E

    callstack/react-native-pager-view

    Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.

    3.4k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check passed
  • 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.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed

More from heyitsnoah/claudesidian

All 17 skills in this repo
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    Auto-check passed
  • Add Frontmatter

    heyitsnoah/claudesidian

    Add or update YAML frontmatter properties to enhance Obsidian note organization.

    2.6k GitHub stars~951 tokensUpdated 6 mo ago
    Auto-check passed
  • De AI Ify

    heyitsnoah/claudesidian

    Remove AI-generated jargon and restore human voice to text. An agent skill from heyitsnoah/claudesidian.

    2.6k GitHub stars~526 tokensUpdated 6 mo ago
    Auto-check passed
  • Download Attachment

    heyitsnoah/claudesidian

    Download files from URLs to the Obsidian attachments folder and organize them with descriptive names.

    2.6k GitHub stars~836 tokensUpdated 6 mo ago
    Auto-check passed
  • Git Worktrees

    heyitsnoah/claudesidian

    Work with git worktrees for isolated parallel development. An agent skill from heyitsnoah/claudesidian.

    2.6k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check: notes
  • Pragmatic Review

    heyitsnoah/claudesidian

    Interactive pragmatic code review focusing on YAGNI and KISS principles.

    2.6k GitHub stars~2.6k tokensUpdated 6 mo ago
    Auto-check passed

Works with

Questions about Install Claudesidian Command

What does Install Claudesidian Command do?

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.

When should I use Install Claudesidian Command?

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.

How do I install Install Claudesidian Command in Claude Code?

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.

How do I install Install Claudesidian Command in Codex?

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.

Can I use Install Claudesidian Command in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Install Claudesidian Command need to run?

Going by SKILL.md and its folder, Install Claudesidian Command needs the command-line tools its instructions call (claude).

Does Install Claudesidian Command access the network?

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.

Is Install Claudesidian Command safe to install?

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.

What licence does Install Claudesidian Command use?

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.

How many tokens does Install Claudesidian Command use?

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.

What are the alternatives to Install Claudesidian Command?

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.

Who maintains Install Claudesidian Command?

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.