@przeprogramowani/10x-cli 0.4.0 → 0.5.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
@@ -13,6 +13,26 @@ npm install -g @przeprogramowani/10x-cli
13
13
  # https://github.com/przeprogramowani/10x-cli/releases
14
14
  ```
15
15
 
16
+ ## Agentic Installation
17
+
18
+ Let your AI coding agent handle the setup. This repo ships a [`10x-cli-setup`](skills/10x-cli-setup/SKILL.md) skill that walks your agent through installing, authenticating, and configuring the CLI — all driven by the latest README.
19
+
20
+ Install the skill with [skills.sh](https://skills.sh):
21
+
22
+ ```bash
23
+ # Add the skill to your current project (symlinked)
24
+ npx skills add przeprogramowani/10x-cli
25
+
26
+ # Or install globally so it's available in every project
27
+ npx skills add przeprogramowani/10x-cli -g
28
+
29
+ # Target a specific agent
30
+ npx skills add przeprogramowani/10x-cli -a claude-code
31
+ npx skills add przeprogramowani/10x-cli -a cursor
32
+ ```
33
+
34
+ Once installed, just tell your agent to **set up 10x-cli** and it will pick up the skill automatically.
35
+
16
36
  ## Quick Start
17
37
 
18
38
  ```bash
package/dist/index.mjs CHANGED
@@ -2271,7 +2271,7 @@ var cac = (name = "") => new CAC(name);
2271
2271
  // package.json
2272
2272
  var package_default = {
2273
2273
  name: "@przeprogramowani/10x-cli",
2274
- version: "0.4.0",
2274
+ version: "0.5.0",
2275
2275
  description: "Open-source CLI for 10xDevs course content",
2276
2276
  repository: {
2277
2277
  type: "git",
@@ -2287,6 +2287,7 @@ var package_default = {
2287
2287
  },
2288
2288
  files: [
2289
2289
  "dist",
2290
+ "skills",
2290
2291
  "README.md",
2291
2292
  "LICENSE"
2292
2293
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@przeprogramowani/10x-cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Open-source CLI for 10xDevs course content",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,7 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
+ "skills",
19
20
  "README.md",
20
21
  "LICENSE"
21
22
  ],
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: 10x-cli-setup
3
+ description: ALWAYS invoke this skill when the user mentions 10x-cli, @przeprogramowani/10x-cli, the 10xDevs CLI, or the 10xDevs course environment in a setup context. This skill fetches the live README — Claude does not know 10x-cli's current install steps without it. Applies to: installing, updating, reconfiguring for different AI tools (Cursor, Copilot, Claude Code), permission/npm errors, authentication, and onboarding after 10xDevs enrollment. Excludes: developing 10x-cli source code, contributing to the repo, building similar CLIs, or general project setup.
4
+ ---
5
+
6
+ # 10x-cli Setup
7
+
8
+ This skill sets up the `@przeprogramowani/10x-cli` on the user's machine. The core principle is simple: **the README is the single source of truth**. The CLI evolves — version requirements change, new install methods appear, commands get updated. Rather than hardcoding any of that here, this skill tells you *how to work*, and the README tells you *what to do*.
9
+
10
+ ## Step 1: Check if the CLI is already installed
11
+
12
+ Before anything else, check the current state:
13
+
14
+ ```bash
15
+ 10x --version 2>/dev/null || echo "NOT_INSTALLED"
16
+ ```
17
+
18
+ - If a version is printed, the CLI is already installed. Tell the user and ask if they want to update, reconfigure, or troubleshoot.
19
+ - If not installed, proceed to Step 2.
20
+
21
+ This avoids wasting time on prerequisites when the user might just need a config change or re-auth.
22
+
23
+ ## Step 2: Fetch the latest README
24
+
25
+ Retrieve the current README from GitHub — this is the authoritative source for all install steps, prerequisites, commands, and tool configurations:
26
+
27
+ ```
28
+ URL: https://raw.githubusercontent.com/przeprogramowani/10x-cli/refs/heads/master/README.md
29
+ ```
30
+
31
+ Use WebFetch or `curl -sL` to get it. If the fetch fails, tell the user and stop — don't guess at install steps from memory, because they may be outdated.
32
+
33
+ ## Step 3: Build a plan from the README and execute it
34
+
35
+ Read the fetched README and construct a step-by-step setup plan from it. The README contains everything needed: prerequisites, install commands, auth flow, available commands, and tool-specific configuration. Your job is to translate the README into actionable steps for the user's specific situation.
36
+
37
+ The general flow from the README is:
38
+ 1. **Prerequisites** — whatever the README says is required (runtime version, package manager, etc.). Check each one and stop if something is missing.
39
+ 2. **Install** — use the install method described in the README. Verify it worked.
40
+ 3. **Authenticate** — the README describes the auth command and flow. Note: auth is interactive (magic-link email), so the user may need to run it themselves via `! 10x auth` if the shell doesn't support input.
41
+ 4. **Verify** — the README lists a diagnostic command. Run it and review the output with the user.
42
+ 5. **Explore** — show the user how to browse and fetch content using the commands from the README.
43
+ 6. **Tool configuration** — if the user mentioned a specific AI tool (Claude Code, Cursor, etc.), use the README's multi-tool support section to configure it. If not, explain the options and let them choose.
44
+
45
+ Do not hardcode specific version numbers, command flags, or directory paths — read them from the README. This way the skill stays correct even when the CLI changes.
46
+
47
+ ## Important principles
48
+
49
+ - **README over memory.** If you think you know a command or requirement, but the fetched README says something different, follow the README. Always.
50
+ - **Check before installing.** Step 1 exists for a reason — don't reinstall what's already there.
51
+ - **Be interactive.** Confirm with the user before installing global packages or modifying their system. Ask before running `sudo`.
52
+ - **Diagnose before fixing.** If something fails, read the error and the README's guidance before suggesting a fix. Don't just retry blindly.
53
+ - **Stay focused on end-user setup.** This skill is about installing and configuring the published CLI package, not about development/contributing workflows.