Skip to main content

ci-autopsy

An agent skill companion CLI for investigating failed GitHub Actions runs and saved CI logs. Python 3.11+, standard library only; live run requires an authenticated, current GitHub CLI (gh).

pip install ci-autopsy
autopsy run https://github.com/owner/repo/actions/runs/123456789
autopsy run https://github.com/owner/repo/actions/runs/123456789/attempts/2
autopsy classify saved-job.log
autopsy demo

run reads metadata, retrieves all job pages for the selected attempt, and analyses only failed, cancelled or timed-out jobs. Without /attempts/N, it pins the latest attempt reported by the metadata snapshot. It never triggers a rerun or modifies the repository.

Reports include matched categories, evidence lines and pytest failure summaries. A classification is a log-pattern hypothesis, not proof of a root cause. unknown means no signature matched. Empty job lists report the run state: an unfinished run or a workflow-level failure is not a passing build.

classify --json provides machine-readable offline output. --rules path.toml adds custom signatures; --replace uses only that registry. autopsy rules prints the built-in registry.

0.1.1 fixes

  • GitHub jobs are fetched with GET and real pagination, including failures beyond the first page.
  • Attempt URLs select that attempt's metadata and jobs rather than silently analysing the latest run.
  • Timeouts return a readable error and exit 2. GitHub text is decoded as UTF-8 on Windows too.
  • Downloaded log ANSI formatting and terminal control sequences are removed before reporting. Use a current gh supporting --paginate, --slurp and --allow-escape-sequences.
  • Concrete rerun guidance uses gh run rerun <id> --repo owner/repo --failed, and is shown only when every analysed job has an infrastructure/dependency verdict. Explicit-attempt reports ask the reader to inspect the latest attempt before rerunning.

The CLI is read-only. Successful analysis returns 0 even when it reports a failed job; it is not a CI success/failure gate. Retrieval and usage errors return 2.

Agent skill: npx skills add juzorei/ci-autopsy. Source and documentation: https://github.com/juzorei/ci-autopsy

Metadata

Release files for ci-autopsy 0.1.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 ci-autopsy 0.1.1
File Size Uploaded Provenance Actions
ci_autopsy-0.1.1.tar.gz 17.1 kB With provenance Details for ci_autopsy-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ci-autopsy 0.1.1
File Interpreter ABI Platform Actions
ci_autopsy-0.1.1-py3-none-any.whl Python 3 none any Details for ci_autopsy-0.1.1-py3-none-any.whl

Total release size: 32.3 kB

Release files / ci_autopsy-0.1.1.tar.gz

Download URL ci_autopsy-0.1.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e49953ebbb846be81ca38b6f0b21eb344979bd71f441a6a0534bd0b32f042968
BLAKE2b-256 checksum
How to use checksums
4e1469d20b48dcbb8b419a59cd2b8f02ff0befeae4ce850dda8f78f8ae08ea95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Release files / ci_autopsy-0.1.1-py3-none-any.whl

Download URL ci_autopsy-0.1.1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05cea88dd51bfa1d02617c9a38565db2c7c4e8d907b4cb36c4c12a7d7644a07a
BLAKE2b-256 checksum
How to use checksums
359e7f84da23963c519562634800fcdc7b2e141c69b900ff620b14db7f841caf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Security for ci-autopsy 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ci_autopsy-0.1.1.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 Oct 31, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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