원클릭으로
docs
Instructions for managing documentation for the VAK project.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Instructions for managing documentation for the VAK project.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Instructions for building the VAK project including Rust, WASM skills, and Python bindings.
WASM skill providing basic arithmetic operations for VAK agents.
WASM skill providing cryptographic hashing operations for VAK agents.
WASM skill providing JSON validation and manipulation for VAK agents.
WASM skill providing pattern matching operations for VAK agents.
Instructions for releasing and publishing the VAK project to crates.io and PyPI.
| name | docs |
| description | Instructions for managing documentation for the VAK project. |
This skill provides instructions for generating and maintaining documentation.
| ID | Feature | Status | Notes |
|---|---|---|---|
| DOC-001 | Architecture Documentation | ⏳ Pending | README.md has overview |
| DOC-002 | API Reference | ⏳ Pending | Rustdoc available |
| DOC-003 | Runbook/Operations Guide | ⏳ Pending | - |
| DOC-004 | Policy Authoring Guide | ⏳ Pending | - |
| File | Description |
|---|---|
README.md | Project overview, architecture, quick start |
TODO.md | Comprehensive task list with status |
AGENTS_README.md | Agent development guide |
AI Kernel Gap Analysis & Roadmap.md | Technical roadmap |
AI Agent Blue Ocean Opportunity.md | Business/market analysis |
Project Feasibility.md | Feasibility assessment |
rustdoc (part of Rust toolchain)mdbook (optional, for book-style docs): cargo install mdbookTo generate documentation for the main crate:
cargo doc --no-deps --open
To generate documentation for all workspace members:
cargo doc --workspace --no-deps --open
To ensure code examples in documentation are valid:
cargo test --doc
When changing functionality, update:
README.md - Main project documentationTODO.md - Update task statusmod.rs files - Update module documentation.github/skills/ - Update relevant skill filesTo see which items are documented:
cargo doc --document-private-items 2>&1 | grep -i "missing"
Each module in src/ should have documentation in its mod.rs:
//! # Memory Module
//!
//! This module implements the Cryptographic Memory Fabric (CMF) for VAK.
//!
//! ## Overview
//!
//! The memory system provides:
//! - **Working Memory**: Hot cache for current context
//! - **Episodic Memory**: Time-ordered Merkle chain
//! - **Semantic Memory**: Knowledge graph + vector store
//!
//! ## Completed Features
//!
//! | ID | Feature | Status |
//! |----|---------|--------|
//! | MEM-001 | rs_merkle Integration | ✅ |
//! | MEM-002 | Sparse Merkle Tree | ✅ |
//!
//! ## Usage
//!
//! \`\`\`rust,ignore
//! use vak::memory::MerkleStore;
//! let store = MerkleStore::new();
//! \`\`\`
Use triple slashes (///) for documentation comments:
/// Calculates the sum of two numbers.
///
/// # Arguments
///
/// * `a` - First number
/// * `b` - Second number
///
/// # Returns
///
/// The sum of `a` and `b`.
///
/// # Examples
///
/// \`\`\`
/// use vak::add;
/// let result = add(2, 3);
/// assert_eq!(result, 5);
/// \`\`\`
///
/// # Errors
///
/// Returns `Err` if the sum would overflow.
pub fn add(a: i32, b: i32) -> Result<i32, OverflowError> {
a.checked_add(b).ok_or(OverflowError)
}
/// Reads a value from raw memory.
///
/// # Safety
///
/// - `ptr` must be valid for reads of `size` bytes.
/// - `ptr` must be properly aligned.
/// - The memory at `ptr` must be initialized.
/// - The caller must ensure no data races.
///
/// # Panics
///
/// Panics if `size` is zero.
pub unsafe fn read_raw(ptr: *const u8, size: usize) -> Vec<u8> {
// SAFETY: Caller guarantees ptr validity
// ...
}
cargo doc --all-features --no-deps --open
/// Errors that can occur during policy evaluation.
///
/// # Variants
///
/// * `NotFound` - The requested policy does not exist
/// * `Denied` - Access denied by policy
/// * `InvalidContext` - Context attributes are invalid
#[derive(Debug, thiserror::Error)]
pub enum PolicyError {
/// The requested policy does not exist.
#[error("policy not found: {0}")]
NotFound(String),
/// Access denied by policy.
#[error("access denied: {reason}")]
Denied { reason: String },
/// Context attributes are invalid.
#[error("invalid context: {0}")]
InvalidContext(String),
}
If using mdBook for extended documentation:
mdbook build docs/
mdbook serve docs/
pub structs, enums, functions, and modules MUST have documentation.# Errors section.# Panics section.unsafe code in a # Safety section.cfg attributes.