From corso
Testing, Performance & Ops domain context. Test strategy inference, bottleneck detection, metrics selection, infrastructure analysis, and coverage enforcement. C0RS0 executes with corsoTools action chase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/corso:CHASEC0RS0The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Build Phase 5/7: TEST — Find the weak points before the pack ships
Build Phase 5/7: TEST — Find the weak points before the pack ships
Follows GUARD (security verified) -> feeds into HUNT (execute with confidence).
The primary testing, performance, and infrastructure entry point for C0RS0. Loads test strategy, bottleneck detection, metrics, coverage enforcement, and infrastructure analysis context into C0RS0, which then executes directly using performance MCP tools.
Claude -> loads CHASE context -> C0RS0 executes with track tool
Gather ops-specific context:
Testing focus:
Performance focus:
Infrastructure focus:
Synthesize into a clear specification
Present spec for confirmation
Use mcp__C0RS0__corsoTools with action: "chase" for performance analysis and monitoring, applying all ops intelligence context below.
testing.rs:infer_test_strategy)Map code constructs to test types:
| Code Pattern | Test Type | Priority |
|---|---|---|
fn / impl / struct | Unit test | Must have |
async functions | tokio::test / async runtime | Must have |
pub functions | Integration test | Must have |
Result / Error types | Error path test | Must have |
| Module boundaries | Integration test | Should have |
| HTTP/API endpoints | Integration + E2E | Should have |
| CLI commands | Integration test | Should have |
testing.rs:select_test_types)Rust:
#[cfg(test)] module in same file for unit teststests/ directory for integration tests#[test] attribute, assert!, assert_eq!proptest for property-based testingtokio::test for async testsmockall for mock generationPython:
pytest as primary frameworkhypothesis for property-based testingpytest-asyncio for async testsunittest.mock for mockingJavaScript/TypeScript:
describe/it/expect BDD patternjest.mock for module mockingGo:
testing.T standard librarytestify for assertionshttptest for HTTP testing| Level | Target | What |
|---|---|---|
| Unit | 90%+ | All public functions, edge cases |
| Integration | Key paths | Cross-module interactions |
| Error paths | All | Invalid input, network failure, timeout |
| Edge cases | All | Empty input, max values, concurrent access |
Minimum: 90% line coverage (unit + integration combined).
performance.rs:identify_bottleneck_areas)| Pattern | Concern | Optimization |
|---|---|---|
Loops (for, while, loop) | O(n) scaling | Iterators, early exit, parallel |
HashMap | Hash computation overhead | Pre-size with with_capacity |
Vec | Reallocation on growth | Pre-size with with_capacity |
String | Heap allocation per concat | format!, push_str, Cow<str> |
.clone() | Unnecessary copying | Borrow (&T), Rc/Arc for shared |
Mutex | Lock contention | RwLock, lock-free, finer granularity |
File I/O | Disk latency | Buffered I/O, async I/O, batch |
| HTTP calls | Network latency | Connection pooling, batching, caching |
performance.rs:suggest_metrics)| Category | Metrics |
|---|---|
| Latency | p50, p95, p99 response times |
| Throughput | Requests/second, Transactions/second |
| Resources | CPU %, memory usage, heap size |
| Rust-specific | Compile time, binary size, allocator stats |
| Go-specific | Goroutine count, GC pause time |
| JS-specific | Event loop lag, heap snapshot size |
performance.rs:recommend_optimization_strategies)Rust:
&T not T)with_capacity for Vec/HashMap/Stringflamegraph for profilingrayon for data-parallel computationPython:
asyncio for I/O-bound workmultiprocessing for CPU-bound worknumpy/pandas for data processingcProfileJavaScript:
Promise.all for parallel asyncinfrastructure.rs)Deployment Targets (from infrastructure.rs:infer_deployment_target):
| Signal | Target |
|---|---|
| kubernetes, k8s | Kubernetes cluster |
| docker, container | Docker containerized |
| aws, amazon | AWS |
| gcp, google cloud | GCP |
| serverless, lambda | Serverless / FaaS |
| bare metal, vps | Bare metal / VPS |
IaC Tools (from infrastructure.rs:select_iac_tools):
| Language | Default Tools |
|---|---|
| Rust | Dockerfile (multi-stage), Kubernetes manifests |
| Python | Dockerfile, Ansible |
| JavaScript | Dockerfile (Node.js), Serverless Framework |
| Go | Dockerfile (single binary), Kubernetes manifests |
CI/CD Pipeline (from infrastructure.rs:determine_cicd_pipeline):
cargo build --release -> cargo test --all-features -> cargo clippy -- -D warnings -> cargo fmt --check -> Security Scan -> Deploypip install -> pytest with coverage -> pylint, flake8, black -> Security Scan -> Deploynpm install -> npm run build -> npm test -> eslint, prettier -> Security Scan -> Deploygo build -> go test ./... -> golangci-lint run -> Security Scan -> Deploy| When | Skill Context | MCP Tools |
|---|---|---|
| Researching test patterns or benchmarks | FETCH | corsoTools action: fetch |
| Reviewing code under test for quality | SNIFF | corsoTools action: code_review |
| Infrastructure security review | GUARD | corsoTools action: guard |
corsoTools Action | Purpose |
|---|---|
chase | Performance analysis & monitoring |
npx claudepluginhub thelightarchitect/corsoCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.