Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

21.7 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["3904"],{50439(e,s,l){l.r(s),l.d(s,{metadata:()=>i,default:()=>h,frontMatter:()=>t,contentTitle:()=>d,toc:()=>c,assets:()=>a});var i=JSON.parse('{"id":"reference/skills","title":"Skills","description":"Skills are Markdown-based extensions that teach Mercury how to do a specific task. Each skill is a single SKILL.md file in ~/.mercury/skills// and follows the Agent Skills specification.","source":"@site/docs/reference/skills.mdx","sourceDirName":"reference","slug":"/reference/skills","permalink":"/docs/reference/skills","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/reference/skills.mdx","tags":[],"version":"current","frontMatter":{"id":"skills","title":"Skills"},"sidebar":"docsSidebar","previous":{"title":"Scheduling","permalink":"/docs/reference/scheduling"},"next":{"title":"Token Saver Mode","permalink":"/docs/reference/token-saver"}}'),n=l(74848),r=l(28453);let t={id:"skills",title:"Skills"},d,a={},c=[{value:"Where skills live",id:"where-skills-live",level:2},{value:"Built-in skills",id:"built-in-skills",level:3},{value:"SKILL.md format",id:"skillmd-format",level:2},{value:"Required frontmatter",id:"required-frontmatter",level:3},{value:"Optional frontmatter",id:"optional-frontmatter",level:3},{value:"Installing skills",id:"installing-skills",level:2},{value:"From the CLI (recommended)",id:"from-the-cli-recommended",level:3},{value:"From the web dashboard",id:"from-the-web-dashboard",level:3},{value:"From Telegram",id:"from-telegram",level:3},{value:"From chat",id:"from-chat",level:3},{value:"Manually",id:"manually",level:3},{value:"Invoking a skill",id:"invoking-a-skill",level:2},{value:"API",id:"api",level:2},{value:"Self-made skills",id:"self-made-skills",level:2},{value:"Writing your own",id:"writing-your-own",level:2},{value:"Tips",id:"tips",level:3}];function o(e){let s={a:"a",blockquote:"blockquote",code:"code",em:"em",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:["Skills are Markdown-based extensions that teach Mercury how to do a specific task. Each skill is a single ",(0,n.jsx)(s.code,{children:"SKILL.md"})," file in ",(0,n.jsx)(s.code,{children:"~/.mercury/skills/<name>/"})," and follows the ",(0,n.jsx)(s.a,{href:"https://agentskills.io",children:"Agent Skills specification"}),"."]}),"\n",(0,n.jsx)(s.p,{children:"A skill bundles:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Frontmatter"})," describing the skill, its tags/intents, and which tools it is allowed to call."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Markdown instructions"})," that get injected into Mercury's context when the skill is invoked."]}),"\n",(0,n.jsxs)(s.li,{children:["Optional ",(0,n.jsx)(s.code,{children:"scripts/"})," and ",(0,n.jsx)(s.code,{children:"references/"})," subdirectories that the skill can read at runtime."]}),"\n"]}),"\n",(0,n.jsx)(s.h2,{id:"where-skills-live",children:"Where skills live"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"~/.mercury/skills/\n\u251C\u2500\u2500 _template/        # Seeded template you can copy\n\u251C\u2500\u2500 web-search/       # Seeded default skill\n\u2514\u2500\u2500 <your-skill>/\n    \u251C\u2500\u2500 SKILL.md\n    \u251C\u2500\u2500 scripts/      # optional\n    \u2514\u2500\u2500 references/   # optional\n"})}),"\n",(0,n.jsxs)(s.p,{children:["On first run, Mercury seeds a ",(0,n.jsx)(s.code,{children:"_template"})," directory and its built-in skills. Each built-in skill is installed once: if you edit it, your version is kept; if you delete it, it stays deleted (",(0,n.jsx)(s.code,{children:"~/.mercury/skills/.seeded-defaults.json"})," records what was installed)."]}),"\n",(0,n.jsx)(s.h3,{id:"built-in-skills",children:"Built-in skills"}),"\n",(0,n.jsxs)(s.table,{children:[(0,n.jsx)(s.thead,{children:(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.th,{children:"Skill"}),(0,n.jsx)(s.th,{children:"Use it for"})]})}),(0,n.jsxs)(s.tbody,{children:[(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"web-search"})}),(0,n.jsx)(s.td,{children:"Current events and anything on the web: focused searches, the best sources, answers with links."})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"computer-health"})}),(0,n.jsx)(s.td,{children:"Why the computer is slow or full, what's running, what uses a port, why a Docker container or service is down. It only reads until you agree to a fix."})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"tidy-files"})}),(0,n.jsxs)(s.td,{children:["Cleaning up, sorting, deduplicating or renaming many files. It shows the plan, asks, moves files into a dated ",(0,n.jsx)(s.code,{children:"_to-delete"})," folder instead of deleting, and tells you how to undo."]})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"data-analysis"})}),(0,n.jsx)(s.td,{children:"CSV, Excel and JSON: it inspects the columns, computes every number with a script, checks the totals, then summarizes and charts."})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"long-documents"})}),(0,n.jsx)(s.td,{children:"Long PDFs, logs, transcripts and books: it reads in sections and answers with page or line references."})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"documents"})}),(0,n.jsx)(s.td,{children:"Making or converting Word, PDF, slides, spreadsheets and Markdown with pandoc or a script, checking the file opens, and sending it back."})]})]})]}),"\n",(0,n.jsxs)(s.p,{children:["None of them can run commands or change files without asking: they don't list ",(0,n.jsx)(s.code,{children:"allowed-tools"})," (",(0,n.jsx)(s.code,{children:"web-search"})," lists only ",(0,n.jsx)(s.code,{children:"web_search"})," and ",(0,n.jsx)(s.code,{children:"fetch_url"}),")."]}),"\n",(0,n.jsxs)(s.p,{children:["Earlier versions also installed ",(0,n.jsx)(s.code,{children:"tweet-notifier"})," and ",(0,n.jsx)(s.code,{children:"screenshot"}),". If your copy of either is exactly as Mercury installed it, Mercury moves it to ",(0,n.jsx)(s.code,{children:"~/.mercury/skills/_retired-<name>/"})," on start. Nothing is deleted, and folders starting with ",(0,n.jsx)(s.code,{children:"_"})," aren't loaded. If you edited it, it's yours and stays where it is."]}),"\n",(0,n.jsxs)(s.p,{children:["Browse and install community skills at ",(0,n.jsx)(s.strong,{children:(0,n.jsx)(s.a,{href:"https://skills.mercuryagent.sh",children:"skills.mercuryagent.sh"})}),"."]}),"\n",(0,n.jsx)(s.h2,{id:"skillmd-format",children:"SKILL.md format"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-markdown",children:"---\nname: daily-digest\ndescription: Summarize the user's day from chat history and memory.\nversion: 0.1.0\ncategory: productivity\ncategories:\n  - productivity\n  - reporting\nintents:\n  - daily summary\n  - end of day report\ntags:\n  - digest\n  - summary\nallowed-tools:\n  - read_file\n  - list_dir\n  - web_search\n---\n\n# Daily Digest\n\n## What It Does\n\nGenerates a structured summary of the user's day from chat history and memory.\n\n## Instructions\n\n1. Read today's chat threads.\n2. Pull memories created or referenced today.\n3. Group by topic, list decisions made, and propose next-day priorities.\n"})}),"\n",(0,n.jsx)(s.h3,{id:"required-frontmatter",children:"Required frontmatter"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"name"})," \u2014 unique slug across installed skills"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"description"})," \u2014 one-line summary; it's what Mercury reads to decide when the skill fits"]}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"optional-frontmatter",children:"Optional frontmatter"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"version"})," \u2014 semver string"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"category"})," / ",(0,n.jsx)(s.code,{children:"categories"})," \u2014 used for grouping in the UI"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"intents"})," \u2014 example requests the skill is for (shown with the skill; Mercury doesn't route on them automatically)"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"tags"})," \u2014 arbitrary labels"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"allowed-tools"})," \u2014 the only tool names this skill may call when invoked (elevated permissions are granted from this list)"]}),"\n"]}),"\n",(0,n.jsxs)(s.p,{children:["Mercury uses ",(0,n.jsx)(s.strong,{children:"progressive disclosure"}),": only the frontmatter and a short summary are kept in context until the skill is actually invoked, at which point the full Markdown body is loaded. This keeps token usage low even with many skills installed."]}),"\n",(0,n.jsx)(s.h2,{id:"installing-skills",children:"Installing skills"}),"\n",(0,n.jsxs)(s.p,{children:["The fastest path is the ",(0,n.jsx)(s.a,{href:"https://skills.mercuryagent.sh",children:"Mercury Skills registry"})," \u2014 a community catalog of 126+ vetted skills across 23 categories. Every skill on the registry has a public detail page you should review before installing; skills run with elevated permissions when invoked."]}),"\n",(0,n.jsxs)(s.blockquote,{children:["\n",(0,n.jsxs)(s.p,{children:["See the ",(0,n.jsx)(s.a,{href:"../cli-commands/skills",children:"Skills command reference"})," for the complete CLI / in-chat / dashboard / Telegram surface in one place. The summary below is a quickstart."]}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"from-the-cli-recommended",children:"From the CLI (recommended)"}),"\n",(0,n.jsxs)(s.p,{children:["The ",(0,n.jsx)(s.code,{children:"mercury skills"})," command tree talks to the registry directly. No browser required."]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",children:'# Discover\nmercury skills categories                   # 23 categories\nmercury skills browse finance-legal         # paginated list, with --page / --limit\nmercury skills search "contract review"     # full-text search\n\n# Inspect before installing\nmercury skills view finance-legal/contract-review\nmercury skills view finance-legal/contract-review --web    # opens the registry page\nmercury skills view finance-legal/contract-review --raw    # prints raw SKILL.md\n\n# Install / update / remove\nmercury skills install finance-legal/contract-review\nmercury skills install <id1> <id2> <id3>                    # batch\nmercury skills install <id> --force                         # reinstall same version\nmercury skills install --from ./local-skill.md              # install from a local file or URL\nmercury skills update                                       # update all installed\nmercury skills update finance-legal/contract-review         # update one\nmercury skills remove finance-legal/contract-review\n\n# Observability\nmercury skills list                          # what\'s installed locally\nmercury skills info                          # registry stats\nmercury skills doctor                        # check registry reachability + cache\n'})}),"\n",(0,n.jsx)(s.p,{children:"Shared flags:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--json"})," \u2014 emit machine-readable output (useful for scripting)."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--registry <url>"})," \u2014 point at a different registry (also ",(0,n.jsx)(s.code,{children:"MERCURY_SKILLS_REGISTRY"}),")."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"-q, --quiet"})," \u2014 suppress progress output."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"-y, --yes"})," \u2014 skip confirmations."]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"Registry skills install into a nested layout to avoid name collisions:"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"~/.mercury/skills/\n\u251C\u2500\u2500 <category>/<slug>/SKILL.md     # registry skills (new)\n\u251C\u2500\u2500 _template/                     # seeded template\n\u251C\u2500\u2500 web-search/                    # legacy flat layout still works\n\u2514\u2500\u2500 .index.json                    # source of truth for `list` and `update`\n"})}),"\n",(0,n.jsxs)(s.p,{children:["The CLI never executes a skill's body during install \u2014 only writes the ",(0,n.jsx)(s.code,{children:"SKILL.md"})," to disk after validating its frontmatter. Always review the registry page (",(0,n.jsx)(s.code,{children:"mercury skills view <id> --web"}),") before installing."]}),"\n",(0,n.jsx)(s.h3,{id:"from-the-web-dashboard",children:"From the web dashboard"}),"\n",(0,n.jsxs)(s.p,{children:["Open ",(0,n.jsx)(s.strong,{children:"Skills"})," in the dashboard at ",(0,n.jsx)(s.code,{children:"http://127.0.0.1:6174/skills"}),"."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Install from registry"})," \u2014 paste a ",(0,n.jsx)(s.code,{children:"category/slug"})," id (e.g. ",(0,n.jsx)(s.code,{children:"finance-legal/contract-review"}),") and click Install. The toast reports the install status (",(0,n.jsx)(s.code,{children:"installed"}),", ",(0,n.jsx)(s.code,{children:"updated"}),", ",(0,n.jsx)(s.code,{children:"reinstalled"}),", ",(0,n.jsx)(s.code,{children:"already-installed"}),")."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Install from URL"})," \u2014 paste a URL pointing to a raw ",(0,n.jsx)(s.code,{children:"SKILL.md"}),". Mercury fetches it, validates the frontmatter, and saves it to disk."]}),"\n",(0,n.jsxs)(s.li,{children:["Use the ",(0,n.jsx)(s.strong,{children:"toggle"})," to activate or deactivate a skill without deleting it."]}),"\n",(0,n.jsxs)(s.li,{children:["Use the ",(0,n.jsx)(s.strong,{children:"trash icon"})," to delete a skill (removes its directory and its index entry)."]}),"\n",(0,n.jsxs)(s.li,{children:["The header has a ",(0,n.jsx)(s.strong,{children:"Browse skills.mercuryagent.sh"})," link that opens the registry in a new tab."]}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"from-telegram",children:"From Telegram"}),"\n",(0,n.jsxs)(s.p,{children:["If you've paired a Telegram bot, the ",(0,n.jsx)(s.code,{children:"/skills"})," command is available to every approved user. Install is admin-only."]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"/skills                            # list installed skills + counts\n/skills search <query>             # top 5 registry matches with their URLs\n/skills view <id>                  # title, version, description, registry URL\n/skills install <id>               # admin only \u2014 installs to ~/.mercury/skills/\n/skills remove <id>                # admin only\n"})}),"\n",(0,n.jsxs)(s.p,{children:["Every result includes the ",(0,n.jsx)(s.code,{children:"https://skills.mercuryagent.sh/skills/<id>"})," URL so you can review the skill on a real browser before installing it."]}),"\n",(0,n.jsx)(s.h3,{id:"from-chat",children:"From chat"}),"\n",(0,n.jsx)(s.p,{children:"You can also tell Mercury in any channel:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:['"Install skill from ',(0,n.jsx)(s.code,{children:"https://example.com/my-skill.md"}),'"']}),"\n",(0,n.jsx)(s.li,{children:"Or paste the SKILL.md content directly into a message and ask Mercury to install it."}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"manually",children:"Manually"}),"\n",(0,n.jsxs)(s.p,{children:["Drop a directory containing a valid ",(0,n.jsx)(s.code,{children:"SKILL.md"})," into ",(0,n.jsx)(s.code,{children:"~/.mercury/skills/"})," and Mercury will pick it up on its next discovery scan."]}),"\n",(0,n.jsx)(s.h2,{id:"invoking-a-skill",children:"Invoking a skill"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:'Ask in natural language: "Use the daily-digest skill", or just describe the task. Mercury sees every installed skill with its description and picks one when it fits.'}),"\n",(0,n.jsxs)(s.li,{children:["Pick it yourself: start your message with ",(0,n.jsx)(s.code,{children:"#daily-digest"}),"."]}),"\n",(0,n.jsxs)(s.li,{children:['Schedule it: "Remind me daily at 9am to run the daily-digest skill" \u2014 see the ',(0,n.jsx)(s.a,{href:"../integrations/web-dashboard",children:"Schedules"})," page."]}),"\n"]}),"\n",(0,n.jsxs)(s.p,{children:["When invoked, Mercury injects the skill's Markdown body into context as guidance, and the tools listed in ",(0,n.jsx)(s.code,{children:"allowed-tools"})," are granted elevated permissions for the duration of that turn."]}),"\n",(0,n.jsx)(s.h2,{id:"api",children:"API"}),"\n",(0,n.jsx)(s.p,{children:"The web dashboard talks to the skill loader through these endpoints:"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"GET    /api/skills                          # list installed skills with active state\nPOST   /api/skills/install                  # { url } \u2014 fetch and install from a URL\nPOST   /api/skills/install-from-registry    # { id, force? } \u2014 install by registry id\nPOST   /api/skills/:name/activate\nPOST   /api/skills/:name/deactivate\nDELETE /api/skills/:name\n"})}),"\n",(0,n.jsx)(s.h2,{id:"self-made-skills",children:"Self-made skills"}),"\n",(0,n.jsxs)(s.p,{children:["Mercury can write skills for itself. After a multi-step task it would do again \u2014 a recurring report, a conversion pipeline, a deploy, a site or device it operates \u2014 has worked end-to-end, it saves the procedure (exact commands, paths, checks, pitfalls) with ",(0,n.jsx)(s.code,{children:"create_skill"})," and tells you in one line:"]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"\u263F Skill saved: weekly-sales-report \u2014 say /skills self-made to review or remove it.\n"})}),"\n",(0,n.jsxs)(s.p,{children:["Next time, the task is one ",(0,n.jsx)(s.code,{children:"use_skill"})," away. These skills are deliberately kept apart from the ones you install:"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["They live in ",(0,n.jsx)(s.code,{children:"~/.mercury/skills/self-made/<name>/SKILL.md"})," with ",(0,n.jsx)(s.code,{children:"category: self-made"}),", ",(0,n.jsx)(s.code,{children:"origin: mercury"}),", ",(0,n.jsx)(s.code,{children:"made"}),", ",(0,n.jsx)(s.code,{children:"verified"}),", ",(0,n.jsx)(s.code,{children:"uses"})," and ",(0,n.jsx)(s.code,{children:"last_used"})," in the frontmatter."]}),"\n",(0,n.jsxs)(s.li,{children:["They are listed under their own ",(0,n.jsx)(s.strong,{children:"Self-made"})," label and count as ",(0,n.jsx)(s.em,{children:"unverified"})," until used again; Mercury is told to trust the result, not the text, and to update the skill when a step fails."]}),"\n",(0,n.jsx)(s.li,{children:"Mercury never saves one for a one-off, for anything a single tool does, for anything it did not verify, or with credentials inside; a self-made skill never shadows an installed one with the same name."}),"\n",(0,n.jsxs)(s.li,{children:["Unused ones go ",(0,n.jsx)(s.strong,{children:"dormant"})," after 30 days (disabled, never deleted) and the shelf is capped at 40 live skills."]}),"\n",(0,n.jsx)(s.li,{children:"Only your own sessions can create them \u2014 not bots, not channel members."}),"\n"]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{children:"/skills self-made                       # list, with use counts and dormancy\n/skills self-made enable <name>\n/skills self-made disable <name>\n/skills self-made remove <name>\n"})}),"\n",(0,n.jsxs)(s.p,{children:["To keep one for good, move its folder out of ",(0,n.jsx)(s.code,{children:"self-made/"})," and drop the ",(0,n.jsx)(s.code,{children:"origin"}),"/",(0,n.jsx)(s.code,{children:"uses"})," fields \u2014 it becomes an ordinary skill."]}),"\n",(0,n.jsx)(s.h2,{id:"writing-your-own",children:"Writing your own"}),"\n",(0,n.jsx)(s.p,{children:"Copy the seeded template:"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",children:"cp -r ~/.mercury/skills/_template ~/.mercury/skills/my-skill\n$EDITOR ~/.mercury/skills/my-skill/SKILL.md\n"})}),"\n",(0,n.jsxs)(s.p,{children:["Edit the frontmatter (especially ",(0,n.jsx)(s.code,{children:"name"}),", ",(0,n.jsx)(s.code,{children:"description"}),", ",(0,n.jsx)(s.code,{children:"intents"}),", and ",(0,n.jsx)(s.code,{children:"allowed-tools"}),"), rewrite the Markdown body, and the skill will be available on Mercury's next discovery scan. From the web dashboard, hit the refresh icon on the Skills page."]}),"\n",(0,n.jsx)(s.h3,{id:"tips",children:"Tips"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Keep instructions concise \u2014 every token in the body is loaded when the skill is invoked."}),"\n",(0,n.jsxs)(s.li,{children:["Only list the tools you actually need in ",(0,n.jsx)(s.code,{children:"allowed-tools"})," (least-privilege)."]}),"\n",(0,n.jsxs)(s.li,{children:["Write a ",(0,n.jsx)(s.code,{children:"description"})," that says plainly when the skill should be used \u2014 that's what Mercury reads to decide."]}),"\n",(0,n.jsxs)(s.li,{children:["Use ",(0,n.jsx)(s.code,{children:"scripts/"})," for reusable shell snippets and ",(0,n.jsx)(s.code,{children:"references/"})," for data files the skill can read."]}),"\n"]})]})}function h(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},28453(e,s,l){l.d(s,{R:()=>t,x:()=>d});var i=l(96540);let n={},r=i.createContext(n);function t(e){let s=i.useContext(r);return i.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:t(e.components),i.createElement(r.Provider,{value:s},e.children)}}}]);