resolver-query

Solid

Use when an operator asks which rule or policy governs a question — pricing exceptions, deploys, refunds, hiring — or wants to look up the matching rule in Meta/RESOLVER.md without reading the whole index by hand. Triggers: /resolver-query <question>, "which rule applies", "what's our policy on X", "does a rule cover this". Not for writing or editing rules (read-only) and not for rebuilding RESOLVER.md (use resolver-build.py).

AI & Automation 36 stars 35 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /resolver-query Look up which rule in `Meta/RESOLVER.md` applies to a natural-language question. The skill itself does NOT call an LLM. It reads RESOLVER.md, parses every rule row, and returns either a decisive match, a ranked candidate list, or "no rule matches." The host Claude session does the natural-language understanding on top of the structured output. ## When to run - An operator wonders which rule governs a recurring question (pricing, deploy, refund, hiring exception). - A new teammate wants to find the policy for a scenario without reading the full resolver index. - Any time the resolver layer should answer a query and the operator wants the structured candidate set in one call. ## How it works 1. The skill reads `Meta/RESOLVER.md` from the vault root. 2. It parses the YAML frontmatter for the build timestamp and counts. 3. It parses every row of the `## Rules` table into a structured record. 4. It runs a deterministic match against the question: a. Tokenize the question (lowercase, drop stopwords, keep stems). b. For each rule, score by token overlap against `rule_id`, source path, skill link, and source-file H1/topic when available. c. If exactly one rule scores >= the decisive threshold, return that rule directly. d. Otherwise return up to `--limit` rules ranked by score. e. If no rule scores above zero, return `no rule matches this query`. 5. The host session then reads the structured output and frames the answer to the operator. ## Step ...

Details

Author
mycelium-hq
Repository
mycelium-hq/ai-brain-starter
Created
5 months ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category