Install
$ agentstack add skill-mishrashardendu22-agent-skills-agent-observatory-workflow ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
- 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} ```
- 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). - Add the tool to the
TOOLSlist 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:
- Pre-turn Retrieval: Injects top relevance chunks into system context before iteration 1.
- Dynamic Tool Calling: The agent calls
hybrid_search_knowledge_baseduring 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):
- 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) ```
- 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.
- Author: MishraShardendu22
- Source: MishraShardendu22/agent-skills
- License: MIT
- Homepage: https://github.mishrashardendu22.is-a.dev
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.