Skip to main content

sccc — the skill-chain compiler

sccc is the highest of the three chain compilers of ChainCompiler, a compiler-compiler for cognition. It compiles skill chains: [ac:x] ⇒ [cor:y] ⇒ [skill:z] ⇒ |Result|, a sequence of attention chains, chains of reasoning and ordinary skills, rolled up into one SKILL.md.

  • forge(name, sequences, db=…) forges the sequence grammar (scope sc:<name>), and lint(language, sequence) gates a sequence against it;
  • parse_sequence(sequence) reads a sequence into its steps and its held result;
  • package(name, sequence, out_dir=…, skills_dir=…) resolves every step to a skill folder on disk — the skills folder it is given first, then ~/.claude/skills and ~/.claude/plugins — and refuses to package while any step is missing, so a rollup never names a skill that is not there.

The rollup itself is written by skillchain-compiler. It is made from the chaincompiler base, above chaincompiler-accc and corcc.

Install

pip install sccc

It installs the sccc command. To work on it, clone the repository and run ./install.sh, which installs all fifteen packages editable.

Use

from sccc import parse_sequence

steps, held = parse_sequence("[ac:triage] ⇒ [cor:bandit] ⇒ [skill:report] ⇒ |Result|")
print([(s.kind, s.ref) for s in steps], held)   # [('ac', 'triage'), ('cor', 'bandit'), ('skill', 'report')] Result

Its design

The repository's DESIGN.md §5.

License

MIT.

Metadata

Release files for sccc 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sccc 0.5.1
File Size Uploaded Provenance Actions
sccc-0.5.1.tar.gz 8.6 kB Without provenance Details for sccc-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sccc 0.5.1
File Interpreter ABI Platform Actions
sccc-0.5.1-py3-none-any.whl Python 3 none any Details for sccc-0.5.1-py3-none-any.whl

Total release size: 16.5 kB

Release files / sccc-0.5.1.tar.gz

Download URL sccc-0.5.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
21877167a6f3780eec23e0a21b987fee2e82f34758f37af09ed208e129aef16c
BLAKE2b-256 checksum
How to use checksums
a22caad2ccfcc69a571513c4a79bf8f1871975b4a342332b46192861a4033919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / sccc-0.5.1-py3-none-any.whl

Download URL sccc-0.5.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1ba18cb4a14b0c3b5ffa6d4ae8f138dedbf2561a675b48b64219956e9988497
BLAKE2b-256 checksum
How to use checksums
3a9fb5f55115b9eaf48aae808291c84e8300f12dcb9a9a271a63eaaf2b16a03d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for sccc 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page