Repository navigation
feat: skills local to a working tree; project skills bound to their repository (ADR-0079) - #388
Merged
Merged
Conversation
…epository (ADR-0079) A pool's skill with `metadata.repos` goes into the agents' skill folders of the working trees of that repository, not the user folders; a set can name several folders, each given to its own members, checked on download too. devstack's generated skills are local to the working tree as well: each folder ignores itself, the hub keeps them current for the agents switched on, and the prompts take committed copies out of git. Closes #386 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #386.
Review card (ADR-0070)
Approved by the owner in the conversation on 2026-10-30, all seven points (point 1 refined there: which agents' working-tree folders are written is the user's choice per machine, as on the Skills page).
instructionswith askilltool; user folders with a rewritten description;.devstack/skillswith a pointer fromAGENTS.md..gitignorewith*); the hub's lock records what it wrote. A foreign or hand-changed skill of the same name stays and is shown as a conflict; a file git tracks is never written. ADR-0071 is amended. If wrong: the hub overwrites a repository's own skill or one the user changed..gitignore;.git/info/exclude.devstack skills installwrites them the same way. The upgrade prompt has the agent take tracked copies out of git once. Cloud agents and CI then have no devstack skills.metadata.repos: [acme/shop]binds a skill, matched against the end of theoriginpath, case and host aside. A bound skill goes only into the agents' folders of matching working trees, never the user folders; unbound skills behave as before. An older hub ignores the field.to(andrepos); a set of onepath/tostays as it is.skills.json.GET /hub/skillscarries per skillreposand the working trees it is in; the Skills page shows both.Decided on my own: entries of
metadata.reposmatch the last segments of theoriginURL path (soproject/_git/nameworks for Azure); a skill name in two folders of a set is left out of both; with folders a set's ownto/reposmust be empty; the CLI pairs--path/--to/--reposby order (-= no repos) and takes the set out again if an older coordinator dropped folders or binding; the hub re-syncs the working-tree layer when the worktrees' version or a registered stack file changes (checked every 3 s, at least once a minute);[agents] skillskeeps working fordevstack skills install, the hub goes by the agent switches (no stack file changes meaning); the prompts' untrack step is not version-gated (repositories skip releases; it does nothing without tracked copies). This repository's.claude/skills/devstack*are taken out of git here.What was checked
.claude/skills/.agents/skillswhose folder ignores itself. Codex (login expired) and the Copilot CLI (not installed) were not tried.cargo testfor devstack-skills, devstack-node (incl.tests/skills.rs: folders per member, archive 404), devstack-hub (bound skills into matching worktrees only, tracked file left, worktree removed, skill bound later leaves the user folder), devstack: green on Windows.cargo clippy --all-targets,cargo fmtclean.npm run typecheck, vitest (97) green; Skills page and pool admin checked in the mock lane (screenshots). The folder rows of the admin form were not clicked through.🤖 Generated with Claude Code