codecov-cli
Upload and analyze code coverage reports using the Codecov CLI. Use when the user mentions codecov, coverage upload, coverage reports, or codecov flags.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- codecov-cli
- description
- Upload and analyze code coverage reports using the Codecov CLI. Use when the user mentions codecov, coverage upload, coverage reports, or codecov flags.
03 SKILL.md 正文
Codecov CLI
Upload and analyze code coverage reports directly via the codecov CLI or npx codecov through the Bash tool. Replaces the Codecov MCP server with native CLI calls.
Prerequisites
Verify the Codecov CLI is available:
command -v codecov || npx codecov --version
If the dedicated CLI is not installed, npx codecov can be used as a fallback.
Authentication
The CODECOV_TOKEN environment variable should be set before uploading:
# Check if token is set (do not print the actual value)
[ -n "$CODECOV_TOKEN" ] && echo "CODECOV_TOKEN is set" || echo "CODECOV_TOKEN is not set"
Tokens are available from https://app.codecov.io under repository settings.
Upload Coverage
Basic upload
codecov upload-process --token "$CODECOV_TOKEN" -f <coverage-file>
# Example: Upload lcov report
codecov upload-process --token "$CODECOV_TOKEN" -f coverage/lcov.info
Upload with flags
Flags let you group coverage by test type (unit, integration, etc.):
codecov upload-process --token "$CODECOV_TOKEN" -f <coverage-file> --flag <flag-name>
# Example: Upload with unit test flag
codecov upload-process --token "$CODECOV_TOKEN" -f coverage/lcov.info --flag unit
Upload multiple files
# Upload all coverage files in a directory
codecov upload-process --token "$CODECOV_TOKEN" -f coverage/
# Upload specific files
codecov upload-process --token "$CODECOV_TOKEN" \
-f coverage/lcov.info \
-f coverage/coverage-final.json
Using npx (when CLI is not installed)
npx codecov --token "$CODECOV_TOKEN" -f <coverage-file>
# With flags
npx codecov --token "$CODECOV_TOKEN" -f coverage/lcov.info --flag unit
Common Workflows
Generate and upload (JavaScript/TypeScript)
# Generate coverage report
npx jest --coverage
# Upload to Codecov
codecov upload-process --token "$CODECOV_TOKEN" -f coverage/lcov.info
Generate and upload (Python)
# Generate coverage report
python -m pytest --cov=src --cov-report=xml
# Upload to Codecov
codecov upload-process --token "$CODECOV_TOKEN" -f coverage.xml
CI environment detection
Codecov auto-detects CI environments (GitHub Actions, GitLab CI, etc.) and populates commit SHA, branch, and build info. In CI, you typically only need:
codecov upload-process --token "$CODECOV_TOKEN" -f <coverage-file>
Override commit SHA or branch
codecov upload-process --token "$CODECOV_TOKEN" \
-f <coverage-file> \
--commit-sha <sha> \
--branch <branch-name>
CLI Help
# General help
codecov --help
# Upload-specific help
codecov upload-process --help
Supported Coverage Formats
Codecov accepts most standard coverage formats:
- lcov (lcov.info) -- JavaScript/TypeScript via Jest, Vitest, c8
- Cobertura XML (coverage.xml) -- Python, Java, .NET
- Clover XML -- PHP, Java
- JaCoCo XML -- Java, Kotlin
- Go coverage (coverage.out) -- Go
- gcov/lcov -- C/C++
Error Handling
"Upload failed: 401 Unauthorized"
- Verify
CODECOV_TOKENis correct and has not expired. - Ensure the token matches the repository.
"No coverage files found"
- Verify the coverage file path is correct.
- Run the test suite with coverage enabled first.
"Could not detect CI provider"
- Pass
--commit-shaand--branchexplicitly when running outside CI.
CLI not found
- Install globally:
pip install codecov-clior usenpx codecov.
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files