rag-query

Retrieve decisions, documentation, learnings, and patterns from a RAG corpus with filters.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/arbgjr/smart_alarm --skill rag-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-query
Source: https://github.com/arbgjr/smart_alarm/tree/main/.claude/skills/rag-query
Command: npx skills add https://github.com/arbgjr/smart_alarm --skill rag-query

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Esta skill facilita a consulta ao corpus de conhecimento do projeto (RAG), permitindo localizar decisões, documentação, aprendizados e padrões armazenados, para embasar decisões e reduzir buscas manuais.

Core Features & Use Cases

  • Consulta ao corpus de decisões (ADRs) relevantes.
  • Localiza documentação oficial e interna.
  • Recupera padrões de engenharia conhecidos e aprendizados para evitar erros repetidos.
  • Acesso rápido a aprendizados para apoiar a melhoria contínua.

Quick Start

Use rag-query to search for a topic like "autenticação" and retrieve related decisions, docs, patterns, and learnings from the project knowledge base.

Frequently Asked Questions about rag-query

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

FAQPage Schema
What is the best way to search a project knowledge corpus for past decisions and documentation?

You can retrieve ADRs, engineering patterns, and learnings from your project corpus by executing keyword-based searches with optional phase and concept filters. This mechanism uses graph-based expansion and decay boosting to return context-aware metadata and relevance scores.

Can I filter semantic search results by project phase and technical concept?

Yes, you can filter semantic search results by applying optional phase and concept constraints alongside your keyword queries. This refines the retrieval of decisions, docs, and patterns to provide context-aware results specifically matched to your current project phase.

How does the graph-based expansion and decay boosting mechanism work in RAG retrieval?

The RAG retrieval mechanism works by combining a lightweight text index with a graph-based expansion module and a simple decay boosting mechanism. This filters and ranks your project's decisions and learnings to return metadata, provenance, and relevance scores.

Do I need a specific database dependency to query project learnings and patterns?

No, you do not need a specific database dependency to query project learnings and patterns. The query system relies on a lightweight text index and requires only the pyyaml dependency to parse configurations and retrieve your stored knowledge corpus.

Why should I use targeted retrieval instead of manual searches for engineering patterns?

You should use targeted retrieval instead of manual searches because it quickly locates known engineering patterns and learnings to prevent repeated errors. It retrieves metadata, provenance, and relevance scores to support continuous improvement and decision-making.