Files
Memoh/assets/getting-started_skills.md.EnvAtRea.js
T
2026-03-01 10:01:41 +00:00

9 lines
4.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as s,o as i,c as t,ag as e}from"./chunks/framework.ePeAWSvT.js";const c=JSON.parse('{"title":"Bot Skills","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/skills.md","filePath":"getting-started/skills.md","lastUpdated":1772359263000}'),l={name:"getting-started/skills.md"};function n(o,a,r,d,h,k){return i(),t("div",null,[...a[0]||(a[0]=[e(`<h1 id="bot-skills" tabindex="-1">Bot Skills <a class="header-anchor" href="#bot-skills" aria-label="Permalink to &quot;Bot Skills&quot;"></a></h1><p>Skills are the &quot;personality&quot; and &quot;capabilities&quot; of a Memoh Bot. They define how the bot should behave and what tools it can use.</p><h2 id="concept-skills-as-markdown" tabindex="-1">Concept: Skills as Markdown <a class="header-anchor" href="#concept-skills-as-markdown" aria-label="Permalink to &quot;Concept: Skills as Markdown&quot;"></a></h2><p>A <strong>Skill</strong> is represented as a Markdown document with YAML frontmatter. These files are stored within the bot&#39;s container and parsed into tools and personality traits.</p><h3 id="example-skill-structure" tabindex="-1">Example Skill Structure <a class="header-anchor" href="#example-skill-structure" aria-label="Permalink to &quot;Example Skill Structure&quot;"></a></h3><div class="language-yaml vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">---</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">name</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">coder-skill</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">description</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">Enables advanced coding capabilities and tool use.</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">---</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Coder Skill</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">As a coder, you always follow best practices and write clean, documented code.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> </span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">You can use the \`edit_file\` and \`run_command\` tools to assist the user.</span></span></code></pre></div><hr><h2 id="managing-skills" tabindex="-1">Managing Skills <a class="header-anchor" href="#managing-skills" aria-label="Permalink to &quot;Managing Skills&quot;"></a></h2><p>Manage your bot&#39;s skill set from the <strong>Skills</strong> tab in the Bot Detail page.</p><h3 id="adding-a-skill" tabindex="-1">Adding a Skill <a class="header-anchor" href="#adding-a-skill" aria-label="Permalink to &quot;Adding a Skill&quot;"></a></h3><ol><li>Click <strong>Add Skill</strong>.</li><li>A dialog with a basic template will open in the <strong>Monaco Editor</strong>.</li><li>Fill in the <code>name</code>, <code>description</code>, and content.</li><li>Click <strong>Save</strong>.</li></ol><h3 id="editing-and-deleting" tabindex="-1">Editing and Deleting <a class="header-anchor" href="#editing-and-deleting" aria-label="Permalink to &quot;Editing and Deleting&quot;"></a></h3><ul><li><strong>Edit</strong>: Click the pencil icon next to a skill card to modify its content or frontmatter.</li><li><strong>Delete</strong>: Click the trash icon to remove a skill from the bot&#39;s container.</li></ul><hr><h2 id="how-bots-use-skills" tabindex="-1">How Bots Use Skills <a class="header-anchor" href="#how-bots-use-skills" aria-label="Permalink to &quot;How Bots Use Skills&quot;"></a></h2><ul><li>Skills are injected into the bot&#39;s system prompt during conversation.</li><li>The YAML frontmatter helps the system categorize and manage the skills as tools.</li><li>Modular skills allow you to easily &quot;swap&quot; behaviors or capabilities without rewriting the entire bot.</li></ul>`,16)])])}const g=s(l,[["render",n]]);export{c as __pageData,g as default};