Design & UI v1.0.3

aarondb

A high-performance, distributed Datalog engine designed for sovereign agents.

criticalinsight 更新于 2026-03-10 1 浏览
下载 SKILL

技能说明

A high-performance, distributed Datalog engine designed for sovereign agents.

使用场景

A high-performance, distributed Datalog engine designed for sovereign agents.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/aarondb
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 21 kB
SKILL.md text/markdown
# AaronDB Edge Skill

A high-performance, distributed Datalog engine designed for sovereign agents.

## Frontmatter

```yaml
name: aarondb-edge
description: Distributed Datalog engine for sovereign agents. Enables persistent fact management and reasoning.
version: 1.1.0
author: criticalinsight
repository: https://github.com/criticalinsight/aarondb-edge
npm: https://www.npmjs.com/package/@criticalinsight/aarondb-edge
requirements:
  - "@criticalinsight/aarondb-edge"
```

## Description

This skill enables AI agents to utilize a local or distributed Datalog engine for fact storage, retrieval, and reasoning. It follows the "Database as a Value" philosophy, allowing for immutable state management and time-travel debugging.

## Installation

To use this skill, ensure the core package is installed in your agent's runtime:

```bash
npm install @criticalinsight/aarondb-edge
```

## Usage

### 1. Initialization

```javascript
import { AaronDB } from '@criticalinsight/aarondb-edge';

// Initialize a new database instance
const db = new AaronDB();
```

### 2. Transacting Facts

Facts are stored as "datoms" (Entity, Attribute, Value).

```javascript
await db.transact([
  { e: "agent/philosophy", a: "type", v: "RichHickey" },
  { e: "agent/philosophy", a: "principle", v: "Simplicity" }
]);
```

### 3. Querying

Use Datalog syntax with variable bindings.

```javascript
const results = db.query({
  where: [
    ["?e", "type", "RichHickey"],
    ["?e", "principle", "?p"]
  ]
});
```

## Architectural Patterns

- **Database as a Value**: Always treat the database state as an immutable value. Avoid manual state mutations outside of the `transact` flow.
- **Shared Discovery Layer**: Facts can be synchronized across agents using a shared D1/KV back-end when running in Cloudflare Worker mode. In library mode, the state is local-first but can be exported/imported as a unified fact log for cross-agent collaboration.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。