Skip to content
Source
Sign inSign up
TanStack/intent

feat: register existing skills during maintainer setup #287

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 9 commits intointegration-tests fromrefs/pull/287/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 12 changed files with 73 additions and 1 deletion (loading 10).

x
0 of 12 viewed, 12 left
1 addition and 1 deletion.changeset/guided-maintainer-adoption.mdModified
View file
@@ -2,4 +2,4 @@
'@tanstack/intent': minor
---
​
-Add guided adoption of existing package-owned skills with a read-only JSON plan, explicit batch registration and distribution choices, and interactive confirmation. Preserve authored guidance and prior records, reject stale plans, leave semantic review pending, and keep CI noninteractive.
+`maintainer setup` replaces `maintainer adopt`, which is removed along with its JSON plan and `--apply`; update any script that called it. Setup registers existing package-owned skills found under `skills/` directories that the skill tree does not record yet. Skill contents are preserved; the domain comes from `metadata.domain`, the domain map, or the parent directory, and defaults to `uncategorized` for the maintainer to edit. Invalid or conflicting skills are reported and left unregistered. Agent skill directories, dependencies, and packages outside the workspace are not scanned.
72 additions and 0 deletionsbenchmarks/intent/maintainer.bench.tsAdded
View file
@@ -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',
+ })