clew-code 0.2.7 → 0.2.9
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 +292 -299
- package/dist/main.js +2745 -2869
- package/docs/architecture.html +148 -145
- package/docs/architecture.th.html +79 -78
- package/docs/clew-code-architecture.html +1125 -0
- package/docs/commands.html +224 -223
- package/docs/commands.th.html +131 -130
- package/docs/configuration.html +147 -145
- package/docs/configuration.th.html +108 -106
- package/docs/css/styles.css +48 -42
- package/docs/daemon.html +129 -128
- package/docs/daemon.th.html +73 -72
- package/docs/features/bridge-mode.html +99 -98
- package/docs/features/bridge-mode.th.html +90 -89
- package/docs/features/evals.html +182 -181
- package/docs/features/evals.th.html +90 -89
- package/docs/features/peer.html +178 -177
- package/docs/features/searxng-search.html +151 -150
- package/docs/features/searxng-search.th.html +95 -94
- package/docs/features/sentry-setup.html +157 -156
- package/docs/features/sentry-setup.th.html +97 -96
- package/docs/index.html +299 -298
- package/docs/index.th.html +292 -290
- package/docs/installation.html +105 -103
- package/docs/installation.th.html +105 -103
- package/docs/internals/growthbook-ab-testing.html +113 -112
- package/docs/internals/growthbook-ab-testing.th.html +81 -80
- package/docs/internals/hidden-features.html +149 -147
- package/docs/internals/hidden-features.th.html +109 -107
- package/docs/js/main.js +83 -3
- package/docs/loop.html +181 -180
- package/docs/loop.th.html +227 -226
- package/docs/mcp.html +247 -246
- package/docs/mcp.th.html +207 -206
- package/docs/models.html +111 -110
- package/docs/models.th.html +61 -60
- package/docs/peer.html +236 -235
- package/docs/peer.th.html +280 -279
- package/docs/permission-model.html +102 -101
- package/docs/permission-model.th.html +67 -66
- package/docs/plugins.html +102 -101
- package/docs/plugins.th.html +79 -78
- package/docs/providers.html +126 -117
- package/docs/providers.th.html +80 -78
- package/docs/quick-start.html +93 -92
- package/docs/quick-start.th.html +40 -39
- package/docs/research-memory.html +82 -79
- package/docs/research-memory.th.html +72 -71
- package/docs/skills.html +117 -116
- package/docs/skills.th.html +90 -89
- package/docs/tools.html +170 -169
- package/docs/tools.th.html +84 -83
- package/docs/troubleshooting.html +106 -105
- package/docs/troubleshooting.th.html +85 -84
- package/package.json +164 -162
- package/docs/taste.html +0 -436
- package/docs/taste.th.html +0 -236
|
@@ -1,79 +1,82 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Research & Memory
|
|
7
|
-
<meta name="description" content="Deep research system and semantic memory
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
-
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
-
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<header class="header"></header>
|
|
16
|
-
<div class="app">
|
|
17
|
-
<aside class="sidebar" id="sidebar"></aside>
|
|
18
|
-
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
19
|
-
<div class="content-wrap">
|
|
20
|
-
<main class="content">
|
|
21
|
-
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Research & Memory</span></div>
|
|
22
|
-
<h1>Research & Memory</h1>
|
|
23
|
-
<p class="section-subtitle">Clew provides a built-in deep research system and cross-session semantic memory
|
|
24
|
-
|
|
25
|
-
<h2>Research System</h2>
|
|
26
|
-
<p>The research system lives in <code>src/research/</code> and supports deep, source-grounded research across local files, wiki content, and memory:</p>
|
|
27
|
-
<ul>
|
|
28
|
-
<li><strong>Citation extraction</strong>
|
|
29
|
-
<li><strong>Claim verification</strong>
|
|
30
|
-
<li><strong>Dossier generation</strong>
|
|
31
|
-
<li><strong>Truth checking</strong>
|
|
32
|
-
<li><strong>Source ranking</strong>
|
|
33
|
-
</ul>
|
|
34
|
-
|
|
35
|
-
<h3>Research Commands</h3>
|
|
36
|
-
<table>
|
|
37
|
-
<tr><th>Command</th><th>Description</th></tr>
|
|
38
|
-
<tr><td><code>/research</code></td><td>Deep source-grounded research across local files, wiki, and memory</td></tr>
|
|
39
|
-
</table>
|
|
40
|
-
|
|
41
|
-
<h2>Memory System</h2>
|
|
42
|
-
<p>The memory system lives in <code>src/
|
|
43
|
-
<ul>
|
|
44
|
-
<li><strong>
|
|
45
|
-
<li><strong>Cross-lingual</strong>
|
|
46
|
-
<li><strong>Memory age tracking</strong>
|
|
47
|
-
<li><strong>Auto-memory capture</strong>
|
|
48
|
-
<li><strong>
|
|
49
|
-
<li><strong>
|
|
50
|
-
</ul>
|
|
51
|
-
|
|
52
|
-
<h3>Memory Commands</h3>
|
|
53
|
-
<table>
|
|
54
|
-
<tr><th>Command</th><th>Description</th></tr>
|
|
55
|
-
<tr><td><code>/memory</code></td><td>Edit Claude memory files</td></tr>
|
|
56
|
-
<tr><td><code>/memory-search</code></td><td>Search memories using
|
|
57
|
-
</table>
|
|
58
|
-
|
|
59
|
-
<h2>Architecture Files</h2>
|
|
60
|
-
<table>
|
|
61
|
-
<tr><th>Path</th><th>Role</th></tr>
|
|
62
|
-
<tr><td><code>src/research/</code></td><td>Deep research, dossier generation, truth checking, source ranking</td></tr>
|
|
63
|
-
<tr><td><code>src/
|
|
64
|
-
</table>
|
|
65
|
-
|
|
66
|
-
<footer class="footer">
|
|
67
|
-
<span>Clew Code v0.2.
|
|
68
|
-
<div class="footer-links">
|
|
69
|
-
<a href="https://github.com/
|
|
70
|
-
<a href="https://github.com/
|
|
71
|
-
</div>
|
|
72
|
-
</footer>
|
|
73
|
-
</main>
|
|
74
|
-
<nav class="toc-sidebar"></nav>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
<script src="js/main.js"></script>
|
|
78
|
-
</body>
|
|
79
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Research & Memory — Clew</title>
|
|
7
|
+
<meta name="description" content="Deep research system and semantic memory — citation extraction, claim verification, dossier generation, cross-lingual memory search.">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
+
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<header class="header"></header>
|
|
16
|
+
<div class="app">
|
|
17
|
+
<aside class="sidebar" id="sidebar"></aside>
|
|
18
|
+
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
19
|
+
<div class="content-wrap">
|
|
20
|
+
<main class="content">
|
|
21
|
+
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Research & Memory</span></div>
|
|
22
|
+
<h1>Research & Memory</h1>
|
|
23
|
+
<p class="section-subtitle">Clew provides a built-in deep research system and cross-session semantic memory — both designed to work with local files, web sources, and a persistent knowledge store.</p>
|
|
24
|
+
|
|
25
|
+
<h2>Research System</h2>
|
|
26
|
+
<p>The research system lives in <code>src/research/</code> and supports deep, source-grounded research across local files, wiki content, and memory:</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li><strong>Citation extraction</strong> — Automatic extraction of citations from research sources</li>
|
|
29
|
+
<li><strong>Claim verification</strong> — Fact-check claims against multiple sources</li>
|
|
30
|
+
<li><strong>Dossier generation</strong> — Structured reports with source attribution</li>
|
|
31
|
+
<li><strong>Truth checking</strong> — Cross-reference claims for accuracy</li>
|
|
32
|
+
<li><strong>Source ranking</strong> — Prioritize authoritative sources</li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<h3>Research Commands</h3>
|
|
36
|
+
<table>
|
|
37
|
+
<tr><th>Command</th><th>Description</th></tr>
|
|
38
|
+
<tr><td><code>/research</code></td><td>Deep source-grounded research across local files, wiki, and memory</td></tr>
|
|
39
|
+
</table>
|
|
40
|
+
|
|
41
|
+
<h2>Memory System</h2>
|
|
42
|
+
<p>The memory system lives in <code>src/memory/</code> and provides cross-session persistent knowledge storage with SQLite FTS5 search:</p>
|
|
43
|
+
<ul>
|
|
44
|
+
<li><strong>SQLite FTS5 search</strong> — Find relevant memories using FTS5 similarity</li>
|
|
45
|
+
<li><strong>Cross-lingual</strong> — Search across languages using FTS5 indexing</li>
|
|
46
|
+
<li><strong>Memory age tracking</strong> — Automatically prune old memories</li>
|
|
47
|
+
<li><strong>Auto-memory capture</strong> — Automatically save important information</li>
|
|
48
|
+
<li><strong>Token-aware chunking</strong> - 3000-token chunks with word-boundary splitting</li>
|
|
49
|
+
<li><strong>Secret redaction</strong> - Strips API keys and tokens before indexing</li>
|
|
50
|
+
</ul>
|
|
51
|
+
|
|
52
|
+
<h3>Memory Commands</h3>
|
|
53
|
+
<table>
|
|
54
|
+
<tr><th>Command</th><th>Description</th></tr>
|
|
55
|
+
<tr><td><code>/memory</code></td><td>Edit Claude memory files</td></tr>
|
|
56
|
+
<tr><td><code>/memory-search</code></td><td>Search memories using SQLite FTS5 search (cross-lingual)</td></tr>
|
|
57
|
+
</table>
|
|
58
|
+
|
|
59
|
+
<h2>Architecture Files</h2>
|
|
60
|
+
<table>
|
|
61
|
+
<tr><th>Path</th><th>Role</th></tr>
|
|
62
|
+
<tr><td><code>src/research/</code></td><td>Deep research, dossier generation, truth checking, source ranking</td></tr>
|
|
63
|
+
<tr><td><code>src/memory/</code></td><td>SQLite FTS5 memory search (14 files, no embeddings)</td></tr>
|
|
64
|
+
</table>
|
|
65
|
+
|
|
66
|
+
<footer class="footer">
|
|
67
|
+
<span>Clew Code v0.2.7 — Open Source</span>
|
|
68
|
+
<div class="footer-links">
|
|
69
|
+
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
70
|
+
<a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
|
|
71
|
+
</div>
|
|
72
|
+
</footer>
|
|
73
|
+
</main>
|
|
74
|
+
<nav class="toc-sidebar"></nav>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<script src="js/main.js"></script>
|
|
78
|
+
</body>
|
|
79
|
+
</html>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
@@ -1,71 +1,72 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="th">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
-
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
-
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<header class="header"></header>
|
|
16
|
-
<div class="app">
|
|
17
|
-
<aside class="sidebar" id="sidebar"></aside>
|
|
18
|
-
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
19
|
-
<div class="content-wrap">
|
|
20
|
-
<main class="content">
|
|
21
|
-
<div class="breadcrumbs"><a href="index.th.html"
|
|
22
|
-
<h1
|
|
23
|
-
<p class="section-subtitle">Clew
|
|
24
|
-
|
|
25
|
-
<h2
|
|
26
|
-
<p
|
|
27
|
-
<ul>
|
|
28
|
-
<li><strong
|
|
29
|
-
<li><strong
|
|
30
|
-
<li><strong
|
|
31
|
-
<li><strong
|
|
32
|
-
<li><strong
|
|
33
|
-
</ul>
|
|
34
|
-
|
|
35
|
-
<h3
|
|
36
|
-
<table>
|
|
37
|
-
<tr><th
|
|
38
|
-
<tr><td><code>/research</code></td><td
|
|
39
|
-
</table>
|
|
40
|
-
|
|
41
|
-
<h2
|
|
42
|
-
<p
|
|
43
|
-
<ul>
|
|
44
|
-
<li><strong
|
|
45
|
-
<li><strong
|
|
46
|
-
<li><strong
|
|
47
|
-
<li><strong
|
|
48
|
-
<li><strong
|
|
49
|
-
</ul>
|
|
50
|
-
|
|
51
|
-
<h3
|
|
52
|
-
<table>
|
|
53
|
-
<tr><th
|
|
54
|
-
<tr><td><code>/memory</code></td><td
|
|
55
|
-
<tr><td><code>/memory-search</code></td><td
|
|
56
|
-
</table>
|
|
57
|
-
|
|
58
|
-
<footer class="footer">
|
|
59
|
-
<span>Clew Code v0.2.
|
|
60
|
-
<div class="footer-links">
|
|
61
|
-
<a href="https://github.com/
|
|
62
|
-
<a href="https://github.com/
|
|
63
|
-
</div>
|
|
64
|
-
</footer>
|
|
65
|
-
</main>
|
|
66
|
-
<nav class="toc-sidebar"></nav>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<script src="js/main.js"></script>
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="th">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>วิจัยà¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ — Clew</title>
|
|
7
|
+
<meta name="description" content="ระบบวิจัยเชิงลึà¸à¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำเชิงความหมาย — à¸à¸²à¸£à¸ªà¸à¸±à¸”คำà¸à¹‰à¸²à¸‡à¸à¸´à¸‡, à¸à¸²à¸£à¸•รวจสà¸à¸šà¸‚้à¸à¸à¸¥à¹ˆà¸²à¸§à¸à¹‰à¸²à¸‡, à¸à¸²à¸£à¸ªà¸£à¹‰à¸²à¸‡à¸£à¸²à¸¢à¸‡à¸²à¸™, à¸à¸²à¸£à¸„้นหาหน่วยความจำข้ามภาษา">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
+
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<header class="header"></header>
|
|
16
|
+
<div class="app">
|
|
17
|
+
<aside class="sidebar" id="sidebar"></aside>
|
|
18
|
+
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
19
|
+
<div class="content-wrap">
|
|
20
|
+
<main class="content">
|
|
21
|
+
<div class="breadcrumbs"><a href="index.th.html">หน้าà¹à¸£à¸</a><span class="sep">/</span><span>วิจัยà¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ</span></div>
|
|
22
|
+
<h1>วิจัยà¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ</h1>
|
|
23
|
+
<p class="section-subtitle">Clew มีระบบวิจัยเชิงลึà¸à¹ƒà¸™à¸•ัวà¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำเชิงความหมายข้ามเซสชัน — ทั้งสà¸à¸‡à¸à¸à¸à¹à¸šà¸šà¸¡à¸²à¹ƒà¸«à¹‰à¸—ำงานà¸à¸±à¸šà¹„ฟล์ท้à¸à¸‡à¸–ิ่น, à¹à¸«à¸¥à¹ˆà¸‡à¹€à¸§à¹‡à¸š, à¹à¸¥à¸°à¸„ลังความรู้ถาวร</p>
|
|
24
|
+
|
|
25
|
+
<h2>ระบบวิจัย</h2>
|
|
26
|
+
<p>ระบบวิจัยà¸à¸¢à¸¹à¹ˆà¹ƒà¸™ <code>src/research/</code> à¹à¸¥à¸°à¸£à¸à¸‡à¸£à¸±à¸šà¸à¸²à¸£à¸§à¸´à¸ˆà¸±à¸¢à¹€à¸Šà¸´à¸‡à¸¥à¸¶à¸à¸ˆà¸²à¸à¹à¸«à¸¥à¹ˆà¸‡à¸—ี่มาในไฟล์ท้à¸à¸‡à¸–ิ่น, เนื้à¸à¸«à¸² wiki, à¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ:</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li><strong>à¸à¸²à¸£à¸ªà¸à¸±à¸”คำà¸à¹‰à¸²à¸‡à¸à¸´à¸‡</strong> — à¸à¸²à¸£à¸ªà¸à¸±à¸”คำà¸à¹‰à¸²à¸‡à¸à¸´à¸‡à¸à¸±à¸•โนมัติจาà¸à¹à¸«à¸¥à¹ˆà¸‡à¸§à¸´à¸ˆà¸±à¸¢</li>
|
|
29
|
+
<li><strong>à¸à¸²à¸£à¸•รวจสà¸à¸šà¸‚้à¸à¸à¸¥à¹ˆà¸²à¸§à¸à¹‰à¸²à¸‡</strong> — ตรวจสà¸à¸šà¸‚้à¸à¹€à¸—็จจริงà¸à¸±à¸šà¸«à¸¥à¸²à¸¢à¹à¸«à¸¥à¹ˆà¸‡</li>
|
|
30
|
+
<li><strong>à¸à¸²à¸£à¸ªà¸£à¹‰à¸²à¸‡à¸£à¸²à¸¢à¸‡à¸²à¸™</strong> — รายงานมีโครงสร้างพร้à¸à¸¡à¸à¸²à¸£à¸£à¸°à¸šà¸¸à¹à¸«à¸¥à¹ˆà¸‡à¸—ี่มา</li>
|
|
31
|
+
<li><strong>à¸à¸²à¸£à¸•รวจสà¸à¸šà¸„วามจริง</strong> — à¸à¹‰à¸²à¸‡à¸à¸´à¸‡à¸‚้ามข้à¸à¸à¸¥à¹ˆà¸²à¸§à¸à¹‰à¸²à¸‡à¹€à¸žà¸·à¹ˆà¸à¸„วามถูà¸à¸•้à¸à¸‡</li>
|
|
32
|
+
<li><strong>à¸à¸²à¸£à¸ˆà¸±à¸”à¸à¸±à¸™à¸”ับà¹à¸«à¸¥à¹ˆà¸‡à¸—ี่มา</strong> — จัดลำดับความสำคัà¸à¸‚à¸à¸‡à¹à¸«à¸¥à¹ˆà¸‡à¸—ี่มาน่าเชื่à¸à¸–ืà¸</li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<h3>คำสั่งวิจัย</h3>
|
|
36
|
+
<table>
|
|
37
|
+
<tr><th>คำสั่ง</th><th>คำà¸à¸˜à¸´à¸šà¸²à¸¢</th></tr>
|
|
38
|
+
<tr><td><code>/research</code></td><td>วิจัยเชิงลึà¸à¸ˆà¸²à¸à¹à¸«à¸¥à¹ˆà¸‡à¸—ี่มาในไฟล์ท้à¸à¸‡à¸–ิ่น, wiki, à¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ</td></tr>
|
|
39
|
+
</table>
|
|
40
|
+
|
|
41
|
+
<h2>ระบบหน่วยความจำ</h2>
|
|
42
|
+
<p>ระบบหน่วยความจำà¸à¸¢à¸¹à¹ˆà¹ƒà¸™ <code>$c = $c.replace('src/memdir/', 'src/memory/')</code> à¹à¸¥à¸°à¹ƒà¸«à¹‰à¸à¸²à¸£à¸ˆà¸±à¸”เà¸à¹‡à¸šà¸„วามรู้ถาวรข้ามเซสชันด้วยà¸à¸²à¸£à¸„้นหาเชิงความหมาย:</p>
|
|
43
|
+
<ul>
|
|
44
|
+
<li><strong>à¸à¸²à¸£à¸„้นหาเชิงความหมาย</strong> — ค้นหาหน่วยความจำที่เà¸à¸µà¹ˆà¸¢à¸§à¸‚้à¸à¸‡à¹‚ดยใช้ความคล้ายคลึงขà¸à¸‡à¸‚้à¸à¸„วามà¸à¸±à¸‡</li>
|
|
45
|
+
<li><strong>ข้ามภาษา</strong> — ค้นหาข้ามภาษาด้วย semantic embeddings</li>
|
|
46
|
+
<li><strong>à¸à¸²à¸£à¸•ิดตามà¸à¸²à¸¢à¸¸à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ</strong> — à¸à¸²à¸¢à¸¸à¹à¸¥à¸°à¸•ัดหน่วยความจำเà¸à¹ˆà¸²à¹‚ดยà¸à¸±à¸•โนมัติ</li>
|
|
47
|
+
<li><strong>à¸à¸²à¸£à¸šà¸±à¸™à¸—ึà¸à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำà¸à¸±à¸•โนมัติ</strong> — บันทึà¸à¸‚้à¸à¸¡à¸¹à¸¥à¸ªà¸³à¸„ัà¸à¹‚ดยà¸à¸±à¸•โนมัติ</li>
|
|
48
|
+
<li><strong>à¸à¸²à¸£à¹€à¸£à¸µà¸¢à¸à¸„ืนà¹à¸šà¸šà¸œà¸ªà¸¡</strong> — รวมà¸à¸²à¸£à¸„้นหา embedding ในเครื่à¸à¸‡à¸à¸±à¸šà¸à¸²à¸£à¹€à¸£à¸µà¸¢à¸à¸„ืนผ่าน LLM</li>
|
|
49
|
+
</ul>
|
|
50
|
+
|
|
51
|
+
<h3>คำสั่งหน่วยความจำ</h3>
|
|
52
|
+
<table>
|
|
53
|
+
<tr><th>คำสั่ง</th><th>คำà¸à¸˜à¸´à¸šà¸²à¸¢</th></tr>
|
|
54
|
+
<tr><td><code>/memory</code></td><td>à¹à¸à¹‰à¹„ขไฟล์หน่วยความจำ</td></tr>
|
|
55
|
+
<tr><td><code>/memory-search</code></td><td>ค้นหาหน่วยความจำด้วยà¸à¸²à¸£à¸„้นหาเชิงความหมาย (ข้ามภาษา)</td></tr>
|
|
56
|
+
</table>
|
|
57
|
+
|
|
58
|
+
<footer class="footer">
|
|
59
|
+
<span>Clew Code v0.2.7 — โà¸à¹€à¸žà¸™à¸‹à¸à¸£à¹Œà¸ª</span>
|
|
60
|
+
<div class="footer-links">
|
|
61
|
+
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
62
|
+
<a href="https://github.com/ClewCode/ClewCode/issues">ปัà¸à¸«à¸²</a>
|
|
63
|
+
</div>
|
|
64
|
+
</footer>
|
|
65
|
+
</main>
|
|
66
|
+
<nav class="toc-sidebar"></nav>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<script src="js/main.js"></script>
|
|
70
|
+
</body>
|
|
71
|
+
</html>
|
|
72
|
+
|
package/docs/skills.html
CHANGED
|
@@ -1,116 +1,117 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Skills
|
|
7
|
-
<meta name="description" content="Reusable task instructions and workflows in Clew
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
-
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
-
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<header class="header"></header>
|
|
16
|
-
<div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
17
|
-
<div class="content-wrap"><main class="content">
|
|
18
|
-
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Skills</span></div>
|
|
19
|
-
<h1>Skills</h1>
|
|
20
|
-
<p class="section-subtitle">Skills are reusable prompt-type commands
|
|
21
|
-
|
|
22
|
-
<h2>Overview</h2>
|
|
23
|
-
<p>Skills are commands of type <code>prompt</code>
|
|
24
|
-
|
|
25
|
-
<h2>Skill Locations</h2>
|
|
26
|
-
<p>Skills are loaded from four sources (order: bundled user project plugin):</p>
|
|
27
|
-
<table>
|
|
28
|
-
<tr><th>Source</th><th>Path</th><th>Scope</th></tr>
|
|
29
|
-
<tr><td>Bundled</td><td>Ships with Clew</td><td>All users</td></tr>
|
|
30
|
-
<tr><td>User</td><td><code>~/.claude/skills/<name>/SKILL.md</code></td><td>Personal</td></tr>
|
|
31
|
-
<tr><td>Project</td><td><code>.claude/skills/<name>/SKILL.md</code></td><td>Team (in-repo)</td></tr>
|
|
32
|
-
<tr><td>Plugin</td><td>Inside plugin directories</td><td>Plugin users</td></tr>
|
|
33
|
-
</table>
|
|
34
|
-
|
|
35
|
-
<h2>Skill Structure</h2>
|
|
36
|
-
<pre><code>my-skill/
|
|
37
|
-
SKILL.md # Skill instructions (required)
|
|
38
|
-
assets/ # Optional: scripts, references, examples</code></pre>
|
|
39
|
-
|
|
40
|
-
<p>The <code>SKILL.md</code> file uses frontmatter for metadata and markdown for instructions. Skills are registered as <code>prompt</code>-type commands and can be invoked by the model via the <code>SkillTool</code>.</p>
|
|
41
|
-
|
|
42
|
-
<h2>Managing Skills</h2>
|
|
43
|
-
<pre><code>/skill # List available skills or show skill details
|
|
44
|
-
/skills # List available skills
|
|
45
|
-
/skill-name # Invoke a specific skill directly</code></pre>
|
|
46
|
-
|
|
47
|
-
<h2>Skill Frontmatter</h2>
|
|
48
|
-
<p>Skills support YAML frontmatter for metadata and configuration:</p>
|
|
49
|
-
<pre><code>---
|
|
50
|
-
name: my-skill
|
|
51
|
-
description: Does focused text work
|
|
52
|
-
allowed-tools:
|
|
53
|
-
- Read
|
|
54
|
-
- Grep
|
|
55
|
-
disallowed-tools:
|
|
56
|
-
- Bash
|
|
57
|
-
- Edit
|
|
58
|
-
hooks:
|
|
59
|
-
PreToolUse:
|
|
60
|
-
- matcher: Bash
|
|
61
|
-
hooks:
|
|
62
|
-
- type: command
|
|
63
|
-
command: echo "About to run bash"
|
|
64
|
-
model: claude-sonnet-4-6
|
|
65
|
-
effort: high
|
|
66
|
-
user-invocable: true
|
|
67
|
-
context: fork
|
|
68
|
-
---</code></pre>
|
|
69
|
-
<p>Key frontmatter fields:</p>
|
|
70
|
-
<ul>
|
|
71
|
-
<li><code>allowed-tools</code>
|
|
72
|
-
<li><code>disallowed-tools</code>
|
|
73
|
-
<li><code>hooks</code>
|
|
74
|
-
<li><code>model</code>
|
|
75
|
-
<li><code>effort</code>
|
|
76
|
-
<li><code>context</code>
|
|
77
|
-
</ul>
|
|
78
|
-
|
|
79
|
-
<h2>Creating a Skill</h2>
|
|
80
|
-
<pre><code>mkdir -p ~/.claude/skills/my-skill
|
|
81
|
-
touch ~/.claude/skills/my-skill/SKILL.md
|
|
82
|
-
# Edit SKILL.md with frontmatter and instructions</code></pre>
|
|
83
|
-
<p>Or use the <code>skillify</code> plugin to create a skill from an existing workflow.</p>
|
|
84
|
-
|
|
85
|
-
<h2>Project-Level Skills</h2>
|
|
86
|
-
<p>Place skills in <code>.claude/skills/</code> inside your repository to share with your team:</p>
|
|
87
|
-
<pre><code>.claude/
|
|
88
|
-
skills/
|
|
89
|
-
code-review/
|
|
90
|
-
SKILL.md
|
|
91
|
-
migration-workflow/
|
|
92
|
-
SKILL.md</code></pre>
|
|
93
|
-
<p>Project skills are automatically available to everyone working in the repository.</p>
|
|
94
|
-
|
|
95
|
-
<h2>Dynamic Skills</h2>
|
|
96
|
-
<p>Skills can be discovered dynamically during file operations. When a skill file is created or modified, it's automatically added to the available command list without restarting. Use <code>clearCommandMemoizationCaches()</code> to refresh the skill index.</p>
|
|
97
|
-
|
|
98
|
-
<div class="callout callout-info">
|
|
99
|
-
<strong>Skills vs. Plugins</strong>
|
|
100
|
-
Skills are instruction-only (markdown), no code required. Plugins provide executable JavaScript
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
<footer class="footer">
|
|
104
|
-
<span>Clew Code v0.2.
|
|
105
|
-
<div class="footer-links">
|
|
106
|
-
<a href="https://github.com/
|
|
107
|
-
<a href="https://github.com/
|
|
108
|
-
</div>
|
|
109
|
-
</footer>
|
|
110
|
-
</main>
|
|
111
|
-
<nav class="toc-sidebar"></nav>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
<script src="js/main.js"></script>
|
|
115
|
-
</body>
|
|
116
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Skills — Clew</title>
|
|
7
|
+
<meta name="description" content="Reusable task instructions and workflows in Clew — create, use, and share skills across projects.">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
+
<link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<header class="header"></header>
|
|
16
|
+
<div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
17
|
+
<div class="content-wrap"><main class="content">
|
|
18
|
+
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Skills</span></div>
|
|
19
|
+
<h1>Skills</h1>
|
|
20
|
+
<p class="section-subtitle">Skills are reusable prompt-type commands — markdown files that provide structured instructions to the AI model. They are loaded from bundled, user, project, and plugin directories.</p>
|
|
21
|
+
|
|
22
|
+
<h2>Overview</h2>
|
|
23
|
+
<p>Skills are commands of type <code>prompt</code> — they expand to text that is sent to the model. Unlike plugins (which provide JavaScript code), skills are purely instructional. They bridge the gap between ad-hoc prompts and full plugin development.</p>
|
|
24
|
+
|
|
25
|
+
<h2>Skill Locations</h2>
|
|
26
|
+
<p>Skills are loaded from four sources (order: bundled user project plugin):</p>
|
|
27
|
+
<table>
|
|
28
|
+
<tr><th>Source</th><th>Path</th><th>Scope</th></tr>
|
|
29
|
+
<tr><td>Bundled</td><td>Ships with Clew</td><td>All users</td></tr>
|
|
30
|
+
<tr><td>User</td><td><code>~/.claude/skills/<name>/SKILL.md</code></td><td>Personal</td></tr>
|
|
31
|
+
<tr><td>Project</td><td><code>.claude/skills/<name>/SKILL.md</code></td><td>Team (in-repo)</td></tr>
|
|
32
|
+
<tr><td>Plugin</td><td>Inside plugin directories</td><td>Plugin users</td></tr>
|
|
33
|
+
</table>
|
|
34
|
+
|
|
35
|
+
<h2>Skill Structure</h2>
|
|
36
|
+
<pre><code>my-skill/
|
|
37
|
+
SKILL.md # Skill instructions (required)
|
|
38
|
+
assets/ # Optional: scripts, references, examples</code></pre>
|
|
39
|
+
|
|
40
|
+
<p>The <code>SKILL.md</code> file uses frontmatter for metadata and markdown for instructions. Skills are registered as <code>prompt</code>-type commands and can be invoked by the model via the <code>SkillTool</code>.</p>
|
|
41
|
+
|
|
42
|
+
<h2>Managing Skills</h2>
|
|
43
|
+
<pre><code>/skill # List available skills or show skill details
|
|
44
|
+
/skills # List available skills
|
|
45
|
+
/skill-name # Invoke a specific skill directly</code></pre>
|
|
46
|
+
|
|
47
|
+
<h2>Skill Frontmatter</h2>
|
|
48
|
+
<p>Skills support YAML frontmatter for metadata and configuration:</p>
|
|
49
|
+
<pre><code>---
|
|
50
|
+
name: my-skill
|
|
51
|
+
description: Does focused text work
|
|
52
|
+
allowed-tools:
|
|
53
|
+
- Read
|
|
54
|
+
- Grep
|
|
55
|
+
disallowed-tools:
|
|
56
|
+
- Bash
|
|
57
|
+
- Edit
|
|
58
|
+
hooks:
|
|
59
|
+
PreToolUse:
|
|
60
|
+
- matcher: Bash
|
|
61
|
+
hooks:
|
|
62
|
+
- type: command
|
|
63
|
+
command: echo "About to run bash"
|
|
64
|
+
model: claude-sonnet-4-6
|
|
65
|
+
effort: high
|
|
66
|
+
user-invocable: true
|
|
67
|
+
context: fork
|
|
68
|
+
---</code></pre>
|
|
69
|
+
<p>Key frontmatter fields:</p>
|
|
70
|
+
<ul>
|
|
71
|
+
<li><code>allowed-tools</code> — Restrict which tools the model can use while this skill is active</li>
|
|
72
|
+
<li><code>disallowed-tools</code> — Explicitly block tools (e.g., <code>Bash</code>, <code>Edit</code>) for read-only skills</li>
|
|
73
|
+
<li><code>hooks</code> — Register PreToolUse, PostToolUse, or MessageDisplay hooks for the skill</li>
|
|
74
|
+
<li><code>model</code> — Override the model used when this skill runs</li>
|
|
75
|
+
<li><code>effort</code> — Set effort level (low, medium, high, xhigh, max)</li>
|
|
76
|
+
<li><code>context</code> — <code>inline</code> (default) expands into current conversation; <code>fork</code> runs as sub-agent</li>
|
|
77
|
+
</ul>
|
|
78
|
+
|
|
79
|
+
<h2>Creating a Skill</h2>
|
|
80
|
+
<pre><code>mkdir -p ~/.claude/skills/my-skill
|
|
81
|
+
touch ~/.claude/skills/my-skill/SKILL.md
|
|
82
|
+
# Edit SKILL.md with frontmatter and instructions</code></pre>
|
|
83
|
+
<p>Or use the <code>skillify</code> plugin to create a skill from an existing workflow.</p>
|
|
84
|
+
|
|
85
|
+
<h2>Project-Level Skills</h2>
|
|
86
|
+
<p>Place skills in <code>.claude/skills/</code> inside your repository to share with your team:</p>
|
|
87
|
+
<pre><code>.claude/
|
|
88
|
+
skills/
|
|
89
|
+
code-review/
|
|
90
|
+
SKILL.md
|
|
91
|
+
migration-workflow/
|
|
92
|
+
SKILL.md</code></pre>
|
|
93
|
+
<p>Project skills are automatically available to everyone working in the repository.</p>
|
|
94
|
+
|
|
95
|
+
<h2>Dynamic Skills</h2>
|
|
96
|
+
<p>Skills can be discovered dynamically during file operations. When a skill file is created or modified, it's automatically added to the available command list without restarting. Use <code>clearCommandMemoizationCaches()</code> to refresh the skill index.</p>
|
|
97
|
+
|
|
98
|
+
<div class="callout callout-info">
|
|
99
|
+
<strong>Skills vs. Plugins</strong>
|
|
100
|
+
Skills are instruction-only (markdown), no code required. Plugins provide executable JavaScript — commands, hooks, agents, MCP servers. Use skills to standardize AI behavior; use plugins for custom tooling.
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<footer class="footer">
|
|
104
|
+
<span>Clew Code v0.2.7 — Open Source</span>
|
|
105
|
+
<div class="footer-links">
|
|
106
|
+
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
107
|
+
<a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
|
|
108
|
+
</div>
|
|
109
|
+
</footer>
|
|
110
|
+
</main>
|
|
111
|
+
<nav class="toc-sidebar"></nav>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<script src="js/main.js"></script>
|
|
115
|
+
</body>
|
|
116
|
+
</html>
|
|
117
|
+
|