Skip to content

fix(agents): replace hardcoded developer path in hooks-guide#1053

Open
xiaolai wants to merge 1 commit into
alirezarezvani:mainfrom
xiaolai:fix/nlpm-hardcoded-path
Open

fix(agents): replace hardcoded developer path in hooks-guide#1053
xiaolai wants to merge 1 commit into
alirezarezvani:mainfrom
xiaolai:fix/nlpm-hardcoded-path

Conversation

@xiaolai

@xiaolai xiaolai commented Apr 30, 2026

Copy link
Copy Markdown

Automated: drive-by fix from NLPM, an NL artifact linter. Reviewed and reproduced before submission.

Bug: Lines 253 and 259 of .claude/agents/hooks-guide.md hardcode /Users/rezarezvani/projects/claude-code-skills-factory as the working directory for the hook-factory invocation steps. Any user who installs this agent will get a cd: /Users/rezarezvani/...: No such file or directory error when the agent executes Step 2.

Evidence: grep -n "rezarezvani" .claude/agents/hooks-guide.md returns lines 253 and 259 with the developer-specific absolute path. Confirmed by attempting cd /Users/rezarezvani/projects/claude-code-skills-factory on a non-developer machine — the directory does not exist.

Fix: Replace /Users/rezarezvani/projects/claude-code-skills-factory with $(pwd) on both lines, so the command runs in the current project directory on any machine.

Steps 2 of the hook-factory invocation used an absolute path
`/Users/rezarezvani/projects/claude-code-skills-factory` that does not
exist on any machine other than the original developer's. Replace with
`$(pwd)` so the cd succeeds in any project directory.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant