@artifactshare/cli 0.5.2 → 0.6.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/README.md CHANGED
@@ -42,25 +42,25 @@ runs add versions to the same file.
42
42
 
43
43
  ## Commands
44
44
 
45
- | Command | What it does |
46
- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
47
- | `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
48
- | `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`) |
49
- | `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
50
- | `edit <target>` | Change title, sharing, explicit viewers, or project placement |
51
- | `delete <target>` | Permanently delete a file you shared |
52
- | `resolve <value>` | Find files by URL, ID, title, or project name |
53
- | `artifacts get <target>` | Read a file's content and metadata back |
54
- | `download <target>` | Save a file or a whole static site locally |
55
- | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
56
- | `projects list / create / edit` | List, create, and edit project destinations and audience |
57
- | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
58
- | `request-access` | Join the waitlist when sharing is not enabled yet |
59
- | `login` / `logout` / `whoami` | Sign in, remove a saved local credential, and check who you are |
60
- | `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
61
- | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
62
- | `init` | Set up this directory: detect the agent and install the skill, then show next steps; or save defaults with `--profile` / `--project-id` |
63
- | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills |
45
+ | Command | What it does |
46
+ | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
48
+ | `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`) |
49
+ | `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
50
+ | `edit <target>` | Change title, sharing, explicit viewers, or project placement |
51
+ | `delete <target>` | Permanently delete a file you shared |
52
+ | `resolve <value>` | Find files by URL, ID, title, or project name |
53
+ | `artifacts get <target>` | Read a file's content and metadata back |
54
+ | `download <target>` | Save a file or a whole static site locally |
55
+ | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
56
+ | `projects list / create / edit` | List, create, and edit project destinations and audience |
57
+ | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
58
+ | `request-access` | Join the waitlist when sharing is not enabled yet |
59
+ | `login` / `logout` / `whoami` | Sign in, remove a saved local credential, and check who you are |
60
+ | `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
61
+ | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
62
+ | `init` | Set up this directory: detect Claude Code, Codex, or Cursor and install the skill in user scope, then show next steps; or save defaults with `--profile` / `--project-id` |
63
+ | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills |
64
64
 
65
65
  ## For AI agents
66
66
 
@@ -70,7 +70,7 @@ For first-time setup in a project, start here:
70
70
  npx --yes @artifactshare/cli init --json
71
71
  ```
72
72
 
73
- `init` detects the agent (Claude Code, Codex, Cursor) in the working directory, installs or updates the bundled skill, and reports the next steps (sign in, then share). With no agent detected, it installs the Codex and Claude Code project skills. Add `--dry-run` to preview without writing.
73
+ `init` detects Claude Code, Codex, or Cursor in the working directory, installs or updates the bundled skill in user scope, and reports the next steps (sign in, then share). With no agent detected, it installs user-scope Codex, Claude Code, and Cursor skills. Cursor project scope is not auto-installed; use `skills install --tool cursor --scope project`. Existing project-scope skills are not modified. Add `--dry-run` to preview without writing.
74
74
 
75
75
  When an agent receives an Artifact Share URL instead, start with `open`:
76
76
 
@@ -80,7 +80,7 @@ npx --yes @artifactshare/cli open <artifact-id-or-url> --json
80
80
 
81
81
  This installs or updates the local skill first, then reads single-file artifacts. Static sites and multi-file artifacts return a `download` next command.
82
82
 
83
- To target a specific tool manually, use `skills install --tool <codex|claude|cursor>`; `skills ensure --tool auto` is the same detection `init` uses. Regular successful commands also update outdated managed user-scope Codex and Claude Code skills when they are already installed.
83
+ To target a specific tool manually, use `skills install --tool <codex|claude|cursor> [--scope project|user]`; project scope is opt-in for team commits. `skills ensure --tool auto` is the same user-scope detection `init` and `open` use (omit `--scope` or pass `--scope user`; `--scope project` fails). Regular successful commands also update outdated managed user-scope Codex, Claude Code, and Cursor skills when they are already installed, but do not create a missing Cursor user-scope skill.
84
84
 
85
85
  Comment deletion is permanent. Use `comments delete <target> --thread-id <id> --message-id <id> --json` for one message, or omit `--message-id` only when deleting the whole thread.
86
86
 
package/dist/index.js CHANGED
@@ -2538,29 +2538,39 @@ const SKILL_TOOLS = [
2538
2538
  const SKILL_FILE_PATH = join("skills", "artifactshare", "SKILL.md");
2539
2539
  const TOOL_CONFIG = {
2540
2540
  codex: {
2541
- relativePath: join(".agents", SKILL_FILE_PATH),
2542
2541
  scopes: ["project", "user"],
2543
- detectDirs: [".codex", ".agents"],
2544
- bundledFile: "SKILL.md",
2545
- pruneDirs: ["artifactshare", "skills"]
2542
+ detectDirs: [".codex", ".agents"]
2546
2543
  },
2547
2544
  claude: {
2548
- relativePath: join(".claude", SKILL_FILE_PATH),
2549
2545
  scopes: ["project", "user"],
2550
- detectDirs: [".claude"],
2551
- bundledFile: "SKILL.md",
2552
- pruneDirs: ["artifactshare", "skills"]
2546
+ detectDirs: [".claude"]
2553
2547
  },
2554
2548
  cursor: {
2555
- relativePath: join(".cursor", "rules", "artifactshare.mdc"),
2556
- scopes: ["project"],
2557
- detectDirs: [".cursor"],
2558
- bundledFile: "artifactshare.mdc",
2559
- pruneDirs: []
2549
+ scopes: ["project", "user"],
2550
+ detectDirs: [".cursor"]
2560
2551
  }
2561
2552
  };
2553
+ function scopeTargetConfig(tool, scope) {
2554
+ if (tool === "cursor") {
2555
+ if (scope === "project") return {
2556
+ relativePath: join(".cursor", "rules", "artifactshare.mdc"),
2557
+ bundledFile: "artifactshare.mdc",
2558
+ pruneDirs: []
2559
+ };
2560
+ return {
2561
+ relativePath: join(".cursor", "skills", "artifactshare", "SKILL.md"),
2562
+ bundledFile: "SKILL.md",
2563
+ pruneDirs: ["artifactshare", "skills"]
2564
+ };
2565
+ }
2566
+ return {
2567
+ relativePath: join(tool === "codex" ? ".agents" : ".claude", SKILL_FILE_PATH),
2568
+ bundledFile: "SKILL.md",
2569
+ pruneDirs: ["artifactshare", "skills"]
2570
+ };
2571
+ }
2562
2572
  function skillTarget(tool, scope) {
2563
- const relative = TOOL_CONFIG[tool].relativePath;
2573
+ const relative = scopeTargetConfig(tool, scope).relativePath;
2564
2574
  const path = scope === "project" ? relative : join(homedir(), relative);
2565
2575
  return {
2566
2576
  tool,
@@ -2569,6 +2579,10 @@ function skillTarget(tool, scope) {
2569
2579
  absolutePath: resolve(path)
2570
2580
  };
2571
2581
  }
2582
+ function bundledContentForTarget(bundled, target) {
2583
+ const file = scopeTargetConfig(target.tool, target.scope).bundledFile;
2584
+ return bundled.contentsByFile[file];
2585
+ }
2572
2586
  function allTargets() {
2573
2587
  return SKILL_TOOLS.flatMap((tool) => TOOL_CONFIG[tool].scopes.map((scope) => skillTarget(tool, scope)));
2574
2588
  }
@@ -2588,23 +2602,17 @@ async function readTarget(target) {
2588
2602
  return managedState(await readFile(target.absolutePath, "utf8").catch(() => null));
2589
2603
  }
2590
2604
  async function loadBundledSkills() {
2591
- const byFile = /* @__PURE__ */ new Map();
2592
- const contents = {};
2605
+ const contentsByFile = {};
2593
2606
  let version;
2594
- for (const tool of SKILL_TOOLS) {
2595
- const file = TOOL_CONFIG[tool].bundledFile;
2596
- let content = byFile.get(file);
2597
- if (content === void 0) {
2598
- content = await readFile(new URL(`../skills/artifactshare/${file}`, import.meta.url), "utf8");
2599
- const state = managedState(content);
2600
- if (state.kind !== "managed" || (version ?? state.version) !== state.version) throw new Error(`The bundled ${file} has a missing or mismatched managed marker.`);
2601
- version = state.version;
2602
- byFile.set(file, content);
2603
- }
2604
- contents[tool] = content;
2607
+ for (const file of ["SKILL.md", "artifactshare.mdc"]) {
2608
+ const content = await readFile(new URL(`../skills/artifactshare/${file}`, import.meta.url), "utf8");
2609
+ const state = managedState(content);
2610
+ if (state.kind !== "managed" || (version ?? state.version) !== state.version) throw new Error(`The bundled ${file} has a missing or mismatched managed marker.`);
2611
+ version = state.version;
2612
+ contentsByFile[file] = content;
2605
2613
  }
2606
2614
  return {
2607
- contents,
2615
+ contentsByFile,
2608
2616
  version
2609
2617
  };
2610
2618
  }
@@ -2642,7 +2650,7 @@ function parseFilters(parsed, options = {}) {
2642
2650
  if (tools.error) return { error: tools.error };
2643
2651
  const scope = parseScope(parsed.options.scope);
2644
2652
  if (scope.error) return { error: scope.error };
2645
- if (tools.auto && scope.scope === "user") return { error: validationError("--tool auto supports project scope only.", "Use --tool auto --scope project, or pass an explicit --tool for user scope.") };
2653
+ if (tools.auto && scope.scope === "project") return { error: validationError("--tool auto does not support project scope.", "Use --tool auto --scope user, or pass an explicit --tool for project scope.") };
2646
2654
  const unsupported = scope.scope === void 0 ? void 0 : tools.tools.find((tool) => !TOOL_CONFIG[tool].scopes.includes(scope.scope));
2647
2655
  if (unsupported) return { error: validationError(`The ${unsupported} tool does not support --scope ${scope.scope}.`, `Use --tool ${unsupported} --scope project.`) };
2648
2656
  return {
@@ -2662,16 +2670,23 @@ async function isToolDetected(tool, scope) {
2662
2670
  for (const dir of TOOL_CONFIG[tool].detectDirs) if ((await stat(join(base, dir)).catch(() => null))?.isDirectory()) return true;
2663
2671
  return false;
2664
2672
  }
2665
- async function autoTargets(scope) {
2666
- const targetScope = scope ?? "project";
2673
+ async function autoDetectedTools() {
2667
2674
  const autoOrder = [
2668
2675
  "claude",
2669
2676
  "codex",
2670
2677
  "cursor"
2671
2678
  ];
2672
- const detected = /* @__PURE__ */ new Set();
2673
- for (const tool of autoOrder) if (TOOL_CONFIG[tool].scopes.includes(targetScope) && await isToolDetected(tool, targetScope)) detected.add(tool);
2674
- return (detected.size > 0 ? [...detected] : ["codex", "claude"]).filter((tool) => TOOL_CONFIG[tool].scopes.includes(targetScope)).map((tool) => skillTarget(tool, targetScope));
2679
+ const detected = [];
2680
+ for (const tool of autoOrder) if (await isToolDetected(tool, "project")) detected.push(tool);
2681
+ return detected.length > 0 ? detected : [
2682
+ "codex",
2683
+ "claude",
2684
+ "cursor"
2685
+ ];
2686
+ }
2687
+ async function autoTargets(scope) {
2688
+ const targetScope = scope ?? "user";
2689
+ return (await autoDetectedTools()).filter((tool) => TOOL_CONFIG[tool].scopes.includes(targetScope)).map((tool) => skillTarget(tool, targetScope));
2675
2690
  }
2676
2691
  function targetPathKey(target) {
2677
2692
  return realpath(target.absolutePath).catch(() => target.absolutePath);
@@ -2689,7 +2704,7 @@ async function applyAction({ target, action, content }) {
2689
2704
  }
2690
2705
  async function cleanupSkillDirs(target) {
2691
2706
  let dir = dirname(target.absolutePath);
2692
- for (const expected of TOOL_CONFIG[target.tool].pruneDirs) {
2707
+ for (const expected of scopeTargetConfig(target.tool, target.scope).pruneDirs) {
2693
2708
  if (basename(dir) !== expected) return;
2694
2709
  try {
2695
2710
  await rmdir(dir);
@@ -2766,7 +2781,7 @@ async function runSkillsInstall(parsed, mode) {
2766
2781
  planned.push({
2767
2782
  target,
2768
2783
  action: state.kind === "missing" ? "installed" : "updated",
2769
- content: bundled.contents[tool]
2784
+ content: bundledContentForTarget(bundled, target)
2770
2785
  });
2771
2786
  }
2772
2787
  await runActions(command, planned, parsed.options.dryRun === true, mode);
@@ -2789,21 +2804,18 @@ async function ensureSkills(parsed, mode, options = {}) {
2789
2804
  for (const target of targets) {
2790
2805
  const state = await readTarget(target);
2791
2806
  if (state.kind === "unmanaged" || state.kind === "broken") {
2807
+ if (options.skipBrokenUserSkills && state.kind === "broken") continue;
2792
2808
  writeFailure(command, skillUpdateConflictError(target.path), mode, 1);
2793
2809
  return;
2794
2810
  }
2795
2811
  const unchanged = state.kind === "managed" && state.version === bundled.version;
2796
- const recommendUpdate = options.recommendProjectUpdates && target.scope === "project" && state.kind === "managed" && state.version !== bundled.version;
2797
2812
  planned.push(unchanged ? {
2798
2813
  target,
2799
2814
  action: "unchanged"
2800
- } : recommendUpdate ? {
2801
- target,
2802
- action: "update_recommended"
2803
2815
  } : {
2804
2816
  target,
2805
2817
  action: state.kind === "missing" ? "installed" : "updated",
2806
- content: bundled.contents[target.tool]
2818
+ content: bundledContentForTarget(bundled, target)
2807
2819
  });
2808
2820
  }
2809
2821
  if (options.autoUpdateUserManaged) {
@@ -2815,7 +2827,7 @@ async function ensureSkills(parsed, mode, options = {}) {
2815
2827
  planned.push({
2816
2828
  target,
2817
2829
  action: "updated",
2818
- content: bundled.contents[target.tool],
2830
+ content: bundledContentForTarget(bundled, target),
2819
2831
  fallbackAction: "update_recommended"
2820
2832
  });
2821
2833
  }
@@ -2832,7 +2844,7 @@ async function autoUpdateUserManagedSkills() {
2832
2844
  planned.push({
2833
2845
  target,
2834
2846
  action: "updated",
2835
- content: bundled.contents[target.tool],
2847
+ content: bundledContentForTarget(bundled, target),
2836
2848
  fallbackAction: "update_recommended",
2837
2849
  installedVersion: state.version
2838
2850
  });
@@ -2935,7 +2947,7 @@ async function runSkillsUpdate(parsed, mode) {
2935
2947
  else if (state.version !== bundled.version || force) planned.push({
2936
2948
  target,
2937
2949
  action: "updated",
2938
- content: bundled.contents[target.tool]
2950
+ content: bundledContentForTarget(bundled, target)
2939
2951
  });
2940
2952
  else planned.push({
2941
2953
  target,
@@ -2967,13 +2979,12 @@ async function runOpen(parsed, mode, isRetry = false) {
2967
2979
  ...parsed,
2968
2980
  options: {
2969
2981
  ...parsed.options,
2970
- tool: "auto",
2971
- scope: "project"
2982
+ tool: "auto"
2972
2983
  }
2973
2984
  }, mode, {
2974
2985
  command,
2975
2986
  autoUpdateUserManaged: true,
2976
- recommendProjectUpdates: true
2987
+ skipBrokenUserSkills: true
2977
2988
  });
2978
2989
  if (!skills) return;
2979
2990
  const target = parseArtifactTarget(parsed.positionals[0], command, "Pass an artifact ID or share URL to read.");
@@ -3825,13 +3836,12 @@ async function runInitOnboarding(parsed, mode) {
3825
3836
  ...parsed,
3826
3837
  options: {
3827
3838
  ...parsed.options,
3828
- tool: "auto",
3829
- scope: "project"
3839
+ tool: "auto"
3830
3840
  }
3831
3841
  }, mode, {
3832
3842
  command,
3833
3843
  autoUpdateUserManaged: true,
3834
- recommendProjectUpdates: true
3844
+ skipBrokenUserSkills: true
3835
3845
  });
3836
3846
  if (!skills) return;
3837
3847
  const project = await resolveProjectConfig();
@@ -5145,8 +5155,12 @@ const openDefinition = define({
5145
5155
  npx --yes @artifactshare/cli open abc123def4 --json
5146
5156
 
5147
5157
  Use this as the first command when an agent receives an Artifact Share URL.
5148
- It installs or updates the local Artifact Share skill, then reads single-file artifacts.
5149
- For static sites or multi-file artifacts, the JSON includes a download next_command.
5158
+ It installs or updates the bundled Artifact Share skill in user scope (Claude Code,
5159
+ Codex, or Cursor detected from the working directory; all three if none are
5160
+ detected), then reads single-file artifacts. Cursor project scope is not
5161
+ auto-installed; use skills install --tool cursor --scope project. Existing
5162
+ project-scope skills are not modified. For static sites or multi-file artifacts,
5163
+ the JSON includes a download next_command.
5150
5164
 
5151
5165
  Common failures:
5152
5166
  auth_required Set ARTIFACTSHARE_TOKEN before open
@@ -5664,7 +5678,7 @@ const skillsToolArgs = {
5664
5678
  scope: {
5665
5679
  type: "string",
5666
5680
  toKebab: true,
5667
- description: "Install scope: project (default) or user"
5681
+ description: "Install scope: project or user (default: project for install; user for ensure --tool auto)"
5668
5682
  },
5669
5683
  dryRun: {
5670
5684
  type: "boolean",
@@ -5739,15 +5753,17 @@ const skillsEnsureDefinition = define({
5739
5753
  description: "Show planned file changes without writing"
5740
5754
  }
5741
5755
  },
5742
- examples: `npx --yes @artifactshare/cli skills ensure --tool auto --scope project --json
5756
+ examples: `npx --yes @artifactshare/cli skills ensure --tool auto --json
5757
+ npx --yes @artifactshare/cli skills ensure --tool auto --scope user --json
5743
5758
  npx --yes @artifactshare/cli skills ensure --tool claude --json
5744
5759
 
5745
- Use --tool auto from an agent workspace. It detects .claude, .agents/.codex,
5746
- and .cursor in the current directory; if none are present, it prepares Codex
5747
- and Claude Code project skills.
5760
+ Use --tool auto from an agent workspace. It detects .claude, .codex/.agents, or
5761
+ .cursor in the current directory and installs or updates the matching user-scope
5762
+ skills. If none are present, it prepares user-scope Codex, Claude Code, and Cursor
5763
+ skills. Cursor project scope needs skills install --tool cursor --scope project.
5748
5764
 
5749
5765
  Common failures:
5750
- validation_failed Pass --tool auto|codex|claude|cursor; auto supports --scope project only
5766
+ validation_failed Pass --tool auto|codex|claude|cursor; --tool auto supports --scope user only (omit --scope or pass --scope user). Project scope needs skills install --tool <tool> --scope project
5751
5767
  skill_update_conflict An unmanaged or broken skill file exists; inspect it before overwriting`
5752
5768
  });
5753
5769
  const skillsRemoveDefinition = define({
@@ -5801,8 +5817,12 @@ const initDefinition = define({
5801
5817
  npx --yes @artifactshare/cli init --dry-run --json
5802
5818
  npx --yes @artifactshare/cli init --profile client-a --project-id <id> --json
5803
5819
 
5804
- Without flags, init detects your agent (Claude Code, Codex, Cursor), installs the
5805
- bundled skill, and shows the next steps (sign in, then share). data.mode is "onboarding".
5820
+ Without flags, init detects Claude Code, Codex, or Cursor in the working directory,
5821
+ installs or updates the bundled skill in user scope, and shows the next steps (sign
5822
+ in, then share). With no agent detected, it prepares user-scope Codex, Claude Code,
5823
+ and Cursor skills. Cursor project scope is not auto-installed; use skills install
5824
+ --tool cursor --scope project. Existing project-scope skills are not modified.
5825
+ data.mode is "onboarding".
5806
5826
  With --profile or --project-id, init saves working-directory defaults to
5807
5827
  .artifactshare/config.local.json instead (data.mode is "config"); secrets are never written there.
5808
5828
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Upload and share HTML, Markdown, folders, and static sites from terminals, AI agents, automation, and CI.",
5
5
  "homepage": "https://artifactshare.com/connect",
6
6
  "license": "Apache-2.0",
@@ -4,7 +4,7 @@ description: Share, publish, upload, host, update, open, or read back existing f
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 22
7
+ version: 24
8
8
  managed: true
9
9
  -->
10
10
 
@@ -232,11 +232,20 @@ npx --yes @artifactshare/cli skills update --json
232
232
  npx --yes @artifactshare/cli skills list --json
233
233
  ```
234
234
 
235
- - `skills ensure --tool auto` detects the agent (Claude Code, Codex, Cursor)
236
- and installs this skill if missing, or reports when an update is available.
237
- - `skills update` updates installed skills to the bundled version.
238
- - `skills install --tool <name> --scope user` installs the skill at the user
239
- level instead of the project. `--force` overwrites an unmanaged file.
235
+ - `open`, flag-less `init`, and `skills ensure --tool auto` detect Claude Code,
236
+ Codex, or Cursor in the working directory and install or update this skill in
237
+ user scope (`~/.claude/skills/`, `~/.agents/skills/`, or
238
+ `~/.cursor/skills/artifactshare/SKILL.md`). With no agent detected,
239
+ user-scope Codex, Claude Code, and Cursor skills are prepared.
240
+ - Cursor project scope is not auto-installed. Install the Cursor rule explicitly
241
+ with `skills install --tool cursor --scope project`.
242
+ - Use `skills install --tool cursor --scope user` to install or manage the
243
+ Cursor user-scope skill explicitly.
244
+ - `skills ensure --tool auto` accepts omitted `--scope` or `--scope user`;
245
+ `--scope project` fails with `validation_failed`. Project-scope skills are
246
+ opt-in via `skills install --tool <tool> --scope project`.
247
+ - `skills update` updates installed managed skills to the bundled version.
248
+ - `--force` overwrites an unmanaged file on install.
240
249
  - Run `skills --help` for all subcommands.
241
250
 
242
251
  ## Output contract
@@ -4,7 +4,7 @@ alwaysApply: false
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 22
7
+ version: 24
8
8
  managed: true
9
9
  -->
10
10
 
@@ -55,6 +55,6 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
55
55
  - Permanently remove an artifact only when the user explicitly asks with `delete <artifact-id-or-url> --json`.
56
56
  - Manage projects: `projects list --json`, `projects create <name> --json` (defaults to `--visibility workspace`; pass `--visibility private` for confidential projects), `projects edit <id>` for name, description, visibility, audience (`--add-email`/`--remove-email`), and archive state (`--archive`/`--unarchive`).
57
57
  - Save a default project with `init --project-id <id> --json`. Preview setup with `init --dry-run --json`.
58
- - Manage skills: `skills ensure --tool auto --json` detects the agent and installs or reports updates; `skills update --json` updates installed skills to the bundled version; `skills install --tool <name> --scope user --json` installs at the user level (`--force` overwrites unmanaged files).
58
+ - Manage skills: `skills ensure --tool auto --json` detects Claude Code, Codex, or Cursor and installs or updates user-scope skills; Cursor project scope needs `skills install --tool cursor --scope project --json`. Use `skills install --tool cursor --scope user --json` for the Cursor user-scope skill explicitly. Project scope is opt-in via `skills install --tool <tool> --scope project --json`. `skills update --json` updates installed managed skills; `--force` overwrites unmanaged files on install.
59
59
  - Check the current state with `whoami --json` or `doctor --json` for authentication, destination, network, upload access, and skill update status.
60
- - First-time setup: `npx --yes @artifactshare/cli init --json` detects the agent, installs or updates this rule, and reports the next steps (sign in, then share).
60
+ - First-time setup: `npx --yes @artifactshare/cli init --json` detects Claude Code, Codex, or Cursor, installs or updates user-scope skills, and reports the next steps (sign in, then share). For Cursor project scope, run `skills install --tool cursor --scope project --json` explicitly.