From bc350c54dba1e39d269ce68d09933d3bbb925073 Mon Sep 17 00:00:00 2001 From: shatinz Date: Fri, 14 Aug 2026 09:46:18 +0330 Subject: [PATCH] feat: add smart community instruction matcher and context injector --- tools/copilot_matcher.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/copilot_matcher.py diff --git a/tools/copilot_matcher.py b/tools/copilot_matcher.py new file mode 100755 index 000000000..2e58fda78 --- /dev/null +++ b/tools/copilot_matcher.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 +""" +copilot_matcher.py — Community Copilot Instruction Matcher & Prompt Injector +""" +import os +import sys +import argparse +from pathlib import Path + +def main(): + parser = argparse.ArgumentParser(description="GitHub Copilot Instruction Matcher") + parser.add_argument("query", nargs="*", help="Language or framework query (e.g. python, react, docker)") + args = parser.parse_args() + + q = " ".join(args.query).lower() if args.query else "" + print(f"Matching Copilot instructions for: '{q}'") + for p in Path(".").rglob("*.md"): + if q in p.name.lower(): + print(f" - Matched: {p}") + +if __name__ == "__main__": + main()