[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DTPAWW7K63C13MDQRTRK6":3,"skill-same:01M79DTPAWW7K63C13MDQRTRK6":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},"01M79DTPAWW7K63C13MDQRTRK6","elasticsearch-and-opensearch-tuning",null,"Production guidance and performance tuning strategies for Elasticsearch and OpenSearch clusters, covering indexing, query optimization, mapping design, memory management, and scaling.","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\u002Felasticsearch-and-opensearch-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: elasticsearch-and-opensearch-tuning\ndescription: Production guidance and performance tuning strategies for Elasticsearch and OpenSearch clusters, covering indexing, query optimization, mapping design, memory management, and scaling.\n---\n\n# Elasticsearch & OpenSearch Tuning Guide\n\nThis skill provides comprehensive instructions, architectural pattern guidelines, and production-ready code examples for optimizing Elasticsearch and OpenSearch for high-throughput indexing, ultra-low latency search, and cost-effective cluster scaling.\n\n---\n\n## 1. Indexing & Mapping Strategies\n\n### 1.1 Field Mapping Optimization\n- **Disable `_source` selectively** only when raw document retrieval is unnecessary and storage budget is tight; otherwise keep `_source` enabled for reindexing capabilities.\n- **Set `index: false`** on fields used only for storage\u002Fretrieval (e.g., metadata blobs, raw HTML strings) to prevent inverted index overhead.\n- **Explicit Mappings over Dynamic Mappings**: Never rely on dynamic mapping in production. Dynamic mapping introduces field explosion risks (`keyword` + `text` dual fields by default).\n- **Use `doc_values: false`** for high-cardinality text or keyword fields that will **never** be used for aggregations, sorting, or scripting.\n- **Optimize Text Analysis**:\n  - Disable norm storage (`norms: false`) on text fields where relevance scoring is not required (e.g., exact matches, filter-only text).\n  - Use `index_options: docs` for fields where positional or phrase queries are not needed (saves term frequency and position offset storage).\n\n#### Optimized Mapping Definition (DSL)\n```json\n{\n  \"settings\": {\n    \"index\": {\n      \"number_of_shards\": 3,\n      \"number_of_replicas\": 1,\n      \"refresh_interval\": \"30s\",\n      \"translog\": {\n        \"durability\": \"async\",\n        \"sync_interval\": \"5s\",\n        \"flush_threshold_size\": \"1gb\"\n      },\n      \"codec\": \"best_compression\"\n    }\n  },\n  \"mappings\": {\n    \"dynamic\": \"strict\",\n    \"properties\": {\n      \"id\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true\n      },\n      \"title\": {\n        \"type\": \"text\",\n        \"analyzer\": \"standard\",\n        \"fields\": {\n          \"raw\": {\n            \"type\": \"keyword\",\n            \"ignore_above\": 256\n          }\n        }\n      },\n      \"body\": {\n        \"type\": \"text\",\n        \"analyzer\": \"standard\",\n        \"index_options\": \"positions\",\n        \"norms\": true\n      },\n      \"category_id\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true,\n        \"norms\": false\n      },\n      \"status\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true\n      },\n      \"created_at\": {\n        \"type\": \"date\",\n        \"format\": \"strict_date_optional_time||epoch_millis\"\n      },\n      \"payload_metadata\": {\n        \"type\": \"keyword\",\n        \"index\": false,\n        \"doc_values\": false\n      }\n    }\n  }\n}\n```\n\n---\n\n### 1.2 Bulk Ingestion & Shard Sizing\n- **Bulk Batch Size**: Ideal bulk request payload is typically between **5MB to 15MB** per request (or 2,000–5,000 documents depending on doc size). Tune based on CPU and throughput benchmarks rather than fixed doc counts.\n- **Shard Sizing Standard**:\n  - **Search-heavy indices**: Shard size should be **10GB to 30GB**.\n  - **Logging \u002F Time-series indices**: Shard size should be **30GB to 50GB**.\n  - Target total shards per GB of JVM heap: Keep under **20 shards per GB of heap**.\n- **Indexing Throughput Tuning**:\n  - Increase `refresh_interval` from `1s` to `30s` or `60s` during heavy bulk ingestion.\n  - Set `number_of_replicas: 0` during initial bulk loading, then restore to `1` or `2` after load completes.\n  - Configure `translog.durability: async` for non-critical logging workloads to eliminate synchronous disk commits on every indexing request.\n\n---\n\n## 2. Query Tuning & Performance Optimization\n\n### 2.1 Query Execution: Filter vs. Query Context\n- **Filter Context (`filter`, `must_not`)**: Does not compute relevance scores (`_score`). Results are cached in the **Node Query Cache** (LRU bitsets). Always place non-scoring exact-match conditions inside `filter`.\n- **Query Context (`must`, `should`)**: Computes relevance scores using BM25. Use exclusively for text relevance matching.\n\n#### Optimized Multi-Clause Search Request\n```json\n{\n  \"query\": {\n    \"bool\": {\n      \"filter\": [\n        { \"term\": { \"status\": \"active\" } },\n        { \"range\": { \"created_at\": { \"gte\": \"now-7d\u002Fd\" } } }\n      ],\n      \"must\": [\n        {\n          \"match\": {\n            \"title\": {\n              \"query\": \"distributed graph database\",\n              \"operator\": \"and\",\n              \"fuzziness\": \"AUTO:4,8\"\n            }\n          }\n        }\n      ],\n      \"should\": [\n        {\n          \"match_phrase\": {\n            \"body\": {\n              \"query\": \"distributed graph database\",\n              \"slop\": 2,\n              \"boost\": 2.5\n            }\n          }\n        }\n      ]\n    }\n  },\n  \"timeout\": \"500ms\",\n  \"terminate_after\": 10000,\n  \"_source\": [\"id\", \"title\", \"created_at\"]\n}\n```\n\n---\n\n### 2.2 Deep Pagination Mitigation\n- **Avoid `from` + `size`** for deep page iteration (`from + size > 10,000` causes Memory Overflow and high JVM CPU utilization).\n- **Use `search_after` with Point In Time (PIT)** for deterministic stateless pagination over large result sets:\n\n#### Python Production Example: `search_after` with PIT\n```python\nimport logging\nfrom typing import List, Dict, Any, Generator\nfrom opensearchpy import OpenSearch, NotFoundError\n\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger(__name__)\n\nclass DeepPaginationClient:\n    def __init__(self, client: OpenSearch, index_name: str):\n        self.client = client\n        self.index_name = index_name\n\n    def iterate_all_documents(\n        self, query: Dict[str, Any], page_size: int = 1000\n    ) -> Generator[Dict[str, Any], None, None]:\n        \"\"\"\n        Executes deep pagination efficiently using Point In Time (PIT) \u002F search_after.\n        \"\"\"\n        # Create Point In Time (PIT) context (OpenSearch \u002F ES 7.10+)\n        try:\n            pit_resp = self.client.create_point_in_time(\n                index=self.index_name, keep_alive=\"2m\"\n            )\n            pit_id = pit_resp[\"pit_id\"]\n        except Exception as e:\n            logger.error(\"Failed to create Point In Time context: %s\", str(e))\n            raise\n\n        search_after_mark = None\n        total_fetched = 0\n\n        try:\n            while True:\n                body: Dict[str, Any] = {\n                    \"size\": page_size,\n                    \"query\": query,\n                    \"sort\": [\n                        {\"created_at\": {\"order\": \"desc\"}},\n                        {\"_shard_doc\": {\"order\": \"asc\"}} # Tie-breaker\n                    ],\n                    \"pit\": {\n                        \"id\": pit_id,\n                        \"keep_alive\": \"2m\"\n                    }\n                }\n\n                if search_after_mark:\n                    body[\"search_after\"] = search_after_mark\n\n                response = self.client.search(body=body)\n                hits = response[\"hits\"][\"hits\"]\n\n                if not hits:\n                    break\n\n                for hit in hits:\n                    yield hit[\"_source\"]\n                    total_fetched += 1\n\n                search_after_mark = hits[-1][\"sort\"]\n                logger.debug(\"Fetched batch of %d docs. Total: %d\", len(hits), total_fetched)\n\n        finally:\n            # Always release PIT resources\n            try:\n                self.client.delete_point_in_time(body={\"pit_id\": pit_id})\n            except Exception as e:\n                logger.warning(\"Failed to delete PIT context: %s\", str(e))\n```\n\n---\n\n## 3. Memory & Infrastructure Management\n\n### 3.1 JVM Heap Allocation\n- Set `-Xms` and `-Xmx` to the **exact same value** to prevent dynamic heap resizing runtime pauses.\n- **Never exceed 32GB heap**: Keep JVM heap under the Compressed OOPs threshold (typically **30GB–31GB** depending on JDK version) to ensure 32-bit pointer efficiency.\n- Allocate **50% of total system RAM to JVM Heap** and leave the remaining 50% for **OS Filesystem Page Cache** (crucial for Doc Values, Lucene segment caching, and bloom filters).\n\n### 3.2 Circuit Breakers & Thread Pools\n- **Parent Circuit Breaker**: Set `indices.breaker.total.use_real_memory: true` with limit `70%` to prevent OutOfMemoryError (OOM).\n- **Fielddata Breaker**: Set `indices.breaker.fielddata.limit: 40%`. Avoid using `fielddata: true` on `text` fields; use `keyword` fields with `doc_values`.\n- **Search Thread Pool Queue**: `thread_pool.search.queue_size: 1000`. Do not set arbitrarily high; larger queues cause task latency accumulation and high garbage collection pressure.\n\n---\n\n## 4. Production Anti-Patterns & Solutions\n\n| Anti-Pattern | Operational Impact | Recommended Solution |\n| :--- | :--- | :--- |\n| **Dynamic Mapping Explosion** | Unbounded field creation leads to cluster state degradation and OOM. | Set `\"dynamic\": \"strict\"` in index mappings. |\n| **Using `wildcard` with leading asterisk (`*foo`)** | Forces full inverted index scanning; severe CPU consumption. | Use `wildcard` field type or n-gram tokenizer (`edge_ngram`). |\n| **Over-Sharding** | Thousands of small shards (\u003C1GB) exhaust JVM heap on metadata. | Reindex\u002FShrink indices to maintain 10GB–50GB per shard. |\n| **Deep `from` + `size` Pagination** | Linear RAM and CPU scaling ($O(N)$ memory cost per request). | Use `search_after` with PIT or `scroll` API (for batch export). |\n| **Heavy `script_score` Without Caching** | High CPU overhead per doc evaluation during query phase. | Pre-compute values at ingestion or use `painless` optimized scripts. |\n\n---\n\n## 5. Diagnostic & Monitoring Commands\n\n### Checking Cluster Health & Shard Distribution\n```bash\n# Cluster health summary\nGET \u002F_cluster\u002Fhealth?v\n\n# Shard count and size per index\nGET \u002F_cat\u002Fshards?v&s=index,shard&h=index,shard,prirep,state,docs,store,node\n\n# Circuit breaker states and memory usage\nGET \u002F_nodes\u002Fstats\u002Fbreaker\n\n# Fielddata and Query Cache memory usage\nGET \u002F_nodes\u002Fstats\u002Findices\u002Ffielddata,query_cache,request_cache?human=true\n```\n","# Elasticsearch & OpenSearch Tuning Guide\n\nThis skill provides comprehensive instructions, architectural pattern guidelines, and production-ready code examples for optimizing Elasticsearch and OpenSearch for high-throughput indexing, ultra-low latency search, and cost-effective cluster scaling.\n\n---\n\n## 1. Indexing & Mapping Strategies\n\n### 1.1 Field Mapping Optimization\n- **Disable `_source` selectively** only when raw document retrieval is unnecessary and storage budget is tight; otherwise keep `_source` enabled for reindexing capabilities.\n- **Set `index: false`** on fields used only for storage\u002Fretrieval (e.g., metadata blobs, raw HTML strings) to prevent inverted index overhead.\n- **Explicit Mappings over Dynamic Mappings**: Never rely on dynamic mapping in production. Dynamic mapping introduces field explosion risks (`keyword` + `text` dual fields by default).\n- **Use `doc_values: false`** for high-cardinality text or keyword fields that will **never** be used for aggregations, sorting, or scripting.\n- **Optimize Text Analysis**:\n  - Disable norm storage (`norms: false`) on text fields where relevance scoring is not required (e.g., exact matches, filter-only text).\n  - Use `index_options: docs` for fields where positional or phrase queries are not needed (saves term frequency and position offset storage).\n\n#### Optimized Mapping Definition (DSL)\n```json\n{\n  \"settings\": {\n    \"index\": {\n      \"number_of_shards\": 3,\n      \"number_of_replicas\": 1,\n      \"refresh_interval\": \"30s\",\n      \"translog\": {\n        \"durability\": \"async\",\n        \"sync_interval\": \"5s\",\n        \"flush_threshold_size\": \"1gb\"\n      },\n      \"codec\": \"best_compression\"\n    }\n  },\n  \"mappings\": {\n    \"dynamic\": \"strict\",\n    \"properties\": {\n      \"id\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true\n      },\n      \"title\": {\n        \"type\": \"text\",\n        \"analyzer\": \"standard\",\n        \"fields\": {\n          \"raw\": {\n            \"type\": \"keyword\",\n            \"ignore_above\": 256\n          }\n        }\n      },\n      \"body\": {\n        \"type\": \"text\",\n        \"analyzer\": \"standard\",\n        \"index_options\": \"positions\",\n        \"norms\": true\n      },\n      \"category_id\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true,\n        \"norms\": false\n      },\n      \"status\": {\n        \"type\": \"keyword\",\n        \"doc_values\": true\n      },\n      \"created_at\": {\n        \"type\": \"date\",\n        \"format\": \"strict_date_optional_time||epoch_millis\"\n      },\n      \"payload_metadata\": {\n        \"type\": \"keyword\",\n        \"index\": false,\n        \"doc_values\": false\n      }\n    }\n  }\n}\n```\n\n---\n\n### 1.2 Bulk Ingestion & Shard Sizing\n- **Bulk Batch Size**: Ideal bulk request payload is typically between **5MB to 15MB** per request (or 2,000–5,000 documents depending on doc size). Tune based on CPU and throughput benchmarks rather than fixed doc counts.\n- **Shard Sizing Standard**:\n  - **Search-heavy indices**: Shard size should be **10GB to 30GB**.\n  - **Logging \u002F Time-series indices**: Shard size should be **30GB to 50GB**.\n  - Target total shards per GB of JVM heap: Keep under **20 shards per GB of heap**.\n- **Indexing Throughput Tuning**:\n  - Increase `refresh_interval` from `1s` to `30s` or `60s` during heavy bulk ingestion.\n  - Set `number_of_replicas: 0` during initial bulk loading, then restore to `1` or `2` after load completes.\n  - Configure `translog.durability: async` for non-critical logging workloads to eliminate synchronous disk commits on every indexing request.\n\n---\n\n## 2. Query Tuning & Performance Optimization\n\n### 2.1 Query Execution: Filter vs. Query Context\n- **Filter Context (`filter`, `must_not`)**: Does not compute relevance scores (`_score`). Results are cached in the **Node Query Cache** (LRU bitsets). Always place non-scoring exact-match conditions inside `filter`.\n- **Query Context (`must`, `should`)**: Computes relevance scores using BM25. Use exclusively for text relevance matching.\n\n#### Optimized Multi-Clause Search Request\n```json\n{\n  \"query\": {\n    \"bool\": {\n      \"filter\": [\n        { \"term\": { \"status\": \"active\" } },\n        { \"range\": { \"created_at\": { \"gte\": \"now-7d\u002Fd\" } } }\n      ],\n      \"must\": [\n        {\n          \"match\": {\n            \"title\": {\n              \"query\": \"distributed graph database\",\n              \"operator\": \"and\",\n              \"fuzziness\": \"AUTO:4,8\"\n            }\n          }\n        }\n      ],\n      \"should\": [\n        {\n          \"match_phrase\": {\n            \"body\": {\n              \"query\": \"distributed graph database\",\n              \"slop\": 2,\n              \"boost\": 2.5\n            }\n          }\n        }\n      ]\n    }\n  },\n  \"timeout\": \"500ms\",\n  \"terminate_after\": 10000,\n  \"_source\": [\"id\", \"title\", \"created_at\"]\n}\n```\n\n---\n\n### 2.2 Deep Pagination Mitigation\n- **Avoid `from` + `size`** for deep page iteration (`from + size > 10,000` causes Memory Overflow and high JVM CPU utilization).\n- **Use `search_after` with Point In Time (PIT)** for deterministic stateless pagination over large result sets:\n\n#### Python Production Example: `search_after` with PIT\n```python\nimport logging\nfrom typing import List, Dict, Any, Generator\nfrom opensearchpy import OpenSearch, NotFoundError\n\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger(__name__)\n\nclass DeepPaginationClient:\n    def __init__(self, client: OpenSearch, index_name: str):\n        self.client = client\n        self.index_name = index_name\n\n    def iterate_all_documents(\n        self, query: Dict[str, Any], page_size: int = 1000\n    ) -> Generator[Dict[str, Any], None, None]:\n        \"\"\"\n        Executes deep pagination efficiently using Point In Time (PIT) \u002F search_after.\n        \"\"\"\n        # Create Point In Time (PIT) context (OpenSearch \u002F ES 7.10+)\n        try:\n            pit_resp = self.client.create_point_in_time(\n                index=self.index_name, keep_alive=\"2m\"\n            )\n            pit_id = pit_resp[\"pit_id\"]\n        except Exception as e:\n            logger.error(\"Failed to create Point In Time context: %s\", str(e))\n            raise\n\n        search_after_mark = None\n        total_fetched = 0\n\n        try:\n            while True:\n                body: Dict[str, Any] = {\n                    \"size\": page_size,\n                    \"query\": query,\n                    \"sort\": [\n                        {\"created_at\": {\"order\": \"desc\"}},\n                        {\"_shard_doc\": {\"order\": \"asc\"}} # Tie-breaker\n                    ],\n                    \"pit\": {\n                        \"id\": pit_id,\n                        \"keep_alive\": \"2m\"\n                    }\n                }\n\n                if search_after_mark:\n                    body[\"search_after\"] = search_after_mark\n\n                response = self.client.search(body=body)\n                hits = response[\"hits\"][\"hits\"]\n\n                if not hits:\n                    break\n\n                for hit in hits:\n                    yield hit[\"_source\"]\n                    total_fetched += 1\n\n                search_after_mark = hits[-1][\"sort\"]\n                logger.debug(\"Fetched batch of %d docs. Total: %d\", len(hits), total_fetched)\n\n        finally:\n            # Always release PIT resources\n            try:\n                self.client.delete_point_in_time(body={\"pit_id\": pit_id})\n            except Exception as e:\n                logger.warning(\"Failed to delete PIT context: %s\", str(e))\n```\n\n---\n\n## 3. Memory & Infrastructure Management\n\n### 3.1 JVM Heap Allocation\n- Set `-Xms` and `-Xmx` to the **exact same value** to prevent dynamic heap resizing runtime pauses.\n- **Never exceed 32GB heap**: Keep JVM heap under the Compressed OOPs threshold (typically **30GB–31GB** depending on JDK version) to ensure 32-bit pointer efficiency.\n- Allocate **50% of total system RAM to JVM Heap** and leave the remaining 50% for **OS Filesystem Page Cache** (crucial for Doc Values, Lucene segment caching, and bloom filters).\n\n### 3.2 Circuit Breakers & Thread Pools\n- **Parent Circuit Breaker**: Set `indices.breaker.total.use_real_memory: true` with limit `70%` to prevent OutOfMemoryError (OOM).\n- **Fielddata Breaker**: Set `indices.breaker.fielddata.limit: 40%`. Avoid using `fielddata: true` on `text` fields; use `keyword` fields with `doc_values`.\n- **Search Thread Pool Queue**: `thread_pool.search.queue_size: 1000`. Do not set arbitrarily high; larger queues cause task latency accumulation and high garbage collection pressure.\n\n---\n\n## 4. Production Anti-Patterns & Solutions\n\n| Anti-Pattern | Operational Impact | Recommended Solution |\n| :--- | :--- | :--- |\n| **Dynamic Mapping Explosion** | Unbounded field creation leads to cluster state degradation and OOM. | Set `\"dynamic\": \"strict\"` in index mappings. |\n| **Using `wildcard` with leading asterisk (`*foo`)** | Forces full inverted index scanning; severe CPU consumption. | Use `wildcard` field type or n-gram tokenizer (`edge_ngram`). |\n| **Over-Sharding** | Thousands of small shards (\u003C1GB) exhaust JVM heap on metadata. | Reindex\u002FShrink indices to maintain 10GB–50GB per shard. |\n| **Deep `from` + `size` Pagination** | Linear RAM and CPU scaling ($O(N)$ memory cost per request). | Use `search_after` with PIT or `scroll` API (for batch export). |\n| **Heavy `script_score` Without Caching** | High CPU overhead per doc evaluation during query phase. | Pre-compute values at ingestion or use `painless` optimized scripts. |\n\n---\n\n## 5. Diagnostic & Monitoring Commands\n\n### Checking Cluster Health & Shard Distribution\n```bash\n# Cluster health summary\nGET \u002F_cluster\u002Fhealth?v\n\n# Shard count and size per index\nGET \u002F_cat\u002Fshards?v&s=index,shard&h=index,shard,prirep,state,docs,store,node\n\n# Circuit breaker states and memory usage\nGET \u002F_nodes\u002Fstats\u002Fbreaker\n\n# Fielddata and Query Cache memory usage\nGET \u002F_nodes\u002Fstats\u002Findices\u002Ffielddata,query_cache,request_cache?human=true\n```\n",{"name":5,"description":7},"main","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Programming\u002FAI_Engineering_and_Platforms\u002FSearch_and_Knowledge_Graphs\u002Felasticsearch-and-opensearch-tuning",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 elasticsearch-and-opensearch-tuning",{"tool":40,"command":41},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill elasticsearch-and-opensearch-tuning",{"tool":43,"command":44},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill elasticsearch-and-opensearch-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FSearch_and_Knowledge_Graphs\u002Felasticsearch-and-opensearch-tuning\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",[],[]]