-
-
Notifications
You must be signed in to change notification settings - Fork 22
feat: register existing skills during maintainer setup #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
LadyBluenotes
merged 9 commits into
integration-tests
from
feat/setup-registers-existing
Sep 13, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
916b65a
feat: register existing skills during maintainer setup
LadyBluenotes 4624711
fix: keep setup registering valid skills when one candidate is rejected
LadyBluenotes b0d8789
chore: keep distribution and record planners module-private for knip
LadyBluenotes fb739c3
ci: apply automated fixes
autofix-ci[bot] 214505a
test: assert the packed maintainer help no longer lists adopt
LadyBluenotes 4982e1e
perf: register existing skills in one validated batch
LadyBluenotes 272217f
test: initialize maintainer benchmark fixtures in the measured runner
LadyBluenotes 89f13b9
Merge branch 'audit-fix-198' into audit-fix-287
LadyBluenotes 7ca9700
fix: point setup at domain_map.yaml when a mapped domain is blank
LadyBluenotes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import { execFileSync, spawnSync } from 'node:child_process' | ||
| import { rmSync } from 'node:fs' | ||
| import { join } from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
| import { afterAll, beforeAll, bench, describe } from 'vitest' | ||
| import { createTempDir, writeFile, writeJson, writeSkill } from './helpers.ts' | ||
|
|
||
| const cliPath = fileURLToPath( | ||
| new URL('../../packages/intent/dist/cli.mjs', import.meta.url), | ||
| ) | ||
|
|
||
| for (const count of [20, 200]) { | ||
| describe(`maintainer setup with ${count} existing skills`, () => { | ||
| let root: string | undefined | ||
| function setup() { | ||
| if (root) return | ||
| root = createTempDir('maintainer-setup') | ||
| writeJson(join(root, 'package.json'), { | ||
| name: '@bench/library', | ||
| version: '1.0.0', | ||
| }) | ||
| writeFile( | ||
| join(root, '.github/workflows/check-skills.yml'), | ||
| '# Existing repository workflow\n', | ||
| ) | ||
| for (let index = 0; index < count; index++) { | ||
| writeSkill(root, `task-${index}`, { | ||
| description: `Use for task ${index}.`, | ||
| sources: ['package.json'], | ||
| }) | ||
| } | ||
| execFileSync('git', ['-c', 'core.fsmonitor=false', 'init', '-q'], { | ||
| cwd: root, | ||
| }) | ||
| } | ||
| function teardown() { | ||
| if (root) rmSync(root, { recursive: true, force: true }) | ||
| root = undefined | ||
| } | ||
| beforeAll(setup) | ||
| afterAll(teardown) | ||
|
|
||
| bench( | ||
| 'registers the complete batch', | ||
| () => { | ||
| setup() | ||
| // Repeat first setup, without including fixture creation or a network lookup. | ||
| for (const path of ['skills/_artifacts', '.intent', 'AGENTS.md']) { | ||
| rmSync(join(root!, path), { recursive: true, force: true }) | ||
| } | ||
| const result = spawnSync( | ||
| process.execPath, | ||
| [cliPath, 'maintainer', 'setup'], | ||
| { | ||
| cwd: root, | ||
| encoding: 'utf8', | ||
| timeout: 30_000, | ||
| }, | ||
| ) | ||
| if ( | ||
| result.status !== 0 || | ||
| result.stdout.split('Registered skills/').length - 1 !== count | ||
| ) { | ||
| throw new Error( | ||
| `Incomplete registration: ${result.stdout}${result.stderr}`, | ||
| ) | ||
| } | ||
| }, | ||
| { warmupIterations: 3, time: 3_000, setup, teardown }, | ||
| ) | ||
| }) | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.