一键导入
coverage
Raise Codecov patch coverage above the 85% threshold by testing real edge cases or marking genuinely untestable code with `# pragma: no cover`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Raise Codecov patch coverage above the 85% threshold by testing real edge cases or marking genuinely untestable code with `# pragma: no cover`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep analysis of current changes before committing. Goes beyond lint — catches logic bugs, architectural violations, security, and performance issues.
Create a pull request from the current branch, matching the repo's PR conventions (What/Why/Testing for features, Summary/Test-plan for small PRs).
Review staged or unstaged changes before committing. Catches bugs, style drift, and missing coverage.
Cut a release — promote Unreleased → versioned in CHANGELOG, bump version, commit. CI auto-tags and publishes from the version-bump commit.
Create a release-tracking issue that organizes open issues into a phased roadmap. Pass a target version (e.g., `0.5.0`) to scope the plan.
Run the full quality gate — format, lint, tests, types. Use after changes to verify nothing is broken.
| name | coverage |
| description | Raise Codecov patch coverage above the 85% threshold by testing real edge cases or marking genuinely untestable code with `# pragma: no cover`. |
Close gaps reported by Codecov or by pytest --cov-report=term-missing.
Find the gaps
uv run pytest tests/<area>/ --cov=agentloom.<module> --cov-report=term-missing -q --no-cov-on-fail
Read the Missing column — each number is a line or a range.
Classify each gap
FakeStream-style doubles for I/O, respx for HTTP, mock observers for hook callbacks.if notify is None: return after the caller already checked) → # pragma: no cover — <reason>.# pragma: no cover — prom fallback.# pragma: no cover — fires on OTel export.Always include a reason after the —. A bare # pragma: no cover is a smell.
Prefer tests over pragmas when the branch is reachable from unit tests in under ~20 lines of setup. Use pragmas for:
if TYPE_CHECKING: blocksVerify
uv run pytest tests/<area>/ --cov=agentloom.<module> --cov-report=term-missing -q --no-cov-on-fail
Then /check once the module is clean.