From 0d6309c5b5dc89114eed5a8a993b741e55632b9d Mon Sep 17 00:00:00 2001 From: Sebastian Gieseler Date: Fri, 6 Nov 2026 12:54:18 +0100 Subject: [PATCH] chore: drop the step that takes committed devstack skills out of git The upgrade prompt no longer has the agent untrack generated skills, and `devstack skills install` no longer lists tracked ones: a migration aid since ADR-0079 (0.32.0), due to go once the known repositories had moved (owner: until about 0.40.0). `devstack skills check` (ADR-0087) still fails on a tracked copy and prints the `git rm -r --cached`. Closes #389 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 9 ++++++++ crates/devstack-hub/src/poolskills.rs | 2 +- crates/devstack-hub/src/prompts.rs | 6 +----- crates/devstack-skills/src/lib.rs | 2 +- crates/devstack/src/dispatch/skills.rs | 21 ++++++------------- .../0079-skills-local-to-a-working-tree.md | 4 ++++ 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8264528e..8d34dfbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,15 @@ and listed with their assets on the file is named as such. `-f` is taken as given, and `devstack init` still writes into the current folder. +### Removed + +- **The step that takes committed devstack skills out of git.** The + dashboard's upgrade prompt no longer has the agent look for generated + skills git still tracks, and `devstack skills install` no longer lists + them: the known repositories moved over after 0.32.0, where the skills + became local to each working tree. `devstack skills check` still fails on + such a copy and prints the `git rm -r --cached` that takes it out (#389). + ### Fixed - **Python creating `__pycache__` no longer restarts a dev server** (#463). diff --git a/crates/devstack-hub/src/poolskills.rs b/crates/devstack-hub/src/poolskills.rs index c534fe33..612a1f63 100644 --- a/crates/devstack-hub/src/poolskills.rs +++ b/crates/devstack-hub/src/poolskills.rs @@ -413,7 +413,7 @@ impl PoolSkills { /// folders there of the agents switched on, and refreshed where an /// earlier one is; each folder ignores itself. Out of the folders of the /// agents switched off that no agent switched on reads (ADR-0083). A - /// skill git tracks is left to the upgrade prompt. + /// skill git tracks is left to `devstack skills check` (ADR-0087). pub fn local(&self) { let s = self.settings(); let (mut rels, mut off): (Vec<&str>, Vec<&str>) = (Vec::new(), Vec::new()); diff --git a/crates/devstack-hub/src/prompts.rs b/crates/devstack-hub/src/prompts.rs index da67fd04..def4669b 100644 --- a/crates/devstack-hub/src/prompts.rs +++ b/crates/devstack-hub/src/prompts.rs @@ -65,10 +65,6 @@ pub fn text(p: &Prompt) -> String { // Where the MCP server goes: the project's file of each agent, an // existing file merged into. let mcp = "devstack's MCP server (`devstack mcp`, stdio) gives coding agents its tools (status, logs, restart, lanes). Register it in the project's configuration of the coding agents this repository is worked on with, next to the servers already there: `.mcp.json` (Claude Code) `{ \"mcpServers\": { \"devstack\": { \"command\": \"devstack\", \"args\": [\"mcp\"] } } }`; `.vscode/mcp.json` (VS Code) the same under `servers`, with `\"type\": \"stdio\"`; `.codex/config.toml` (Codex) `[mcp_servers.devstack]` with `command = \"devstack\"`, `args = [\"mcp\"]`. Keep the files' other entries and their formatting; an agent loads a new server when it starts again."; - // Generated skills are local to the working tree since 0.32.0 - // (ADR-0079): copies an earlier devstack had committed leave git. A - // migration aid, removed again once repositories have moved (#389). - let untrack = "The generated skills are local to each working tree, not the repository's: each of their folders holds a `.gitignore` that ignores it, and the devstack hub keeps them current. Where git still tracks one (`git ls-files` lists a skill folder whose SKILL.md has the line `(devstack skills install)`, such as `.claude/skills/devstack`), take it out of git with `git rm -r --cached `: the files stay. A skill the project wrote itself stays tracked."; match *p { Prompt::Setup { repo, drafted } => format!( "Set up devstack for the repository at {repo}. @@ -143,7 +139,7 @@ pub fn text(p: &Prompt) -> String { 4. Run `devstack check` (and `devstack check --compose`) and `devstack doctor`, and fix every error and warning. 5. Tell me which new features would help this stack, and add only those I agree to. Raise `[stack] requires` only when the file uses something an older devstack does not know: it shuts out everyone still on one. 6. Set `reviewed = \"{current}\"` in `[stack]`: the stack file is up to date with devstack {current} then, and the dashboard stops offering this.{requires} -7. Run `devstack skills install` to refresh the generated skills. {untrack} Check the project's own skills, CLAUDE.md and AGENTS.md for anything that contradicts devstack {current}. Where no agent configuration of the project registers devstack's MCP server, ask me whether to; suggest yes. {mcp} +7. Run `devstack skills install` to refresh the generated skills. Check the project's own skills, CLAUDE.md and AGENTS.md for anything that contradicts devstack {current}. Where no agent configuration of the project registers devstack's MCP server, ask me whether to; suggest yes. {mcp} 8. Restart the stack so it runs devstack {current}, and check that every service becomes healthy. Before you stop it, look at `devstack status` and `devstack lane list`: when lanes run, a lane holds the main ports, or other sessions may use this stack, ask me first. Restart with `devstack down`, then `devstack up`: the containers start again with it, their volumes stay. {careful}", repo = display(repo), file = display(file), diff --git a/crates/devstack-skills/src/lib.rs b/crates/devstack-skills/src/lib.rs index 4c92cf0d..cd74ca35 100644 --- a/crates/devstack-skills/src/lib.rs +++ b/crates/devstack-skills/src/lib.rs @@ -14,7 +14,7 @@ //! A generated skill is local to the working tree (ADR-0079): its folder //! holds a `.gitignore` that ignores the folder, so git leaves it out, and //! the hub keeps it in step with this devstack ([`install_into`]); one git -//! still tracks (an earlier devstack's) is left to the upgrade prompt. +//! still tracks (an earlier devstack's) is left to `devstack skills check`. pub mod agents; diff --git a/crates/devstack/src/dispatch/skills.rs b/crates/devstack/src/dispatch/skills.rs index 54a83c6f..7abf1f0a 100644 --- a/crates/devstack/src/dispatch/skills.rs +++ b/crates/devstack/src/dispatch/skills.rs @@ -8,29 +8,20 @@ pub(crate) fn run(file: &Path, action: SkillsAction) -> Result<()> { match action { SkillsAction::Install { dir, force } => { let stack = load(file); - let mut tracked = Vec::new(); for o in skills::install(&stack, file, dir.as_deref(), force)? { let fresh = matches!(o, skills::Outcome::Written(_)); match o { - skills::Outcome::Written(p) | skills::Outcome::Unchanged(p) => { - println!( - "{} {}", - if fresh { "written " } else { "up to date" }, - p.display() - ); - if let Some(folder) = p.parent() - && git_tracks(folder) - { - tracked.push(folder.to_path_buf()); - } - } + skills::Outcome::Written(p) | skills::Outcome::Unchanged(p) => println!( + "{} {}", + if fresh { "written " } else { "up to date" }, + p.display() + ), skills::Outcome::Kept(p) => println!( "kept {} (written by the project, not by devstack; --force replaces it)", p.display() ), } } - untrack_note(&tracked); Ok(()) } // The hub keeps the generated skills current (ADR-0079); what it @@ -53,7 +44,7 @@ pub(crate) fn run(file: &Path, action: SkillsAction) -> Result<()> { } /// Local to the working tree since ADR-0079: a copy an earlier devstack had -/// committed is the user's to take out of git (a migration aid, #389). +/// committed is the user's to take out of git (`skills check`, ADR-0087). fn untrack_note(tracked: &[std::path::PathBuf]) { if tracked.is_empty() { return; diff --git a/docs/adr/0079-skills-local-to-a-working-tree.md b/docs/adr/0079-skills-local-to-a-working-tree.md index e72981f7..8a7b0c66 100644 --- a/docs/adr/0079-skills-local-to-a-working-tree.md +++ b/docs/adr/0079-skills-local-to-a-working-tree.md @@ -109,6 +109,10 @@ What was built: without such copies. It is a migration aid and goes again once the repositories have moved, with the hint of `devstack skills install` ([#389](https://github.com/nuetzliches/devstack/issues/389)). + *Removed in 0.42.0, noted 2026-11-06: the upgrade prompt and `devstack + skills install` no longer name tracked copies; `devstack skills check` + ([ADR-0087](0087-the-generated-skills-are-the-hubs-no-tool-reports-them-outdated.md)) + still does.* 9. **The dashboard.** The Skills page shows each agent's folder in a working tree beside its user folder, a bound skill's repositories as a pill and in its detail with the working trees it is in, and the state