Introduction¶
DSH’s “everything is a plugin” philosophy means that as the number of plugins grows, manually managing groups becomes increasingly time-consuming. After installing a new plugin, you need to find the corresponding group in the plugin market and move it there manually. Repeating this action will gradually become a burden.
dsh-auto-group is a workflow plugin that continuously monitors newly installed plugins and automatically places them into the corresponding groups in dshmarket based on their capabilities, keeping the plugin list organized.
Plugin Overview¶
dsh-auto-group was developed by maintainer inaflash123 and is categorized as a “workflow” plugin. It compares the local plugin list with the grouping state in the plugin market, and automatically assigns newly installed, ungrouped plugins to suggested groups, eliminating the need for manual adjustments after each installation.
Core Functionality¶
The plugin checks the local profile’s package.json against the plugin market’s .dsh-market/state.json every 90 seconds, identifies plugins that are not yet in any group, and automatically categorizes them based on their capabilities.
Here are some examples:
dsh-latex-formula-editor → Learning & Computation
dsh-browser-cdp → Browser & Networking
dsh-pet → Appearance
something-unrecognisable → Uncategorized
The plugin only adds new plugins to groups; it does not modify existing groups or move already-grouped plugins. This means any manually adjusted groups will be preserved. The plugin is responsible only for “adding,” not “rebuilding.”
Classification Rules¶
Plugin names are split into individual tokens, which are then matched exactly against a weighted table:
- Specific nouns (e.g.,
latex,cdp,viewer) have a weight of 3 - Domain terms (e.g.,
memory,image,browser) have a weight of 2 - Generic terms (e.g.,
web,pro,auto) have a weight of 1
The plugin is assigned to the group with the highest matching weight. In case of a tie, a fixed group ordering determines the result, making the outcome predictable.
Exact matching is a deliberate design choice. Using substring matching against the full name and description would produce false positives: for example, ego would match “category,” im would match “image-viewer,” and model would match the description text of some approval plugin.
If no token in the name matches, the plugin checks whether the description contains a set of specific keywords (e.g., “infinite canvas,” “web search”). If it still cannot be identified, the plugin places it in the “Uncategorized” group rather than making a random guess.
Installation and Activation¶
Before installing, make sure dshmarket is already installed; otherwise, the plugin will be unable to locate the state.json file.
Install using the following command:
dsh plugin --profile <your-profile> add link:/path/to/dsh-auto-group
Or install from GitHub:
dsh plugin --profile <your-profile> add github:inaflash123/dsh-auto-group
After installation, the plugin starts running automatically. To disable it, simply toggle the plugin off. Once disabled, previously written groups remain unchanged, and the timer is cleared so it will no longer modify state.json.
Configuration¶
The plugin provides the following configuration options:
| Field | Default | Description |
|---|---|---|
profile |
Auto-detected | Target profile. When empty, it automatically locates the profile containing .dsh-market/state.json and listing dshmarket in its dependencies; if multiple qualify, the one with the most recently modified state file is selected. |
intervalSeconds |
90 |
Check interval, minimum value is 10. |
Use Cases and Notes¶
dsh-auto-group is ideal for developers who frequently install new plugins and want to keep the plugin market groups organized. It reduces manual work through automated classification while respecting group adjustments users have already made.
The plugin runs with the privileges of the current DSH process. Please ensure you install it from trusted sources. It is recommended to review the plugin source code and license (MIT) before installation to confirm its behavior meets your expectations.
Summary¶
dsh-auto-group continuously listens for new plugins and automatically categorizes them by capability, keeping the plugin list organized upon installation. It does not override manual adjustments—only adding new entries when necessary—making it well-suited for developers who want to reduce repetitive work.
Plugin details and source code:
- Directory page: https://www.skillhub.cn/plugins/inaflash123/dsh-auto-group
- GitHub: https://github.com/inaflash123/dsh-auto-group