[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DTVKS69FZSSBMM8E8A04K":3,"skill-same:01M79DTVKS69FZSSBMM8E8A04K":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M79DTVKS69FZSSBMM8E8A04K","hybrid-search-bm25-vector-fusion",null,"Architectural patterns, rank fusion algorithms (RRF, score normalization), HNSW vector index tuning, and production code for hybrid BM25 + dense vector search systems.","hamzabellouch\u002Fagent-skills","hamzabellouch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237856042?v=4","01M79BRYW7XAMK3YDWQEMTWGWS","Hamza Bellouch","01M79BRYWXQV3JK2TGVTX8GN2A",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FSearch_and_Knowledge_Graphs\u002Fhybrid-search-bm25-vector-fusion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hybrid-search-bm25-vector-fusion\ndescription: Architectural patterns, rank fusion algorithms (RRF, score normalization), HNSW vector index tuning, and production code for hybrid BM25 + dense vector search systems.\n---\n\n# Hybrid Search: BM25 & Vector Fusion Architecture\n\nThis skill provides architectural principles, rank fusion algorithms, HNSW vector tuning strategies, and production Python code implementations for combining sparse lexical search (BM25) with dense vector retrieval.\n\n---\n\n## 1. Core Architecture & Concept Comparison\n\nHybrid search combines the complementary strengths of **Sparse Lexical Retrieval** and **Dense Vector Retrieval**:\n\n| Characteristic | BM25 (Sparse Lexical) | Vector Search (Dense Semantic) |\n| :--- | :--- | :--- |\n| **Matching Mechanism** | Inverted index token exact matching & term frequency | HNSW \u002F IVF nearest neighbor in latent embedding space |\n| **Strengths** | Exact keyword matching, rare terms, product IDs, jargon, acronyms | Conceptual similarity, paraphrasing, multi-lingual semantic alignment |\n| **Weaknesses** | Vocabulary mismatch, zero recall on synonyms | Out-of-vocabulary domain shifts, failure on specific serial numbers \u002F IDs |\n| **Score Scale** | Unbounded $[0, \\infty)$ non-linear BM25 score | Bounded $[-1, 1]$ (Cosine) or $[0, 1]$ (Dot Product \u002F IP) |\n\n---\n\n## 2. Rank Fusion Algorithms\n\n### 2.1 Reciprocal Rank Fusion (RRF)\nRRF evaluates the rank position (not raw score) of documents across multiple retrieval streams to produce a single unified ranking.\n\n#### Formula:\n$$RRF\\_Score(d \\in D) = \\sum_{m \\in M} \\frac{1}{k + r_m(d)}$$\n\nWhere:\n- $M$: Set of retrieval algorithms (e.g., [BM25, Dense Vector]).\n- $r_m(d)$: Rank of document $d$ in system $m$ (1-indexed).\n- $k$: Smoothing constant (standard industry default: $k = 60$).\n\n**Key Advantage**: Immune to score scale disparities across different search engines or models.\n\n---\n\n### 2.2 Relative Score Fusion (Min-Max Normalization + Weighted Sum)\nNormalizes raw scores into $[0, 1]$ range before computing a weighted sum score.\n\n#### Formula:\n$$S_{norm}(d, m) = \\frac{S(d, m) - S_{min}(m)}{S_{max}(m) - S_{min}(m)}$$\n\n$$Score_{hybrid}(d) = \\alpha \\cdot S_{norm}(d, \\text{bm25}) + (1 - \\alpha) \\cdot S_{norm}(d, \\text{vector})$$\n\nWhere $\\alpha \\in [0, 1]$ represents the weight assigned to sparse lexical retrieval.\n\n---\n\n## 3. HNSW Vector Index Tuning Guidelines\n\nHierarchical Navigable Small World (HNSW) graphs control the speed vs. recall trade-off:\n\n- **`m` (Number of bi-directional links per node)**:\n  - Typical range: `16` to `64`.\n  - Higher `m` improves recall for high-dimensional vectors (>1024 dims) at the cost of higher memory consumption and build time.\n- **`ef_construction` (Depth of search during index creation)**:\n  - Typical range: `64` to `512`.\n  - Controls index build accuracy. Higher values increase indexing time but improve kNN search accuracy.\n- **`ef_search` (Depth of search during query execution)**:\n  - Typical range: `40` to `256`.\n  - Higher `ef_search` improves recall@k performance at the expense of query latency.\n\n---\n\n## 4. Production Python Implementation\n\nThe following complete module implements async concurrent retrieval for BM25 and Dense Vector search, followed by Reciprocal Rank Fusion and Cross-Encoder re-ranking.\n\n```python\nimport math\nimport asyncio\nimport logging\nfrom typing import List, Dict, Any, Tuple, Optional\n\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger(__name__)\n\nclass HybridSearchEngine:\n    def __init__(self, rrf_k: int = 60):\n        self.rrf_k = rrf_k\n\n    def reciprocal_rank_fusion(\n        self,\n        results_list: List[List[Dict[str, Any]]],\n        id_field: str = \"id\",\n        weights: Optional[List[float]] = None\n    ) -> List[Dict[str, Any]]:\n        \"\"\"\n        Combines multiple ordered search result lists using Weighted Reciprocal Rank Fusion.\n\n        :param results_list: List of ranked doc lists from distinct searchers.\n        :param id_field: Field name containing unique document identifier.\n        :param weights: Optional list of weights corresponding to each search list.\n        :return: Re-ranked consolidated list of documents with fusion scores.\n        \"\"\"\n        if weights is None:\n            weights = [1.0] * len(results_list)\n\n        doc_scores: Dict[str, float] = {}\n        doc_store: Dict[str, Dict[str, Any]] = {}\n\n        for list_idx, ranked_docs in enumerate(results_list):\n            w = weights[list_idx]\n            for rank, doc in enumerate(ranked_docs, start=1):\n                doc_id = str(doc[id_field])\n                rrf_score = w * (1.0 \u002F (self.rrf_k + rank))\n\n                if doc_id not in doc_scores:\n                    doc_scores[doc_id] = 0.0\n                    doc_store[doc_id] = doc.copy()\n                \n                doc_scores[doc_id] += rrf_score\n\n        # Sort documents by calculated RRF score descending\n        sorted_docs = sorted(\n            doc_scores.items(), key=lambda item: item[1], reverse=True\n        )\n\n        fused_results = []\n        for doc_id, score in sorted_docs:\n            merged_doc = doc_store[doc_id]\n            merged_doc[\"_hybrid_score\"] = score\n            fused_results.append(merged_doc)\n\n        return fused_results\n\n    def relative_score_fusion(\n        self,\n        bm25_results: List[Dict[str, Any]],\n        vector_results: List[Dict[str, Any]],\n        alpha: float = 0.5,\n        id_field: str = \"id\"\n    ) -> List[Dict[str, Any]]:\n        \"\"\"\n        Normalizes scores using Min-Max scaling and computes weighted linear combination.\n        \"\"\"\n        def normalize(docs: List[Dict[str, Any]], score_key: str) -> Dict[str, float]:\n            if not docs:\n                return {}\n            scores = [d[score_key] for d in docs]\n            min_s, max_s = min(scores), max(scores)\n            if math.isclose(min_s, max_s):\n                return {str(d[id_field]): 1.0 for d in docs}\n            return {\n                str(d[id_field]): (d[score_key] - min_s) \u002F (max_s - min_s)\n                for d in docs\n            }\n\n        bm25_norm = normalize(bm25_results, \"_score\")\n        vector_norm = normalize(vector_results, \"_score\")\n\n        doc_store = {str(d[id_field]): d for d in bm25_results + vector_results}\n        combined_scores: Dict[str, float] = {}\n\n        all_ids = set(bm25_norm.keys()).union(set(vector_norm.keys()))\n\n        for doc_id in all_ids:\n            s_bm25 = bm25_norm.get(doc_id, 0.0)\n            s_vec = vector_norm.get(doc_id, 0.0)\n            combined_scores[doc_id] = (alpha * s_bm25) + ((1.0 - alpha) * s_vec)\n\n        sorted_ids = sorted(combined_scores.items(), key=lambda x: x[1], reverse=True)\n        \n        output = []\n        for doc_id, score in sorted_ids:\n            item = doc_store[doc_id].copy()\n            item[\"_hybrid_score\"] = score\n            output.append(item)\n\n        return output\n\n\n# Async Execution Wrapper Example\nasync def simulate_lexical_search(query: str) -> List[Dict[str, Any]]:\n    await asyncio.sleep(0.02) # Mock latency\n    return [\n        {\"id\": \"doc1\", \"title\": \"Elasticsearch Tuning\", \"_score\": 14.5},\n        {\"id\": \"doc2\", \"title\": \"Vector Databases Guide\", \"_score\": 8.2},\n        {\"id\": \"doc3\", \"title\": \"Python Async Basics\", \"_score\": 4.1},\n    ]\n\nasync def simulate_vector_search(vector: List[float]) -> List[Dict[str, Any]]:\n    await asyncio.sleep(0.03) # Mock latency\n    return [\n        {\"id\": \"doc2\", \"title\": \"Vector Databases Guide\", \"_score\": 0.92},\n        {\"id\": \"doc4\", \"title\": \"HNSW Algorithm Explained\", \"_score\": 0.88},\n        {\"id\": \"doc1\", \"title\": \"Elasticsearch Tuning\", \"_score\": 0.75},\n    ]\n\nasync def run_hybrid_pipeline(query: str, query_vector: List[float]):\n    search_engine = HybridSearchEngine(rrf_k=60)\n\n    # Concurrently execute lexical and vector search streams\n    bm25_task = asyncio.create_task(simulate_lexical_search(query))\n    vec_task = asyncio.create_task(simulate_vector_search(query_vector))\n\n    bm25_res, vec_res = await asyncio.gather(bm25_task, vec_task)\n\n    # Fuse using RRF\n    rrf_fused = search_engine.reciprocal_rank_fusion(\n        results_list=[bm25_res, vec_res], weights=[1.0, 1.2]\n    )\n\n    logger.info(\"Hybrid Search RRF Top Result: %s (Score: %.4f)\", \n                rrf_fused[0][\"title\"], rrf_fused[0][\"_hybrid_score\"])\n\nif __name__ == \"__main__\":\n    asyncio.run(run_hybrid_pipeline(\"search tuning\", [0.1] * 1536))\n```\n\n---\n\n## 5. Production OpenSearch Native Hybrid Search Pipeline\n\nOpenSearch 2.11+ supports native Search Pipelines with RRF or Score Normalization:\n\n```json\nPUT \u002F_search\u002Fpipeline\u002Fhybrid_rrf_pipeline\n{\n  \"description\": \"Native Hybrid Search Pipeline with RRF\",\n  \"phase_results_processors\": [\n    {\n      \"normalization-processor\": {\n        \"normalization\": {\n          \"technique\": \"min_max\"\n        },\n        \"combination\": {\n          \"technique\": \"arithmetic_mean\",\n          \"parameters\": {\n            \"weights\": [0.4, 0.6]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n---\n\n## 6. Anti-Patterns & Operational Pitfalls\n\n| Anti-Pattern | Failure Mode | Corrective Action |\n| :--- | :--- | :--- |\n| **Direct Sum of Unnormalized Raw Scores** | BM25 scores (0–100+) dwarf vector cosine scores (0–1.0), rendering vector search useless. | Use RRF or Min-Max Relative Score Normalization before summing. |\n| **Post-Filtering Vector Results** | Filters applied after vector kNN search truncate top-k candidates drastically. | Use **Single-Stage Pre-Filtering** in HNSW vector query. |\n| **Static Weight Allocation for All Queries** | Fixed $\\alpha$ weights perform poorly when queries vary between exact specs and conceptual prompts. | Use query classification to dynamically adjust $\\alpha$ weights. |\n| **High `ef_search` Under Heavy Load** | CPU usage spikes linearly with higher `ef_search` values, degrading P99 latency. | Benchmark recall@k vs. latency to find minimum acceptable `ef_search`. |\n","# Hybrid Search: BM25 & Vector Fusion Architecture\n\nThis skill provides architectural principles, rank fusion algorithms, HNSW vector tuning strategies, and production Python code implementations for combining sparse lexical search (BM25) with dense vector retrieval.\n\n---\n\n## 1. Core Architecture & Concept Comparison\n\nHybrid search combines the complementary strengths of **Sparse Lexical Retrieval** and **Dense Vector Retrieval**:\n\n| Characteristic | BM25 (Sparse Lexical) | Vector Search (Dense Semantic) |\n| :--- | :--- | :--- |\n| **Matching Mechanism** | Inverted index token exact matching & term frequency | HNSW \u002F IVF nearest neighbor in latent embedding space |\n| **Strengths** | Exact keyword matching, rare terms, product IDs, jargon, acronyms | Conceptual similarity, paraphrasing, multi-lingual semantic alignment |\n| **Weaknesses** | Vocabulary mismatch, zero recall on synonyms | Out-of-vocabulary domain shifts, failure on specific serial numbers \u002F IDs |\n| **Score Scale** | Unbounded $[0, \\infty)$ non-linear BM25 score | Bounded $[-1, 1]$ (Cosine) or $[0, 1]$ (Dot Product \u002F IP) |\n\n---\n\n## 2. Rank Fusion Algorithms\n\n### 2.1 Reciprocal Rank Fusion (RRF)\nRRF evaluates the rank position (not raw score) of documents across multiple retrieval streams to produce a single unified ranking.\n\n#### Formula:\n$$RRF\\_Score(d \\in D) = \\sum_{m \\in M} \\frac{1}{k + r_m(d)}$$\n\nWhere:\n- $M$: Set of retrieval algorithms (e.g., [BM25, Dense Vector]).\n- $r_m(d)$: Rank of document $d$ in system $m$ (1-indexed).\n- $k$: Smoothing constant (standard industry default: $k = 60$).\n\n**Key Advantage**: Immune to score scale disparities across different search engines or models.\n\n---\n\n### 2.2 Relative Score Fusion (Min-Max Normalization + Weighted Sum)\nNormalizes raw scores into $[0, 1]$ range before computing a weighted sum score.\n\n#### Formula:\n$$S_{norm}(d, m) = \\frac{S(d, m) - S_{min}(m)}{S_{max}(m) - S_{min}(m)}$$\n\n$$Score_{hybrid}(d) = \\alpha \\cdot S_{norm}(d, \\text{bm25}) + (1 - \\alpha) \\cdot S_{norm}(d, \\text{vector})$$\n\nWhere $\\alpha \\in [0, 1]$ represents the weight assigned to sparse lexical retrieval.\n\n---\n\n## 3. HNSW Vector Index Tuning Guidelines\n\nHierarchical Navigable Small World (HNSW) graphs control the speed vs. recall trade-off:\n\n- **`m` (Number of bi-directional links per node)**:\n  - Typical range: `16` to `64`.\n  - Higher `m` improves recall for high-dimensional vectors (>1024 dims) at the cost of higher memory consumption and build time.\n- **`ef_construction` (Depth of search during index creation)**:\n  - Typical range: `64` to `512`.\n  - Controls index build accuracy. Higher values increase indexing time but improve kNN search accuracy.\n- **`ef_search` (Depth of search during query execution)**:\n  - Typical range: `40` to `256`.\n  - Higher `ef_search` improves recall@k performance at the expense of query latency.\n\n---\n\n## 4. Production Python Implementation\n\nThe following complete module implements async concurrent retrieval for BM25 and Dense Vector search, followed by Reciprocal Rank Fusion and Cross-Encoder re-ranking.\n\n```python\nimport math\nimport asyncio\nimport logging\nfrom typing import List, Dict, Any, Tuple, Optional\n\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger(__name__)\n\nclass HybridSearchEngine:\n    def __init__(self, rrf_k: int = 60):\n        self.rrf_k = rrf_k\n\n    def reciprocal_rank_fusion(\n        self,\n        results_list: List[List[Dict[str, Any]]],\n        id_field: str = \"id\",\n        weights: Optional[List[float]] = None\n    ) -> List[Dict[str, Any]]:\n        \"\"\"\n        Combines multiple ordered search result lists using Weighted Reciprocal Rank Fusion.\n\n        :param results_list: List of ranked doc lists from distinct searchers.\n        :param id_field: Field name containing unique document identifier.\n        :param weights: Optional list of weights corresponding to each search list.\n        :return: Re-ranked consolidated list of documents with fusion scores.\n        \"\"\"\n        if weights is None:\n            weights = [1.0] * len(results_list)\n\n        doc_scores: Dict[str, float] = {}\n        doc_store: Dict[str, Dict[str, Any]] = {}\n\n        for list_idx, ranked_docs in enumerate(results_list):\n            w = weights[list_idx]\n            for rank, doc in enumerate(ranked_docs, start=1):\n                doc_id = str(doc[id_field])\n                rrf_score = w * (1.0 \u002F (self.rrf_k + rank))\n\n                if doc_id not in doc_scores:\n                    doc_scores[doc_id] = 0.0\n                    doc_store[doc_id] = doc.copy()\n                \n                doc_scores[doc_id] += rrf_score\n\n        # Sort documents by calculated RRF score descending\n        sorted_docs = sorted(\n            doc_scores.items(), key=lambda item: item[1], reverse=True\n        )\n\n        fused_results = []\n        for doc_id, score in sorted_docs:\n            merged_doc = doc_store[doc_id]\n            merged_doc[\"_hybrid_score\"] = score\n            fused_results.append(merged_doc)\n\n        return fused_results\n\n    def relative_score_fusion(\n        self,\n        bm25_results: List[Dict[str, Any]],\n        vector_results: List[Dict[str, Any]],\n        alpha: float = 0.5,\n        id_field: str = \"id\"\n    ) -> List[Dict[str, Any]]:\n        \"\"\"\n        Normalizes scores using Min-Max scaling and computes weighted linear combination.\n        \"\"\"\n        def normalize(docs: List[Dict[str, Any]], score_key: str) -> Dict[str, float]:\n            if not docs:\n                return {}\n            scores = [d[score_key] for d in docs]\n            min_s, max_s = min(scores), max(scores)\n            if math.isclose(min_s, max_s):\n                return {str(d[id_field]): 1.0 for d in docs}\n            return {\n                str(d[id_field]): (d[score_key] - min_s) \u002F (max_s - min_s)\n                for d in docs\n            }\n\n        bm25_norm = normalize(bm25_results, \"_score\")\n        vector_norm = normalize(vector_results, \"_score\")\n\n        doc_store = {str(d[id_field]): d for d in bm25_results + vector_results}\n        combined_scores: Dict[str, float] = {}\n\n        all_ids = set(bm25_norm.keys()).union(set(vector_norm.keys()))\n\n        for doc_id in all_ids:\n            s_bm25 = bm25_norm.get(doc_id, 0.0)\n            s_vec = vector_norm.get(doc_id, 0.0)\n            combined_scores[doc_id] = (alpha * s_bm25) + ((1.0 - alpha) * s_vec)\n\n        sorted_ids = sorted(combined_scores.items(), key=lambda x: x[1], reverse=True)\n        \n        output = []\n        for doc_id, score in sorted_ids:\n            item = doc_store[doc_id].copy()\n            item[\"_hybrid_score\"] = score\n            output.append(item)\n\n        return output\n\n\n# Async Execution Wrapper Example\nasync def simulate_lexical_search(query: str) -> List[Dict[str, Any]]:\n    await asyncio.sleep(0.02) # Mock latency\n    return [\n        {\"id\": \"doc1\", \"title\": \"Elasticsearch Tuning\", \"_score\": 14.5},\n        {\"id\": \"doc2\", \"title\": \"Vector Databases Guide\", \"_score\": 8.2},\n        {\"id\": \"doc3\", \"title\": \"Python Async Basics\", \"_score\": 4.1},\n    ]\n\nasync def simulate_vector_search(vector: List[float]) -> List[Dict[str, Any]]:\n    await asyncio.sleep(0.03) # Mock latency\n    return [\n        {\"id\": \"doc2\", \"title\": \"Vector Databases Guide\", \"_score\": 0.92},\n        {\"id\": \"doc4\", \"title\": \"HNSW Algorithm Explained\", \"_score\": 0.88},\n        {\"id\": \"doc1\", \"title\": \"Elasticsearch Tuning\", \"_score\": 0.75},\n    ]\n\nasync def run_hybrid_pipeline(query: str, query_vector: List[float]):\n    search_engine = HybridSearchEngine(rrf_k=60)\n\n    # Concurrently execute lexical and vector search streams\n    bm25_task = asyncio.create_task(simulate_lexical_search(query))\n    vec_task = asyncio.create_task(simulate_vector_search(query_vector))\n\n    bm25_res, vec_res = await asyncio.gather(bm25_task, vec_task)\n\n    # Fuse using RRF\n    rrf_fused = search_engine.reciprocal_rank_fusion(\n        results_list=[bm25_res, vec_res], weights=[1.0, 1.2]\n    )\n\n    logger.info(\"Hybrid Search RRF Top Result: %s (Score: %.4f)\", \n                rrf_fused[0][\"title\"], rrf_fused[0][\"_hybrid_score\"])\n\nif __name__ == \"__main__\":\n    asyncio.run(run_hybrid_pipeline(\"search tuning\", [0.1] * 1536))\n```\n\n---\n\n## 5. Production OpenSearch Native Hybrid Search Pipeline\n\nOpenSearch 2.11+ supports native Search Pipelines with RRF or Score Normalization:\n\n```json\nPUT \u002F_search\u002Fpipeline\u002Fhybrid_rrf_pipeline\n{\n  \"description\": \"Native Hybrid Search Pipeline with RRF\",\n  \"phase_results_processors\": [\n    {\n      \"normalization-processor\": {\n        \"normalization\": {\n          \"technique\": \"min_max\"\n        },\n        \"combination\": {\n          \"technique\": \"arithmetic_mean\",\n          \"parameters\": {\n            \"weights\": [0.4, 0.6]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n---\n\n## 6. Anti-Patterns & Operational Pitfalls\n\n| Anti-Pattern | Failure Mode | Corrective Action |\n| :--- | :--- | :--- |\n| **Direct Sum of Unnormalized Raw Scores** | BM25 scores (0–100+) dwarf vector cosine scores (0–1.0), rendering vector search useless. | Use RRF or Min-Max Relative Score Normalization before summing. |\n| **Post-Filtering Vector Results** | Filters applied after vector kNN search truncate top-k candidates drastically. | Use **Single-Stage Pre-Filtering** in HNSW vector query. |\n| **Static Weight Allocation for All Queries** | Fixed $\\alpha$ weights perform poorly when queries vary between exact specs and conceptual prompts. | Use query classification to dynamically adjust $\\alpha$ weights. |\n| **High `ef_search` Under Heavy Load** | CPU usage spikes linearly with higher `ef_search` values, degrading P99 latency. | Benchmark recall@k vs. latency to find minimum acceptable `ef_search`. |\n",{"name":5,"description":7},"main","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Programming\u002FAI_Engineering_and_Platforms\u002FSearch_and_Knowledge_Graphs\u002Fhybrid-search-bm25-vector-fusion",1,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills","https:\u002F\u002Fhamzabellouch.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fhamzabellouch","hamzabellouch.github.io","CEO & Founder of @tknoglobal | Researcher in Technology & Applied Sciences.","2026-10-17 03:20:19",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add hamzabellouch\u002Fagent-skills --skill hybrid-search-bm25-vector-fusion",{"tool":40,"command":41},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill hybrid-search-bm25-vector-fusion",{"tool":43,"command":44},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill hybrid-search-bm25-vector-fusion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FSearch_and_Knowledge_Graphs\u002Fhybrid-search-bm25-vector-fusion\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M79FHH2H815A9TAP6WNKH4Q8","security-audit","Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FSecurity_Audit_and_Code_Review\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M79FHBGXVBY6VQ1X7ETAZMF1","malware-analysis-reversing","Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static\u002Fdynamic binary analysis, memory forensics, and YARA detection rule authoring.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fmalware-analysis-reversing\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M79FH6EACDR801TZCE4R8SAC","application-security-pentesting","Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST\u002FDAST pipeline integration, secure code review, threat modeling, and defensive security posture.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fapplication-security-pentesting\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M79FH0VKVT44FK923K520ZQA","oauth2-oidc-security-flows","Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Foauth2-oidc-security-flows\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M79FGVVB3R4T88XXD8FRSV5B","jwt-session-management-hardening","Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256\u002FEdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Fjwt-session-management-hardening\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M79FGNCPZ85CVEY0B3NE4H3B","soc2-compliance-automation","Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI\u002FCD security gates.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FGovernance_Compliance_and_Legal_Tech\u002Fsoc2-compliance-automation\u002FSKILL.md",[],[]]