dsh-mnemon-source-skills 0.0.0-stage → 0.5.2

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-external contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,61 @@
1
- # Temporary Holding Version
1
+ # dsh-mnemon-source-skills
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Skills Source of [dsh-mnemon](https://github.com/omdsh-dev/dsh-mnemon), experimental: one place for the DSH skills a workspace can load, the data their self-evolution keeps, their tests, and a market of more skills.
4
+
5
+ - **Skills.** Every `SKILL.md` in `<project>/.dsh/skills`, `<project>/.agents/skills`, `~/.dsh/skills` and `~/.agents/skills`, read with DSH's own rules and precedence. Switch a skill off for the model or the `/` menu (DSH's `disable-model-invocation` and `user-invocable` keys), use it in the conversation, edit it, restore an earlier version, or move it to the trash. Every write is fenced by the file's hash and leaves a version.
6
+ - **Evolution.** With self-evolution on, the dsh-mnemon Host records each conversation's steps as turns end and reviews it in the background once it has earned it. A suggestion names the steps it rests on; a task Agent drafts the new `SKILL.md`, which is backtested against the current version before you adopt it. This Source admits suggestions by confidence, dismissal, expiry and per-conversation limits, and keeps the ledger.
7
+ - **Evidence.** The conversations reviews read, as numbered steps with the review's notes and secrets redacted; pin them, delete them, or make test cases from chosen steps.
8
+ - **Evals.** Each skill's cases, from reviews, evidence or by hand, and its backtest runs. A backtest is a simulation: an executor follows the skill without tools, and a judge grades each check. Mark cases that require image input as `requiresVision`; the supporting Host records them as **Not measured**, without model calls or scores, and excludes them from baseline comparisons.
9
+ - **Market.** Skills from sources: a featured catalog shipped in `market/official.json` and refreshed from the repository; skills.sh, the open index the `skills` CLI searches, queried as the user types; any GitHub repository (every `SKILL.md` in it, plugin marketplaces included); any site publishing an [Agent Skills discovery index](https://github.com/cloudflare/agent-skills-discovery-rfc) at `/.well-known/agent-skills/` (digests checked, `.tar.gz` and `.zip` artifacts unpacked safely); and catalogs in the format below. Installing previews the skill, fetches its whole folder from its upstream, checks it against DSH's rules and records where it came from, so an update can be offered.
10
+
11
+ The Source never calls a model and never joins a model View; skills reach the model through DSH's own `skill` tool. The Memory System shows it as the **Skills** page, which can also become a sidebar entry of its own. The [Skills guide](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/skills.md) ([中文](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/skills.md)) walks through the page.
12
+
13
+ ## Configuration
14
+
15
+ | Field | Default | Meaning |
16
+ |---|---|---|
17
+ | `dataDir` | the Host's storage root | Where `skills/` (ledger, evals, trajectories, versions, market, trash) is kept |
18
+ | `dshHome` | `$DSH_HOME`, then `~/.dsh` | DSH's home; its `skills` folder is read |
19
+ | `agentsHome` | `$DSH_AGENTS_HOME`, then `~/.agents` | The shared agents home; its `skills` folder is read |
20
+
21
+ Self-evolution, its review parameters, the line under each turn and the sidebar entry are dsh-mnemon settings, under `skills` in its configuration, edited on this component's page under **Plugins → dsh-mnemon**; see [Skills settings](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/reference/configuration.md#skills-settings). The Host passes the admission rules with each review, so this Source keeps no settings of its own.
22
+
23
+ ## A catalog
24
+
25
+ A team can publish its own curated list as one JSON file, by URL or path:
26
+
27
+ ```json
28
+ {
29
+ "version": 1,
30
+ "id": "team",
31
+ "name": { "en": "Team skills", "zh-CN": "团队技能" },
32
+ "categories": [{ "id": "docs-writing", "label": { "en": "Writing", "zh-CN": "文档写作" } }],
33
+ "skills": [{
34
+ "name": "release-notes",
35
+ "title": { "en": "Release notes" },
36
+ "description": { "en": "…", "zh-CN": "…" },
37
+ "category": "docs-writing", "author": "…", "license": "MIT", "version": "1.0.0",
38
+ "source": { "type": "github", "repo": "org/repo", "path": "skills/release-notes", "ref": "main" }
39
+ }]
40
+ }
41
+ ```
42
+
43
+ A source is a GitHub folder, a URL to one `SKILL.md`, or a folder relative to a local catalog file. Entries that cannot be installed are left out when the catalog is read.
44
+
45
+ ## Storage files
46
+
47
+ Under the storage root, `skills/` holds `ledger.json` (suggestions, drafts, reviews, versions and installs), `evals.json` (cases and runs), `trajectories/` (recorded conversations), `versions/` (earlier `SKILL.md` files), `market/` (added sources and their cached lists) and `trash/`. It is written under the storage lock with atomic replacement and is not part of a Mnemon Pack. See the [storage model](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/reference/storage-model.md#skills).
48
+
49
+ `requiresVision` is optional; omitting it while editing preserves the existing marker, and explicit `false` clears it. Unmeasured results keep the ungraded `error` verdict plus `unmeasuredReason: 'requires-vision'` so older score readers exclude them too. Existing records need no migration. Upgrade the Host together with this Source; before downgrading the Host, disable image-dependent cases because older executors do not read the marker. Historical runs are not rewritten.
50
+
51
+ ## Trash management
52
+
53
+ The scoped management API exposes `trash-list` (`trash` is an alias), `trash-restore-preview`, `trash-restore`, `trash-purge` and `trash-empty`. Restore inputs use an entry `id`, an optional selected `root` and `name`; replacement also requires `replace: true` and the current conflict's `expectedHash` from the preview. Mutations retain the Source's confirmation and revision checks. Optional sidecars record the original project and path; legacy entries require an explicit destination when their origin is unknown.
54
+
55
+ ## Source-owned UI and tests
56
+
57
+ The optional `./client` entry is an ordinary DSH Client plugin. This package owns its pages and `presentation/` resources and uses `dsh-mnemon/client` for the shared frame and scoped management client. It never receives a Host Context, credentials or another Source's controller.
58
+
59
+ From a source checkout, install the declared dependencies and run `pnpm verify` to check the Source's behavior, the market's parsers and archive reader, and Source-backed page interactions.
60
+
61
+ [Plugin development](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md) · [中文指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/extensions.md)