fix-symlink-shebang-persistence

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

5 stars

Best use case

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

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

Teams using fix-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/fix-symlink-shebang-persistence/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/workspace-hub/learned/fix-symlink-shebang-persistence/SKILL.md"

Manual Installation

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

How fix-symlink-shebang-persistence Compares

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

Frequently Asked Questions

What does this skill do?

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

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

# Fix Symlink Shebang Persistence

When a symlink points to a git-tracked repo file with a generic shebang (e.g., `#!/usr/bin/env python3`), edits get overwritten on `git pull`. Instead of editing the repo file, repoint the symlink to the venv's generated entry point (e.g., `~/.venv/bin/hermes`), which has the correct venv-specific shebang and isn't git-tracked. Use `ln -sf <new-target> <symlink>` to update the symlink target.

Related Skills

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-symlink-shebang-persistence

5
from vamseeachanta/workspace-hub

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

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

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.

test-oversized-skill

5
from vamseeachanta/workspace-hub

A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.

interactive-report-generator

5
from vamseeachanta/workspace-hub

Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.

data-validation-reporter

5
from vamseeachanta/workspace-hub

Generate interactive validation reports with quality scoring, missing data analysis, and type checking. Combines Pandas validation, Plotly visualization, and YAML configuration for comprehensive data quality reporting.

agent-os-framework

5
from vamseeachanta/workspace-hub

Generate standardized .agent-os directory structure with product documentation, mission, tech-stack, roadmap, and decision records. Enables AI-native workflows.