AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Agent Observatory Workflow

skill-mishrashardendu22-agent-skills-agent-observatory-workflow · by MishraShardendu22

>-

— No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-mishrashardendu22-agent-skills-agent-observatory-workflow

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mishrashardendu22-agent-skills-agent-observatory-workflow)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 25d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Agent Observatory Workflow? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Agent Observatory Workflow & Extension Guide

This skill guides agents and engineers on how to safely build, modify, test, and enhance AI agent features within agentic-observatory/.

1. Branch-First Development

> [!IMPORTANT] > CREATE A LOCAL BRANCH FIRST: Always start by creating a local branch from main: > ``bash > git switch -c MishraShardendu22/main/ > ` > Never develop or modify agent code directly on main`.


2. Adding a New Agent Tool

  1. Create or update a tool file under [agentic-observatory/data/tools/](file:///home/ms22/Coding_stuff/Personal-Projects/github-backup-automation-system/agentic-observatory/data/tools/):

```python from typing import Annotated, Any from langchain_core.tools import tool

@tool async def inspectcustommetric( metricname: Annotated[str, "The name of the metric to query"], days: Annotated[int, "Number of lookback days"] = 7, ) -> dict[str, Any]: """Query custom operational metrics from the database.""" # Perform database query or API call return {"metric": metricname, "value": 42} ```

  1. Export the tool in [agentic-observatory/data/tools/__init__.py](file:///home/ms22/Codingstuff/Personal-Projects/github-backup-automation-system/agentic-observatory/data/tools/_init__.py).
  2. Add the tool to the TOOLS list in [agentic-observatory/agent/openrouter.py](file:///home/ms22/Coding_stuff/Personal-Projects/github-backup-automation-system/agentic-observatory/agent/openrouter.py).

2. Tool-Calling RAG & Vector Knowledge Base

The AI Observatory operates as a Tool-Calling RAG Agent:

  1. Pre-turn Retrieval: Injects top relevance chunks into system context before iteration 1.
  2. Dynamic Tool Calling: The agent calls hybrid_search_knowledge_base during reasoning loops for deep evidence gathering:

``python # Inside agent/openrouter.py: from data.tools import hybrid_search_knowledge_base ``

  • Supported source filters: ['chat_message', 'execution_log', 'investigation', 'backup_result', 'backup_fix'].
  • Combines Full-Text Search (tsvector), pgvector cosine similarity, and Reciprocal Rank Fusion (RRF).

3. Implementing Human-In-The-Loop (HITL) Actions

For sensitive actions (e.g., sending emails, applying hotfixes, modifying DB records):

  1. In agentic-observatory/agent/openrouter.py, intercept the tool before execution:

```python if toolname == "sendreportemail": confirmid = str(uuid.uuid4()) confirmevent = asyncio.Event() activeconfirmations[confirmid] = confirmevent

yield json.dumps({ "type": "confirmrequired", "confirmid": confirmid, "name": toolname, "args": toolargs, }) # Wait up to 120s for user response via /chat/confirm await asyncio.waitfor(confirm_event.wait(), timeout=120.0) ```

  1. Feed the user approval or rejection back to the LLM context.

4. Working with Multi-Key OpenRouter Failover

Always use [agentic-observatory/utils/openrouter_keys.py](file:///home/ms22/Codingstuff/Personal-Projects/github-backup-automation-system/agentic-observatory/utils/openrouterkeys.py):

  • get_openrouter_api_keys(): Returns all configured keys.
  • get_active_openrouter_key(): Returns the currently active working key.
  • rotate_openrouter_key(failed_key, reason): Advances to the next backup key when an error (401, 402, 429) occurs.

5. Comprehensive Agent Test Suites

Run the test suite commands:

# 1. Run all unit and integration tests across the system
make test

# 2. Run dedicated AI Agent & Tool-Calling RAG test suite
make test-agents

# 3. Direct execution of Agent tests
cd agentic-observatory && uv run python test_agent_suite.py

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.