一键导入
spacetimedb-manager
Manage SpacetimeDB modules for real-time state synchronization — define tables, reducers, and subscriptions for live agent coordination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage SpacetimeDB modules for real-time state synchronization — define tables, reducers, and subscriptions for live agent coordination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | spacetimedb-manager |
| description | Manage SpacetimeDB modules for real-time state synchronization — define tables, reducers, and subscriptions for live agent coordination. |
| version | 0.1.0 |
| author | Jero (LATTICE / MARPA Design Studios) |
| triggers | ["spacetimedb","real-time state","create a spacetime module","live sync","agent state"] |
| tools | ["Bash","Read","Write","Edit","Glob","Grep"] |
USE WHEN the user wants to create SpacetimeDB modules, define real-time tables and reducers, set up live state synchronization between agents, or manage subscriptions.
Build real-time state management using SpacetimeDB's module system:
create a spacetimedb module for agent coordination
add a table tracking graftline phase progress
set up subscriptions for pipeline status changes
use spacetimedb::{spacetimedb, Identity, Timestamp};
#[spacetimedb(table)]
pub struct AgentState {
#[primarykey]
pub agent_id: String,
pub status: String,
pub current_phase: String,
pub last_heartbeat: Timestamp,
pub owner: Identity,
}
#[spacetimedb(reducer)]
pub fn update_agent_status(
ctx: ReducerContext,
agent_id: String,
status: String,
phase: String,
) {
if let Some(mut agent) = AgentState::filter_by_agent_id(&agent_id) {
agent.status = status;
agent.current_phase = phase;
agent.last_heartbeat = Timestamp::now();
AgentState::update_by_agent_id(&agent_id, agent);
}
}
from spacetimedb_sdk import SpacetimeDBClient
client = SpacetimeDBClient("localhost:3000", "graftkit")
client.subscribe(["SELECT * FROM AgentState"])
@client.on("AgentState")
def on_agent_update(row, event):
print(f"Agent {row.agent_id}: {row.status} @ {row.current_phase}")
| Use Case | Tables | Reducers |
|---|---|---|
| Agent coordination | AgentState, TaskQueue | claim_task, complete_task |
| Pipeline progress | GraftlinePhase, PhaseMetrics | advance_phase, log_metric |
| Live dashboard | SessionStats, EventStream | emit_event, update_stats |
Use when user asks to 'lint agent configs', 'validate skills', 'check CLAUDE.md', 'validate hooks', 'lint MCP'. Validates agent configuration files against 385 rules.
Interprets Culture Index (CI) surveys, behavioral profiles, and personality assessment data. Supports individual profile interpretation, team composition analysis (gas/brake/glue), burnout detection, profile comparison, hiring profiles, manager coaching, interview transcript analysis for trait prediction, candidate debrief, onboarding planning, and conflict mediation. Accepts extracted JSON or PDF input via OpenCV extraction script.
Creates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes. Use when adding devcontainer support to a project, setting up isolated development environments, or configuring sandboxed Claude Code workspaces.
Analyzes smart contract codebases to identify state-changing entry points for security auditing. Detects externally callable functions that modify state, categorizes them by access level (public, admin, role-restricted, contract-only), and generates structured audit reports. Excludes view/pure/read-only functions. Use when auditing smart contracts (Solidity, Vyper, Solana/Rust, Move, TON, CosmWasm) or when asked to find entry points, audit flows, external functions, access control patterns, or privileged operations.
Draws 4 Tarot cards to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
Configures mewt or muton mutation testing campaigns — scopes targets, tunes timeouts, and optimizes long-running runs. Use when the user mentions mewt, muton, mutation testing, or wants to configure or optimize a mutation testing campaign.