Cross-Platform Hooks and Status Scripts

Community

Write portable Claude Code hooks.

Authorsalverius-tech
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides essential guidelines and examples for creating Claude Code hooks and status scripts that function reliably across different operating systems, including Windows (PowerShell, Git Bash), WSL, and Linux.

Core Features & Use Cases

  • Cross-Platform Compatibility: Ensures scripts work seamlessly on Windows, WSL, and Linux.
  • Robust Scripting: Covers critical aspects like shebang lines, line endings, home directory detection, and tool availability checks.
  • Use Case: Develop a Git hook that automatically formats code before a commit, ensuring it runs correctly whether you're on Windows or Linux.

Quick Start

Follow the guidelines in this skill to ensure your shell scripts use LF line endings and the correct shebang for cross-platform compatibility.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Cross-Platform Hooks and Status Scripts
Download link: https://github.com/salverius-tech/dotfiles/archive/main.zip#cross-platform-hooks-and-status-scripts

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.