Skip to content

ref(cli): Centralize skill symlink targets#128

Merged
gricha merged 1 commit into
mainfrom
gricha/ref/centralize-skill-symlink-targets
Jul 11, 2026
Merged

ref(cli): Centralize skill symlink targets#128
gricha merged 1 commit into
mainfrom
gricha/ref/centralize-skill-symlink-targets

Conversation

@gricha

@gricha gricha commented Jul 11, 2026

Copy link
Copy Markdown
Member

Centralize the skill-symlink targets used by install, sync, doctor, and init into one scope-aware projection.

These commands independently accumulated the same legacy-target, configured-agent, user-scope, and deduplication logic after user-scope support was added. Keeping target selection in one pure function prevents the commands from disagreeing while leaving creation, repair, reporting, and output behavior with the command that owns it.

The projection preserves legacy-first ordering, exact-string compatibility, user-scope target rules, and agents that read .agents/skills natively. Sync now repairs the same absolute legacy target it verifies instead of projecting that target a second time.

Regression coverage includes project and user targets, duplicate Claude/Cursor paths, native readers, relative scope roots, legacy-looking absolute paths, doctor reporting, and the repaired filesystem link.

Move repeated scope, agent, and legacy target enumeration into a shared pure
projection. Keep creation, repair, reporting, and output policy in their
commands while preserving ordering, exact-string deduplication, and native
skill readers.

Verify sync repairs the projected legacy path and cover project and user scope
semantics.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dotagents Ready Ready Preview Jul 11, 2026 3:41am

Request Review

@gricha gricha marked this pull request as ready for review July 11, 2026 03:41
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 11, 2026
@gricha gricha merged commit daa3a13 into main Jul 11, 2026
21 checks passed
@gricha gricha deleted the gricha/ref/centralize-skill-symlink-targets branch July 11, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant