Skip to content

Commit e1a6454

Browse files
committed
feat: simplify skills onboarding and verify installer compatibility
1 parent f11c061 commit e1a6454

7 files changed

Lines changed: 276 additions & 39 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Skills installer compatibility
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
jobs:
10+
installer:
11+
name: skills (${{ matrix.installer }})
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 15
14+
continue-on-error: ${{ matrix.installer == 'latest' }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
installer: ['latest']
19+
env:
20+
DISABLE_TELEMETRY: '1'
21+
DO_NOT_TRACK: '1'
22+
SKILLS_CLI_PATH: ${{ runner.temp }}/skills-installer/node_modules/skills/bin/cli.mjs
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
26+
with:
27+
node-version: 22.20.0
28+
- run: npm ci
29+
- name: Acquire installer without lifecycle scripts
30+
run: npm install --prefix "$RUNNER_TEMP/skills-installer" --ignore-scripts --no-audit --no-fund --package-lock=false skills@${{ matrix.installer }}
31+
- name: Record exact installer version
32+
run: |
33+
node -e 'const fs=require("fs"),p=require("path");const m=require(p.resolve(process.env.SKILLS_CLI_PATH,"../../package.json"));if(!/^\d+\.\d+\.\d+$/.test(m.version))throw Error("Expected exact version");fs.appendFileSync(process.env.GITHUB_ENV,`SKILLS_EXPECTED_VERSION=${m.version}\n`);console.log(`Testing skills ${m.version}`)'
34+
- name: Verify copied bundles and repository discovery
35+
run: node scripts/test-install.mjs

‎README.md‎

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,29 @@ project using the catalog maintained in this repository.
4949

5050
### Alternative: `npx skills`
5151

52-
For a skill-only installation, run this in your project with Node.js and npm
53-
available:
52+
With **Node.js 22.20.0+**, npm and Git available, run this in your project:
5453

5554
```bash
56-
npx --yes skills@1.5.25 add https://github.com/GrillerGeek/idd-framework/tree/main --skill idd-orchestration --agent codex --copy --yes
55+
npx skills@1.5.25 add GrillerGeek/idd-framework --skill idd-orchestration
5756
```
5857

59-
The router includes all fifteen IDD workflow stages. Replace `--agent codex`
60-
with `--agent claude-code` for Claude. Choose either the native plugin or
61-
standalone skills in a client to avoid duplicate entry points. Standalone skills
62-
do not install Claude's native agents. After restarting your app, ask it to use
63-
`idd-orchestration` to interview you about your product. The `/idd-framework:*`
64-
examples below are native Claude plugin commands; skill-only installs use the
65-
installed skill names instead.
58+
The interactive installer lets you choose your coding app and installation scope.
59+
Choose **project** to keep the skill with this project; choose **global** if you
60+
want it available across projects. Version `1.5.25` is the tested installer pin,
61+
not the IDD version.
6662

67-
For local development, updates, removal and host prerequisites, see the
68-
[installation guide](docs/installation.md).
63+
**Start with `idd-orchestration`.** This single skill includes all fifteen IDD
64+
workflow stages; you do not need to select or install each stage. Individual
65+
stage skills remain available for users who want a narrower installation.
66+
67+
Standalone skills do not install Claude's native agents. After restarting your
68+
app, ask it to use `idd-orchestration` to interview you about your product.
69+
The `/idd-framework:*` examples below are native Claude plugin commands;
70+
skill-only installs use the installed skill names instead.
71+
72+
Choose the native plugin or standalone skill route in a client to avoid duplicate
73+
entry points. The [installation guide](docs/installation.md#standalone-skills)
74+
covers explicit app selection, verification, updates and removal.
6975

7076
## Try it in your project
7177

‎docs/contributing-agents.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,31 @@ are retained, with independent review separate from output checks. See
333333
[installation guide](installation.md). Archive/Router acceptance and native
334334
implementation closures are complete. Fresh desktop sessions, actual native alias
335335
execution, human review and publication are not inferred from CLI inventory.
336+
337+
## Skills installer compatibility
338+
339+
The documented installer remains `skills@1.5.25`. CI tests that pin and runs a
340+
separate, advisory `latest` check in `skills-compatibility.yml`; a future upstream
341+
failure does not silently change the supported pin or block unrelated work.
342+
The workflow records the resolved version and disables acquisition lifecycle
343+
scripts and installer telemetry. It can also be run through workflow_dispatch.
344+
These are package installation checks, not model execution certification.
345+
346+
Acquire a candidate installer explicitly into a disposable directory:
347+
348+
```bash
349+
npm install --prefix /tmp/skills-candidate --ignore-scripts --no-audit --no-fund --package-lock=false skills@1.7.0
350+
```
351+
352+
Test it without modifying the repository lockfile:
353+
354+
```bash
355+
SKILLS_CLI_PATH=/tmp/skills-candidate/node_modules/skills/bin/cli.mjs SKILLS_EXPECTED_VERSION=1.7.0 node scripts/test-install.mjs
356+
```
357+
358+
The default remains the locked local dependency. Alternate package identity and
359+
version must match explicitly. The suite covers all bundles and repository-root
360+
discovery of the complete router for Codex and Claude.
361+
362+
See [the onboarding verification](reviews/2026-09-20-skills-onboarding.md) for
363+
remote refresh/removal evidence and the separate directory-discovery limitation.

‎docs/installation.md‎

Lines changed: 63 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -123,40 +123,81 @@ while cached version directories remain. This is uninstallation, not cache
123123
purging. An unrelated plugin in a separate marketplace remains registered and
124124
unchanged. Do not remove a marketplace shared by plugins you want to retain.
125125

126-
## Standalone skills through the pinned installer
126+
## Standalone skills
127127

128-
From the consuming project, install only the complete router:
128+
Use Node.js **22.20.0+**, npm and Git. Start in the project where you want the
129+
skill available. For an interactive installation:
129130

130131
```bash
131-
npx --yes skills@1.5.25 add https://github.com/GrillerGeek/idd-framework/tree/main --agent codex --skill idd-orchestration --copy --yes
132+
npx skills@1.5.25 add GrillerGeek/idd-framework --skill idd-orchestration
132133
```
133134

134-
Use `--agent claude-code` for Claude, or select both agents explicitly. Replace
135-
`--skill idd-orchestration` with a direct stage to install it alone.
136-
Use `npx --yes skills@1.5.25 add https://github.com/GrillerGeek/idd-framework/tree/main --list`
137-
to discover all sixteen names. For bulk installation, select `--skill '*'` with the desired hosts.
135+
Choose your app and scope in the installer. The steps below use **project scope**
136+
and an explicit copy for Codex. Substitute `claude-code` for `codex` when using
137+
Claude. For a global installation, add `--global` to install, list and remove;
138+
use `--global` instead of `--project` for updates.
138139

139-
Pinned 1.5.25 forces copy for a single host, even without `--copy`. When both Codex
140-
and Claude are selected without `--copy`, Claude uses a symlink into the project's
141-
canonical `.agents/skills`; it does not link to the source checkout. Installed
142-
copies and router resources were verified after source removal.
140+
The recommended `idd-orchestration` skill contains every workflow stage and its
141+
resources. You do not need all sixteen separately installed skills. Advanced
142+
users can replace the selected name with a stage such as `idd-interview`.
143143

144-
Local sources are skipped by `skills update`. To refresh, repeat the original
145-
`add` command with the same source, skill, host and copy options. Do not call the
146-
local update no-op a successful content update. Remote update behavior has not
147-
been inferred from the local refresh tests.
144+
### Install and verify
148145

149-
Remove a named standalone skill with:
146+
```bash
147+
npx --yes skills@1.5.25 add GrillerGeek/idd-framework --skill idd-orchestration --agent codex --copy --yes
148+
npx skills@1.5.25 list --agent codex
149+
```
150+
151+
Look for `idd-orchestration` in the listing. Restart your coding app, then ask it
152+
to use `idd-orchestration` for a stakeholder interview.
153+
This verifies discovery; executing a workflow still depends on the host's tools
154+
and the workflow's own prerequisites.
155+
156+
### Update
157+
158+
To refresh this named skill from its recorded GitHub source:
159+
160+
```bash
161+
npx skills@1.5.25 update idd-orchestration --project --yes
162+
```
163+
164+
This command uses the installer lockfile and detected project destinations.
165+
To retain an explicit target app and copy method, or repair an installed copy,
166+
repeat the full `add` command above instead. Restart the app afterward. Updates
167+
replace installed resources; keep project instructions in your project rather
168+
than editing the installed bundle.
169+
170+
Both installer 1.5.25 and 1.7.0 were exercised against the current published source:
171+
refresh retained the expected bytes and reinstallation repaired a deliberately
172+
modified fixture. This is not evidence of an upgrade between two published
173+
releases. Local-path sources are skipped by `skills update`; repeat their `add`
174+
command after updating the source instead.
175+
176+
### Remove
177+
178+
```bash
179+
npx skills@1.5.25 remove idd-orchestration --agent codex --yes
180+
npx skills@1.5.25 list --agent codex
181+
```
182+
183+
Removal was verified in single-host copy fixtures, preserving an unrelated
184+
skill. In projects sharing `.agents/skills` across hosts, a copy may remain for
185+
another host; inspect the listing and selected path rather than assuming success
186+
means every shared copy was deleted. Avoid `--all` when keeping other skills.
187+
188+
### Local sources and advanced discovery
189+
190+
Replace `GrillerGeek/idd-framework` with `/absolute/path/to/idd-framework` or the direct
191+
`plugin/skills/idd-orchestration` directory to install local development files.
192+
To inspect available skills without installing:
150193

151194
```bash
152-
npx --yes skills@1.5.25 remove idd-orchestration --agent codex --yes
195+
npx skills@1.5.25 add GrillerGeek/idd-framework --list
153196
```
154197

155-
Use `claude-code` for Claude and explicit names for other selected skills. Avoid
156-
`--all` across unrelated skills. Verify paths afterward: the installer may report
157-
success while retaining `.agents/skills/<name>` for other detected hosts sharing
158-
that directory. Retained copies remain installed, including for Codex. Do not
159-
silently broaden deletion to other hosts to force complete removal.
198+
For advanced bulk use, select `--skill '*'` with explicit agents. The complete
199+
router is sufficient for normal onboarding. Native Claude commands and agents
200+
require the native plugin route.
160201

161202
## Evidence and remaining checks
162203

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Skills onboarding verification — 2026-09-20
2+
3+
## Outcome
4+
5+
The README leads with a short interactive GitHub command for `idd-orchestration`.
6+
The installation guide provides explicit single-host copy commands and the
7+
install → list → invoke → refresh → remove path. The complete IDD router is the default; individual stages remain optional.
8+
Plugin resources and versions are unchanged.
9+
10+
## Remote lifecycle observations
11+
12+
Public source: `GrillerGeek/idd-framework`. Both `skills@1.5.25` and `skills@1.7.0`
13+
were run against Codex and Claude Code in separate disposable home/config/project
14+
directories with an environment allowlist and telemetry disabled. No personal
15+
installation or model invocation was performed. All four combinations passed:
16+
17+
1. GitHub shorthand installation produced the complete expected bundle bytes/modes.
18+
2. `list --agent <host>` reported the selected skill.
19+
3. `update idd-orchestration --project --yes` refreshed the current source and retained
20+
expected bundle content and an unrelated fixture skill.
21+
4. Repeating explicit `add --skill idd-orchestration --agent <host> --copy --yes`
22+
restored a deliberately replaced installed SKILL.md to the published bytes.
23+
5. Named removal removed the selected host and canonical paths in these single-host
24+
fixtures and preserved the unrelated skill.
25+
26+
The shared evidence directory is
27+
`/private/var/folders/f0/_sscvrpd48s9srngb0d0l_mh0000gn/T/skills-lifecycle-zalafoot/`.
28+
Each case has a report with command arguments, exit codes and captured output;
29+
`summary.json` contains all eight combinations across the two projects. The
30+
one-off driver is `/tmp/probe-skills-lifecycle.py`. These temporary records are
31+
local evidence, not shipped dependencies.
32+
33+
The update observation is a refresh of the currently published version, not an
34+
upgrade across two upstream releases. Removal in a multi-host shared directory
35+
can retain a copy needed by another host; the guide preserves that limitation.
36+
The short form's discovery was checked separately; interactive selection UX was
37+
not automated end to end. Explicit target/copy options were used for lifecycle
38+
comparisons. Global scope and additional hosts remain separate checks.
39+
40+
## Compatibility automation
41+
42+
The pinned installer remains the supported baseline. The new GitHub workflow
43+
adds an advisory `latest` check with exact resolved-version reporting and no
44+
install lifecycle scripts. CI checks local package contents rather than relying
45+
on directory indexing or running models. Hosted CI is only established after
46+
these changes are pushed.
47+
48+
Local package probes passed on both installer versions: 68 bundle/host/method
49+
checks plus two repository-root router discovery checks per version. Candidate
50+
selection requires an explicit matching package identity and exact version;
51+
normal offline tests continue using the locked dependency.
52+
53+
## Directory discovery
54+
55+
GitHub shorthand discovery succeeds. However, `skills find` did not return the
56+
matching GrillerGeek skill, and the page at
57+
`https://skills.sh/grillergeek/idd-framework/idd-orchestration` returned HTTP 200 with rendered
58+
**404 / skill unavailable** content. A successful HTTP status alone is not a
59+
valid listing. No badge or directory link was added to the README, and no
60+
synthetic telemetry-enabled installs were generated to inflate discovery.
61+
62+
Direct GitHub commands remain usable without directory listing. Recheck the
63+
actual directory content before adding a badge. The [skills.sh documentation](https://skills.sh/docs)
64+
describes telemetry-based ranking; it does not establish that these repositories
65+
are currently indexed. External indexing is an outstanding ecosystem condition,
66+
not a packaging requirement or a reason to couple the two tools.
67+
68+
## Repository checks
69+
70+
`npm run check` passes. All **500 tests** pass with local networking permitted.
71+
The initial sandboxed run passed 499 tests and could not start the controlled
72+
Forge HTTP fixture; the host-permitted rerun passed without a code change to
73+
Forge. The new regression test checks that alternate installers cannot silently
74+
bypass the default pin, package identity or exact-version selection.
75+
Both compatibility workflow YAML files parse, their version-recording shell
76+
step was exercised, and all 65 relative links in the changed documentation
77+
resolve. `git diff --check` passes. No plugin resource or manifest changed, so no
78+
installer-visible plugin version bump is needed.

‎scripts/test-install.mjs‎

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ import { runProcess } from './lib/process.mjs';
88
import { spawnSync } from 'node:child_process';
99
import { portableFixture, workspace } from '../tests/helpers/workspace.mjs';
1010

11-
export function installerExecutable() {
12-
const packageRoot=path.join(repositoryRoot,'node_modules/skills');
11+
export function installerExecutable(env=process.env) {
12+
const supplied=env.SKILLS_CLI_PATH;
13+
const executable=supplied?fs.realpathSync(supplied):path.join(repositoryRoot,'node_modules/skills/bin/cli.mjs');
14+
const packageRoot=path.dirname(path.dirname(executable));
1315
const metadata=JSON.parse(fs.readFileSync(path.join(packageRoot,'package.json'),'utf8'));
14-
assert.equal(metadata.version,'1.5.25','installer must match the reviewed pin');
15-
return path.join(packageRoot,'bin/cli.mjs');
16+
const expected=env.SKILLS_EXPECTED_VERSION??'1.5.25';
17+
assert.match(expected,/^\d+\.\d+\.\d+$/, 'expected installer version must be exact');
18+
assert.equal(metadata.name,'skills','installer must be the skills package');
19+
assert.equal(metadata.version,expected,'installer must match the explicitly selected version');
20+
return executable;
1621
}
1722
export function installLocal(source,target,name,{copy=false,stateRoot=target,agents=['codex','claude-code']}={}) {
1823
return runProcess(process.execPath,[installerExecutable(),'add',source,'--agent',...agents,'--skill',name,'--yes',...(copy?['--copy']:[])],{
@@ -62,9 +67,28 @@ export function probeInstall() {
6267
}
6368
}
6469
}
70+
// Exercise repository discovery as well as the direct-bundle installs above.
71+
const router=production.bundles.find(b=>b.directory==='idd-orchestration');
72+
assert.ok(router,'complete router is present');
73+
for(const agent of ['codex','claude-code']) {
74+
const target=path.join(ownedRoot,`repository ${agent}`);fs.mkdirSync(target);
75+
installLocal(repositoryRoot,target,router.directory,{copy:true,agents:[agent]});
76+
const parent=path.join(target,agent==='codex'?'.agents/skills':'.claude/skills');
77+
assert.deepEqual(fs.readdirSync(parent),[router.directory]);
78+
const installed=path.join(parent,router.directory);
79+
assert.equal(fs.lstatSync(installed).isSymbolicLink(),false);
80+
const actual=fs.readdirSync(installed,{recursive:true,withFileTypes:true}).filter(f=>f.isFile()).map(f=>path.relative(installed,path.join(f.parentPath,f.name))).sort();
81+
assert.deepEqual(actual,router.files.map(f=>f.destination).sort());
82+
for(const file of router.files) {
83+
const destination=path.join(installed,file.destination);
84+
assert.deepEqual(fs.readFileSync(destination),fs.readFileSync(path.join(repositoryRoot,'plugin/skills',router.directory,file.destination)));
85+
assert.equal(fs.statSync(destination).mode&0o777,file.executable?0o755:0o644);
86+
}
87+
console.log(`PASS: repository discovery, ${agent}, complete router bytes and modes`);
88+
}
6589
} finally {fs.rmSync(ownedRoot,{recursive:true,force:true});}
6690
}
6791
if(process.argv[1] && path.resolve(process.argv[1])===fileURLToPath(import.meta.url)) {
68-
try {probeInstall();console.log('Package installation verified; host workflow behavior requires separate evaluation.');}
92+
try {console.log(`Installer: ${installerExecutable()}`);probeInstall();console.log('Package installation verified; host workflow behavior requires separate evaluation.');}
6993
catch(error){console.error(error.message);process.exitCode=1;}
7094
}

‎tests/installer-selection.test.mjs‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
import test from 'node:test';
3+
import assert from 'node:assert/strict';
4+
import fs from 'node:fs';
5+
import path from 'node:path';
6+
import { installerExecutable } from '../scripts/test-install.mjs';
7+
import { workspace } from './helpers/workspace.mjs';
8+
9+
test('alternate installer is explicit and bound to the expected package/version', t => {
10+
const root=workspace(t), bin=path.join(root,'bin');
11+
fs.mkdirSync(bin);
12+
const cli=path.join(bin,'cli.mjs');
13+
fs.writeFileSync(cli,'throw Error("selection must not execute the installer");');
14+
const metadata=path.join(root,'package.json');
15+
const write=(name,version)=>fs.writeFileSync(metadata,JSON.stringify({name,version}));
16+
write('skills','1.7.0');
17+
const env={SKILLS_CLI_PATH:cli,SKILLS_EXPECTED_VERSION:'1.7.0'};
18+
assert.equal(installerExecutable(env),fs.realpathSync(cli));
19+
assert.throws(()=>installerExecutable({SKILLS_CLI_PATH:cli}),/explicitly selected version/);
20+
assert.throws(()=>installerExecutable({...env,SKILLS_EXPECTED_VERSION:'latest'}),/must be exact/);
21+
write('different-package','1.7.0');
22+
assert.throws(()=>installerExecutable(env),/must be the skills package/);
23+
write('skills','1.7.1');
24+
assert.throws(()=>installerExecutable(env),/explicitly selected version/);
25+
});

0 commit comments

Comments
 (0)