一键导入
swarm-performance
SIMD optimization, connection pooling, batch APIs, and caching. Use when improving throughput or reducing latency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
SIMD optimization, connection pooling, batch APIs, and caching. Use when improving throughput or reducing latency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
GOAP-based orchestrator for managing GitHub issues, creating action plans, and executing workspace operations with branch/PR workflow.
Configure and troubleshoot npm OIDC Trusted Publishing for GitHub Actions. Use when npm publish fails with E404, OIDC errors, or provenance issues.
GitHub release management, crates.io trusted publishing, npm provenance, and GitHub Pages documentation. Use when creating releases, publishing packages, or deploying docs.
Git commit conventions, validation gates, and CI/CD workflows. Use when committing changes, verifying gates, or working with GitHub Actions.
Validate merge readiness with atomic commits and GitHub Actions checks using gh CLI; use for pre-merge verification and CI truth validation.
Apply TRIZ inventive principles to solve problems that seem to have no good solution. Use after triz-analysis has identified contradictions.
| name | swarm-performance |
| description | SIMD optimization, connection pooling, batch APIs, and caching. Use when improving throughput or reducing latency. |
cargo bench --bench benchmark// Note: std::simd requires nightly Rust and #![feature(portable_simd)]
#[cfg(all(feature = "simd", nightly))]
use std::simd::u128x2;
pub fn cosine_similarity_simd(&self, other: &Self) -> f32 {
// For stable Rust, use platform-specific intrinsics (AVX2/NEON)
// as seen in src/hyperdim_simd.rs or src/bundle_simd.rs.
}
Use deadpool for async connection pooling, gated for remote Turso only.
Keep per-operation model for local SQLite.
pub async fn inject_concepts(
&self,
concepts: &[(String, HVec10240)]
) -> Result<()> {
// Validate all inputs first
// Batch insert to singularity
// Batch save to persistence
// Single transaction for DB
}
Arc<[T]> so cache hits are cheap (Arc::clone).Vec materializations; hash fixed-size words/arrays directly.Run performance tests:
cargo test --test <test_name>
All files must remain ≤ 500 lines. Refactor to new modules if needed.