skillpkg-core 0.1.0 → 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/dist/github/index.d.ts +5 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +5 -0
- package/dist/github/index.js.map +1 -0
- package/dist/github/search.d.ts +70 -0
- package/dist/github/search.d.ts.map +1 -0
- package/dist/github/search.js +207 -0
- package/dist/github/search.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/github/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/github/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub-based skill search
|
|
3
|
+
*
|
|
4
|
+
* Uses GitHub API to find AI agent skills in SKILL.md format.
|
|
5
|
+
* SKILL.md is the industry standard used by Claude Code and OpenAI Codex.
|
|
6
|
+
*/
|
|
7
|
+
export interface GitHubSkillResult {
|
|
8
|
+
name: string;
|
|
9
|
+
fullName: string;
|
|
10
|
+
description: string;
|
|
11
|
+
url: string;
|
|
12
|
+
stars: number;
|
|
13
|
+
language: string | null;
|
|
14
|
+
topics: string[];
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
hasSkill: boolean;
|
|
17
|
+
skillFile?: string;
|
|
18
|
+
installSource?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GitHubSearchOptions {
|
|
21
|
+
limit?: number;
|
|
22
|
+
token?: string;
|
|
23
|
+
}
|
|
24
|
+
interface SkillMdFrontmatter {
|
|
25
|
+
name?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
version?: string;
|
|
28
|
+
'allowed-tools'?: string;
|
|
29
|
+
metadata?: {
|
|
30
|
+
'short-description'?: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Parse markdown frontmatter (YAML between --- markers)
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseSkillMdFrontmatter(content: string): {
|
|
37
|
+
frontmatter: SkillMdFrontmatter;
|
|
38
|
+
body: string;
|
|
39
|
+
} | null;
|
|
40
|
+
/**
|
|
41
|
+
* Common SKILL.md file locations
|
|
42
|
+
*/
|
|
43
|
+
export declare const SKILL_MD_PATHS: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a repository has a SKILL.md file
|
|
46
|
+
*/
|
|
47
|
+
export declare function detectSkillMd(repoFullName: string, token?: string): Promise<{
|
|
48
|
+
hasSkill: boolean;
|
|
49
|
+
skillFile?: string;
|
|
50
|
+
content?: string;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Search for AI agent skills on GitHub
|
|
54
|
+
*/
|
|
55
|
+
export declare function searchGitHubSkills(query: string, options?: GitHubSearchOptions): Promise<GitHubSkillResult[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Get skill info from a specific GitHub repository
|
|
58
|
+
*/
|
|
59
|
+
export declare function getGitHubSkillInfo(repoFullName: string, token?: string): Promise<GitHubSkillResult | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Fetch and parse SKILL.md content from a repository
|
|
62
|
+
*/
|
|
63
|
+
export declare function fetchSkillMdContent(repoFullName: string, skillFile: string, token?: string): Promise<{
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
66
|
+
version: string;
|
|
67
|
+
instructions: string;
|
|
68
|
+
} | null>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AAC,CA6BtE;AAoBD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAmE9B;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAmCnC;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAgC9F"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub-based skill search
|
|
3
|
+
*
|
|
4
|
+
* Uses GitHub API to find AI agent skills in SKILL.md format.
|
|
5
|
+
* SKILL.md is the industry standard used by Claude Code and OpenAI Codex.
|
|
6
|
+
*/
|
|
7
|
+
import { parse as parseYaml } from 'yaml';
|
|
8
|
+
/**
|
|
9
|
+
* Parse markdown frontmatter (YAML between --- markers)
|
|
10
|
+
*/
|
|
11
|
+
export function parseSkillMdFrontmatter(content) {
|
|
12
|
+
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);
|
|
13
|
+
if (!match) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
try {
|
|
17
|
+
const frontmatter = parseYaml(match[1]);
|
|
18
|
+
return { frontmatter, body: match[2] };
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Common SKILL.md file locations
|
|
26
|
+
*/
|
|
27
|
+
export const SKILL_MD_PATHS = [
|
|
28
|
+
'SKILL.md',
|
|
29
|
+
'skill.md',
|
|
30
|
+
'skills/SKILL.md',
|
|
31
|
+
'skills/skill.md',
|
|
32
|
+
'.claude/skills/skill.md',
|
|
33
|
+
];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a repository has a SKILL.md file
|
|
36
|
+
*/
|
|
37
|
+
export async function detectSkillMd(repoFullName, token) {
|
|
38
|
+
for (const path of SKILL_MD_PATHS) {
|
|
39
|
+
const rawUrl = `https://raw.githubusercontent.com/${repoFullName}/HEAD/${path}`;
|
|
40
|
+
try {
|
|
41
|
+
const headers = {
|
|
42
|
+
'User-Agent': 'skillpkg',
|
|
43
|
+
};
|
|
44
|
+
if (token) {
|
|
45
|
+
headers['Authorization'] = `token ${token}`;
|
|
46
|
+
}
|
|
47
|
+
const response = await fetch(rawUrl, { headers });
|
|
48
|
+
if (!response.ok)
|
|
49
|
+
continue;
|
|
50
|
+
const content = await response.text();
|
|
51
|
+
const parsed = parseSkillMdFrontmatter(content);
|
|
52
|
+
// Valid SKILL.md has frontmatter with name
|
|
53
|
+
if (parsed && parsed.frontmatter.name) {
|
|
54
|
+
return { hasSkill: true, skillFile: path, content };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return { hasSkill: false };
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Build an optimized search query for AI agent skills
|
|
65
|
+
*/
|
|
66
|
+
function buildSearchQuery(userQuery) {
|
|
67
|
+
const queryLower = userQuery.toLowerCase();
|
|
68
|
+
// If user already included skill-related terms, use as-is
|
|
69
|
+
const skillTerms = ['skill', 'agent', 'prompt', 'ai', 'llm', 'claude', 'gpt', 'mcp'];
|
|
70
|
+
const hasSkillTerm = skillTerms.some((term) => queryLower.includes(term));
|
|
71
|
+
if (hasSkillTerm) {
|
|
72
|
+
return userQuery;
|
|
73
|
+
}
|
|
74
|
+
// Add context for better AI skill results
|
|
75
|
+
return `${userQuery} skill OR agent OR prompt`;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Search for AI agent skills on GitHub
|
|
79
|
+
*/
|
|
80
|
+
export async function searchGitHubSkills(query, options = {}) {
|
|
81
|
+
const limit = options.limit || 20;
|
|
82
|
+
const token = options.token || process.env.GITHUB_TOKEN;
|
|
83
|
+
// Build search query
|
|
84
|
+
const searchQuery = buildSearchQuery(query);
|
|
85
|
+
const url = `https://api.github.com/search/repositories?q=${encodeURIComponent(searchQuery)}&sort=stars&order=desc&per_page=${limit}`;
|
|
86
|
+
try {
|
|
87
|
+
const headers = {
|
|
88
|
+
Accept: 'application/vnd.github.v3+json',
|
|
89
|
+
'User-Agent': 'skillpkg',
|
|
90
|
+
};
|
|
91
|
+
if (token) {
|
|
92
|
+
headers['Authorization'] = `token ${token}`;
|
|
93
|
+
}
|
|
94
|
+
const response = await fetch(url, { headers });
|
|
95
|
+
if (!response.ok) {
|
|
96
|
+
if (response.status === 403) {
|
|
97
|
+
throw new Error('GitHub API rate limit exceeded. Set GITHUB_TOKEN env var for higher limits.');
|
|
98
|
+
}
|
|
99
|
+
if (response.status === 422) {
|
|
100
|
+
return [];
|
|
101
|
+
}
|
|
102
|
+
throw new Error(`GitHub API error: ${response.status} ${response.statusText}`);
|
|
103
|
+
}
|
|
104
|
+
const data = (await response.json());
|
|
105
|
+
const results = [];
|
|
106
|
+
for (const item of data.items) {
|
|
107
|
+
const detection = await detectSkillMd(item.full_name, token);
|
|
108
|
+
results.push({
|
|
109
|
+
name: item.name,
|
|
110
|
+
fullName: item.full_name,
|
|
111
|
+
description: item.description || '',
|
|
112
|
+
url: item.html_url,
|
|
113
|
+
stars: item.stargazers_count,
|
|
114
|
+
language: item.language,
|
|
115
|
+
topics: item.topics || [],
|
|
116
|
+
updatedAt: item.updated_at,
|
|
117
|
+
hasSkill: detection.hasSkill,
|
|
118
|
+
skillFile: detection.skillFile,
|
|
119
|
+
installSource: detection.hasSkill ? `github:${item.full_name}` : undefined,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
// Sort: skills with SKILL.md first, then by stars
|
|
123
|
+
results.sort((a, b) => {
|
|
124
|
+
if (a.hasSkill && !b.hasSkill)
|
|
125
|
+
return -1;
|
|
126
|
+
if (!a.hasSkill && b.hasSkill)
|
|
127
|
+
return 1;
|
|
128
|
+
return b.stars - a.stars;
|
|
129
|
+
});
|
|
130
|
+
return results;
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
if (error instanceof Error) {
|
|
134
|
+
throw error;
|
|
135
|
+
}
|
|
136
|
+
throw new Error(`GitHub search failed: ${String(error)}`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Get skill info from a specific GitHub repository
|
|
141
|
+
*/
|
|
142
|
+
export async function getGitHubSkillInfo(repoFullName, token) {
|
|
143
|
+
try {
|
|
144
|
+
const headers = {
|
|
145
|
+
Accept: 'application/vnd.github.v3+json',
|
|
146
|
+
'User-Agent': 'skillpkg',
|
|
147
|
+
};
|
|
148
|
+
if (token || process.env.GITHUB_TOKEN) {
|
|
149
|
+
headers['Authorization'] = `token ${token || process.env.GITHUB_TOKEN}`;
|
|
150
|
+
}
|
|
151
|
+
const response = await fetch(`https://api.github.com/repos/${repoFullName}`, { headers });
|
|
152
|
+
if (!response.ok) {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
const item = (await response.json());
|
|
156
|
+
const detection = await detectSkillMd(item.full_name, token);
|
|
157
|
+
return {
|
|
158
|
+
name: item.name,
|
|
159
|
+
fullName: item.full_name,
|
|
160
|
+
description: item.description || '',
|
|
161
|
+
url: item.html_url,
|
|
162
|
+
stars: item.stargazers_count,
|
|
163
|
+
language: item.language,
|
|
164
|
+
topics: item.topics || [],
|
|
165
|
+
updatedAt: item.updated_at,
|
|
166
|
+
hasSkill: detection.hasSkill,
|
|
167
|
+
skillFile: detection.skillFile,
|
|
168
|
+
installSource: detection.hasSkill ? `github:${item.full_name}` : undefined,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Fetch and parse SKILL.md content from a repository
|
|
177
|
+
*/
|
|
178
|
+
export async function fetchSkillMdContent(repoFullName, skillFile, token) {
|
|
179
|
+
const rawUrl = `https://raw.githubusercontent.com/${repoFullName}/HEAD/${skillFile}`;
|
|
180
|
+
try {
|
|
181
|
+
const headers = {
|
|
182
|
+
'User-Agent': 'skillpkg',
|
|
183
|
+
};
|
|
184
|
+
if (token || process.env.GITHUB_TOKEN) {
|
|
185
|
+
headers['Authorization'] = `token ${token || process.env.GITHUB_TOKEN}`;
|
|
186
|
+
}
|
|
187
|
+
const response = await fetch(rawUrl, { headers });
|
|
188
|
+
if (!response.ok)
|
|
189
|
+
return null;
|
|
190
|
+
const content = await response.text();
|
|
191
|
+
const parsed = parseSkillMdFrontmatter(content);
|
|
192
|
+
if (!parsed)
|
|
193
|
+
return null;
|
|
194
|
+
return {
|
|
195
|
+
name: parsed.frontmatter.name || '',
|
|
196
|
+
description: parsed.frontmatter.description ||
|
|
197
|
+
parsed.frontmatter.metadata?.['short-description'] ||
|
|
198
|
+
'',
|
|
199
|
+
version: parsed.frontmatter.version || '1.0.0',
|
|
200
|
+
instructions: parsed.body,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
catch {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/github/search.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAiD1C;;GAEG;AACH,MAA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QAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAElD,IAAI,CAAC,QAAQ,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;QAE9B,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAEzB,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,EAAE;YACnC,WAAW,EACT,MAAM,CAAC,WAAW,CAAC,WAAW;gBAC9B,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;gBAClD,EAAE;YACJ,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,IAAI,OAAO;YAC9C,YAAY,EAAE,MAAM,CAAC,IAAI;SAC1B,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,cAAc,YAAY,CAAC;AAG3B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,cAAc,YAAY,CAAC;AAG3B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,8 @@ export * from './adapters/index.js';
|
|
|
16
16
|
export * from './importer/index.js';
|
|
17
17
|
// Exporter module
|
|
18
18
|
export * from './exporter/index.js';
|
|
19
|
-
// Registry module
|
|
19
|
+
// Registry module (deprecated - use GitHub module instead)
|
|
20
20
|
export * from './registry/index.js';
|
|
21
|
+
// GitHub module - Search skills on GitHub
|
|
22
|
+
export * from './github/index.js';
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,QAAQ;AACR,cAAc,YAAY,CAAC;AAE3B,gBAAgB;AAChB,cAAc,mBAAmB,CAAC;AAElC,eAAe;AACf,cAAc,kBAAkB,CAAC;AAEjC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,QAAQ;AACR,cAAc,YAAY,CAAC;AAE3B,gBAAgB;AAChB,cAAc,mBAAmB,CAAC;AAElC,eAAe;AACf,cAAc,kBAAkB,CAAC;AAEjC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,kBAAkB;AAClB,cAAc,qBAAqB,CAAC;AAEpC,2DAA2D;AAC3D,cAAc,qBAAqB,CAAC;AAEpC,0CAA0C;AAC1C,cAAc,mBAAmB,CAAC"}
|