ctx7 0.1.4 → 0.2.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/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/index.js +1112 -94
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Upstash, Inc.
|
|
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
CHANGED
|
@@ -23,12 +23,62 @@ ctx7 skills search pdf
|
|
|
23
23
|
# Install a skill
|
|
24
24
|
ctx7 skills install /anthropics/skills pdf
|
|
25
25
|
|
|
26
|
+
# Generate a custom skill with AI
|
|
27
|
+
ctx7 skills generate
|
|
28
|
+
|
|
26
29
|
# List installed skills
|
|
27
30
|
ctx7 skills list --claude
|
|
28
31
|
```
|
|
29
32
|
|
|
30
33
|
## Usage
|
|
31
34
|
|
|
35
|
+
### Generate skills
|
|
36
|
+
|
|
37
|
+
Generate custom skills tailored to your use case using AI. Requires authentication.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Log in first
|
|
41
|
+
ctx7 login
|
|
42
|
+
|
|
43
|
+
# Generate a skill (interactive)
|
|
44
|
+
ctx7 skills generate
|
|
45
|
+
|
|
46
|
+
# Short aliases
|
|
47
|
+
ctx7 skills gen
|
|
48
|
+
ctx7 skills g
|
|
49
|
+
|
|
50
|
+
# Generate and install to a specific client
|
|
51
|
+
ctx7 skills generate --cursor
|
|
52
|
+
ctx7 skills generate --claude
|
|
53
|
+
|
|
54
|
+
# Generate globally
|
|
55
|
+
ctx7 skills generate --global
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The generate flow:
|
|
59
|
+
|
|
60
|
+
1. Describe the expertise you want (e.g., "OAuth authentication with NextAuth.js")
|
|
61
|
+
2. Select relevant libraries from search results
|
|
62
|
+
3. Answer 3 clarifying questions to focus the skill
|
|
63
|
+
4. Review the generated skill, request changes if needed, then install
|
|
64
|
+
|
|
65
|
+
Weekly generation limits apply: free accounts get 6 generations/week, Pro accounts get 10.
|
|
66
|
+
|
|
67
|
+
### Authentication
|
|
68
|
+
|
|
69
|
+
Log in to access skill generation and other authenticated features.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Log in (opens browser for OAuth)
|
|
73
|
+
ctx7 login
|
|
74
|
+
|
|
75
|
+
# Check login status
|
|
76
|
+
ctx7 whoami
|
|
77
|
+
|
|
78
|
+
# Log out
|
|
79
|
+
ctx7 logout
|
|
80
|
+
```
|
|
81
|
+
|
|
32
82
|
### Install skills
|
|
33
83
|
|
|
34
84
|
Install skills from a project repository to your AI coding assistant's skills directory.
|
|
@@ -110,6 +160,8 @@ For faster usage, the CLI provides short aliases:
|
|
|
110
160
|
```bash
|
|
111
161
|
ctx7 si /anthropics/skills pdf # skills install
|
|
112
162
|
ctx7 ss pdf # skills search
|
|
163
|
+
ctx7 skills gen # skills generate
|
|
164
|
+
ctx7 skills g # skills generate
|
|
113
165
|
```
|
|
114
166
|
|
|
115
167
|
## Learn More
|