Skip to content

Bug: awk command missing $0 in setup skill causes empty plugin_dir on macOS #269

@wayne2008-gpu

Description

@wayne2008-gpu

Bug Report

Environment: macOS (zsh)

Problem

The awk command in the /claude-hud:setup skill is missing $0 in the print statement, causing cut -f2- to return an empty string. This results in plugin_dir being empty, and node tries to load dist/index.js from the current working directory instead of the plugin directory.

Error:

Error: Cannot find module '/path/to/cwd/dist/index.js'

Root Cause

The awk command only prints the version number and a tab, but not the full path:

# Broken - missing $0 (full path)
awk -F/ '{ print $(NF-1) "\t"  }'

# Fixed - includes full path after the tab
awk -F/ '{ print $(NF-1) "\t" $0 }'

Without $0, cut -f2- has nothing to extract and returns empty.

Fix

Add $0 to the awk print statement in the setup skill Step 1 command template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions