@lythos/skill-deck 0.1.0 → 0.1.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 +21 -0
- package/README.md +41 -0
- package/package.json +9 -3
- package/src/link.ts +11 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lythos-labs
|
|
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
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @lythos/skill-deck
|
|
2
|
+
|
|
3
|
+
> Declarative skill deck governance. Reconcile declared skills against your cold pool via symlinks.
|
|
4
|
+
|
|
5
|
+
Part of the [lythoskill](https://github.com/lythos-labs/lythoskill) meta-skill ecosystem.
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
Manages your agent's working set of skills. You declare which skills you want in `skill-deck.toml`; `deck link` creates symlinks from the cold pool to `.claude/skills/`. Supports deny-by-default isolation, max_cards budgeting, transient expiry, and managed directory overlap detection.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bun add -d @lythos/skill-deck
|
|
15
|
+
# or
|
|
16
|
+
bunx @lythos/skill-deck <command>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Link declared skills to working set
|
|
23
|
+
bunx @lythos/skill-deck link
|
|
24
|
+
|
|
25
|
+
# Link with custom deck file
|
|
26
|
+
bunx @lythos/skill-deck link --deck ./my-deck.toml
|
|
27
|
+
|
|
28
|
+
# Show current deck status
|
|
29
|
+
bunx @lythos/skill-deck status
|
|
30
|
+
|
|
31
|
+
# Migrate from old deck format
|
|
32
|
+
bunx @lythos/skill-deck migrate
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Architecture
|
|
36
|
+
|
|
37
|
+
This is the **Starter** layer of the thin-skill pattern. The agent-visible **Skill** layer lives in `packages/lythoskill-deck/skill/` and is built to `skills/lythoskill-deck/`.
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lythos/skill-deck",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Declarative skill deck governance — cold pool, working set, deny-by-default",
|
|
5
|
+
"license": "MIT",
|
|
4
6
|
"type": "module",
|
|
5
7
|
"bin": {
|
|
6
|
-
"lythoskill-deck": "
|
|
8
|
+
"lythoskill-deck": "src/cli.ts"
|
|
7
9
|
},
|
|
8
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
9
15
|
"dependencies": {
|
|
10
16
|
"@iarna/toml": "^2.2.5",
|
|
11
17
|
"zod": "^4.3.6"
|
package/src/link.ts
CHANGED
|
@@ -23,14 +23,8 @@ import {
|
|
|
23
23
|
// ── 路径工具 ────────────────────────────────────────────────
|
|
24
24
|
|
|
25
25
|
function findDeckToml(from: string): string | null {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const p = join(dir, "skill-deck.toml");
|
|
29
|
-
if (existsSync(p)) return p;
|
|
30
|
-
const parent = dirname(dir);
|
|
31
|
-
if (parent === dir) break;
|
|
32
|
-
dir = parent;
|
|
33
|
-
}
|
|
26
|
+
const p = join(from, "skill-deck.toml");
|
|
27
|
+
if (existsSync(p)) return p;
|
|
34
28
|
return null;
|
|
35
29
|
}
|
|
36
30
|
|
|
@@ -127,7 +121,15 @@ const DECK_PATH = cliDeck
|
|
|
127
121
|
: findDeckToml(process.cwd()) || resolve("skill-deck.toml");
|
|
128
122
|
|
|
129
123
|
if (!existsSync(DECK_PATH)) {
|
|
130
|
-
console.error(`❌ ${
|
|
124
|
+
console.error(`❌ skill-deck.toml not found in ${process.cwd()}`);
|
|
125
|
+
console.error(`\nCreate one:`);
|
|
126
|
+
console.error(` cat > skill-deck.toml <<'EOF'`);
|
|
127
|
+
console.error(` [deck]`);
|
|
128
|
+
console.error(` max_cards = 10`);
|
|
129
|
+
console.error(` \n [tool]`);
|
|
130
|
+
console.error(` skills = ["lythoskill-deck"]`);
|
|
131
|
+
console.error(` EOF`);
|
|
132
|
+
console.error(`\nOr specify a path: bunx @lythos/skill-deck link --deck /path/to/deck.toml`);
|
|
131
133
|
process.exit(1);
|
|
132
134
|
}
|
|
133
135
|
|