.claude/skills/benchmark-runner/SKILL.md
# Benchmark Runner Workflow Multi-step workflow for running performance benchmarks on ccswarm. ## Overview This skill guides you through running, analyzing, and comparing performance benchmarks for the ccswarm system. ## Benchmark Types ### 1. Microbenchmarks Fine-grained performance measurements for specific functions. ### 2. Integration Benchmarks End-to-end performance for complete workflows. ### 3. Load Testing System behavior under sustained load. ## Running Benchmarks ### 1. Setup
npx skillsauth add nwiizo/ccswarm .claude/skills/benchmark-runnerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-step workflow for running performance benchmarks on ccswarm.
This skill guides you through running, analyzing, and comparing performance benchmarks for the ccswarm system.
Fine-grained performance measurements for specific functions.
End-to-end performance for complete workflows.
System behavior under sustained load.
# Ensure criterion is available
cargo install cargo-criterion
# Build in release mode first
cargo build --release --workspace
# Run with criterion
cargo criterion --workspace
# Or standard bench
cargo bench --workspace
# By crate
cargo bench -p ccswarm
# By benchmark name
cargo bench --bench session_benchmark
# By filter
cargo bench -- "orchestrator"
// benches/bench.rs
use criterion::{criterion_group, criterion_main, Criterion};
fn benchmark_task_delegation(c: &mut Criterion) {
c.bench_function("delegate_task", |b| {
b.iter(|| {
// Benchmark code
})
});
}
criterion_group!(benches, benchmark_task_delegation);
criterion_main!(benches);
[[bench]]
name = "orchestrator_bench"
harness = false
# Results are in target/criterion/
open target/criterion/report/index.html
# Save baseline
cargo bench -- --save-baseline before
# Make changes, then compare
cargo bench -- --baseline before
# With flamegraph
cargo flamegraph --bench orchestrator_bench
# With perf (Linux)
perf record cargo bench --bench orchestrator_bench
perf report
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo bench -- --save-baseline ci
- uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: target/criterion/
development
# Rust Agent Specialist Workflow Apply Rust-native patterns to ccswarm codebase development. ## Overview This skill provides guidance for implementing Rust-idiomatic patterns in the ccswarm multi-agent orchestration system. ## Core Patterns ### Type-State Pattern Compile-time state validation with zero runtime cost. ```rust // State types pub struct Uninitialized; pub struct Initialized; pub struct Running; pub struct Agent<State> { inner: AgentInner, _state: PhantomData<State>,
development
# HITL (Human-in-the-Loop) Approval Workflow Multi-step workflow for human approval integration in ccswarm agent operations. ## Overview This skill guides you through implementing and using human-in-the-loop approval mechanisms for high-risk agent operations. ## When HITL is Required ### High-Risk Operations - File deletions - Database modifications - External API calls - Configuration changes - Deployment actions ### Risk Levels | Level | Action | HITL Required | |-------|--------|-------
development
# Git Worktree Workflow Multi-step workflow for parallel development using git worktrees. ## Overview Git worktree allows working on multiple branches simultaneously. Each worktree is an independent working directory with its own branch. ## Setup Workflow ### 1. Create Feature Worktree ```bash git worktree add ../ccswarm-feature-<name> feature/<description> ``` ### 2. Create Bug Fix Worktree ```bash git worktree add ../ccswarm-bugfix-<name> hotfix/<description> ``` ### 3. Create Experimen
tools
# Deploy Workflow Multi-step workflow for deploying ccswarm releases. ## Overview This skill guides you through the complete deployment process for ccswarm releases, from building to publishing. ## Pre-Deployment Checklist ### 1. Version Update ```bash # Update version in Cargo.toml files # Root workspace # crates/ccswarm/Cargo.toml # crates/ai-session/Cargo.toml ``` ### 2. Quality Gates ```bash # Run full quality check cargo fmt --all cargo clippy --workspace -- -D warnings cargo test --w