kornia-workflow
Skill748 starsChanged 7 days agoApache-2.0View on GitHub
Use before committing, opening a PR, or debugging CI in kornia-rs — the CI-aligned pixi/cargo commands for format, lint, test, Python and C++ bindings, plus the PR requirements (linked issue, test logs, AI disclosure). Trigger on "run tests", "lint", "before PR", "CI failed".
- Commits and pushes
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
All commands are mirrored in CI.
- Very specific: line 46
Start the PR body from .github/pull_request_template.md and fill every section (gh pr create --body-file.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
kornia-rs build / test workflow
All commands are mirrored in CI. Run them through pixi (preferred) so the
toolchain matches CI.
Mandatory pre-PR gate
pixi run pr-check # skills-check + rust-fmt-check + rust-clippy + rust-check + rust-testThen self-review: run kornia-code-review on git diff main...HEAD, fix what
it finds, and paste its final output (with Verdict: and Skill gaps:) in
the PR's Self-review section; pr-validation.yml fails while it is empty.
Be ready to explain any line when a reviewer asks.
Equivalent pieces:
pixi run skills-check # validate .claude/skills (scripts/check_skills.py)
pixi run rust-fmt-check # cargo fmt --all -- --check
pixi run rust-clippy # clippy --workspace --no-deps --all-targets --features ci -D warnings
pixi run rust-test # cargo test --features ci
pixi run rust-test-package <crate> # single crate (cargo test -p)
cargo test --doc -p <crate> # doctests for public docsConditional gates:
- Python code touched:
pixi run py-test(builds with maturin first). - C++ code touched:
pixi run cpp-test(cpp-fmt-checkfor formatting). - Cargo.toml version/deps touched:
python3 scripts/check_version_pins.pyandbash scripts/release_rust.sh --check(also pre-commit hooks). - New dependency: check advisories (
security_audit.ymlruns in CI).
Without pixi: cargo test --features ci, cargo test -p kornia-imgproc,
cargo clippy --workspace --no-deps --all-targets --features ci -- -D warnings.
PR rules (checked in review; pr-validation.yml fails on a missing Self-review and warns on missing fields)
- Start the PR body from
.github/pull_request_template.mdand fill every section (gh pr create --body-file;--bodytext skips the template). Linked issue:Fixes #123/Closes #123; say on the issue that you are working on it. - Small, one concern, only what the issue asks. Out-of-scope hunks block
review (
kornia-code-review); split them into their own PRs. - Paste the commands you actually ran and their output, including failures and what you did not run.
- Fill in the AI usage disclosure (see
AI_POLICY.md): agent + version, model, effort level, skills applied, and which part a human did. You are the sole responsible author of every line. - Perf-sensitive change ⇒ before/after bench numbers (
kornia-code-review). - Changed a fact the skills describe, hit a non-obvious trap, or found something
reusable (a helper, a measured number, a pattern) ⇒ one line in the owning
skill (
kornia-curation§1, §3). User-visible change ⇒ addchangelog.d/<PR>.<type>.md(seechangelog.d/README.md); never editCHANGELOG.mdoutside a release PR. - Reference the existing library implementation (OpenCV, a Rust crate) when porting an algorithm; state deliberate departures from it in the rustdoc.
- Conventional Commits:
feat:,fix:,docs:,refactor:,test:,chore:. - New/changed public API needs doc comments; bug fixes need a regression test.
- An agent posting a comment or review on someone's behalf ends it with
Posted on behalf of @<handle> by <Agent> (<actual model>).(notCo-Authored-By:). The PR body is never committed (/PR.mdis ignored).
Debugging CI
Reproduce with the exact job command from .github/workflows/rust_lint.yml
or rust_test.yml. Clippy warnings are errors.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- kornia-api-flavorSkill
- kornia-archSkill
- kornia-bindingsSkill
- kornia-code-reviewSkill
- kornia-coding-styleSkill
- kornia-curationSkill
- kornia-simdSkill
- releaseSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

