Fix skill origin metadata and macOS source-importer portability
Point SKILL.md origin-repository/origin-path at the renamed diagrams-drawio repository and workspace path. openConfined() and the directory walker addressed opened files through /proc/self/fd, which only exists on Linux, so every file/directory source import failed on macOS (2 of 150 tests). Keep the procfs path where it is available and fall back to realpath() plus a dev/inode identity check against the open handle elsewhere. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -6,8 +6,8 @@ metadata:
|
||||
author: workspace-swiss-knife
|
||||
version: "2.0"
|
||||
spec: agentskills.io/specification
|
||||
origin-repository: git@github.ibm.com:CTOTools-skills-code-agent/drawio-main.git
|
||||
origin-path: $HOME/projects-ibm/cognitive-architect/workspace-skills-code-agent/drawio-main
|
||||
origin-repository: git@github.ibm.com:CTOTools-skills-code-agent/diagrams-drawio.git
|
||||
origin-path: $HOME/projects-skills-code-agent/ws-skills-code-agent/diagrams-drawio
|
||||
repository: https://gitea.lego-cloud.eu/home-v1-skills-code-agent/diagrams-drawio
|
||||
compatibility: Designed for Cline, Claude Code, GitHub Copilot, OpenAI Codex, and other compatible agent environments
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user