codex-skill-loader-broken-symlink-recovery

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

5 stars

Best use case

codex-skill-loader-broken-symlink-recovery is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using codex-skill-loader-broken-symlink-recovery 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/codex-skill-loader-broken-symlink-recovery/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/workspace-hub-learned/codex-skill-loader-broken-symlink-recovery/SKILL.md"

Manual Installation

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

How codex-skill-loader-broken-symlink-recovery Compares

Feature / Agentcodex-skill-loader-broken-symlink-recoveryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

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.

Related Guides

SKILL.md Source

# Codex skill-loader broken symlink recovery

Use when a Codex run in `workspace-hub` fails early with an error like:

- `failed to stat skills entry ... /workspace-hub/.Codex/skills/skills (symlink): No such file or directory`

## Why this matters

This failure happens before issue execution meaningfully begins. It is easy to mistake it for a prompt, auth, or issue-scope problem. In practice, the cause can be a broken repo-local symlink under `.Codex/skills/`.

## Detection

1. Inspect the failing process log for `codex_core_skills::loader` errors.
2. Check whether the offending path is a symlink:
   - `test -L .Codex/skills/skills && readlink .Codex/skills/skills`
3. Check whether the symlink target actually exists from the repo root:
   - `test -e .Codex/skills/skills && echo exists || echo missing`

Known bad state observed in `workspace-hub`:
- `.Codex/skills/skills -> ../.Codex/skills`
- from repo root this resolved to a missing path, so Codex failed before execution.

## Recovery pattern

1. Treat the run as infrastructure-blocked, not issue-blocked.
2. Salvage any other active runs first; do not assume all provider runs are invalid.
3. Verify issue completion independently using:
   - `process list/poll/log`
   - `git status`
   - `git log --oneline -n 5`
   - `gh issue view <n>`
4. If another run already completed the issue, clean leftover drift and close via evidence rather than rerunning blindly.
5. Before launching new Codex work from the root repo, verify the symlink path again.

## Practical notes

- A watch-pattern `error` notification from Codex can be a repo bootstrap defect rather than task failure.
- Keep external git verification authoritative; Codex/Codex may still leave unrelated residue like temp prompt files or runtime drift files.
- In workspace-hub, also check for stray edits to `scripts/testing/coverage-results.json` after agent runs and revert them unless explicitly in scope.

## Minimal verification bundle

Use this bundle before deciding to rerun:

```bash
git -C /path/to/worktree status --short
git -C /path/to/worktree log --oneline -n 5
gh issue view <issue> --json number,title,state,comments,url
```

If the issue is already landed/closed, prefer cleanup + closeout over another Codex launch.

Related Skills

verify-Codex-run-commit-vs-working-tree-before-closing

5
from vamseeachanta/workspace-hub

After a Codex implementation run, verify the claimed file set against the actual commit and working tree before treating the issue as fully complete.

multi-repo-stale-lock-recovery

5
from vamseeachanta/workspace-hub

Diagnose and recover from stale git lock files in multi-repo workspaces, especially with submodules

multi-repo-pull-with-untracked-conflict-recovery

5
from vamseeachanta/workspace-hub

Diagnose and resolve multi-repo pull failures caused by untracked files conflicting with remote changes

multi-repo-git-recovery

5
from vamseeachanta/workspace-hub

Diagnose and recover from stale lock files, diverged branches, and untracked file conflicts across multiple repos in a workspace ecosystem

git-stale-lock-recovery

5
from vamseeachanta/workspace-hub

Diagnose and recover from git stale lock files and corrupted rebase states in multi-repo workflows

git-large-file-staging-conflict-recovery

5
from vamseeachanta/workspace-hub

Recover from pre-commit hook blocks on oversized files and corrupted rebase states during bulk repo syncs

freetaxusa-form-entry-recovery

5
from vamseeachanta/workspace-hub

Handle session timeouts and modal dialogs when entering tax forms in FreeTaxUSA

fix-symlink-shebang-persistence

5
from vamseeachanta/workspace-hub

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

extract-skills-from-Codex-sessions

5
from vamseeachanta/workspace-hub

Automatically extract reusable skills from Codex session transcripts using LLM analysis and wire them into a Stop hook

diagnose-symlink-shebang-persistence

5
from vamseeachanta/workspace-hub

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

interactive-Codex-to-file-based-fallback

5
from vamseeachanta/workspace-hub

Switch from tmux/interactive Codex to file-based Codex -p execution when interactive runs fail with upstream errors or analysis-only stalls, then verify landing from git/GitHub state.

exclude-wiki-Codex-md-from-harness-line-limit-hook

5
from vamseeachanta/workspace-hub

Fix false-positive pre-commit failures where workspace-hub's AGENTS.md line-limit hook blocks edits to auto-generated wiki schema files under knowledge/wikis/.