shell-handoff

shell-handoff is a skill for Claude Code, Codex from jasonkneen/lazar. It costs 0 tokens per session (795 once invoked), scanned A, original, MIT.

A procedure for making a skill or wrapper available as an explicit shell command through a user-managed aliases file. The aliases file is sourced from the shell configuration rather than copied into system command folders.

In plain words
What is it for?
Use it to expose Lazar wrappers and newly authored skills as commands while keeping the command setup in the workspace.
Why use it?
It provides a controlled way to invoke tools without silently changing system-wide command locations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to expose Lazar wrappers and newly authored skills as commands while keeping the command setup in the workspace.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jasonkneen/lazar/shell-handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jasonkneen/lazar --skill shell-handoff
Clone the repo
git clone --depth 1 https://github.com/jasonkneen/lazar

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shell-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/jasonkneen/lazar/shell-handoff/github.svg)](https://agentmods.dev/skills/jasonkneen/lazar/shell-handoff)
Your own site
<a href="https://agentmods.dev/skills/jasonkneen/lazar/shell-handoff"><img src="https://agentmods.dev/badge/skills/jasonkneen/lazar/shell-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shell-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/jasonkneen/lazar/shell-handoff"><img src="https://agentmods.dev/badge/skills/jasonkneen/lazar/shell-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00795
Opus 5 $0.00000 $0.00398
Sonnet 5 $0.00000 $0.00159
Haiku 4.5 $0.00000 $0.00080

Measured 9d ago against content hash ce0e48ea15e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

shell-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/seed-skills/_meta/shell-handoff/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

shell-handoff

Make a skill or wrapper invokable from the user's shell as a command, without writing to PATH directories. The sandbox blocks writes to ~/bin/, /usr/local/bin/, etc. by design — that boundary exists so the agent never silently defines what happens when the user types a command. Hand off through an explicit aliases file the user sources from their shell config.

When to use

  • Wrapping lazar (renderer, formatter, custom invocation flags).
  • Authoring any skill that "should be a shell command" (e.g. glazar, lt, note).
  • Anytime you'd otherwise reach for cp foo ~/bin/ or cp foo /usr/local/bin/ and hit Operation not permitted.

How to use

The aliases file lives at:

$LAZAR_HOME/workspace/aliases.sh

Workspace is in the writable allowlist. --reset-all wipes workspace, so aliases vanish predictably — the agent's user-facing surface always matches its current state.

Recipe

  1. Ensure the aliases file exists with a header:

    mkdir -p $LAZAR_HOME/workspace
    if [ ! -f $LAZAR_HOME/workspace/aliases.sh ]; then
      cat > $LAZAR_HOME/workspace/aliases.sh <<'EOF'
    # lazar shell aliases — generated by skills.
    # Source from .zshrc:
    #   [ -f $LAZAR_HOME/workspace/aliases.sh ] && source $LAZAR_HOME/workspace/aliases.sh
    EOF
    fi
    
  2. Append your alias or function (always include a marker comment so duplicates can be detected and removed later):

    # simple alias
    cat >> $LAZAR_HOME/workspace/aliases.sh <<'EOF'
    
    # alias: <name> (skill: <skill-name>)
    alias <name>='<command>'
    EOF
    
    # function form (when args matter)
    cat >> $LAZAR_HOME/workspace/aliases.sh <<'EOF'
    
    # function: <name> (skill: <skill-name>)
    <name>() {
      lazar -p "$*" 2>/dev/null | glow -
    }
    EOF
    
  3. Tell the user what just happened. If aliases.sh didn't exist before, this is their first-time setup:

    Add this one line to ~/.zshrc (or ~/.bashrc):
        [ -f $LAZAR_HOME/workspace/aliases.sh ] && source $LAZAR_HOME/workspace/aliases.sh
    Then: source ~/.zshrc
    

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 78 lines · 0 tokens per session scan A ce0e48ea15e6

Subscribe to this mod's changes

shell-handoff is a skill published in the GitHub repository jasonkneen/lazar (31 stars, last pushed 27d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 795 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.