Skip to main content

nexcore_registry/
lib.rs

1//! nexcore-registry — SQLite registry for Claude Code skills, agents, metrics, and KPIs.
2//!
3//! Decomposes the monolithic `plugins.db` into component-specific databases.
4//! This crate manages `skills.db`: the live registry of skills, agents,
5//! invocation metrics, SMART goals, KPIs, and audit trail.
6//!
7//! # Architecture
8//!
9//! ```text
10//! nexcore-mcp (MCP tool exposure)
11//!     |
12//! nexcore-registry (persistence + scanning + KPI computation)
13//!     |
14//! rusqlite + SQLite (bundled)
15//! ```
16//!
17//! # Usage
18//!
19//! ```rust,no_run
20//! use nexcore_registry::pool::RegistryPool;
21//! use nexcore_registry::skills;
22//!
23//! let pool = RegistryPool::open_default().expect("open db");
24//! pool.with_conn(|conn| {
25//!     let all = skills::list_all(conn)?;
26//!     println!("Found {} skills", all.len());
27//!     Ok(())
28//! }).expect("query");
29//! ```
30
31#![forbid(unsafe_code)]
32#![warn(missing_docs)]
33#![cfg_attr(
34    not(test),
35    deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
36)]
37
38pub mod agents;
39pub mod assess;
40pub mod audit;
41pub mod error;
42pub mod goals;
43pub mod kpi;
44pub mod metrics;
45pub mod pool;
46pub mod promote;
47pub mod reports;
48pub mod scanner;
49pub mod schema;
50pub mod skills;
51pub mod tov;
52pub mod writer;