@hasna/skills 0.1.31 → 0.1.33

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.
Files changed (82) hide show
  1. package/README.md +35 -30
  2. package/bin/index.js +577 -282
  3. package/bin/mcp.js +102 -39
  4. package/dist/cli/commands/runtime.d.ts +1 -1
  5. package/dist/cli/onboarding.d.ts +13 -0
  6. package/dist/index.js +88 -26
  7. package/dist/lib/config.d.ts +1 -1
  8. package/dist/lib/skill-validation.d.ts +2 -0
  9. package/package.json +1 -1
  10. package/skills/ad-creative-pack/package.json +4 -7
  11. package/skills/api-docs-portal/package.json +5 -3
  12. package/skills/audio/package.json +4 -22
  13. package/skills/audio-transcript-pack/package.json +3 -2
  14. package/skills/blog-article/package.json +5 -21
  15. package/skills/brand-kit/package.json +4 -7
  16. package/skills/brand-photo-shoot/package.json +3 -2
  17. package/skills/browse/package.json +4 -33
  18. package/skills/contract-review-report/package.json +3 -2
  19. package/skills/customer-feedback-report/package.json +3 -2
  20. package/skills/deepresearch/package.json +4 -37
  21. package/skills/domainpurchase/SKILL.md +14 -31
  22. package/skills/domainpurchase/package.json +3 -8
  23. package/skills/email-sequence/package.json +4 -7
  24. package/skills/generate-book-cover/package.json +5 -23
  25. package/skills/icon-pack/package.json +4 -22
  26. package/skills/image/package.json +4 -22
  27. package/skills/invoice-reconciliation/package.json +3 -2
  28. package/skills/landing-page-pack/package.json +4 -7
  29. package/skills/logo-design/package.json +4 -2
  30. package/skills/managemcp/CLAUDE.md +9 -43
  31. package/skills/managemcp/README.md +12 -198
  32. package/skills/managemcp/package.json +2 -10
  33. package/skills/managemcp/tsconfig.json +1 -3
  34. package/skills/market-research-report/package.json +5 -4
  35. package/skills/meeting-pack/package.json +3 -2
  36. package/skills/migration-plan-pack/package.json +3 -2
  37. package/skills/music/package.json +4 -20
  38. package/skills/music-album/package.json +3 -2
  39. package/skills/one-page-website/package.json +3 -2
  40. package/skills/pdf-read/package.json +5 -23
  41. package/skills/pdf-to-dataset/package.json +5 -4
  42. package/skills/pdf-to-markdown/package.json +5 -4
  43. package/skills/performance-audit-report/package.json +3 -2
  44. package/skills/photo-album/package.json +4 -2
  45. package/skills/pitch-deck/package.json +5 -3
  46. package/skills/playlist-maker/package.json +4 -2
  47. package/skills/product-mockup/package.json +3 -2
  48. package/skills/proposal-pack/package.json +5 -4
  49. package/skills/read-pdf/package.json +4 -29
  50. package/skills/remove-background/package.json +5 -21
  51. package/skills/repo-onboarding-report/package.json +3 -2
  52. package/skills/sdk-generator/package.json +3 -2
  53. package/skills/security-audit-report/package.json +5 -4
  54. package/skills/seo-content-pack/package.json +5 -3
  55. package/skills/short-video-pack/package.json +3 -2
  56. package/skills/slide-deck-generator/package.json +3 -2
  57. package/skills/sms/README.md +18 -56
  58. package/skills/sms/package.json +1 -3
  59. package/skills/sms/tsconfig.json +1 -2
  60. package/skills/social-content-calendar/package.json +4 -7
  61. package/skills/test-suite-generator/package.json +5 -4
  62. package/skills/transcript/package.json +4 -23
  63. package/skills/video/package.json +4 -24
  64. package/skills/video-highlight-pack/package.json +3 -2
  65. package/skills/voiceover-jingle-pack/package.json +3 -2
  66. package/skills/webcrawling/package.json +4 -32
  67. package/skills/domainpurchase/.env.example +0 -7
  68. package/skills/domainpurchase/src/lib/api-client.ts +0 -571
  69. package/skills/domainpurchase/src/lib/config.ts +0 -209
  70. package/skills/domainpurchase/src/lib/installer.ts +0 -165
  71. package/skills/managemcp/.env.example +0 -16
  72. package/skills/managemcp/scripts/migrate.ts +0 -57
  73. package/skills/managemcp/scripts/seed.ts +0 -58
  74. package/skills/managemcp/src/db/index.ts +0 -37
  75. package/skills/managemcp/src/lib/api-client.ts +0 -108
  76. package/skills/managemcp/src/lib/config.ts +0 -34
  77. package/skills/managemcp/src/lib/installer.ts +0 -140
  78. package/skills/managemcp/src/lib/service-dir.ts +0 -119
  79. package/skills/sms/scripts/buy-number.ts +0 -63
  80. package/skills/sms/scripts/test-send.ts +0 -67
  81. package/skills/sms/src/server.ts +0 -351
  82. package/skills/sms/src/sse-server.ts +0 -279
package/README.md CHANGED
@@ -19,6 +19,13 @@ Requires [Bun](https://bun.sh/) 1.0+.
19
19
  # Browse skills interactively
20
20
  skills
21
21
 
22
+ # Hosted setup is the recommended interactive path
23
+ skills setup --mode hosted
24
+ skills auth login
25
+
26
+ # Local-only setup stays available and does not require an account
27
+ skills setup --mode local
28
+
22
29
  # Optionally pin a skill preference in this project
23
30
  skills pin image
24
31
 
@@ -28,8 +35,7 @@ skills setup agents
28
35
  # See what a skill needs
29
36
  skills info image
30
37
 
31
- # Premium skills run remotely through skills.md
32
- skills auth login
38
+ # Premium skills run through the configured hosted API
33
39
  skills run image "a cat sitting on a windowsill"
34
40
 
35
41
  # Free/local skills can still use your own provider keys when documented
@@ -39,21 +45,25 @@ OPENAI_API_KEY=... skills run brand-style-guide ./brand-notes.md
39
45
 
40
46
  ## Remote-Only Premium Skills
41
47
 
42
- Premium skills are SaaS runs. The CLI and MCP server submit them to the
43
- skills.md API, create local run metadata, and then expose status and artifact
44
- commands. They do not fall back to bundled local execution when auth is missing
45
- or the platform is unavailable.
48
+ Premium skills are hosted SaaS runs. The CLI and MCP server submit them to the
49
+ configured hosted API, create local run metadata, and then expose status and
50
+ artifact commands. They do not fall back to bundled local execution when auth is
51
+ missing or the platform is unavailable.
46
52
 
47
53
  Use `SKILLS_API_KEY` or `skills auth login` for premium hosted execution:
48
54
 
49
55
  ```bash
56
+ skills setup --mode hosted
50
57
  skills auth login
51
58
  skills run image "editorial product photo on a white sweep"
52
59
  skills runs status <run-id>
53
60
  skills exports download <run-id>
54
61
  ```
55
62
 
56
- `SKILLS_API_KEY` is the skills.md account credential. It is not a provider
63
+ `skills auth login` uses browser/device-code auth by default. Email code login
64
+ is still available with `skills auth login --email you@example.com`.
65
+
66
+ `SKILLS_API_KEY` is the hosted account credential. It is not a provider
57
67
  credential. Provider keys such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or
58
68
  `GEMINI_API_KEY` remain supported only for free/local OSS skills whose
59
69
  requirements explicitly document local provider use.
@@ -67,6 +77,8 @@ requirements explicitly document local provider use.
67
77
  | `skills pin --category "Development Tools"` | | Pin all skills in a category |
68
78
  | `skills unpin <name>` | | Remove a project pin |
69
79
  | `skills pins list` | | List pinned skills |
80
+ | `skills setup --mode hosted` | | Configure hosted mode with a compatible API origin |
81
+ | `skills setup --mode local` | | Configure local-only mode without hosted credentials |
70
82
  | `skills setup agents` | | Register the Skills MCP server with all supported agents |
71
83
  | `skills list` | `ls` | List available skills (filter with `-c`, `--pinned`, `-t`, `--brief`) |
72
84
  | `skills search <query>` | `s` | Search by name, description, or tags |
@@ -84,7 +96,11 @@ requirements explicitly document local provider use.
84
96
  | `skills doctor` | | Check env vars, system deps, and pinned skill health |
85
97
  | `skills test [name]` | | Test skill readiness (env, system, npm deps) |
86
98
  | `skills outdated` | | Compare pinned vs registry versions |
87
- | `skills auth [name]` | | Show/set auth env vars in `.env` |
99
+ | `skills auth login` | | Sign in to the hosted API with browser/device-code auth or email code |
100
+ | `skills billing status` | | Show hosted account plan and balance |
101
+ | `skills billing checkout` | | Create a hosted subscription checkout session |
102
+ | `skills billing portal` | | Create a hosted customer portal session |
103
+ | `skills credits buy <amount>` | | Create a hosted credit-pack checkout session |
88
104
  | `skills setup-info` | | Version, pinned skills, agent configs, paths |
89
105
  | `skills export` | | Export pinned skills as JSON |
90
106
  | `skills import <file>` | | Pin skills from a JSON export |
@@ -97,7 +113,6 @@ requirements explicitly document local provider use.
97
113
  | `skills schedule list` | | List all schedules (enabled/disabled/last run) |
98
114
  | `skills mcp` | | Start MCP server on stdio |
99
115
  | `skills mcp --register claude` | | Register the Skills MCP server in an agent config (also `codex`, `gemini`, `opencode`, `all`) |
100
- | `skills serve` | | Start the HTTP dashboard on localhost |
101
116
  | `skills self-update` | | Update this package to the latest version |
102
117
  | `skills completion <shell>` | | Generate shell completions (bash, zsh, fish) |
103
118
 
@@ -196,22 +211,17 @@ skills mcp --register claude # Auto-register with Claude Code
196
211
  skills mcp --register all # Register with all supported agents
197
212
  ```
198
213
 
199
- ## Cloud Sync
214
+ ## Hosted Account
200
215
 
201
216
  ```bash
202
- cloud setup
203
- cloud sync push --service skills
204
- cloud sync pull --service skills
205
- ```
206
-
207
- ## Dashboard
208
-
209
- ```bash
210
- skills serve # Start HTTP server (opens browser automatically)
211
- skills serve --no-open # Start without opening the browser
217
+ skills setup --mode hosted
218
+ skills auth login
219
+ skills billing status
212
220
  ```
213
221
 
214
- Dashboard features: searchable/filterable skills table, detail dialogs, stats cards, dark/light/system theme, oklch color tokens.
222
+ Hosted account, billing, and credit management use the configured hosted API.
223
+ The public package only stores local configuration and CLI credentials; Stripe,
224
+ customer records, and hosted execution remain platform concerns.
215
225
 
216
226
  ## Project Structure
217
227
 
@@ -219,7 +229,6 @@ Dashboard features: searchable/filterable skills table, detail dialogs, stats ca
219
229
  src/
220
230
  ├── cli/index.tsx # Commander.js CLI + Ink TUI
221
231
  ├── mcp/index.ts # MCP server (stdio) with ~20 tools
222
- ├── server/serve.ts # Bun.serve HTTP server + REST API
223
232
  ├── lib/
224
233
  │ ├── registry.ts # 202+ entries, search, categories, tags
225
234
  │ ├── installer.ts # Project pins and disabled source-copy paths
@@ -234,9 +243,7 @@ src/
234
243
 
235
244
  skills/ # 202+ public skill contracts and local OSS skills
236
245
  ├── _common/ # Shared utilities
237
- └── */ # Local skills include src/; premium package output excludes private src/
238
-
239
- dashboard/ # Next.js + React 19 + Tailwind v4 app
246
+ └── */ # Local skills include src/; hosted skills are metadata-only
240
247
  ```
241
248
 
242
249
  ## Project Runtime State
@@ -254,8 +261,8 @@ folders and agent-native skill folders are never used as skill libraries.
254
261
  └── tmp/
255
262
  ```
256
263
 
257
- Auth stays global in `~/.skills/auth.json`. Registry and doc caches belong in
258
- `~/.cache/skills` or the remote API, not inside project `.skills`.
264
+ Auth stays global in `~/.hasna/skills/auth.json`. Registry and doc caches
265
+ belong in `~/.cache/skills` or the remote API, not inside project `.skills`.
259
266
 
260
267
  ## Development
261
268
 
@@ -263,8 +270,6 @@ Auth stays global in `~/.skills/auth.json`. Registry and doc caches belong in
263
270
  bun install
264
271
  bun run build # Build CLI, MCP, library, and types
265
272
  bun run dev # Run CLI in dev mode (no build needed)
266
- bun run dashboard:dev # Vite dev server for web dashboard
267
- bun run server:dev # HTTP server with --watch
268
273
  bun test # Run all tests
269
274
  bun run typecheck # TypeScript type checking
270
275
  ```
@@ -287,7 +292,7 @@ Project `.skills/` is reserved for runtime state and outputs.
287
292
  ## Data Directory
288
293
 
289
294
  Global configuration is stored in `~/.hasna/skills/`. Auth is stored in
290
- `~/.skills/auth.json`. Project runtime data is stored in `.skills/runs`,
295
+ `~/.hasna/skills/auth.json`. Project runtime data is stored in `.skills/runs`,
291
296
  `.skills/exports`, `.skills/tmp`, and optional `.skills/project.json`.
292
297
 
293
298
  ## License