skillchain-compiler 0.3.0__tar.gz → 0.3.2__tar.gz
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.
- skillchain_compiler-0.3.2/LICENSE +21 -0
- skillchain_compiler-0.3.2/PKG-INFO +83 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/README.md +18 -4
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/pyproject.toml +4 -2
- skillchain_compiler-0.3.2/skillchain_compiler.egg-info/PKG-INFO +83 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain_compiler.egg-info/SOURCES.txt +1 -0
- skillchain_compiler-0.3.0/PKG-INFO +0 -5
- skillchain_compiler-0.3.0/skillchain_compiler.egg-info/PKG-INFO +0 -5
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/setup.cfg +0 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain.py +0 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain_compiler.egg-info/dependency_links.txt +0 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain_compiler.egg-info/entry_points.txt +0 -0
- {skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain_compiler.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sancovp
|
|
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.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skillchain-compiler
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Compose Claude Code skills into a validated, packaged chain
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Dynamic: license-file
|
|
10
|
+
|
|
11
|
+
# skillchain — a skillchain compiler
|
|
12
|
+
|
|
13
|
+
Compose Claude Code **skills** into a validated, packaged **chain**.
|
|
14
|
+
|
|
15
|
+
A skillchain is an ordered list of steps of two kinds:
|
|
16
|
+
- **skill** — invoke a named skill (the compiler validates it exists on disk).
|
|
17
|
+
- **cor** — an **Attention-Chain / Chain-of-Reasoning** bridge between skills: an explicit
|
|
18
|
+
reasoning step that routes one skill's output into the next.
|
|
19
|
+
|
|
20
|
+
The compiler **(1)** indexes every skill under `~/.claude/skills` + `~/.claude/plugins`,
|
|
21
|
+
**(2)** validates every referenced skill exists (errors listing any missing), **(3)** wires
|
|
22
|
+
the CoR bridges, **(4)** exports a **skill package** (`<out>/<name>/SKILL.md` + `chain.json`)
|
|
23
|
+
that, when invoked, executes the chain in order.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install skillchain-compiler
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Import it as `skillchain`; it installs the `skillchain` command and depends on nothing outside the standard library. It
|
|
32
|
+
is one of the fifteen packages of [ChainCompiler](https://github.com/sancovp/chaincompiler), where
|
|
33
|
+
[`sccc`](https://pypi.org/project/sccc/) writes its rollups through it; to work on it, clone the repository and run
|
|
34
|
+
`./install.sh`, which installs all fifteen editable.
|
|
35
|
+
|
|
36
|
+
## Use
|
|
37
|
+
|
|
38
|
+
Write a chain in the `.chain` format below as `my_chain.chain`, then:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
skillchain list # list indexed skills
|
|
42
|
+
skillchain validate my_chain.chain
|
|
43
|
+
skillchain compile my_chain.chain --out dist
|
|
44
|
+
skillchain compile my_chain.chain --install # -> ~/.claude/skills
|
|
45
|
+
```
|
|
46
|
+
`--install` writes the compiled package straight into `~/.claude/skills/<name>/` so it becomes
|
|
47
|
+
an invokable skill (after a reload). Otherwise it lands in `./dist/<name>/`.
|
|
48
|
+
|
|
49
|
+
## Spec formats
|
|
50
|
+
Two interchangeable formats; both parse to the same internal spec.
|
|
51
|
+
|
|
52
|
+
### `.chain` text DSL (ergonomic)
|
|
53
|
+
```
|
|
54
|
+
name: my_chain
|
|
55
|
+
description: one line
|
|
56
|
+
> skill-a : args for skill-a # '>' = skill step (skill : args)
|
|
57
|
+
= result_a # '=' = capture last result as a var
|
|
58
|
+
~ Given {result_a}, reason about X, then produce Y. # '~' = CoR / AttentionChain bridge
|
|
59
|
+
> skill-b : use {result_a} and Y
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### `.json` (canonical)
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"name": "my_chain",
|
|
66
|
+
"description": "one line",
|
|
67
|
+
"steps": [
|
|
68
|
+
{"skill": "skill-a", "args": "args for skill-a", "capture": "result_a"},
|
|
69
|
+
{"cor": "Given {result_a}, reason about X, then produce Y."},
|
|
70
|
+
{"skill": "skill-b", "args": "use {result_a} and Y"}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## What "compile" produces
|
|
76
|
+
`<out>/<name>/SKILL.md` — a real skill whose body is the ordered orchestration: each skill
|
|
77
|
+
step says *"invoke skill X with …, capture as …"*, each CoR step is an explicit reason-then-carry
|
|
78
|
+
bridge, and the header lists the validated dependencies. Plus `chain.json`, the canonical spec.
|
|
79
|
+
|
|
80
|
+
## Validation guarantees
|
|
81
|
+
`compile` refuses to emit a package if **any** referenced skill is missing — so a compiled
|
|
82
|
+
chain only ever composes skills that actually exist. `validate` exits non-zero on any problem
|
|
83
|
+
(missing skill, no name, malformed step), so it can gate CI.
|
|
@@ -12,12 +12,26 @@ The compiler **(1)** indexes every skill under `~/.claude/skills` + `~/.claude/p
|
|
|
12
12
|
the CoR bridges, **(4)** exports a **skill package** (`<out>/<name>/SKILL.md` + `chain.json`)
|
|
13
13
|
that, when invoked, executes the chain in order.
|
|
14
14
|
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install skillchain-compiler
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Import it as `skillchain`; it installs the `skillchain` command and depends on nothing outside the standard library. It
|
|
22
|
+
is one of the fifteen packages of [ChainCompiler](https://github.com/sancovp/chaincompiler), where
|
|
23
|
+
[`sccc`](https://pypi.org/project/sccc/) writes its rollups through it; to work on it, clone the repository and run
|
|
24
|
+
`./install.sh`, which installs all fifteen editable.
|
|
25
|
+
|
|
15
26
|
## Use
|
|
27
|
+
|
|
28
|
+
Write a chain in the `.chain` format below as `my_chain.chain`, then:
|
|
29
|
+
|
|
16
30
|
```bash
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
skillchain list # list indexed skills
|
|
32
|
+
skillchain validate my_chain.chain
|
|
33
|
+
skillchain compile my_chain.chain --out dist
|
|
34
|
+
skillchain compile my_chain.chain --install # -> ~/.claude/skills
|
|
21
35
|
```
|
|
22
36
|
`--install` writes the compiled package straight into `~/.claude/skills/<name>/` so it becomes
|
|
23
37
|
an invokable skill (after a reload). Otherwise it lands in `./dist/<name>/`.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "skillchain-compiler"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Compose Claude Code skills into a validated, packaged chain"
|
|
9
|
+
readme = "README.md"
|
|
9
10
|
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
10
12
|
|
|
11
13
|
[project.scripts]
|
|
12
14
|
skillchain = "skillchain:main"
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skillchain-compiler
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Compose Claude Code skills into a validated, packaged chain
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Dynamic: license-file
|
|
10
|
+
|
|
11
|
+
# skillchain — a skillchain compiler
|
|
12
|
+
|
|
13
|
+
Compose Claude Code **skills** into a validated, packaged **chain**.
|
|
14
|
+
|
|
15
|
+
A skillchain is an ordered list of steps of two kinds:
|
|
16
|
+
- **skill** — invoke a named skill (the compiler validates it exists on disk).
|
|
17
|
+
- **cor** — an **Attention-Chain / Chain-of-Reasoning** bridge between skills: an explicit
|
|
18
|
+
reasoning step that routes one skill's output into the next.
|
|
19
|
+
|
|
20
|
+
The compiler **(1)** indexes every skill under `~/.claude/skills` + `~/.claude/plugins`,
|
|
21
|
+
**(2)** validates every referenced skill exists (errors listing any missing), **(3)** wires
|
|
22
|
+
the CoR bridges, **(4)** exports a **skill package** (`<out>/<name>/SKILL.md` + `chain.json`)
|
|
23
|
+
that, when invoked, executes the chain in order.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install skillchain-compiler
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Import it as `skillchain`; it installs the `skillchain` command and depends on nothing outside the standard library. It
|
|
32
|
+
is one of the fifteen packages of [ChainCompiler](https://github.com/sancovp/chaincompiler), where
|
|
33
|
+
[`sccc`](https://pypi.org/project/sccc/) writes its rollups through it; to work on it, clone the repository and run
|
|
34
|
+
`./install.sh`, which installs all fifteen editable.
|
|
35
|
+
|
|
36
|
+
## Use
|
|
37
|
+
|
|
38
|
+
Write a chain in the `.chain` format below as `my_chain.chain`, then:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
skillchain list # list indexed skills
|
|
42
|
+
skillchain validate my_chain.chain
|
|
43
|
+
skillchain compile my_chain.chain --out dist
|
|
44
|
+
skillchain compile my_chain.chain --install # -> ~/.claude/skills
|
|
45
|
+
```
|
|
46
|
+
`--install` writes the compiled package straight into `~/.claude/skills/<name>/` so it becomes
|
|
47
|
+
an invokable skill (after a reload). Otherwise it lands in `./dist/<name>/`.
|
|
48
|
+
|
|
49
|
+
## Spec formats
|
|
50
|
+
Two interchangeable formats; both parse to the same internal spec.
|
|
51
|
+
|
|
52
|
+
### `.chain` text DSL (ergonomic)
|
|
53
|
+
```
|
|
54
|
+
name: my_chain
|
|
55
|
+
description: one line
|
|
56
|
+
> skill-a : args for skill-a # '>' = skill step (skill : args)
|
|
57
|
+
= result_a # '=' = capture last result as a var
|
|
58
|
+
~ Given {result_a}, reason about X, then produce Y. # '~' = CoR / AttentionChain bridge
|
|
59
|
+
> skill-b : use {result_a} and Y
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### `.json` (canonical)
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"name": "my_chain",
|
|
66
|
+
"description": "one line",
|
|
67
|
+
"steps": [
|
|
68
|
+
{"skill": "skill-a", "args": "args for skill-a", "capture": "result_a"},
|
|
69
|
+
{"cor": "Given {result_a}, reason about X, then produce Y."},
|
|
70
|
+
{"skill": "skill-b", "args": "use {result_a} and Y"}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## What "compile" produces
|
|
76
|
+
`<out>/<name>/SKILL.md` — a real skill whose body is the ordered orchestration: each skill
|
|
77
|
+
step says *"invoke skill X with …, capture as …"*, each CoR step is an explicit reason-then-carry
|
|
78
|
+
bridge, and the header lists the validated dependencies. Plus `chain.json`, the canonical spec.
|
|
79
|
+
|
|
80
|
+
## Validation guarantees
|
|
81
|
+
`compile` refuses to emit a package if **any** referenced skill is missing — so a compiled
|
|
82
|
+
chain only ever composes skills that actually exist. `validate` exits non-zero on any problem
|
|
83
|
+
(missing skill, no name, malformed step), so it can gate CI.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{skillchain_compiler-0.3.0 → skillchain_compiler-0.3.2}/skillchain_compiler.egg-info/top_level.txt
RENAMED
|
File without changes
|