Shipwright — AI-agent dev framework + import-light design/eval/security library
Project description
Shipwright
Shipwright is two things that share one repo:
- an installable, import-light Python library of shared dev-tooling runtime —
shipwright_kit.design(severity tiers + accessible output),shipwright_kit.eval(detection-quality eval harness),shipwright_kit.security(a security pack); - an AI-agent-operated development framework — reusable CI/CD, a Copier scaffolder, quality gates, and bundled agent skills + personas — that dogfoods the library and the gates it hands to the projects built with it.
The library is consumed today by two real tools: barb and sift both import
shipwright_kit.eval to run their detection-quality gates.
Install
The bare name shipwright belongs to an unrelated project on PyPI, so the
published distribution is shipwright-kit and the import name is
shipwright_kit.
uv pip install "shipwright-kit>=0.7,<0.8"
# then: import shipwright_kit
[!NOTE] Do not
pip install shipwrightfrom PyPI — that is a different, unrelated package. The correct dist name isshipwright-kit.
The security pack needs no extra — it ships with the base install and registers
through the shipwright_kit.packs entry point.
Library quickstart
Run an eval gate — score a classifier against a labeled corpus and fail if it misses a floor (the exact pattern barb and sift use):
from shipwright_kit.eval import Sample, evaluate, gate
corpus = [Sample("phish-login", "phishing"),
Sample("example.com", "benign"),
Sample("secure-phish", "phishing")]
result = evaluate(
lambda text: "phishing" if "phish" in text else "benign",
corpus,
positive_pred=lambda pred: pred == "phishing",
positive_expected=lambda label: label == "phishing",
)
print(result.precision, result.recall) # 1.0 1.0
gate(result, min_precision=1.0, min_recall=0.9) # raises EvalGateError if below
Use the shared severity tiers — one generic scale tools map their own verdicts onto, with accessible (Unicode-or-ASCII) labels:
from shipwright_kit.design import Severity, tier_label
Severity.OK, Severity.INFO, Severity.NOTICE, Severity.WARN, Severity.CRITICAL # IntEnum 0..4
print(tier_label(Severity.CRITICAL)) # ✗ CRITICAL
print(tier_label(Severity.OK)) # ✓ OK
import shipwright_kit pulls in no rich or pyfiglet — the heavy deps load lazily only
when you actually render. Full API: docs/library.md.
The framework
The repo contains no project code. Projects stay their own Git repositories and
their own packages; locally you clone each into the gitignored projects/
directory, where a uv workspace ties them together for
development:
shipwright/
├─ shipwright_kit/ # the importable library (design / eval / security)
├─ tooling/ruff-base.toml # single source of truth for lint rules
├─ templates/ # Copier scaffolder (python-cli) + release config
├─ skills/ · personas/ # the agent operating layer (scaffold, onboard, review …)
├─ .github/workflows/ # reusable python-ci.yml + python-release.yml (SHA-pinned)
└─ projects/ # GITIGNORED, local-only — your projects plug in here
Work is promoted through gates; failing a rung blocks promotion:
commit → lint + unit (auto) → build → dogfood + eval (auto) →
QM gate (manual) → beta sign-off (manual) → release
The reusable CI/CD that wires these gates, the Copier scaffolder (templates/), and
the agent skills (skills/) and personas (personas/) all ship now. This repo runs
the exact gates it gives the projects built with it.
Framework quickstart
Requires Python 3.11+, uv, and just.
uv sync --dev # create the dev environment
uv run pre-commit install # install the local gate
just lint # ruff check + format-check
just test # pytest
The local pre-commit gate runs the same lint/format/secret checks as CI; add
just test (and uv build) for the test and build rungs CI also enforces.
Docs
- docs/library.md — per-module API reference (design / eval / security)
- docs/release-policy.md — SemVer + release policy
- docs/ci-cd.md — the reusable CI/CD workflows
- CHANGELOG.md
Security
Report vulnerabilities privately via GitHub's private vulnerability reporting (repo Security tab → Report a vulnerability). See SECURITY.md.
Author
Christian Huhn — building security tooling for SOC/DFIR workflows.
- GitHub: @duathron
- LinkedIn: Christian Huhn
License
MIT © 2026 Christian Huhn
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shipwright_kit-0.8.0.tar.gz.
File metadata
- Download URL: shipwright_kit-0.8.0.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5021cd40f6067803d3b777c9239e27de8e3800cf31efaec5be6c2958696c83e9
|
|
| MD5 |
bb0d04e05bfc334d7c46ab99eb670527
|
|
| BLAKE2b-256 |
0c926316ed26af51b895e07dd6b2f765663ff0b1e3ac145c33c940c86f531adb
|
Provenance
The following attestation bundles were made for shipwright_kit-0.8.0.tar.gz:
Publisher:
release.yml on duathron/shipwright
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shipwright_kit-0.8.0.tar.gz -
Subject digest:
5021cd40f6067803d3b777c9239e27de8e3800cf31efaec5be6c2958696c83e9 - Sigstore transparency entry: 1802958066
- Sigstore integration time:
-
Permalink:
duathron/shipwright@00d0fc33ba89c71b9fb0b0d53cadefa7f521d8b1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/duathron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@00d0fc33ba89c71b9fb0b0d53cadefa7f521d8b1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file shipwright_kit-0.8.0-py3-none-any.whl.
File metadata
- Download URL: shipwright_kit-0.8.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c817c1135ac7814ff7eb9b32fed8119d9e3d053eb423b59556f308535e71fa59
|
|
| MD5 |
0f9dcfd6041db99a7d5974a1b786e37b
|
|
| BLAKE2b-256 |
0690a7d990dc8fec52fb9f25355a61c9892076c45491e91906019b599a31aaba
|
Provenance
The following attestation bundles were made for shipwright_kit-0.8.0-py3-none-any.whl:
Publisher:
release.yml on duathron/shipwright
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shipwright_kit-0.8.0-py3-none-any.whl -
Subject digest:
c817c1135ac7814ff7eb9b32fed8119d9e3d053eb423b59556f308535e71fa59 - Sigstore transparency entry: 1802958172
- Sigstore integration time:
-
Permalink:
duathron/shipwright@00d0fc33ba89c71b9fb0b0d53cadefa7f521d8b1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/duathron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@00d0fc33ba89c71b9fb0b0d53cadefa7f521d8b1 -
Trigger Event:
push
-
Statement type: