[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CX495RBBW2ZN778TKNW3Y4":3,"skill-same:01M6CX495RBBW2ZN778TKNW3Y4":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":33,"commitSha":34,"skillDirectory":5,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6CX495RBBW2ZN778TKNW3Y4","high-performance-computing",null,"HPC programming techniques","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fhigh-performance-computing\u002FSKILL.md",[],[18,19,20,21,22,23,24],"performance","high performance","high performance computing","science","computer","programming","opencode","2026-11-10 10:12:30",false,"---\nname: high-performance-computing\ndescription: HPC programming techniques\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: computer-science\n---\n\n## What I do\n- Optimize computational performance\n- Implement parallel algorithms\n- Use vectorization\n- Design GPU kernels\n\n## When to use me\nWhen optimizing performance-critical code or implementing parallel algorithms.\n\n## Parallelization\n\n### Threading\n```python\nimport threading\nfrom concurrent.futures import ThreadPoolExecutor\n\nclass ParallelProcessor:\n    \"\"\"Thread-based parallel processing\"\"\"\n    \n    def __init__(self, num_workers: int = None):\n        self.num_workers = num_workers or threading.active_count()\n    \n    def parallel_map(self, func: Callable, \n                    items: List) -> List:\n        \"\"\"Map function over items in parallel\"\"\"\n        with ThreadPoolExecutor(max_workers=self.num_workers) as executor:\n            results = list(executor.map(func, items))\n        return results\n    \n    def parallel_reduce(self, func: Callable, items: List,\n                       num_workers: int = None) -> Any:\n        \"\"\"Parallel reduction\"\"\"\n        chunk_size = len(items) \u002F\u002F (num_workers or self.num_workers)\n        chunks = [items[i:i+chunk_size] \n                 for i in range(0, len(items), chunk_size)]\n        \n        with ThreadPoolExecutor(max_workers=num_workers) as executor:\n            chunk_results = list(executor.map(\n                lambda chunk: reduce(func, chunk), chunks\n            ))\n        \n        return reduce(func, chunk_results)\n```\n\n### Multiprocessing\n```python\nimport multiprocessing as mp\n\nclass ProcessPool:\n    \"\"\"Process-based parallel processing\"\"\"\n    \n    @staticmethod\n    def parallelize(data: List, func: Callable, \n                  num_processes: int = None) -> List:\n        \"\"\"Distribute work across processes\"\"\"\n        num_processes = num_processes or mp.cpu_count()\n        \n        with mp.Pool(num_processes) as pool:\n            results = pool.map(func, data)\n        \n        return results\n    \n    @staticmethod\n    def shared_memory_arrays(data: np.ndarray):\n        \"\"\"Share memory between processes\"\"\"\n        shared = mp.Array('d', data.flatten())\n        return np.frombuffer(shared.get_obj()).reshape(data.shape)\n```\n\n### GPU Computing (CUDA-style)\n```python\nclass GPUKernel:\n    \"\"\"GPU kernel patterns\"\"\"\n    \n    @staticmethod\n    def vector_add(a: np.ndarray, b: np.ndarray) -> np.ndarray:\n        \"\"\"Vector addition on GPU\"\"\"\n        # Pseudocode - use numba\u002Fcupy\n        result = np.empty_like(a)\n        \n        # Each thread handles one element\n        for i in range(len(a)):\n            result[i] = a[i] + b[i]\n        \n        return result\n    \n    @staticmethod\n    def matrix_multiply(a: np.ndarray, b: np.ndarray) -> np.ndarray:\n        \"\"\"Matrix multiplication with tiling\"\"\"\n        # Blocked matrix multiplication\n        BLOCK_SIZE = 16\n        result = np.zeros((a.shape[0], b.shape[1]))\n        \n        # Each block handled by thread block\n        for i in range(0, a.shape[0], BLOCK_SIZE):\n            for j in range(0, b.shape[1], BLOCK_SIZE):\n                for k in range(0, a.shape[1], BLOCK_SIZE):\n                    # Process block\n                    i_end = min(i + BLOCK_SIZE, a.shape[0])\n                    j_end = min(j + BLOCK_SIZE, b.shape[1])\n                    k_end = min(k + BLOCK_SIZE, a.shape[1])\n                    \n                    for ii in range(i, i_end):\n                        for jj in range(j, j_end):\n                            sum_val = 0\n                            for kk in range(k, k_end):\n                                sum_val += a[ii, kk] * b[kk, jj]\n                            result[ii, jj] += sum_val\n        \n        return result\n```\n\n### Vectorization\n```python\nclass VectorizedOps:\n    \"\"\"Vectorized operations\"\"\"\n    \n    @staticmethod\n    def naive_loop(arr: np.ndarray) -> float:\n        \"\"\"Slow: element-by-element\"\"\"\n        result = 0.0\n        for x in arr:\n            result += x * x\n        return result\n    \n    @staticmethod\n    def vectorized(arr: np.ndarray) -> float:\n        \"\"\"Fast: vectorized\"\"\"\n        return np.sum(arr ** 2)\n    \n    @staticmethod\n    def matrix_vector_product(matrix: np.ndarray, \n                           vector: np.ndarray) -> np.ndarray:\n        \"\"\"Optimized matrix-vector product\"\"\"\n        return matrix @ vector  # Uses BLAS\n    \n    @staticmethod\n    def conditional_accumulate(arr: np.ndarray) -> float:\n        \"\"\"Vectorized conditional\"\"\"\n        # Instead of: for x in arr: if x > 0: sum += x\n        return np.sum(arr[arr > 0])\n```\n\n### Memory Optimization\n```python\nclass MemoryOptimizer:\n    \"\"\"Optimize memory access patterns\"\"\"\n    \n    @staticmethod\n    def cache_friendly_traversal(matrix: np.ndarray) -> np.ndarray:\n        \"\"\"Row-major traversal (cache-friendly in C)\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros((rows, cols))\n        \n        for i in range(rows):\n            for j in range(cols):\n                result[i, j] = matrix[i, j]\n        \n        return result\n    \n    @staticmethod\n    def cache_unfriendly_traversal(matrix: np.ndarray) -> np.ndarray:\n        \"\"\"Column-major (cache-unfriendly)\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros((rows, cols))\n        \n        for j in range(cols):\n            for i in range(rows):\n                result[i, j] = matrix[i, j]\n        \n        return result\n    \n    @staticmethod\n    def cache_blocking(matrix: np.ndarray, \n                      block_size: int = 64) -> np.ndarray:\n        \"\"\"Cache blocking for better performance\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros_like(matrix)\n        \n        for i in range(0, rows, block_size):\n            for j in range(0, cols, block_size):\n                i_end = min(i + block_size, rows)\n                j_end = min(j + block_size, cols)\n                \n                result[i:i_end, j:j_end] = \\\n                    matrix[i:i_end, j:j_end]\n        \n        return result\n    \n    @staticmethod\n    def preallocate(size: int) -> np.ndarray:\n        \"\"\"Preallocate array to avoid resizing\"\"\"\n        return np.zeros(size)\n```\n\n### Performance Profiling\n```python\nclass PerformanceProfiler:\n    \"\"\"Profile code performance\"\"\"\n    \n    @staticmethod\n    @profile  # Line-by-line profiling\n    def profiled_function(data: np.ndarray) -> float:\n        \"\"\"Function to profile\"\"\"\n        return np.sum(data ** 2)\n    \n    @staticmethod\n    def profile_section(func: Callable) -> Callable:\n        \"\"\"Decorator to profile code sections\"\"\"\n        def wrapper(*args, **kwargs):\n            import cProfile\n            import pstats\n            \n            profiler = cProfile.Profile()\n            profiler.enable()\n            \n            result = func(*args, **kwargs)\n            \n            profiler.disable()\n            stats = pstats.Stats(profiler)\n            stats.sort_stats('cumulative')\n            stats.print_stats(10)\n            \n            return result\n        \n        return wrapper\n```\n","## What I do\n- Optimize computational performance\n- Implement parallel algorithms\n- Use vectorization\n- Design GPU kernels\n\n## When to use me\nWhen optimizing performance-critical code or implementing parallel algorithms.\n\n## Parallelization\n\n### Threading\n```python\nimport threading\nfrom concurrent.futures import ThreadPoolExecutor\n\nclass ParallelProcessor:\n    \"\"\"Thread-based parallel processing\"\"\"\n    \n    def __init__(self, num_workers: int = None):\n        self.num_workers = num_workers or threading.active_count()\n    \n    def parallel_map(self, func: Callable, \n                    items: List) -> List:\n        \"\"\"Map function over items in parallel\"\"\"\n        with ThreadPoolExecutor(max_workers=self.num_workers) as executor:\n            results = list(executor.map(func, items))\n        return results\n    \n    def parallel_reduce(self, func: Callable, items: List,\n                       num_workers: int = None) -> Any:\n        \"\"\"Parallel reduction\"\"\"\n        chunk_size = len(items) \u002F\u002F (num_workers or self.num_workers)\n        chunks = [items[i:i+chunk_size] \n                 for i in range(0, len(items), chunk_size)]\n        \n        with ThreadPoolExecutor(max_workers=num_workers) as executor:\n            chunk_results = list(executor.map(\n                lambda chunk: reduce(func, chunk), chunks\n            ))\n        \n        return reduce(func, chunk_results)\n```\n\n### Multiprocessing\n```python\nimport multiprocessing as mp\n\nclass ProcessPool:\n    \"\"\"Process-based parallel processing\"\"\"\n    \n    @staticmethod\n    def parallelize(data: List, func: Callable, \n                  num_processes: int = None) -> List:\n        \"\"\"Distribute work across processes\"\"\"\n        num_processes = num_processes or mp.cpu_count()\n        \n        with mp.Pool(num_processes) as pool:\n            results = pool.map(func, data)\n        \n        return results\n    \n    @staticmethod\n    def shared_memory_arrays(data: np.ndarray):\n        \"\"\"Share memory between processes\"\"\"\n        shared = mp.Array('d', data.flatten())\n        return np.frombuffer(shared.get_obj()).reshape(data.shape)\n```\n\n### GPU Computing (CUDA-style)\n```python\nclass GPUKernel:\n    \"\"\"GPU kernel patterns\"\"\"\n    \n    @staticmethod\n    def vector_add(a: np.ndarray, b: np.ndarray) -> np.ndarray:\n        \"\"\"Vector addition on GPU\"\"\"\n        # Pseudocode - use numba\u002Fcupy\n        result = np.empty_like(a)\n        \n        # Each thread handles one element\n        for i in range(len(a)):\n            result[i] = a[i] + b[i]\n        \n        return result\n    \n    @staticmethod\n    def matrix_multiply(a: np.ndarray, b: np.ndarray) -> np.ndarray:\n        \"\"\"Matrix multiplication with tiling\"\"\"\n        # Blocked matrix multiplication\n        BLOCK_SIZE = 16\n        result = np.zeros((a.shape[0], b.shape[1]))\n        \n        # Each block handled by thread block\n        for i in range(0, a.shape[0], BLOCK_SIZE):\n            for j in range(0, b.shape[1], BLOCK_SIZE):\n                for k in range(0, a.shape[1], BLOCK_SIZE):\n                    # Process block\n                    i_end = min(i + BLOCK_SIZE, a.shape[0])\n                    j_end = min(j + BLOCK_SIZE, b.shape[1])\n                    k_end = min(k + BLOCK_SIZE, a.shape[1])\n                    \n                    for ii in range(i, i_end):\n                        for jj in range(j, j_end):\n                            sum_val = 0\n                            for kk in range(k, k_end):\n                                sum_val += a[ii, kk] * b[kk, jj]\n                            result[ii, jj] += sum_val\n        \n        return result\n```\n\n### Vectorization\n```python\nclass VectorizedOps:\n    \"\"\"Vectorized operations\"\"\"\n    \n    @staticmethod\n    def naive_loop(arr: np.ndarray) -> float:\n        \"\"\"Slow: element-by-element\"\"\"\n        result = 0.0\n        for x in arr:\n            result += x * x\n        return result\n    \n    @staticmethod\n    def vectorized(arr: np.ndarray) -> float:\n        \"\"\"Fast: vectorized\"\"\"\n        return np.sum(arr ** 2)\n    \n    @staticmethod\n    def matrix_vector_product(matrix: np.ndarray, \n                           vector: np.ndarray) -> np.ndarray:\n        \"\"\"Optimized matrix-vector product\"\"\"\n        return matrix @ vector  # Uses BLAS\n    \n    @staticmethod\n    def conditional_accumulate(arr: np.ndarray) -> float:\n        \"\"\"Vectorized conditional\"\"\"\n        # Instead of: for x in arr: if x > 0: sum += x\n        return np.sum(arr[arr > 0])\n```\n\n### Memory Optimization\n```python\nclass MemoryOptimizer:\n    \"\"\"Optimize memory access patterns\"\"\"\n    \n    @staticmethod\n    def cache_friendly_traversal(matrix: np.ndarray) -> np.ndarray:\n        \"\"\"Row-major traversal (cache-friendly in C)\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros((rows, cols))\n        \n        for i in range(rows):\n            for j in range(cols):\n                result[i, j] = matrix[i, j]\n        \n        return result\n    \n    @staticmethod\n    def cache_unfriendly_traversal(matrix: np.ndarray) -> np.ndarray:\n        \"\"\"Column-major (cache-unfriendly)\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros((rows, cols))\n        \n        for j in range(cols):\n            for i in range(rows):\n                result[i, j] = matrix[i, j]\n        \n        return result\n    \n    @staticmethod\n    def cache_blocking(matrix: np.ndarray, \n                      block_size: int = 64) -> np.ndarray:\n        \"\"\"Cache blocking for better performance\"\"\"\n        rows, cols = matrix.shape\n        result = np.zeros_like(matrix)\n        \n        for i in range(0, rows, block_size):\n            for j in range(0, cols, block_size):\n                i_end = min(i + block_size, rows)\n                j_end = min(j + block_size, cols)\n                \n                result[i:i_end, j:j_end] = \\\n                    matrix[i:i_end, j:j_end]\n        \n        return result\n    \n    @staticmethod\n    def preallocate(size: int) -> np.ndarray:\n        \"\"\"Preallocate array to avoid resizing\"\"\"\n        return np.zeros(size)\n```\n\n### Performance Profiling\n```python\nclass PerformanceProfiler:\n    \"\"\"Profile code performance\"\"\"\n    \n    @staticmethod\n    @profile  # Line-by-line profiling\n    def profiled_function(data: np.ndarray) -> float:\n        \"\"\"Function to profile\"\"\"\n        return np.sum(data ** 2)\n    \n    @staticmethod\n    def profile_section(func: Callable) -> Callable:\n        \"\"\"Decorator to profile code sections\"\"\"\n        def wrapper(*args, **kwargs):\n            import cProfile\n            import pstats\n            \n            profiler = cProfile.Profile()\n            profiler.enable()\n            \n            result = func(*args, **kwargs)\n            \n            profiler.disable()\n            stats = pstats.Stats(profiler)\n            stats.sort_stats('cumulative')\n            stats.print_stats(10)\n            \n            return result\n        \n        return wrapper\n```\n",{"name":5,"license":14,"metadata":30,"description":7,"compatibility":24},{"audience":31,"category":32},"developers","computer-science","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill high-performance-computing",{"tool":45,"command":46},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill high-performance-computing",{"tool":48,"command":49},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill high-performance-computing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fhigh-performance-computing\u002FSKILL.md",true,[],[54,65,74,83,93,102],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":25},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[56,61,62,63,24,64],"platform","cross-platform","mobile","development",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":25},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[67,72,24,21,73],"data wrangling","data",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":25},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[76,81,24,82],"system","scripting",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":25},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[90,91,24,92,73],"wide column","databases","model",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":25},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[100,91,24,101],"wide column stores","database",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":25},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[104,109,110,111,24,112,113],"websocket","real-time","time","best practices","implementation"]