skill-distill 1.0.4 → 1.0.6
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 +32 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,9 +41,9 @@ npm install -g skill-distill
|
|
|
41
41
|
|
|
42
42
|
## Quick Start
|
|
43
43
|
|
|
44
|
-
1. **
|
|
44
|
+
1. **Set your Anthropic API Key** (required for LLM analysis):
|
|
45
45
|
```bash
|
|
46
|
-
|
|
46
|
+
export ANTHROPIC_API_KEY=sk-ant-api03-xxxxx
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
2. **List your recent agent sessions**:
|
|
@@ -53,7 +53,12 @@ npm install -g skill-distill
|
|
|
53
53
|
|
|
54
54
|
3. **Distill your latest session**:
|
|
55
55
|
```bash
|
|
56
|
-
skill-distill distill --last
|
|
56
|
+
skill-distill distill --last
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
4. **Or initialize configuration for persistent settings**:
|
|
60
|
+
```bash
|
|
61
|
+
skill-distill init
|
|
57
62
|
```
|
|
58
63
|
|
|
59
64
|
---
|
|
@@ -97,23 +102,38 @@ Interactive setup to configure your environment, including:
|
|
|
97
102
|
|
|
98
103
|
## Configuration
|
|
99
104
|
|
|
100
|
-
|
|
105
|
+
### Environment Variable (Recommended)
|
|
106
|
+
|
|
107
|
+
Set your Anthropic API key as an environment variable:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
export ANTHROPIC_API_KEY=sk-ant-api03-xxxxx
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Add this to your `~/.bashrc` or `~/.zshrc` for persistence.
|
|
114
|
+
|
|
115
|
+
### Config File
|
|
116
|
+
|
|
117
|
+
Alternatively, run `skill-distill init` to create `~/.skill-distill/config.json`:
|
|
101
118
|
|
|
102
119
|
```json
|
|
103
120
|
{
|
|
104
121
|
"defaultPlatform": "claude",
|
|
105
122
|
"apiKey": "sk-ant-...",
|
|
106
|
-
"outputDir": "
|
|
107
|
-
"autoInstall": true
|
|
108
|
-
"sessionSources": {
|
|
109
|
-
"claude": "/Users/user/.claude/projects"
|
|
110
|
-
}
|
|
123
|
+
"outputDir": "~/.skills",
|
|
124
|
+
"autoInstall": true
|
|
111
125
|
}
|
|
112
126
|
```
|
|
113
127
|
|
|
114
|
-
- **apiKey**: Your Anthropic API key
|
|
115
|
-
- **defaultPlatform**: The agent platform you use most frequently
|
|
116
|
-
- **outputDir**: Where generated
|
|
128
|
+
- **apiKey**: Your Anthropic API key (can also use `ANTHROPIC_API_KEY` env var)
|
|
129
|
+
- **defaultPlatform**: The agent platform you use most frequently
|
|
130
|
+
- **outputDir**: Where generated skill files are saved (default: `~/.skills`)
|
|
131
|
+
|
|
132
|
+
### Session Sources
|
|
133
|
+
|
|
134
|
+
Skill Distill automatically reads Claude sessions from:
|
|
135
|
+
- `~/.claude/transcripts/` - OpenCode / Claude Code transcript files
|
|
136
|
+
- `~/.claude/projects/*/` - Claude Code project-specific sessions
|
|
117
137
|
|
|
118
138
|
---
|
|
119
139
|
|