tokenui.sh 1.0.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +168 -0
  3. package/dist/index.js +8240 -0
  4. package/package.json +55 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TokenUI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,168 @@
1
+ # TokenUI CLI
2
+
3
+ Command-line interface for installing design system skills to your coding agents.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npx tokenui
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Show help with beautiful banner
15
+ npx tokenui
16
+
17
+ # List available design skills
18
+ npx tokenui list
19
+
20
+ # Install a skill (always to ./.agents/skills/)
21
+ npx tokenui add abboskhonov/claude-design-system
22
+
23
+ # Configure API endpoint (optional)
24
+ npx tokenui config
25
+ ```
26
+
27
+ ## No Authentication Required
28
+
29
+ The CLI works out of the box without any configuration:
30
+
31
+ - **`tokenui list`** - Browse public design skills (no auth needed)
32
+ - **`tokenui add <owner>/<slug>`** - Install skills (no auth needed)
33
+
34
+ ## How Installation Works
35
+
36
+ When you run `tokenui add <owner>/<slug>`, the CLI will:
37
+
38
+ 1. **Fetch** the skill from the TokenUI API
39
+ 2. **Install** to `./.agents/skills/<skill-name>/` (always)
40
+ 3. **Optionally** install to additional agent directories
41
+
42
+ ### Installation Flow
43
+
44
+ ```bash
45
+ $ tokenui add abboskhonov/claude-design-system
46
+
47
+ ✓ Found: Claude Design System by abboskhonov
48
+
49
+ Skill Details:
50
+ Name: Claude Design System
51
+ Author: abboskhonov
52
+ Category: design-system
53
+ Description: The design system of Claude
54
+
55
+ ✓ Will install to: ./.agents/skills/
56
+
57
+ ◆ Also install to additional agents (optional):
58
+ │ ☑ Claude Code → ./.claude/skills/
59
+ │ ☑ Cursor → ./.cursor/skills/
60
+ │ ☐ Cline → ./.cline/skills/
61
+ │ ☐ Windsurf → ./.windsurf/skills/
62
+ │ ☐ Continue → ./.continue/skills/
63
+ │ ☐ GitHub Copilot → ./.copilot/skills/
64
+
65
+ Installation Summary:
66
+ Skill: Claude Design System
67
+ Primary: ./.agents/skills/
68
+ Additional: Claude Code, Cursor
69
+
70
+ ◆ Install to 3 location(s)?
71
+ │ ● Yes / ○ No
72
+
73
+ ✓ Installed to 3 location(s)!
74
+
75
+ Installed to:
76
+ ✓ ./.agents/skills/claude-design-system/
77
+ ✓ ./.claude/skills/claude-design-system/
78
+ ✓ ./.cursor/skills/claude-design-system/
79
+ ```
80
+
81
+ ## Installation Directory Structure
82
+
83
+ Skills are always installed **per-project** (no global installation):
84
+
85
+ ```
86
+ your-project/
87
+ ├── .agents/
88
+ │ └── skills/
89
+ │ └── claude-design-system/
90
+ │ └── SKILL.md # ← Always installed here
91
+ ├── .claude/
92
+ │ └── skills/
93
+ │ └── claude-design-system/
94
+ │ └── SKILL.md # ← Optional (if selected)
95
+ ├── .cursor/
96
+ │ └── skills/
97
+ │ └── claude-design-system/
98
+ │ └── SKILL.md # ← Optional (if selected)
99
+ └── ...
100
+ ```
101
+
102
+ ### Primary Location (Always)
103
+ - **`.agents/skills/<skill-name>/SKILL.md`**
104
+
105
+ ### Optional Locations (User Selects)
106
+ - `.claude/skills/<skill-name>/SKILL.md` - Claude Code
107
+ - `.cursor/skills/<skill-name>/SKILL.md` - Cursor
108
+ - `.cline/skills/<skill-name>/SKILL.md` - Cline
109
+ - `.windsurf/skills/<skill-name>/SKILL.md` - Windsurf
110
+ - `.continue/skills/<skill-name>/SKILL.md` - Continue
111
+ - `.copilot/skills/<skill-name>/SKILL.md` - GitHub Copilot
112
+
113
+ ## Configuration (Optional)
114
+
115
+ The CLI stores optional configuration in `~/.config/tokenui/config.yaml`:
116
+
117
+ ```yaml
118
+ apiUrl: https://api.tokenui.dev
119
+ ```
120
+
121
+ Run `tokenui config` to customize the API URL.
122
+
123
+ ## API Integration
124
+
125
+ The CLI connects to your Hono API backend. Required public endpoints:
126
+
127
+ - `GET /api/skills` - Returns an array of design skills
128
+ - `GET /api/skills/:owner/:slug` - Returns a single skill by owner username and slug
129
+ - `GET /api/skills/:slug` - Returns a single skill by slug (fallback)
130
+
131
+ ## Development
132
+
133
+ ```bash
134
+ cd apps/cli
135
+ bun install
136
+ bun run dev # Run in development mode
137
+ bun run build # Build for distribution
138
+ bun run typecheck # Type check
139
+ ```
140
+
141
+ ## Commands Reference
142
+
143
+ | Command | Description |
144
+ |---------|-------------|
145
+ | `list` | Browse public design skills with interactive selection |
146
+ | `add <owner>/<slug>` | Install a skill to `.agents/skills/` + optional agents |
147
+ | `config` | Configure API endpoint and optional settings |
148
+ | `--help` | Show help message |
149
+ | `--version` | Show version number |
150
+
151
+ ## Key Features
152
+
153
+ - ✅ **Always project-only** - No global installation
154
+ - ✅ **Primary to `.agents/skills/`** - Default location for OpenCode
155
+ - ✅ **Multi-agent support** - Optional install to Claude, Cursor, Cline, Windsurf, etc.
156
+ - ✅ **GitHub-style format** - `owner/slug` identifier
157
+ - ✅ **No auth required** - Works out of the box
158
+ - ✅ **Interactive prompts** - Beautiful CLI with `@clack/prompts`
159
+
160
+ ## Inspired By
161
+
162
+ - [skills.sh](https://skills.sh) - The open agent skills ecosystem
163
+ - [vercel-labs/skills](https://github.com/vercel-labs/skills) - Vercel's skills CLI
164
+ - [typeui.sh](https://typeui.sh) - Design system skills for agentic tools
165
+
166
+ ## License
167
+
168
+ MIT