Skip to content

[BUG]: Tier 2 collection scan aborts on unrelated in-root symlinks #32

Closed

Description

@Patrick-Erichsen

What happened?

Running Tier 2 similarity checking against the public openclaw/agent-skills collection aborts before any embeddings are created:

Discovery path contains a symlink or reparse point: CLAUDE.md

The file is an intentional, contained compatibility link:

skills/autoreview/CLAUDE.md -> AGENTS.md

It lets tools that look for CLAUDE.md read the same instructions as tools that look for AGENTS.md. The link target stays inside the same skill directory, and neither file is a skill manifest.

The current traversal checks every discovered filename for symlink status before filtering for SKILL.md. As a result, one unrelated symlink aborts similarity analysis for the entire collection.

Expected: unrelated symlinks are ignored, or contained links whose resolved target remains inside the collection are permitted. Symlinked manifests and links escaping the collection should remain rejected.

Actual: the full collection scan exits 1 before embedding because of the unrelated CLAUDE.md link.

Reproduction steps

tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git "$tmp/SkillEvaluator"
git clone --depth 1 https://github.com/openclaw/agent-skills.git "$tmp/agent-skills"
cd "$tmp/SkillEvaluator"
uv sync --python 3.13 --all-extras
uv run skillevaluator similarity-check \
  "$tmp/agent-skills/skills" \
  --type skill \
  --report cli

The final command exits 1 with:

[Similarity Check]
Errors:
  • Discovery path contains a symlink or reparse point: CLAUDE.md

This fails before embeddings are requested, so no provider credential is required to reproduce it.

Skill Evaluator version or commit

cd128302d745b421bfaa02a1335fac30f21344e7

The tested openclaw/agent-skills commit was 2a409d348a4bcf6f15e41e9a20efd0b298a32528.

Environment

  • macOS 26.4, arm64
  • Python 3.13.14
  • uv 0.11.6
  • Installed from the public source checkout with uv sync --python 3.13 --all-extras
  • No provider or agent configuration is needed to reach this pre-embedding failure

Before submitting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions