@osstack/skill-registry 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Osborn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ export * from "./manifest.js";
2
+ export * from "./watcher.js";
3
+ export declare const SKILL_REGISTRY_VERSION = "0.0.0";
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ // @osstack/skill-registry — external skill ingestion.
2
+ //
3
+ // S6 first cut: manifest + watcher + CLI.
4
+ // Future: ingester (LLM-normalize SKILL.md), proposer (open PR), batcher
5
+ // (npm release once N updates accumulated), compat (schema breaking
6
+ // change detector). See docs/V2_REFACTOR_PLAN.md §7.5.
7
+ export * from "./manifest.js";
8
+ export * from "./watcher.js";
9
+ export const SKILL_REGISTRY_VERSION = "0.0.0";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,EAAE;AACF,0CAA0C;AAC1C,yEAAyE;AACzE,oEAAoE;AACpE,uDAAuD;AAEvD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,112 @@
1
+ import { z } from "zod";
2
+ export declare const SkillSource: z.ZodObject<{
3
+ /** Stable identifier (e.g. "gstack", "everything-claude-code", "anthropic-skills"). */
4
+ id: z.ZodString;
5
+ /** Display name. */
6
+ name: z.ZodDefault<z.ZodString>;
7
+ /** Git origin URL (https or ssh). */
8
+ origin: z.ZodUnion<[z.ZodString, z.ZodString]>;
9
+ /** Branch or tag pin. Use a tag when you want stability; branch when you
10
+ * trust the upstream. Default "main". */
11
+ ref: z.ZodDefault<z.ZodString>;
12
+ /** SHA we currently consider blessed. Null until the first ingest. */
13
+ blessed_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
+ /** Last time we successfully checked the origin (ISO 8601). */
15
+ last_checked: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16
+ /** Auto-promote minor/patch bumps. Default false (every change goes through review). */
17
+ auto_minor: z.ZodDefault<z.ZodBoolean>;
18
+ /** Optional notes the user keeps about why this skill is tracked. */
19
+ notes: z.ZodDefault<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ id: string;
22
+ name: string;
23
+ origin: string;
24
+ ref: string;
25
+ blessed_sha: string | null;
26
+ last_checked: string | null;
27
+ auto_minor: boolean;
28
+ notes: string;
29
+ }, {
30
+ id: string;
31
+ origin: string;
32
+ name?: string | undefined;
33
+ ref?: string | undefined;
34
+ blessed_sha?: string | null | undefined;
35
+ last_checked?: string | null | undefined;
36
+ auto_minor?: boolean | undefined;
37
+ notes?: string | undefined;
38
+ }>;
39
+ export type SkillSource = z.infer<typeof SkillSource>;
40
+ export declare const SkillManifest: z.ZodObject<{
41
+ version: z.ZodDefault<z.ZodLiteral<1>>;
42
+ sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
43
+ /** Stable identifier (e.g. "gstack", "everything-claude-code", "anthropic-skills"). */
44
+ id: z.ZodString;
45
+ /** Display name. */
46
+ name: z.ZodDefault<z.ZodString>;
47
+ /** Git origin URL (https or ssh). */
48
+ origin: z.ZodUnion<[z.ZodString, z.ZodString]>;
49
+ /** Branch or tag pin. Use a tag when you want stability; branch when you
50
+ * trust the upstream. Default "main". */
51
+ ref: z.ZodDefault<z.ZodString>;
52
+ /** SHA we currently consider blessed. Null until the first ingest. */
53
+ blessed_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
54
+ /** Last time we successfully checked the origin (ISO 8601). */
55
+ last_checked: z.ZodDefault<z.ZodNullable<z.ZodString>>;
56
+ /** Auto-promote minor/patch bumps. Default false (every change goes through review). */
57
+ auto_minor: z.ZodDefault<z.ZodBoolean>;
58
+ /** Optional notes the user keeps about why this skill is tracked. */
59
+ notes: z.ZodDefault<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ id: string;
62
+ name: string;
63
+ origin: string;
64
+ ref: string;
65
+ blessed_sha: string | null;
66
+ last_checked: string | null;
67
+ auto_minor: boolean;
68
+ notes: string;
69
+ }, {
70
+ id: string;
71
+ origin: string;
72
+ name?: string | undefined;
73
+ ref?: string | undefined;
74
+ blessed_sha?: string | null | undefined;
75
+ last_checked?: string | null | undefined;
76
+ auto_minor?: boolean | undefined;
77
+ notes?: string | undefined;
78
+ }>, "many">>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ version: 1;
81
+ sources: {
82
+ id: string;
83
+ name: string;
84
+ origin: string;
85
+ ref: string;
86
+ blessed_sha: string | null;
87
+ last_checked: string | null;
88
+ auto_minor: boolean;
89
+ notes: string;
90
+ }[];
91
+ }, {
92
+ version?: 1 | undefined;
93
+ sources?: {
94
+ id: string;
95
+ origin: string;
96
+ name?: string | undefined;
97
+ ref?: string | undefined;
98
+ blessed_sha?: string | null | undefined;
99
+ last_checked?: string | null | undefined;
100
+ auto_minor?: boolean | undefined;
101
+ notes?: string | undefined;
102
+ }[] | undefined;
103
+ }>;
104
+ export type SkillManifest = z.infer<typeof SkillManifest>;
105
+ export declare function defaultManifestPath(): string;
106
+ export declare function readManifest(path?: string): SkillManifest;
107
+ export declare function writeManifest(manifest: SkillManifest, path?: string): void;
108
+ export declare function addSource(manifest: SkillManifest, src: Partial<SkillSource> & {
109
+ id: string;
110
+ origin: string;
111
+ }): SkillManifest;
112
+ export declare function removeSource(manifest: SkillManifest, id: string): SkillManifest;
@@ -0,0 +1,89 @@
1
+ // Skill manifest — ~/.osstack/skills.config.yaml.
2
+ //
3
+ // Tracks external skill packages osstack knows about, their git origin,
4
+ // the version we currently treat as "blessed", and per-skill flags
5
+ // (auto-update for patch versions, require human approval for major bumps,
6
+ // etc.). The schema is intentionally small so users can hand-edit.
7
+ import { z } from "zod";
8
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
9
+ import { dirname, join } from "node:path";
10
+ import * as yaml from "js-yaml";
11
+ export const SkillSource = z.object({
12
+ /** Stable identifier (e.g. "gstack", "everything-claude-code", "anthropic-skills"). */
13
+ id: z.string().min(1),
14
+ /** Display name. */
15
+ name: z.string().default(""),
16
+ /** Git origin URL (https or ssh). */
17
+ origin: z.string().url().or(z.string().regex(/^git@/)),
18
+ /** Branch or tag pin. Use a tag when you want stability; branch when you
19
+ * trust the upstream. Default "main". */
20
+ ref: z.string().default("main"),
21
+ /** SHA we currently consider blessed. Null until the first ingest. */
22
+ blessed_sha: z.string().nullable().default(null),
23
+ /** Last time we successfully checked the origin (ISO 8601). */
24
+ last_checked: z.string().nullable().default(null),
25
+ /** Auto-promote minor/patch bumps. Default false (every change goes through review). */
26
+ auto_minor: z.boolean().default(false),
27
+ /** Optional notes the user keeps about why this skill is tracked. */
28
+ notes: z.string().default(""),
29
+ });
30
+ export const SkillManifest = z.object({
31
+ version: z.literal(1).default(1),
32
+ sources: z.array(SkillSource).default([]),
33
+ });
34
+ export function defaultManifestPath() {
35
+ const home = process.env["OSSTACK_HOME"] ?? join(process.env["HOME"] ?? "", ".osstack");
36
+ return join(home, "skills.config.yaml");
37
+ }
38
+ const STARTER_SOURCES = [
39
+ SkillSource.parse({
40
+ id: "gstack",
41
+ name: "GStack (Garry Tan)",
42
+ origin: "https://github.com/garrytan/gstack.git",
43
+ ref: "main",
44
+ notes: "Reference for CEO/Eng/Design review skills. Watched but not auto-pulled.",
45
+ }),
46
+ SkillSource.parse({
47
+ id: "everything-claude-code",
48
+ name: "Everything Claude Code",
49
+ origin: "https://github.com/anthropics/claude-cookbooks.git",
50
+ ref: "main",
51
+ notes: "Sandboxed for now — narrow inclusion list per skill.",
52
+ }),
53
+ SkillSource.parse({
54
+ id: "anthropic-skills",
55
+ name: "Anthropic skill marketplace",
56
+ origin: "https://github.com/anthropics/claude-agent-sdk-demos.git",
57
+ ref: "main",
58
+ notes: "Official agent SDK examples.",
59
+ }),
60
+ ];
61
+ export function readManifest(path = defaultManifestPath()) {
62
+ if (!existsSync(path)) {
63
+ return SkillManifest.parse({ version: 1, sources: STARTER_SOURCES });
64
+ }
65
+ const raw = readFileSync(path, "utf8");
66
+ const parsed = yaml.load(raw);
67
+ return SkillManifest.parse(parsed);
68
+ }
69
+ export function writeManifest(manifest, path = defaultManifestPath()) {
70
+ const dir = dirname(path);
71
+ if (!existsSync(dir))
72
+ mkdirSync(dir, { recursive: true });
73
+ const dumped = yaml.dump(manifest, { lineWidth: 100, noRefs: true, sortKeys: false });
74
+ writeFileSync(path, `# osstack skill registry manifest. Hand-edits are fine.\n# Generated/updated by \`osstack skills\` commands.\n\n${dumped}`);
75
+ }
76
+ export function addSource(manifest, src) {
77
+ const parsed = SkillSource.parse({ ref: "main", ...src });
78
+ const idx = manifest.sources.findIndex((s) => s.id === parsed.id);
79
+ const sources = manifest.sources.slice();
80
+ if (idx >= 0)
81
+ sources[idx] = parsed;
82
+ else
83
+ sources.push(parsed);
84
+ return { ...manifest, sources };
85
+ }
86
+ export function removeSource(manifest, id) {
87
+ return { ...manifest, sources: manifest.sources.filter((s) => s.id !== id) };
88
+ }
89
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,wEAAwE;AACxE,mEAAmE;AACnE,2EAA2E;AAC3E,mEAAmE;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,uFAAuF;IACvF,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,oBAAoB;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC5B,qCAAqC;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACtD;8CAC0C;IAC1C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,sEAAsE;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,+DAA+D;IAC/D,YAA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AE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzC,IAAI,GAAG,IAAI,CAAC;QAAE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;;QAC/B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,QAAuB,EAAE,EAAU;IAC9D,OAAO,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC/E,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { SkillManifest, SkillSource } from "./manifest.js";
2
+ export interface DriftEntry {
3
+ source: SkillSource;
4
+ ok: boolean;
5
+ current_sha?: string;
6
+ drifted: boolean;
7
+ reason?: string;
8
+ }
9
+ export interface CheckResult {
10
+ generated_at: string;
11
+ entries: DriftEntry[];
12
+ }
13
+ export declare function checkSource(src: SkillSource): Promise<DriftEntry>;
14
+ export declare function checkAll(manifest: SkillManifest): Promise<CheckResult>;
@@ -0,0 +1,60 @@
1
+ // Watcher — queries each skill source for the current head SHA at its
2
+ // tracked ref, compares to blessed_sha, and reports drift.
3
+ //
4
+ // Implementation: shell out to `git ls-remote`. Cheap, network-only,
5
+ // no clone required. Handles auth via the user's existing git config.
6
+ import { spawn } from "node:child_process";
7
+ export async function checkSource(src) {
8
+ const sha = await lsRemoteHead(src.origin, src.ref);
9
+ if (!sha.ok) {
10
+ return { source: src, ok: false, drifted: false, reason: sha.reason };
11
+ }
12
+ const drifted = src.blessed_sha !== null && src.blessed_sha !== sha.sha;
13
+ return {
14
+ source: src,
15
+ ok: true,
16
+ current_sha: sha.sha,
17
+ drifted: src.blessed_sha === null ? true : drifted,
18
+ ...(src.blessed_sha === null ? { reason: "no_blessed_sha_yet" } : {}),
19
+ };
20
+ }
21
+ export async function checkAll(manifest) {
22
+ const entries = await Promise.all(manifest.sources.map(checkSource));
23
+ return { generated_at: new Date().toISOString(), entries };
24
+ }
25
+ function lsRemoteHead(origin, ref) {
26
+ return new Promise((resolve) => {
27
+ const p = spawn("git", ["ls-remote", origin, ref], { stdio: ["ignore", "pipe", "pipe"] });
28
+ let stdout = "";
29
+ let stderr = "";
30
+ const t = setTimeout(() => {
31
+ p.kill("SIGTERM");
32
+ resolve({ ok: false, reason: "timeout" });
33
+ }, 20_000);
34
+ p.stdout.on("data", (c) => { stdout += String(c); });
35
+ p.stderr.on("data", (c) => { stderr += String(c); });
36
+ p.on("error", (err) => {
37
+ clearTimeout(t);
38
+ resolve({ ok: false, reason: `spawn_failed: ${err.message}` });
39
+ });
40
+ p.on("exit", (code) => {
41
+ clearTimeout(t);
42
+ if (code !== 0) {
43
+ resolve({ ok: false, reason: stderr.trim().slice(0, 200) || `git_exit_${code}` });
44
+ return;
45
+ }
46
+ const first = stdout.split(/\r?\n/).find((l) => l.length > 0);
47
+ if (!first) {
48
+ resolve({ ok: false, reason: "no_matching_ref" });
49
+ return;
50
+ }
51
+ const sha = first.split(/\s+/)[0];
52
+ if (typeof sha !== "string" || !/^[0-9a-f]{7,}$/i.test(sha)) {
53
+ resolve({ ok: false, reason: "could_not_parse_sha" });
54
+ return;
55
+ }
56
+ resolve({ ok: true, sha });
57
+ });
58
+ });
59
+ }
60
+ //# sourceMappingURL=watcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watcher.js","sourceRoot":"","sources":["../src/watcher.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,2DAA2D;AAC3D,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAgB3C,MAAM,CAAC,KAAK,UAAU,W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,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC;gBAClD,OAAO;YACT,CAAC;YACD,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5D,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAC;gBACtD,OAAO;YACT,CAAC;YACD,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@osstack/skill-registry",
3
+ "version": "0.2.0",
4
+ "description": "External skill ingestion: watch GStack/SuperPower/Everything-Claude/Anthropic Skills repos, LLM-normalize to Hermes SKILL.md, propose via PR, batch via npm release.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "dependencies": {
13
+ "js-yaml": "^4.1.1",
14
+ "zod": "^3.25.76",
15
+ "@osstack/core": "0.2.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/js-yaml": "^4.0.9",
19
+ "@types/node": "^25.8.0"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/gilosbornhello/osstack.git",
27
+ "directory": "packages/skill-registry"
28
+ },
29
+ "engines": {
30
+ "node": ">=20"
31
+ },
32
+ "scripts": {
33
+ "build": "tsc -p .",
34
+ "test": "vitest run --passWithNoTests",
35
+ "typecheck": "tsc --noEmit"
36
+ }
37
+ }