diagnose-symlink-shebang-persistence

Fix persistent shebang issues in symlinked CLI entry points that revert after git operations

5 stars

Best use case

diagnose-symlink-shebang-persistence is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Fix persistent shebang issues in symlinked CLI entry points that revert after git operations

Teams using diagnose-symlink-shebang-persistence should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/diagnose-symlink-shebang-persistence/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/workspace-hub/learned/diagnose-symlink-shebang-persistence/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/diagnose-symlink-shebang-persistence/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How diagnose-symlink-shebang-persistence Compares

Feature / Agentdiagnose-symlink-shebang-persistenceStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Fix persistent shebang issues in symlinked CLI entry points that revert after git operations

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Diagnose Symlink Shebang Persistence Issues

When a CLI tool's shebang keeps reverting after updates, check if the symlink points to a repo file vs. a venv entry point. If `~/.local/bin/tool` → `repo/tool` (symlink), edits revert on `git pull`. Solution: repoint the symlink to the venv entry point instead (`~/.local/bin/tool` → `~/.venv/bin/tool`). This bypasses repo resets while preserving the correct shebang and venv context. Verify with `ls -l` and `file` commands.

Related Skills

diagnose

5
from vamseeachanta/workspace-hub

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

fix-symlink-shebang-persistence

5
from vamseeachanta/workspace-hub

Permanently fix shebang issues in symlinked CLI tools that get overwritten by git updates

diagnose-venv-shebang-mismatch

5
from vamseeachanta/workspace-hub

Diagnose and fix ModuleNotFoundError caused by entry point shebang pointing outside virtual environment

diagnose-venv-shebang-import-errors

5
from vamseeachanta/workspace-hub

Debugging pattern for ModuleNotFoundError when CLI entry points use wrong Python interpreter

diagnose-venv-shebang-conflicts

5
from vamseeachanta/workspace-hub

Debugging pattern for resolving ModuleNotFoundError when CLI entry points use wrong Python interpreter

diagnose-shebang-virtualenv-import-errors

5
from vamseeachanta/workspace-hub

Debugging pattern for ModuleNotFoundError when CLI entry points use wrong Python interpreter

diagnose-shebang-venv-mismatch

5
from vamseeachanta/workspace-hub

Identify and fix shebang mismatches when CLI tools resolve to system Python instead of their virtual environment

diagnose-shebang-venv-import-errors

5
from vamseeachanta/workspace-hub

Troubleshoot ModuleNotFoundError in CLI tools by identifying shebang-venv mismatches

diagnose-dirty-ntfs-mount-errors

5
from vamseeachanta/workspace-hub

Troubleshoot NTFS mount failures by identifying dirty volume flags and driver type

diagnose-and-mount-dirty-ntfs-drives

5
from vamseeachanta/workspace-hub

Troubleshoot and mount NTFS external drives blocked by dirty filesystem flags

diagnose-stale-pycache-import-mismatch

5
from vamseeachanta/workspace-hub

Diagnose Python ImportError cases where a symbol cannot be imported even though the source file already defines it; verify live source, interpreter/venv selection, clear stale __pycache__, and rerun targeted imports/tests.

codex-skill-loader-broken-symlink-recovery

5
from vamseeachanta/workspace-hub

Diagnose Codex startup failures in workspace-hub caused by a broken `.Codex/skills/skills` symlink and recover without misattributing the failure to issue scope.