openspec-patcher
osp applies versioned, line-based patches to OpenSpec skills without maintaining an OpenSpec fork.
osp install <patch.json>
osp [patch-id]
osp status
osp list
osp restore [patch-id] [-f]
Installed patches are stored per user. A patched project receives an openspec.patch manifest containing immutable skill baselines, active patch references, and rendered hashes.
Patch positions always refer to the original skill content. Every apply or restore rerenders all active patches from that baseline.
Patch Format
{
"schemaVersion": 1,
"id": "zh-cn-output",
"name": "Simplified Chinese output",
"operations": {
"1.4.0-1.4.3,1.5.0": [
{
"content": "replacement text",
"positions": [
{
"tool": "opencode",
"skill": "openspec-apply-change",
"startLine": 12,
"endLine": 12
}
]
}
]
}
}
Version selectors accept MAJOR.MINOR.PATCH and inclusive from-to ranges separated by commas. Different selector keys in one patch must not overlap. Every position is resolved through src/openspec_patcher/resources/paths.json; positions for unavailable tools are skipped.
Storage and Recovery
On Windows, installed patches are stored in %LOCALAPPDATA%\openspec-patcher\patches. Linux uses $XDG_DATA_HOME/openspec-patcher/patches (or ~/.local/share), and macOS uses ~/Library/Application Support/openspec-patcher/patches. Set OSP_DATA_DIR to override the location, which is useful for isolated testing.
The project-level openspec.patch stores only active patch IDs and SHA-256 values. The matching patch documents must remain available locally to rerender any patch that stays active. osp restore -f ignores changed current skill hashes and rebuilds from the saved original content; it can overwrite manual skill edits.
Metadata
Release files for openspec-patcher 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openspec_patcher-0.1.0.tar.gz | 17.6 kB | With provenance | Details for openspec_patcher-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openspec_patcher-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for openspec_patcher-0.1.0-py3-none-any.whl |
Total release size: 35.5 kB
Release files / openspec_patcher-0.1.0.tar.gz
| Download URL | openspec_patcher-0.1.0.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4f6860f6fc7b8287e11308c4978646dd5bf6e96ed1f8f44ba70254d50974ac4
|
|
BLAKE2b-256 checksum How to use checksums |
2d2182bb59905bed9477b4557690bfa8d0819016473c2edb2bb6482ebf735644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / openspec_patcher-0.1.0-py3-none-any.whl
| Download URL | openspec_patcher-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7238b409544a2b30be41414b9192a90d9a3f9f74d2b186968c12cf3ca397c2c
|
|
BLAKE2b-256 checksum How to use checksums |
cec5b2ed9e724f1d976c4f4677d1912a727160af7d0fec2429e60c15ba031824
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logSecurity for openspec-patcher 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for openspec_patcher-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logA 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.