clew-code 0.2.13 → 0.2.14
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/dist/main.js +2596 -2527
- package/docs/architecture.html +148 -148
- package/docs/architecture.th.html +79 -79
- package/docs/clew-code-architecture.html +6 -6
- package/docs/commands.html +225 -224
- package/docs/commands.th.html +132 -131
- package/docs/configuration.html +147 -147
- package/docs/configuration.th.html +108 -108
- package/docs/daemon.html +129 -129
- package/docs/daemon.th.html +73 -73
- package/docs/features/bridge-mode.html +99 -99
- package/docs/features/bridge-mode.th.html +90 -90
- package/docs/features/evals.html +182 -182
- package/docs/features/evals.th.html +90 -90
- package/docs/features/peer.html +178 -178
- package/docs/features/searxng-search.html +151 -151
- package/docs/features/searxng-search.th.html +95 -95
- package/docs/features/sentry-setup.html +157 -157
- package/docs/features/sentry-setup.th.html +97 -97
- package/docs/index.html +298 -299
- package/docs/index.th.html +292 -292
- package/docs/installation.html +105 -105
- package/docs/installation.th.html +105 -105
- package/docs/internals/growthbook-ab-testing.html +113 -113
- package/docs/internals/growthbook-ab-testing.th.html +81 -81
- package/docs/internals/hidden-features.html +175 -149
- package/docs/internals/hidden-features.th.html +135 -109
- package/docs/loop.html +181 -181
- package/docs/loop.th.html +227 -227
- package/docs/mcp.html +247 -247
- package/docs/mcp.th.html +207 -207
- package/docs/models.html +110 -111
- package/docs/models.th.html +61 -61
- package/docs/peer.html +236 -236
- package/docs/peer.th.html +280 -280
- package/docs/permission-model.html +102 -102
- package/docs/permission-model.th.html +67 -67
- package/docs/plugins.html +102 -102
- package/docs/plugins.th.html +79 -79
- package/docs/providers.html +126 -126
- package/docs/providers.th.html +80 -80
- package/docs/quick-start.html +93 -93
- package/docs/quick-start.th.html +1 -1
- package/docs/research-memory.html +82 -82
- package/docs/research-memory.th.html +72 -72
- package/docs/skills.html +117 -117
- package/docs/skills.th.html +90 -90
- package/docs/tools.html +170 -170
- package/docs/tools.th.html +84 -84
- package/docs/troubleshooting.html +106 -106
- package/docs/troubleshooting.th.html +85 -85
- package/package.json +162 -164
|
@@ -1,72 +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>วิจัยà¹à¸¥à¸°à¸«à¸™à¹ˆà¸§à¸¢à¸„วามจำ — 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
|
|
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
|
-
|
|
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 0.2.13 — โà¸à¹€à¸žà¸™à¸‹à¸à¸£à¹Œà¸ª</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,117 +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 — 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
|
|
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
|
-
|
|
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 0.2.13 — 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
|
+
|
package/docs/skills.th.html
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
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="คำà¹à¸™à¸°à¸™à¸³à¸‡à¸²à¸™à¹à¸¥à¸°à¹€à¸§à¸´à¸£à¹Œà¸à¹‚ฟลว์ที่ใช้ซ้ำได้ใน 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&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"><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.th.html">หน้าà¹à¸£à¸</a><span class="sep">/</span><span>สà¸à¸´à¸¥</span></div>
|
|
19
|
-
<h1>สà¸à¸´à¸¥</h1>
|
|
20
|
-
<p class="section-subtitle">สà¸à¸´à¸¥à¸„ืà¸à¸„ำสั่งประเภท prompt ที่ใช้ซ้ำได้ — ไฟล์ markdown ที่ให้คำà¹à¸™à¸°à¸™à¸³à¹à¸šà¸šà¸¡à¸µà¹‚ครงสร้างà¹à¸à¹ˆà¹‚มเดล AI</p>
|
|
21
|
-
|
|
22
|
-
<h2>ภาพรวม</h2>
|
|
23
|
-
<p>สà¸à¸´à¸¥à¸„ืà¸à¸„ำสั่งประเภท <code>prompt</code> — พวà¸à¸¡à¸±à¸™à¸‚ยายเป็นข้à¸à¸„วามที่ส่งไปยังโมเดล ต่างจาà¸à¸›à¸¥à¸±à¹Šà¸à¸à¸´à¸™ (ที่ให้โค้ด JavaScript) สà¸à¸´à¸¥à¹€à¸›à¹‡à¸™à¸à¸²à¸£à¸ªà¸à¸™à¸¥à¹‰à¸§à¸™à¹†</p>
|
|
24
|
-
|
|
25
|
-
<h2>ตำà¹à¸«à¸™à¹ˆà¸‡à¸ªà¸à¸´à¸¥</h2>
|
|
26
|
-
<p>สà¸à¸´à¸¥à¸–ูà¸à¹‚หลดจาà¸à¸ªà¸µà¹ˆà¹à¸«à¸¥à¹ˆà¸‡ (ลำดับ: bundled user project plugin):</p>
|
|
27
|
-
<table>
|
|
28
|
-
<tr><th>à¹à¸«à¸¥à¹ˆà¸‡</th><th>พาธ</th><th>ขà¸à¸šà¹€à¸‚ต</th></tr>
|
|
29
|
-
<tr><td>Bundled</td><td>มาพร้à¸à¸¡ Clew</td><td>ผู้ใช้ทั้งหมด</td></tr>
|
|
30
|
-
<tr><td>ผู้ใช้</td><td><code>~/.claude/skills/<name>/SKILL.md</code></td><td>ส่วนตัว</td></tr>
|
|
31
|
-
<tr><td>โปรเจà¸à¸•์</td><td><code>.claude/skills/<name>/SKILL.md</code></td><td>ทีม (ใน repo)</td></tr>
|
|
32
|
-
<tr><td>ปลั๊à¸à¸à¸´à¸™</td><td>ภายในไดเรà¸à¸—à¸à¸£à¸µà¸›à¸¥à¸±à¹Šà¸à¸à¸´à¸™</td><td>ผู้ใช้ปลั๊à¸à¸à¸´à¸™</td></tr>
|
|
33
|
-
</table>
|
|
34
|
-
|
|
35
|
-
<h2>โครงสร้างสà¸à¸´à¸¥</h2>
|
|
36
|
-
<pre><code>my-skill/
|
|
37
|
-
SKILL.md # คำà¹à¸™à¸°à¸™à¸³à¸ªà¸à¸´à¸¥ (จำเป็น)
|
|
38
|
-
assets/ # ไม่บังคับ: สคริปต์, เà¸à¸à¸ªà¸²à¸£à¸à¹‰à¸²à¸‡à¸à¸´à¸‡, ตัวà¸à¸¢à¹ˆà¸²à¸‡</code></pre>
|
|
39
|
-
|
|
40
|
-
<h2>à¸à¸²à¸£à¸ˆà¸±à¸”à¸à¸²à¸£à¸ªà¸à¸´à¸¥</h2>
|
|
41
|
-
<pre><code>/skill # à¹à¸ªà¸”งสà¸à¸´à¸¥à¸—ี่มีหรืà¸à¸£à¸²à¸¢à¸¥à¸°à¹€à¸à¸µà¸¢à¸”สà¸à¸´à¸¥
|
|
42
|
-
/skills # à¹à¸ªà¸”งสà¸à¸´à¸¥à¸—ี่มี
|
|
43
|
-
/skill-name # เรียà¸à¹ƒà¸Šà¹‰à¸ªà¸à¸´à¸¥à¹‚ดยตรง</code></pre>
|
|
44
|
-
|
|
45
|
-
<h2>Frontmatter สà¸à¸´à¸¥</h2>
|
|
46
|
-
<p>สà¸à¸´à¸¥à¸£à¸à¸‡à¸£à¸±à¸š YAML frontmatter สำหรับข้à¸à¸¡à¸¹à¸¥à¹€à¸¡à¸•าà¹à¸¥à¸°à¸à¸²à¸£à¸•ั้งค่า:</p>
|
|
47
|
-
<pre><code>---
|
|
48
|
-
name: my-skill
|
|
49
|
-
description: ทำงานà¸à¸±à¸šà¸‚้à¸à¸„วามเฉพาะทาง
|
|
50
|
-
allowed-tools:
|
|
51
|
-
- Read
|
|
52
|
-
- Grep
|
|
53
|
-
disallowed-tools:
|
|
54
|
-
- Bash
|
|
55
|
-
- Edit
|
|
56
|
-
model: claude-sonnet-4-6
|
|
57
|
-
effort: high
|
|
58
|
-
user-invocable: true
|
|
59
|
-
context: fork
|
|
60
|
-
---</code></pre>
|
|
61
|
-
|
|
62
|
-
<h2>à¸à¸²à¸£à¸ªà¸£à¹‰à¸²à¸‡à¸ªà¸à¸´à¸¥</h2>
|
|
63
|
-
<pre><code>mkdir -p ~/.claude/skills/my-skill
|
|
64
|
-
touch ~/.claude/skills/my-skill/SKILL.md
|
|
65
|
-
# à¹à¸à¹‰à¹„ข SKILL.md ด้วย frontmatter à¹à¸¥à¸°à¸„ำà¹à¸™à¸°à¸™à¸³</code></pre>
|
|
66
|
-
|
|
67
|
-
<h2>สà¸à¸´à¸¥à¸£à¸°à¸”ับโปรเจà¸à¸•์</h2>
|
|
68
|
-
<p>วางสà¸à¸´à¸¥à¹ƒà¸™ <code>.claude/skills/</code> ภายใน repository ขà¸à¸‡à¸„ุณเพื่à¸à¹à¸Šà¸£à¹Œà¸à¸±à¸šà¸—ีม:</p>
|
|
69
|
-
<pre><code>.claude/
|
|
70
|
-
skills/
|
|
71
|
-
code-review/
|
|
72
|
-
SKILL.md
|
|
73
|
-
migration-workflow/
|
|
74
|
-
SKILL.md</code></pre>
|
|
75
|
-
|
|
76
|
-
<footer class="footer">
|
|
77
|
-
<span>Clew Code
|
|
78
|
-
<div class="footer-links">
|
|
79
|
-
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
80
|
-
<a href="https://github.com/ClewCode/ClewCode/issues">ปัà¸à¸«à¸²</a>
|
|
81
|
-
</div>
|
|
82
|
-
</footer>
|
|
83
|
-
</main>
|
|
84
|
-
<nav class="toc-sidebar"></nav>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
<script src="js/main.js"></script>
|
|
88
|
-
</body>
|
|
89
|
-
</html>
|
|
90
|
-
|
|
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="คำà¹à¸™à¸°à¸™à¸³à¸‡à¸²à¸™à¹à¸¥à¸°à¹€à¸§à¸´à¸£à¹Œà¸à¹‚ฟลว์ที่ใช้ซ้ำได้ใน 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&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"><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.th.html">หน้าà¹à¸£à¸</a><span class="sep">/</span><span>สà¸à¸´à¸¥</span></div>
|
|
19
|
+
<h1>สà¸à¸´à¸¥</h1>
|
|
20
|
+
<p class="section-subtitle">สà¸à¸´à¸¥à¸„ืà¸à¸„ำสั่งประเภท prompt ที่ใช้ซ้ำได้ — ไฟล์ markdown ที่ให้คำà¹à¸™à¸°à¸™à¸³à¹à¸šà¸šà¸¡à¸µà¹‚ครงสร้างà¹à¸à¹ˆà¹‚มเดล AI</p>
|
|
21
|
+
|
|
22
|
+
<h2>ภาพรวม</h2>
|
|
23
|
+
<p>สà¸à¸´à¸¥à¸„ืà¸à¸„ำสั่งประเภท <code>prompt</code> — พวà¸à¸¡à¸±à¸™à¸‚ยายเป็นข้à¸à¸„วามที่ส่งไปยังโมเดล ต่างจาà¸à¸›à¸¥à¸±à¹Šà¸à¸à¸´à¸™ (ที่ให้โค้ด JavaScript) สà¸à¸´à¸¥à¹€à¸›à¹‡à¸™à¸à¸²à¸£à¸ªà¸à¸™à¸¥à¹‰à¸§à¸™à¹†</p>
|
|
24
|
+
|
|
25
|
+
<h2>ตำà¹à¸«à¸™à¹ˆà¸‡à¸ªà¸à¸´à¸¥</h2>
|
|
26
|
+
<p>สà¸à¸´à¸¥à¸–ูà¸à¹‚หลดจาà¸à¸ªà¸µà¹ˆà¹à¸«à¸¥à¹ˆà¸‡ (ลำดับ: bundled user project plugin):</p>
|
|
27
|
+
<table>
|
|
28
|
+
<tr><th>à¹à¸«à¸¥à¹ˆà¸‡</th><th>พาธ</th><th>ขà¸à¸šà¹€à¸‚ต</th></tr>
|
|
29
|
+
<tr><td>Bundled</td><td>มาพร้à¸à¸¡ Clew</td><td>ผู้ใช้ทั้งหมด</td></tr>
|
|
30
|
+
<tr><td>ผู้ใช้</td><td><code>~/.claude/skills/<name>/SKILL.md</code></td><td>ส่วนตัว</td></tr>
|
|
31
|
+
<tr><td>โปรเจà¸à¸•์</td><td><code>.claude/skills/<name>/SKILL.md</code></td><td>ทีม (ใน repo)</td></tr>
|
|
32
|
+
<tr><td>ปลั๊à¸à¸à¸´à¸™</td><td>ภายในไดเรà¸à¸—à¸à¸£à¸µà¸›à¸¥à¸±à¹Šà¸à¸à¸´à¸™</td><td>ผู้ใช้ปลั๊à¸à¸à¸´à¸™</td></tr>
|
|
33
|
+
</table>
|
|
34
|
+
|
|
35
|
+
<h2>โครงสร้างสà¸à¸´à¸¥</h2>
|
|
36
|
+
<pre><code>my-skill/
|
|
37
|
+
SKILL.md # คำà¹à¸™à¸°à¸™à¸³à¸ªà¸à¸´à¸¥ (จำเป็น)
|
|
38
|
+
assets/ # ไม่บังคับ: สคริปต์, เà¸à¸à¸ªà¸²à¸£à¸à¹‰à¸²à¸‡à¸à¸´à¸‡, ตัวà¸à¸¢à¹ˆà¸²à¸‡</code></pre>
|
|
39
|
+
|
|
40
|
+
<h2>à¸à¸²à¸£à¸ˆà¸±à¸”à¸à¸²à¸£à¸ªà¸à¸´à¸¥</h2>
|
|
41
|
+
<pre><code>/skill # à¹à¸ªà¸”งสà¸à¸´à¸¥à¸—ี่มีหรืà¸à¸£à¸²à¸¢à¸¥à¸°à¹€à¸à¸µà¸¢à¸”สà¸à¸´à¸¥
|
|
42
|
+
/skills # à¹à¸ªà¸”งสà¸à¸´à¸¥à¸—ี่มี
|
|
43
|
+
/skill-name # เรียà¸à¹ƒà¸Šà¹‰à¸ªà¸à¸´à¸¥à¹‚ดยตรง</code></pre>
|
|
44
|
+
|
|
45
|
+
<h2>Frontmatter สà¸à¸´à¸¥</h2>
|
|
46
|
+
<p>สà¸à¸´à¸¥à¸£à¸à¸‡à¸£à¸±à¸š YAML frontmatter สำหรับข้à¸à¸¡à¸¹à¸¥à¹€à¸¡à¸•าà¹à¸¥à¸°à¸à¸²à¸£à¸•ั้งค่า:</p>
|
|
47
|
+
<pre><code>---
|
|
48
|
+
name: my-skill
|
|
49
|
+
description: ทำงานà¸à¸±à¸šà¸‚้à¸à¸„วามเฉพาะทาง
|
|
50
|
+
allowed-tools:
|
|
51
|
+
- Read
|
|
52
|
+
- Grep
|
|
53
|
+
disallowed-tools:
|
|
54
|
+
- Bash
|
|
55
|
+
- Edit
|
|
56
|
+
model: claude-sonnet-4-6
|
|
57
|
+
effort: high
|
|
58
|
+
user-invocable: true
|
|
59
|
+
context: fork
|
|
60
|
+
---</code></pre>
|
|
61
|
+
|
|
62
|
+
<h2>à¸à¸²à¸£à¸ªà¸£à¹‰à¸²à¸‡à¸ªà¸à¸´à¸¥</h2>
|
|
63
|
+
<pre><code>mkdir -p ~/.claude/skills/my-skill
|
|
64
|
+
touch ~/.claude/skills/my-skill/SKILL.md
|
|
65
|
+
# à¹à¸à¹‰à¹„ข SKILL.md ด้วย frontmatter à¹à¸¥à¸°à¸„ำà¹à¸™à¸°à¸™à¸³</code></pre>
|
|
66
|
+
|
|
67
|
+
<h2>สà¸à¸´à¸¥à¸£à¸°à¸”ับโปรเจà¸à¸•์</h2>
|
|
68
|
+
<p>วางสà¸à¸´à¸¥à¹ƒà¸™ <code>.claude/skills/</code> ภายใน repository ขà¸à¸‡à¸„ุณเพื่à¸à¹à¸Šà¸£à¹Œà¸à¸±à¸šà¸—ีม:</p>
|
|
69
|
+
<pre><code>.claude/
|
|
70
|
+
skills/
|
|
71
|
+
code-review/
|
|
72
|
+
SKILL.md
|
|
73
|
+
migration-workflow/
|
|
74
|
+
SKILL.md</code></pre>
|
|
75
|
+
|
|
76
|
+
<footer class="footer">
|
|
77
|
+
<span>Clew Code 0.2.13 — โà¸à¹€à¸žà¸™à¸‹à¸à¸£à¹Œà¸ª</span>
|
|
78
|
+
<div class="footer-links">
|
|
79
|
+
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
80
|
+
<a href="https://github.com/ClewCode/ClewCode/issues">ปัà¸à¸«à¸²</a>
|
|
81
|
+
</div>
|
|
82
|
+
</footer>
|
|
83
|
+
</main>
|
|
84
|
+
<nav class="toc-sidebar"></nav>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<script src="js/main.js"></script>
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|
|
90
|
+
|