ワンクリックで
swarm-observability
Tracing, metrics, derive macros, and error context. Use when adding observability or improving developer experience.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Tracing, metrics, derive macros, and error context. Use when adding observability or improving developer experience.
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-observability |
| description | Tracing, metrics, derive macros, and error context. Use when adding observability or improving developer experience. |
Cargo.toml#[instrument]#[source] and contexttracing-subscriber fmt or json outputuse tracing::{instrument, info, debug};
#[instrument(skip(self))]
pub async fn inject_concept(&self, id: String, vector: HVec10240) -> Result<()> {
debug!(concept_id = %id, "injecting concept");
// ... operation
info!(concept_id = %id, "concept injected");
Ok(())
}
use metrics::{counter, histogram, gauge};
pub async fn probe(&self, query: HVec10240, top_k: usize) -> Result<Vec<(String, f32)>> {
let start = Instant::now();
counter!("probe_requests_total").increment(1);
let results = // ... search
histogram!("probe_latency_ms").record(start.elapsed().as_millis() as f64);
gauge!("concept_count").set(self.singularity.len() as f64);
Ok(results)
}
Derive macros were removed after discovery of zero usage. Use ConceptBuilder directly:
// Instead of #[derive(Concept)]:
let concept = ConceptBuilder::new("id")
.with_vector(HVec10240::random())
.build()?;
#[derive(Error, Debug)]
pub enum MemoryError {
#[error("Concept '{concept_id}' not found")]
ConceptNotFound { concept_id: String },
#[error("Database error: {message}")]
Database {
message: String,
#[source]
source: Option<Box<dyn Error>>,
},
}
All files must remain ≤ 500 lines. Proc-macro crate counts separately.