skill-distill 1.0.4 → 1.0.5

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 (2) hide show
  1. package/README.md +32 -12
  2. 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. **Initialize your configuration**:
44
+ 1. **Set your Anthropic API Key** (required for LLM analysis):
45
45
  ```bash
46
- skill-distill init
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 --install
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
- Skill Distill stores its configuration in `~/.skill-distill/config.json`.
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": "/Users/user/.skills",
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. This is required for the distillation process to analyze message history.
115
- - **defaultPlatform**: The agent platform you use most frequently.
116
- - **outputDir**: Where generated markdown and configuration files are saved.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-distill",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Distill AI agent conversations into reusable Skills",
5
5
  "type": "module",
6
6
  "bin": {