data-persistence-contract

Community

Guarantee AgentHub’s data becomes auditable truth.

Authorzxc1a1a1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents AgentHub’s history, runs, artifacts, and tool-calls from being lost or only stored in ephemeral memory or logs, by defining an explicit persistence contract for a multi-agent, single/group conversation system.

Core Features & Use Cases

  • Defines facts vs. non-facts: establishes what must be durably stored in the database versus what must remain temporary (SSE buffers, runtime caches, logs).
  • Standardizes entity relationships: specifies how Conversation, Message, Run, RunStep, AgentTask, ToolCall, and Artifact must relate for traceability across multi-agent runs.
  • Sets schema, indexing, and JSON rules: mandates snake_case DB fields, camelCase API projections, index plans, structured JSON constraints, soft-delete/archival boundaries, and MySQL/PostgreSQL evolution boundaries.
  • Enforces migration and safety: requires versioned migrations with expand/migrate/contract patterns and strict data security to avoid storing secrets, raw prompts, tokens, and permanent public URLs.
  • Enables contract testing: lists contract-test expectations to verify schema creation, core relationships, JSON validity, soft-delete integrity, and trace-based troubleshooting.

Quick Start

Use the data-persistence-contract Skill as the single source of truth for designing or updating AgentHub’s MySQL schema and migrations, ensuring every run artifact and tool call is persistently linked and auditable.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: data-persistence-contract
Download link: https://github.com/zxc1a1a1/Multi_Agent-AgentHub/archive/main.zip#data-persistence-contract

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.