knowledge-base

Search Confluence runbooks, post-mortems, and documentation during incident investigations.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill knowledge-base-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-base
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/knowledge-base
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill knowledge-base-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) components.

What problem does it solve? During incident response, engineers waste time manually hunting through Confluence for runbooks, post-mortems, and architecture docs. This Skill lets an AI agent query Confluence directly to surface documented procedures and historical incident knowledge before deep technical debugging. ## Core Features & Use Cases - Runbook Discovery: Find runbooks, playbooks, and SOPs by service or alert name with relevance scoring. - Post-mortem Search: Locate past incident reviews filtered by service and time window to learn from history. - Flexible Search: Run general text searches, read full page content, or execute advanced CQL (Confluence Query Language) queries. - Use Case: When a HighErrorRate alert fires on the payment service, find the matching runbook, read its mitigation steps, and review post-mortems from the last 90 days for similar incidents. ## Quick Start Ask the agent to find a runbook for the payment service and summarize any related post-mortems from the last 90 days.

Frequently Asked Questions about knowledge-base

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find a runbook for a service in Confluence?

Run find_runbooks.py with the --service flag, such as python find_runbooks.py --service payment. It searches pages labeled runbook, playbook, or sop and scores relevance based on title matches. You can also filter by alert name or Confluence space.

How to search Confluence post-mortems for past incidents?

Use find_postmortems.py with a service name and optional --days window, for example --service checkout --days 180. It queries pages labeled postmortem or incident-review modified within that period and returns titles, IDs, and URLs.

What is CQL and how do I use it for Confluence search?

CQL is Confluence Query Language for filtered searches by label, space, date, and text. Pass a query to search_cql.py, such as --cql 'type = page AND label = "runbook"', to run advanced searches beyond simple text matching.

Do I need a Confluence API token to run these scripts?

In production, credentials are injected automatically by the IncidentFox credential proxy via CONFLUENCE_BASE_URL, so no token is needed. For local development, set CONFLUENCE_URL, CONFLUENCE_EMAIL, and CONFLUENCE_API_TOKEN environment variables.

Why does Confluence search return no results for my service?

Results may be empty if pages lack expected labels like runbook or postmortem, or if the search is scoped to the wrong space. Try a broader query with search_pages.py, remove the --space filter, or widen the --days window for post-mortems.