ci-failure-triage
Use when CI fails on a PR or main in gencc-link. Walks through reproducing make ci-local locally and root-causing without bypassing checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when CI fails on a PR or main in gencc-link. Walks through reproducing make ci-local locally and root-causing without bypassing checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when adding, renaming, or modifying this backend's FastAPI routes, dependencies, middleware, or response behavior.
Use when changing the GenCC SQLite schema. Coordinates schema.sql, the ingest builder/aggregates, and the repository together, then rebuilds the database and updates tests and fixtures.
Use when adding, renaming, or removing an MCP tool in gencc-link. Walks through the tool module, facade registration, the capabilities TOOLS tuple, tests, and the README/connection-guide tables.
Use when preparing a versioned release of gencc-link. Walks through the pre-release checklist — ci-local green, CHANGELOG, version bump, valid docker config — then tagging and watching the release workflow.
| name | ci-failure-triage |
| description | Use when CI fails on a PR or main in gencc-link. Walks through reproducing make ci-local locally and root-causing without bypassing checks. |
Look at the GitHub Actions log and decide which stage failed. make ci-local
runs format-check, lint-ci, lint-loc, typecheck-fast, and test-fast;
the CI job then runs test-cov.
make format-check) — Ruff disagrees with the committed
formatting.make lint-ci) — a Ruff lint rule.make lint-loc) — scripts/check_file_size.py flags a
file over the per-file line budget (see AGENTS.md "File Size Discipline").make typecheck-fast) — mypy strict.make test-fast) — a failing or erroring test.make test-cov) — coverage fell below the 85% gate.release.yml) — make ci-local, the Compose config validation,
or the Docker image build failed.Run the same Make target that failed:
make format-check
make lint-ci
make lint-loc
make typecheck-fast
make test-fast
make test-cov
# release-only:
docker compose -f docker/docker-compose.yml -f docker/docker-compose.prod.yml config
docker build -f docker/Dockerfile -t gencc-link:ci .
Tests that need the live GenCC download are marked integration and are excluded
from test-fast / test-cov. Most unit tests build SQLite from the
tests/fixtures/ sample TSV and do not hit the network.
# type: ignore or # noqa to silence a check unless the behavior
is genuinely correct and the tool is wrong.git commit --no-verify to bypass pre-commit.lint-loc fails, split the oversized file rather than raising the budget.slow (or
integration if it needs the network) and open a follow-up issue rather than
disabling it.Run make ci-local locally. Push. Watch the workflow re-run.