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.
Files changed (52) hide show
  1. package/dist/main.js +2596 -2527
  2. package/docs/architecture.html +148 -148
  3. package/docs/architecture.th.html +79 -79
  4. package/docs/clew-code-architecture.html +6 -6
  5. package/docs/commands.html +225 -224
  6. package/docs/commands.th.html +132 -131
  7. package/docs/configuration.html +147 -147
  8. package/docs/configuration.th.html +108 -108
  9. package/docs/daemon.html +129 -129
  10. package/docs/daemon.th.html +73 -73
  11. package/docs/features/bridge-mode.html +99 -99
  12. package/docs/features/bridge-mode.th.html +90 -90
  13. package/docs/features/evals.html +182 -182
  14. package/docs/features/evals.th.html +90 -90
  15. package/docs/features/peer.html +178 -178
  16. package/docs/features/searxng-search.html +151 -151
  17. package/docs/features/searxng-search.th.html +95 -95
  18. package/docs/features/sentry-setup.html +157 -157
  19. package/docs/features/sentry-setup.th.html +97 -97
  20. package/docs/index.html +298 -299
  21. package/docs/index.th.html +292 -292
  22. package/docs/installation.html +105 -105
  23. package/docs/installation.th.html +105 -105
  24. package/docs/internals/growthbook-ab-testing.html +113 -113
  25. package/docs/internals/growthbook-ab-testing.th.html +81 -81
  26. package/docs/internals/hidden-features.html +175 -149
  27. package/docs/internals/hidden-features.th.html +135 -109
  28. package/docs/loop.html +181 -181
  29. package/docs/loop.th.html +227 -227
  30. package/docs/mcp.html +247 -247
  31. package/docs/mcp.th.html +207 -207
  32. package/docs/models.html +110 -111
  33. package/docs/models.th.html +61 -61
  34. package/docs/peer.html +236 -236
  35. package/docs/peer.th.html +280 -280
  36. package/docs/permission-model.html +102 -102
  37. package/docs/permission-model.th.html +67 -67
  38. package/docs/plugins.html +102 -102
  39. package/docs/plugins.th.html +79 -79
  40. package/docs/providers.html +126 -126
  41. package/docs/providers.th.html +80 -80
  42. package/docs/quick-start.html +93 -93
  43. package/docs/quick-start.th.html +1 -1
  44. package/docs/research-memory.html +82 -82
  45. package/docs/research-memory.th.html +72 -72
  46. package/docs/skills.html +117 -117
  47. package/docs/skills.th.html +90 -90
  48. package/docs/tools.html +170 -170
  49. package/docs/tools.th.html +84 -84
  50. package/docs/troubleshooting.html +106 -106
  51. package/docs/troubleshooting.th.html +85 -85
  52. 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 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
-
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/&lt;name&gt;/SKILL.md</code></td><td>Personal</td></tr>
31
- <tr><td>Project</td><td><code>.claude/skills/&lt;name&gt;/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
-
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/&lt;name&gt;/SKILL.md</code></td><td>Personal</td></tr>
31
+ <tr><td>Project</td><td><code>.claude/skills/&lt;name&gt;/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
+
@@ -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/&lt;name&gt;/SKILL.md</code></td><td>ส่วนตัว</td></tr>
31
- <tr><td>โปรเจกต์</td><td><code>.claude/skills/&lt;name&gt;/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 v0.2.7 — โอเพนซอร์ส</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
-
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/&lt;name&gt;/SKILL.md</code></td><td>ส่วนตัว</td></tr>
31
+ <tr><td>โปรเจกต์</td><td><code>.claude/skills/&lt;name&gt;/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
+