一键导入
cargo-workflow
Use when building, running, linting with clippy, formatting with rustfmt, or running cargo commands for the rs-summarizer project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when building, running, linting with clippy, formatting with rustfmt, or running cargo commands for the rs-summarizer project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when selecting a Gemini model, checking rate limits or quotas, configuring the gemini-rust crate, or debugging model name mismatches.
Create new Kiro skills (Agent Skills). Use when asked to create a skill, write a SKILL.md, add a new workflow to .kiro/skills/, or package agent instructions as a reusable skill.
Use when creating a release, bumping the version, tagging a commit, or working with the GitHub Actions release workflow for rs-summarizer.
Use when editing or creating Askama HTML templates, adding template variables, fixing compile-time template errors, or working with HTMX attributes in templates.
Use when working with tokio::spawn background tasks, the summarization pipeline, task state transitions, or the mark_error/mark_summary_done pattern.
Use when updating Cargo dependencies, checking for new crate versions, evaluating semver bumps, or deciding whether to upgrade a specific crate.
| name | cargo-workflow |
| description | Use when building, running, linting with clippy, formatting with rustfmt, or running cargo commands for the rs-summarizer project. |
Standard development commands for building, testing, linting, and running rs-summarizer.
# Build (debug)
cargo build
# Build (release, optimized)
cargo build --release
# Run the server (release mode, port 5001)
export GEMINI_API_KEY=$(cat ~/api_key.txt)
cargo run --release
# Lint with clippy
cargo clippy -- -W clippy::all
# Format code
cargo fmt
# Check formatting without modifying
cargo fmt -- --check
# Type-check without building
cargo check
# Unit tests only (fast, no network)
cargo test
# Specific module tests
cargo test utils::url_validator
cargo test services::embedding
cargo test cache
# Integration tests (require network + API key)
GEMINI_API_KEY=$(cat ~/api_key.txt) cargo test --test integration_pipeline -- --ignored
# Transcript tests (require Firefox cookies)
cargo test --test integration_transcript -- --ignored
# Browser tests (require geckodriver + Firefox)
cargo test --test integration_browser -- --ignored
# All tests including integration
GEMINI_API_KEY=$(cat ~/api_key.txt) cargo test -- --include-ignored
# With output visible
cargo test -- --nocapture
# Check for available updates (dry run)
cargo update --dry-run --verbose
# Apply semver-compatible updates
cargo update
# Search for a crate's latest version
cargo search <crate-name>
sqlx with compile-time query checking. If you get sqlx errors, ensure the database exists or use SQLX_OFFLINE=true.static/ directory must be present at runtime (relative to CWD) for tower_http::ServeDir.| Variable | Required | Purpose |
|---|---|---|
GEMINI_API_KEY | Yes (for API calls) | Google Gemini API authentication |
RUST_LOG | No | Tracing log level (e.g., info, debug) |
Cargo.toml — Dependencies and project metadataCargo.lock — Locked dependency versionssrc/main.rs — Entry point (server on port 5001)src/lib.rs — Library crate (used by integration tests)