بنقرة واحدة
observability
Unified agent observability — action logging, tracking, execution logging, and trace correlation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Unified agent observability — action logging, tracking, execution logging, and trace correlation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Dispatch a background worker with role-templated prompt and auto-populated collision fences
Comprehensive system health monitoring — checks agent performance, database, Kafka topics, pattern discovery, and service status across the ONEX platform
Orchestrate a Claude Code agent team to autonomously work a Linear epic across multiple repos
Run DoD evidence checks against a ticket contract and generate a verification receipt
Autonomous per-ticket pipeline that chains ticket-work, local-review, PR creation, CI watching, PR review loop, integration verification gate, and auto-merge into a single unattended workflow with Slack notifications and policy guardrails
Full autonomous audit-debug-fix loop for all dashboard pages — Playwright recon, parallel systematic-debug, fix, PR, Linear ticket, re-audit, iterate until clean. Supports local and cloud targets with optional post-fix redeployment.
| name | observability |
| description | Unified agent observability — action logging, tracking, execution logging, and trace correlation |
| version | 1.0.0 |
| level | intermediate |
| debug | false |
| category | observability |
| tags | ["observability","logging","tracking","tracing","kafka","postgresql"] |
| author | OmniClaude Team |
| composable | true |
| args | [{"name":"subcommand","description":"Mode: log-action, track-routing, track-detection, track-transformation, track-performance, start-execution, complete-execution, or trace","required":true},{"name":"--id","description":"Correlation ID for trace subcommand","required":false}] |
Unified agent observability skill consolidating action logging, agent tracking, execution logging, and trace correlation.
| Subcommand | Store | Former skill |
|---|---|---|
log-action | Kafka | action-logging |
track-routing | PostgreSQL | agent-tracking |
track-detection | PostgreSQL | agent-tracking |
track-transformation | PostgreSQL | agent-tracking |
track-performance | PostgreSQL | agent-tracking |
start-execution | PostgreSQL | log-execution |
complete-execution | PostgreSQL | log-execution |
trace --id <cid> | PostgreSQL+Kafka | trace-correlation-id |
Reusable action logging framework for agents. Provides a convenient wrapper around the action event publishing system with automatic timing, context management, and graceful degradation.
Publishes all agent actions to Kafka (topic: agent-actions) with:
from action_logger import ActionLogger
# Initialize logger
action_logger = ActionLogger(
agent_name="agent-my-agent",
correlation_id=correlation_id,
project_name="omniclaude",
project_path=os.getcwd(),
working_directory=os.getcwd(),
debug_mode=True
)
# Context manager (automatic timing)
async with action_logger.tool_call("Read", {"file_path": "..."}) as action:
result = await read_file("...")
action.set_result({"line_count": len(result)})
ActionLogger Class:
ActionLogger(
agent_name: str,
correlation_id: Optional[str] = None,
project_path: Optional[str] = None,
project_name: Optional[str] = None,
working_directory: Optional[str] = None,
debug_mode: bool = True
)
Tool Call Logging (context manager):
async with action_logger.tool_call(tool_name, tool_parameters) as action:
result = await execute_tool(...)
action.set_result({"success": True, "data": result})
Manual Logging:
await action_logger.log_tool_call(tool_name, tool_parameters, tool_result, duration_ms)
Decision Logging:
await action_logger.log_decision(decision_name, decision_context, decision_result, duration_ms)
Error Logging:
await action_logger.log_error(error_type, error_message, error_context)
Success Logging:
await action_logger.log_success(success_name, success_details, duration_ms)
| Type | When | Key Fields |
|---|---|---|
tool_call | Agent invokes a tool | file_path, command, pattern, success |
decision | Routing/strategy decisions | selected_agent, confidence, reasoning |
error | Exceptions and failures | error type, stack_trace, recovery_action |
success | Task completions | quality_score, files_processed |
agent-actionsEvents are persisted to PostgreSQL table agent_actions:
| Column | Type | Description |
|---|---|---|
id | UUID | Primary key |
agent_name | VARCHAR | Agent identifier |
action_type | VARCHAR | tool_call, decision, error, success |
action_name | VARCHAR | Specific action name |
action_details | JSONB | Structured action metadata |
correlation_id | UUID | Correlation tracking |
duration_ms | INTEGER | Action duration |
created_at | TIMESTAMP | Event timestamp |
PostgreSQL-backed observability for tracking agent routing decisions, detection failures, transformations, and performance metrics.
| Table | Tracked By |
|---|---|
agent_routing_decisions | track-routing |
agent_detection_failures | track-detection |
agent_execution_logs | track-performance |
Track agent execution lifecycle in PostgreSQL for observability and intelligence gathering.
Start Execution -- call at the beginning of your task:
/observability start-execution --agent agent-research --description "Research Claude Code skills"
Returns:
{
"success": true,
"execution_id": "uuid-here",
"started_at": "2025-10-20T18:38:44Z",
"correlation_id": "uuid-here"
}
Save the execution_id for completion updates.
Complete Execution -- call when your task finishes:
/observability complete-execution --execution-id <uuid> --status success --quality-score 0.95
For errors:
/observability complete-execution --execution-id <uuid> --status error --error-message "API timeout"
start-execution:
--agent (required): Agent name--description (optional): Task description--session-id (optional): Session ID (auto-generated if omitted)--metadata (optional): JSON metadatacomplete-execution:
--execution-id (required): UUID from start command--status (optional): success | error | cancelled (default: success)--error-message (optional): Error description--quality-score (optional): Quality score 0.0-1.0--metadata (optional): Final JSON metadataLogs are stored in agent_execution_logs table with:
End-to-end execution tracing by correlation ID for debugging and observability.
/observability trace --id <correlation-id>
Given a correlation ID, traces all events, routing decisions, tool calls, and outcomes associated with that execution across both PostgreSQL and Kafka stores.
When integrating observability into an agent:
ActionLogger from action_loggeragent-actionsagent_actions for persistenceInfrastructure:
Environment Variables:
source ~/.omnibase/.env
KAFKA_BOOTSTRAP_SERVERS=localhost:19092