make-laten 1.0.0 → 1.0.1

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/package.json +3 -2
  2. package/skills/SKILL.md +93 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-laten",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Universal efficiency toolkit for AI coding agents — compress, cache, route, and optimize token usage",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -45,7 +45,8 @@
45
45
  "url": "https://github.com/make-laten/make-laten.git"
46
46
  },
47
47
  "files": [
48
- "dist"
48
+ "dist",
49
+ "skills"
49
50
  ],
50
51
  "engines": {
51
52
  "node": ">=18.0.0"
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: make-laten
3
+ description: Token optimization toolkit for AI coding agents — compress file reads, grep, git diff, web search/fetch, cache. Use when reading files, searching code, checking git status, or fetching web content to save 60-90% tokens.
4
+ ---
5
+
6
+ # make-laten Skill
7
+
8
+ Efficiency toolkit that compresses outputs to save tokens. Use CLI commands for all file/code/git/web operations.
9
+
10
+ ## When to Use
11
+
12
+ **ALWAYS use make-laten instead of raw tools when:**
13
+ - Reading files → `make-laten read <file>` (89% savings)
14
+ - Searching code → `make-laten grep <pattern>` (grouped by file)
15
+ - Git operations → `make-laten git diff` / `make-laten git status`
16
+ - Web search → `make-laten search <query>`
17
+ - Web fetch → `make-laten fetch <url>` (75% savings)
18
+
19
+ ## CLI Commands
20
+
21
+ ### File Read (89% savings)
22
+ ```bash
23
+ make-laten read <file-path>
24
+ ```
25
+ Returns compressed JSON with file summary, exports, classes, functions.
26
+
27
+ ### Grep (grouped by file)
28
+ ```bash
29
+ make-laten grep "<pattern>" [directory]
30
+ make-laten grep "TODO" src/
31
+ make-laten grep "export" . --ignore ts
32
+ ```
33
+
34
+ ### Git Operations
35
+ ```bash
36
+ make-laten git diff # unstaged changes
37
+ make-laten git diff --staged # staged changes
38
+ make-laten git status # status summary
39
+ ```
40
+
41
+ ### Web Search (via DuckDuckGo)
42
+ ```bash
43
+ make-laten search "query"
44
+ make-laten search "react hooks" --max 10
45
+ ```
46
+
47
+ ### Web Fetch + Compress
48
+ ```bash
49
+ make-laten fetch <url>
50
+ make-laten fetch https://docs.example.com
51
+ ```
52
+
53
+ ### Cache Management
54
+ ```bash
55
+ make-laten cache stats # show hit rate
56
+ make-laten cache clear # reset
57
+ ```
58
+
59
+ ## Tool Mapping
60
+
61
+ Replace native tools with make-laten equivalents:
62
+
63
+ | Instead of | Use |
64
+ |-----------|-----|
65
+ | `Read` tool | `make-laten read <file>` |
66
+ | `Grep` tool | `make-laten grep "<pattern>"` |
67
+ | `Bash` with `git diff` | `make-laten git diff` |
68
+ | `Bash` with `git status` | `make-laten git status` |
69
+ | `WebSearch` tool | `make-laten search "<query>"` |
70
+ | `WebFetch` tool | `make-laten fetch <url>` |
71
+
72
+ ## Output Format
73
+
74
+ All commands return JSON:
75
+ ```json
76
+ {
77
+ "compressed": "...",
78
+ "confidence": 1,
79
+ "metadata": { "savings": 0.89 }
80
+ }
81
+ ```
82
+
83
+ ## Integration
84
+
85
+ make-laten is installed globally. Works from any directory. No configuration needed.
86
+
87
+ ```bash
88
+ # Verify installation
89
+ make-laten --version
90
+
91
+ # Check adapter status
92
+ make-laten install --status
93
+ ```