add-plugin
Use when adding a whole new plugin to this marketplace, or deciding whether a request is a new plugin or content in one that exists: the search for an existing home, README Why it exists, spec, plugin.json, layout, install script, npm pins, dependencies. Triggers: add a plugin, new plugin, scaffold a plugin, where does this go, kam to patri, extend the marketplace, pridej plugin, udelej novy plugin. A verb or bin is add-tool, a hook is add-hook, a skill or agent is add-skill, shared code is add-lib; the quality bar of a prompt is skill-standards.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- add-plugin
- description
- Use when adding a whole new plugin to this marketplace, or deciding whether a request is a new plugin or content in one that exists: the search for an existing home, README Why it exists, spec, plugin.json, layout, install script, npm pins, dependencies. Triggers: add a plugin, new plugin, scaffold a plugin, where does this go, kam to patri, extend the marketplace, pridej plugin, udelej novy plugin. A verb or bin is add-tool, a hook is add-hook, a skill or agent is add-skill, shared code is add-lib; the quality bar of a prompt is skill-standards.
03 SKILL.md 正文
Add Plugin
Use this when a capability may deserve its own plugin, the install unit of this marketplace. Most additions are content in a plugin that exists, so the first job is to search and say which. The parts inside a plugin (verbs, hooks, skills) are built by their own builder skills; this one owns only the plugin around them.
Steps
- Search for the concept, not the phrasing: plugin and skill descriptions, spec requirement
titles, the READMEs' Why it exists,
qsm-memory search <concept>. An owner found: edit it in place. Say whether its Why it exists still holds (if not, the request is a new plugin), add the requirement and scenario to its spec, then build the part with add-tool, add-hook or add-skill; Done means below still holds. - A
qsm-builder lens tasks <plugin>task of kind new is the person's intent, not a decision about where it goes: run step 1 in full, show what you found, build after their yes, and close the task with what was created and the eval that ran. - Write the README's
## Why it exists, then the spec throughqsm-openspecspec-propose. If the why will not come, stop and ask. - Create
.claude-plugin/plugin.jsonand list the plugin in.claude-plugin/marketplace.json. - Add
scripts/install.tswhen the plugin ships a bin or anything compiled, andscripts/activate.ts(anActivationrun throughactivationMain) only when the plugin writes into the person's harness onqsm-setup activate. - Add
package.jsonandbun.lockonly if the plugin imports an npm package; the install base runsbun install --frozen-lockfilebefore it compiles. - Build the parts through their skills: a verb or
qsm.jsonis add-tool, a hook is add-hook, a skill or agent with its eval is add-skill, code a second plugin needs is add-lib.
Hard rules
- Search for an existing owner before any file exists; gate: review.
- Make a plugin only when it would be installed alone, and add a file, class or function only for one of the four reasons (testable alone, removes duplication, gives a missing thing one home, adds behaviour); gate: review.
- Open the README with
## Why it existsas its first##, at most five sentences: the gap, the stance, what it refuses to be, and when it would have no reason to exist; no features, verbs, install or file names, because it changes only when the reason does; gate:validate-why-it-exists. - Write the spec before the build; gate: review.
- Name
plugin.jsonafter its directory, author{"name": "qsm"}, noversionkey, and list it inmarketplace.jsonwith source./plugins/<name>, because without a version Claude Code names the cache after the commit andclaude plugin updatepicks up each commit; gate:validate-plugin-contracts. - Keep
qsm.json,INSTALL.mdandUSAGE.mdout unless the plugin ships a bin, and name the bin after the plugin; gate:validate-generated, otherwise review. - Make
scripts/install.tsoneexport const install = installScript(import.meta);call fromlib/install-base.ts, link into the user's bin directory only throughlinkBin, and letcliMainandactivationMainparse the arguments, because the base purges what an older version left and nothing else in an installer readsprocess.argv; gate: review. - Install a Python tool with
uv tool install, and never shell out to a sibling plugin's installer, because a needed plugin is a dependency; gate: review. - Import only root
lib/and the plugin itself, and reach another plugin only through its CLI verb or its noun; gate:validate-no-cross-plugin-import. Code two plugins share is add-lib. - Pin npm packages to one exact version, equal everywhere, and import only what the plugin's
package.jsondeclares; gate:validate-npm-packages. - Write each dependency in
plugin.jsondependenciesand as a- `<name>`: <reason>bullet under### Requirement: Dependenciesin the spec, with a scenario for what fails without it, and give it no fallback: without it the plugin failsmissingand names what to install; gate:validate-dependencies. - A plugin that replaces a core default names that default in its Why it exists and says why it is better, because the core must keep working alone; gate: review.
- Carry no history in the tree (deprecated marker, renamed-from note,
v2copy, date); gate: review. - Keep employer names, tenant ids and machine paths out, because the repository is public; gate: review.
Done means
All of these exit 0, and the output is read, not assumed:
mise exec -- bun run validate
mise exec -- bun run lint
mise exec -- bun run typecheck
mise exec -- bun test ./ ./.gates
Then the kind's own proof: bun run test:hooks when it has hooks, one real run of each new verb.
Last, hand the diff to the qsm-review strict-reviewer agent with the hard rules as the
checklist; the build is not done until every command passes and the review returns no blocker.
Say it in the reply
One line naming the unit and why: a new plugin and what nothing existing owns, or the plugin and file the content went into. Then each Done means command with pass or fail, and the review verdict.
04 同仓库更多 Skills
worktrunk
Use when working with git worktrees or wt (worktrunk): creating, switching, merging or removing a branch workspace, configuring wt (project or personal config, workflow hooks around switch, commit and merge, commit-message generation, hook approvals), or a wt command that failed. Triggers: make a worktree for this branch, wt merge, wt remove, configure wt, .config/wt.toml, run tests before merge, install deps when a worktree is created, wt hook, wt switch does not cd, nastav wt, wt nefunguje.
web-ladder
Use when a task needs something the internet holds: look something up, search the web, find which page answers a question, read a page, check a library's current docs, a page that needs a browser or shows a captcha. Runs one research loop: searxng search, keywords, cases, search again up to three times, Context7 for a library, Tavily when the keywords will not come, one page in a browser, the person on a wall. Triggers: look this up, search the web, find out online, read this page, check the docs, the page is blocked, captcha, najdi na webu, otevri tu stranku. A multi-round question goes to the qsm-web:web-research agent; one tool's commands are its own skill (searxng, browserbox, opensrc).
searxng
Use when running a web search through the person's own SearXNG instance with qsm-web searxng: choosing a search profile or engines, the instance, time range or language, reading its JSON, a suspended engine. Triggers: search with searxng, qsm-web searxng, search profile, niche search, academic search, IT search, vyhledavaci profil, searxng is down, which engines. The research loop around it is the web-ladder skill.
opensrc
Use when the source code of an open-source library or repository is needed on disk to read: the docs are silent, the behaviour must be checked in code, the version the project pins. Runs qsm-web opensrc get with a package spec or a repository address. Triggers: get the source of this package, clone this library, read the library's code, qsm-web opensrc, stahni zdrojak knihovny. Library docs are the Context7 skill; the research loop is the web-ladder skill.
browserbox
Use when one page needs a real browser through qsm-web browserbox: content built by script, a page that blocks plain fetching, a captcha to solve or hand to the person, a scripted sequence of clicks, a login the person is present for. Triggers: open it in a browser, the page is empty without JavaScript, captcha, take over the browser, run these steps on the page, log in to this site, browserbox. When to reach for a browser at all is the web-ladder skill.
usage
Use when the user wants a review of how they use Claude Code, or setup hands over after a first install: review my Claude Code usage, audit my setup, what does my setup cost, where did my tokens go, clean up my Claude Code, usage report, zkontroluj moje pouzivani. One walkthrough of four stages (machine, work, habits, extensions), questions after each, then one plan. A question about one topic (which hooks are slow) goes to that topic's skill; this session's tokens alone is `/qsm-usage`.