@agentskill.sh/cli 1.0.5 → 1.0.7

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/README.md CHANGED
@@ -17,7 +17,8 @@
17
17
  Copy-paste this into your AI agent (Claude Code, Cursor, Copilot, Codex, Windsurf, Gemini CLI, etc.):
18
18
 
19
19
  ```
20
- Follow the instructions at https://agentskill.sh/install to install the /learn skill, then search for skills relevant to this project
20
+ Run: npx @agentskill.sh/cli setup
21
+ Then search for skills relevant to this project using /learn
21
22
  ```
22
23
 
23
24
  That's it. Your agent will install `/learn`, analyze your project, and suggest relevant skills from a directory of 100,000+.
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const API_BASE = 'https://agentskill.sh/api';
2
- const VERSION = '1.0.5';
2
+ const VERSION = '1.0.7';
3
3
  export async function apiFetch(path, options) {
4
4
  const res = await fetch(`${API_BASE}${path}`, {
5
5
  ...options,
@@ -17,7 +17,7 @@ function buildSkillHeader(skill) {
17
17
  '# Rubric: 5=perfect 4=good 3=friction 2=partial 1=broken',
18
18
  '# Submit: POST https://agentskill.sh/api/skills/' + encodeURIComponent(skill.slug) + '/agent-feedback',
19
19
  '# Body: {"score":N,"comment":"brief reason","platform":"<your-platform>","autoRated":true}',
20
- `# User override: npx ags feedback ${skill.slug} <1-5> [comment]`,
20
+ `# User override: npx @agentskill.sh/cli feedback ${skill.slug} <1-5> [comment]`,
21
21
  '# ---',
22
22
  '',
23
23
  ].join('\n');
@@ -0,0 +1 @@
1
+ export declare function setupCommand(args: string[]): Promise<void>;
@@ -0,0 +1,41 @@
1
+ import { installCommand } from './install.js';
2
+ // Official skills bundled with the ags CLI
3
+ const OFFICIAL_SKILLS = [
4
+ 'agentskill-sh/learn',
5
+ 'agentskill-sh/review-skill',
6
+ ];
7
+ export async function setupCommand(args) {
8
+ const jsonFlag = args.includes('--json');
9
+ const results = [];
10
+ if (!jsonFlag) {
11
+ console.log(`\nInstalling ${OFFICIAL_SKILLS.length} official skills...\n`);
12
+ }
13
+ // Temporarily suppress console.log from installCommand --json output
14
+ const origLog = console.log;
15
+ for (const slug of OFFICIAL_SKILLS) {
16
+ try {
17
+ console.log = () => { }; // suppress install JSON output
18
+ await installCommand([slug, '--json']);
19
+ console.log = origLog;
20
+ results.push({ slug, status: 'installed' });
21
+ if (!jsonFlag) {
22
+ console.log(` Installed: ${slug}`);
23
+ }
24
+ }
25
+ catch (err) {
26
+ console.log = origLog;
27
+ const msg = err instanceof Error ? err.message : String(err);
28
+ results.push({ slug, status: `failed: ${msg}` });
29
+ if (!jsonFlag) {
30
+ console.error(` Failed: ${slug} - ${msg}`);
31
+ }
32
+ }
33
+ }
34
+ if (jsonFlag) {
35
+ console.log(JSON.stringify({ skills: results }, null, 2));
36
+ }
37
+ else {
38
+ console.log(`\nDone. ${results.filter((r) => r.status === 'installed').length}/${OFFICIAL_SKILLS.length} skills installed.`);
39
+ console.log('Restart your agent or open a new session to activate.');
40
+ }
41
+ }
package/dist/index.js CHANGED
@@ -5,12 +5,14 @@ import { listCommand } from './commands/list.js';
5
5
  import { removeCommand } from './commands/remove.js';
6
6
  import { feedbackCommand } from './commands/feedback.js';
7
7
  import { updateCommand } from './commands/update.js';
8
- const VERSION = '1.0.5';
8
+ import { setupCommand } from './commands/setup.js';
9
+ const VERSION = '1.0.7';
9
10
  const HELP = `ags v${VERSION} — search, install, and manage AI agent skills
10
11
 
11
12
  Usage:
12
13
  ags search <query> [--json] [--limit N] [--platform NAME]
13
14
  ags install <slug> [--json] [--platform NAME]
15
+ ags setup # Install all official skills
14
16
  ags list [--json]
15
17
  ags remove <slug>
16
18
  ags feedback <slug> <1-5> [comment]
@@ -21,12 +23,14 @@ Usage:
21
23
  Commands:
22
24
  search Search for skills on agentskill.sh
23
25
  install Install a skill to your project
26
+ setup Install all official agentskill.sh skills (/learn, /review-skill)
24
27
  list Show installed skills
25
28
  remove Uninstall a skill
26
29
  feedback Rate a skill (1-5) with optional comment
27
30
  update Check for and apply skill updates
28
31
 
29
32
  Examples:
33
+ ags setup
30
34
  ags search react
31
35
  ags install seo-optimizer
32
36
  ags install @anthropics/react-best-practices
@@ -35,7 +39,7 @@ Examples:
35
39
  ags feedback seo-optimizer 5 "Worked perfectly"
36
40
  ags update
37
41
 
38
- More info: https://agentskill.sh/docs
42
+ More info: https://agentskill.sh/install
39
43
  `;
40
44
  async function main() {
41
45
  const args = process.argv.slice(2);
@@ -76,6 +80,10 @@ async function main() {
76
80
  case 'upgrade':
77
81
  await updateCommand(commandArgs);
78
82
  break;
83
+ case 'setup':
84
+ case 'init':
85
+ await setupCommand(commandArgs);
86
+ break;
79
87
  default:
80
88
  console.error(`Unknown command: ${command}`);
81
89
  console.error('Run "ags --help" for usage.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskill.sh/cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Agent Skill CLI. Search, install, review, and manage AI agent skills from agentskill.sh.",
5
5
  "type": "module",
6
6
  "bin": {