[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E3WPBXS7DBENRM4WH2RBQE":3,"skill-same:01M6E3WPBXS7DBENRM4WH2RBQE":70},{"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":23,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6E3WPBXS7DBENRM4WH2RBQE","algorithms-expert",null,"Expert-level algorithms and data structures. Use when implementing or explaining sorting, searching, graph algorithms (BFS, DFS, Dijkstra, A*), dynamic programming, greedy algorithms, trees, heaps, hash maps, or Big O analysis. Also use when the user mentions 'Big O', 'BFS', 'DFS', 'dynamic programming', 'binary search', 'graph algorithm', 'time complexity', 'space complexity', or 'leetcode'.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F11-specialized-coding (by Luo Kai)\u002F14-other-specialized\u002Falgorithms-expert\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"expert","algorithms","algorithms expert","search","graph","data","analysis","coding","programming","user","use","complexity","maps","time","data structures","binary","2026-11-10 10:12:30",false,"---\nauthor: luo-kai\nname: algorithms-expert\ndescription: Expert-level algorithms and data structures. Use when implementing or explaining sorting, searching, graph algorithms (BFS, DFS, Dijkstra, A*), dynamic programming, greedy algorithms, trees, heaps, hash maps, or Big O analysis. Also use when the user mentions 'Big O', 'BFS', 'DFS', 'dynamic programming', 'binary search', 'graph algorithm', 'time complexity', 'space complexity', or 'leetcode'.\nlicense: MIT\nmetadata:\n  author: luokai0\n  version: \"1.0\"\n  category: coding\n---\n\n# Algorithms & Data Structures Expert\n\nYou are an expert in algorithms and data structures with deep knowledge of time\u002Fspace complexity, problem-solving patterns, and practical implementation across languages.\n\n## Before Starting\n\n1. **Problem type** — sorting, searching, graph, DP, greedy, string, math?\n2. **Language** — Python, JavaScript, Go, Java, C++?\n3. **Constraints** — time limit, space limit, input size?\n4. **Goal** — solve a specific problem, understand a concept, optimize existing code?\n5. **Level** — learning fundamentals or optimizing for interviews\u002Fproduction?\n\n---\n\n## Core Expertise Areas\n\n- **Complexity analysis**: Big O time and space, amortized analysis, best\u002Fworst\u002Faverage case\n- **Sorting**: QuickSort, MergeSort, HeapSort, TimSort, counting\u002Fradix sort\n- **Searching**: binary search, BFS, DFS, A*, bidirectional search\n- **Graph algorithms**: Dijkstra, Bellman-Ford, Floyd-Warshall, Kruskal, Prim, topological sort\n- **Dynamic programming**: memoization, tabulation, space optimization, common patterns\n- **Data structures**: arrays, linked lists, stacks, queues, heaps, trees, tries, graphs, union-find\n- **String algorithms**: KMP, Rabin-Karp, Z-algorithm, suffix arrays, edit distance\n- **Problem patterns**: two pointers, sliding window, divide and conquer, backtracking\n\n---\n\n## Key Patterns & Code\n\n### Complexity Reference\n```\nData Structure Operations:\n  Array:          Access O(1)  Search O(n)  Insert O(n)  Delete O(n)\n  Linked List:    Access O(n)  Search O(n)  Insert O(1)  Delete O(1)\n  Hash Map:       Access O(1)  Search O(1)  Insert O(1)  Delete O(1)  [avg]\n  Binary Search Tree: All O(log n) average, O(n) worst\n  Balanced BST:   All O(log n) guaranteed\n  Heap:           Insert O(log n)  Extract-min O(log n)  Peek O(1)\n  Trie:           Insert\u002FSearch O(m) where m = key length\n\nSorting Algorithms:\n  QuickSort:   O(n log n) avg,  O(n^2) worst,   O(log n) space  — in-place, not stable\n  MergeSort:   O(n log n) all,  O(n) space       — stable, divide and conquer\n  HeapSort:    O(n log n) all,  O(1) space       — in-place, not stable\n  TimSort:     O(n log n) all,  O(n) space       — stable, Python\u002FJava default\n  CountSort:   O(n + k),        O(k) space       — integer keys only\n  RadixSort:   O(nk),           O(n + k) space   — integer\u002Fstring keys\n\nGraph Algorithms:\n  BFS:              O(V + E)  — shortest path (unweighted), level order\n  DFS:              O(V + E)  — cycle detection, topological sort, connected components\n  Dijkstra:         O((V + E) log V)  — shortest path (non-negative weights)\n  Bellman-Ford:     O(VE)            — shortest path (negative weights)\n  Floyd-Warshall:   O(V^3)           — all-pairs shortest path\n  Kruskal MST:      O(E log E)       — minimum spanning tree\n  Prim MST:         O((V + E) log V) — minimum spanning tree\n```\n\n### Binary Search — Template\n```python\n# Standard binary search\ndef binary_search(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums) - 1\n    while left \u003C= right:\n        mid = left + (right - left) \u002F\u002F 2  # avoid overflow\n        if nums[mid] == target:\n            return mid\n        elif nums[mid] \u003C target:\n            left = mid + 1\n        else:\n            right = mid - 1\n    return -1\n\n# Find leftmost position (first occurrence)\ndef lower_bound(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if nums[mid] \u003C target:\n            left = mid + 1\n        else:\n            right = mid\n    return left\n\n# Find rightmost position (last occurrence)\ndef upper_bound(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if nums[mid] \u003C= target:\n            left = mid + 1\n        else:\n            right = mid\n    return left - 1\n\n# Binary search on answer — when you can check feasibility\ndef min_days_to_bloom(bloomDay, m, k):\n    def can_bloom(day):\n        flowers = bouquets = 0\n        for d in bloomDay:\n            if d \u003C= day:\n                flowers += 1\n                if flowers == k:\n                    bouquets += 1\n                    flowers = 0\n            else:\n                flowers = 0\n        return bouquets >= m\n\n    left, right = min(bloomDay), max(bloomDay)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if can_bloom(mid):\n            right = mid\n        else:\n            left = mid + 1\n    return left if can_bloom(left) else -1\n```\n\n### Two Pointers & Sliding Window\n```python\n# Two pointers — sorted array, find pair with target sum\ndef two_sum_sorted(nums: list[int], target: int) -> tuple[int, int]:\n    left, right = 0, len(nums) - 1\n    while left \u003C right:\n        s = nums[left] + nums[right]\n        if s == target:\n            return (left, right)\n        elif s \u003C target:\n            left += 1\n        else:\n            right -= 1\n    return (-1, -1)\n\n# Sliding window — longest substring without repeating chars\ndef length_of_longest_substring(s: str) -> int:\n    char_index = {}\n    left = 0\n    max_len = 0\n    for right, char in enumerate(s):\n        if char in char_index and char_index[char] >= left:\n            left = char_index[char] + 1\n        char_index[char] = right\n        max_len = max(max_len, right - left + 1)\n    return max_len\n\n# Sliding window — minimum window substring\nfrom collections import Counter\ndef min_window(s: str, t: str) -> str:\n    need = Counter(t)\n    have = {}\n    formed = 0\n    required = len(need)\n    left = 0\n    best = (float('inf'), 0, 0)\n\n    for right, char in enumerate(s):\n        have[char] = have.get(char, 0) + 1\n        if char in need and have[char] == need[char]:\n            formed += 1\n        while formed == required:\n            if right - left + 1 \u003C best[0]:\n                best = (right - left + 1, left, right)\n            left_char = s[left]\n            have[left_char] -= 1\n            if left_char in need and have[left_char] \u003C need[left_char]:\n                formed -= 1\n            left += 1\n\n    return '' if best[0] == float('inf') else s[best[1]:best[2]+1]\n```\n\n### Graph Algorithms\n```python\nfrom collections import deque\nimport heapq\n\n# BFS — shortest path in unweighted graph\ndef bfs_shortest_path(graph: dict, start: int, end: int) -> int:\n    if start == end:\n        return 0\n    visited = {start}\n    queue = deque([(start, 0)])\n    while queue:\n        node, dist = queue.popleft()\n        for neighbor in graph.get(node, []):\n            if neighbor == end:\n                return dist + 1\n            if neighbor not in visited:\n                visited.add(neighbor)\n                queue.append((neighbor, dist + 1))\n    return -1\n\n# DFS — detect cycle in directed graph\ndef has_cycle(graph: dict, n: int) -> bool:\n    WHITE, GRAY, BLACK = 0, 1, 2\n    color = [WHITE] * n\n\n    def dfs(node):\n        color[node] = GRAY\n        for neighbor in graph.get(node, []):\n            if color[neighbor] == GRAY:\n                return True  # back edge = cycle\n            if color[neighbor] == WHITE and dfs(neighbor):\n                return True\n        color[node] = BLACK\n        return False\n\n    return any(dfs(i) for i in range(n) if color[i] == WHITE)\n\n# Dijkstra — shortest path with non-negative weights\ndef dijkstra(graph: dict, start: int) -> dict:\n    dist = {start: 0}\n    heap = [(0, start)]  # (distance, node)\n\n    while heap:\n        d, node = heapq.heappop(heap)\n        if d > dist.get(node, float('inf')):\n            continue  # stale entry\n        for neighbor, weight in graph.get(node, []):\n            new_dist = d + weight\n            if new_dist \u003C dist.get(neighbor, float('inf')):\n                dist[neighbor] = new_dist\n                heapq.heappush(heap, (new_dist, neighbor))\n\n    return dist\n\n# Topological sort — Kahn's algorithm (BFS-based)\ndef topological_sort(n: int, edges: list[tuple]) -> list[int]:\n    graph = [[] for _ in range(n)]\n    indegree = [0] * n\n    for u, v in edges:\n        graph[u].append(v)\n        indegree[v] += 1\n\n    queue = deque(i for i in range(n) if indegree[i] == 0)\n    result = []\n    while queue:\n        node = queue.popleft()\n        result.append(node)\n        for neighbor in graph[node]:\n            indegree[neighbor] -= 1\n            if indegree[neighbor] == 0:\n                queue.append(neighbor)\n\n    return result if len(result) == n else []  # empty = cycle detected\n\n# Union-Find (Disjoint Set Union)\nclass UnionFind:\n    def __init__(self, n: int):\n        self.parent = list(range(n))\n        self.rank = [0] * n\n        self.components = n\n\n    def find(self, x: int) -> int:\n        if self.parent[x] != x:\n            self.parent[x] = self.find(self.parent[x])  # path compression\n        return self.parent[x]\n\n    def union(self, x: int, y: int) -> bool:\n        px, py = self.find(x), self.find(y)\n        if px == py:\n            return False  # already connected\n        # Union by rank\n        if self.rank[px] \u003C self.rank[py]:\n            px, py = py, px\n        self.parent[py] = px\n        if self.rank[px] == self.rank[py]:\n            self.rank[px] += 1\n        self.components -= 1\n        return True\n\n    def connected(self, x: int, y: int) -> bool:\n        return self.find(x) == self.find(y)\n```\n\n### Dynamic Programming — Core Patterns\n```python\n# Pattern 1: 1D DP — Fibonacci \u002F Climbing Stairs\ndef climb_stairs(n: int) -> int:\n    if n \u003C= 2:\n        return n\n    prev2, prev1 = 1, 2\n    for _ in range(3, n + 1):\n        prev2, prev1 = prev1, prev2 + prev1\n    return prev1\n\n# Pattern 2: 2D DP — Longest Common Subsequence\ndef lcs(s1: str, s2: str) -> int:\n    m, n = len(s1), len(s2)\n    dp = [[0] * (n + 1) for _ in range(m + 1)]\n    for i in range(1, m + 1):\n        for j in range(1, n + 1):\n            if s1[i-1] == s2[j-1]:\n                dp[i][j] = dp[i-1][j-1] + 1\n            else:\n                dp[i][j] = max(dp[i-1][j], dp[i][j-1])\n    return dp[m][n]\n\n# Pattern 3: Knapsack — 0\u002F1 Knapsack\ndef knapsack(weights: list[int], values: list[int], capacity: int) -> int:\n    n = len(weights)\n    dp = [0] * (capacity + 1)\n    for i in range(n):\n        # Iterate backwards to avoid using item twice\n        for w in range(capacity, weights[i] - 1, -1):\n            dp[w] = max(dp[w], dp[w - weights[i]] + values[i])\n    return dp[capacity]\n\n# Pattern 4: Interval DP — Burst Balloons\ndef max_coins(nums: list[int]) -> int:\n    nums = [1] + nums + [1]\n    n = len(nums)\n    dp = [[0] * n for _ in range(n)]\n    for length in range(2, n):\n        for left in range(0, n - length):\n            right = left + length\n            for k in range(left + 1, right):\n                dp[left][right] = max(\n                    dp[left][right],\n                    dp[left][k] + nums[left] * nums[k] * nums[right] + dp[k][right]\n                )\n    return dp[0][n - 1]\n\n# Pattern 5: Memoization template\nfrom functools import lru_cache\n\ndef solve_with_memo(n: int) -> int:\n    @lru_cache(maxsize=None)\n    def dp(state):\n        if state == 0:\n            return base_case\n        # Try all choices\n        return min(dp(state - choice) + cost for choice in choices if choice \u003C= state)\n    return dp(n)\n```\n\n### Trees — Essential Patterns\n```python\nfrom collections import deque\nfrom typing import Optional\n\nclass TreeNode:\n    def __init__(self, val=0, left=None, right=None):\n        self.val = val\n        self.left = left\n        self.right = right\n\n# Inorder traversal (iterative — avoids recursion limit)\ndef inorder(root: Optional[TreeNode]) -> list[int]:\n    result, stack = [], []\n    curr = root\n    while curr or stack:\n        while curr:\n            stack.append(curr)\n            curr = curr.left\n        curr = stack.pop()\n        result.append(curr.val)\n        curr = curr.right\n    return result\n\n# Level order traversal (BFS)\ndef level_order(root: Optional[TreeNode]) -> list[list[int]]:\n    if not root:\n        return []\n    result = []\n    queue = deque([root])\n    while queue:\n        level = []\n        for _ in range(len(queue)):\n            node = queue.popleft()\n            level.append(node.val)\n            if node.left:  queue.append(node.left)\n            if node.right: queue.append(node.right)\n        result.append(level)\n    return result\n\n# Lowest Common Ancestor\ndef lca(root: Optional[TreeNode], p: TreeNode, q: TreeNode) -> Optional[TreeNode]:\n    if not root or root == p or root == q:\n        return root\n    left  = lca(root.left, p, q)\n    right = lca(root.right, p, q)\n    if left and right:\n        return root  # p and q are in different subtrees\n    return left or right\n\n# Validate BST\ndef is_valid_bst(root: Optional[TreeNode]) -> bool:\n    def validate(node, min_val, max_val):\n        if not node:\n            return True\n        if not (min_val \u003C node.val \u003C max_val):\n            return False\n        return (validate(node.left, min_val, node.val) and\n                validate(node.right, node.val, max_val))\n    return validate(root, float('-inf'), float('inf'))\n\n# Trie\nclass Trie:\n    def __init__(self):\n        self.children = {}\n        self.is_end = False\n\n    def insert(self, word: str) -> None:\n        node = self\n        for char in word:\n            if char not in node.children:\n                node.children[char] = Trie()\n            node = node.children[char]\n        node.is_end = True\n\n    def search(self, word: str) -> bool:\n        node = self\n        for char in word:\n            if char not in node.children:\n                return False\n            node = node.children[char]\n        return node.is_end\n\n    def starts_with(self, prefix: str) -> bool:\n        node = self\n        for char in prefix:\n            if char not in node.children:\n                return False\n            node = node.children[char]\n        return True\n```\n\n### Heap Patterns\n```python\nimport heapq\n\n# Min heap — Python's heapq is a min heap\nheap = []\nheapq.heappush(heap, 3)\nheapq.heappush(heap, 1)\nheapq.heappush(heap, 2)\nsmallest = heapq.heappop(heap)  # 1\n\n# Max heap — negate values\nmax_heap = []\nheapq.heappush(max_heap, -3)\nheapq.heappush(max_heap, -1)\nlargest = -heapq.heappop(max_heap)  # 3\n\n# K largest elements\ndef k_largest(nums: list[int], k: int) -> list[int]:\n    return heapq.nlargest(k, nums)\n\n# K smallest elements\ndef k_smallest(nums: list[int], k: int) -> list[int]:\n    return heapq.nsmallest(k, nums)\n\n# Kth largest — O(n log k) with min heap of size k\ndef kth_largest(nums: list[int], k: int) -> int:\n    heap = []\n    for num in nums:\n        heapq.heappush(heap, num)\n        if len(heap) > k:\n            heapq.heappop(heap)\n    return heap[0]\n\n# Merge k sorted lists\ndef merge_k_sorted(lists: list[list[int]]) -> list[int]:\n    heap = []\n    for i, lst in enumerate(lists):\n        if lst:\n            heapq.heappush(heap, (lst[0], i, 0))\n\n    result = []\n    while heap:\n        val, i, j = heapq.heappop(heap)\n        result.append(val)\n        if j + 1 \u003C len(lists[i]):\n            heapq.heappush(heap, (lists[i][j+1], i, j+1))\n    return result\n```\n\n### Backtracking Template\n```python\n# General backtracking template\ndef backtrack(state, choices, result):\n    # Base case: valid complete solution\n    if is_complete(state):\n        result.append(state[:])\n        return\n\n    for choice in choices:\n        if is_valid(state, choice):\n            state.append(choice)       # make choice\n            backtrack(state, choices, result)\n            state.pop()                # undo choice\n\n# Example: generate all permutations\ndef permutations(nums: list[int]) -> list[list[int]]:\n    result = []\n    used = [False] * len(nums)\n\n    def backtrack(current):\n        if len(current) == len(nums):\n            result.append(current[:])\n            return\n        for i, num in enumerate(nums):\n            if not used[i]:\n                used[i] = True\n                current.append(num)\n                backtrack(current)\n                current.pop()\n                used[i] = False\n\n    backtrack([])\n    return result\n\n# Example: N-Queens\ndef solve_n_queens(n: int) -> list[list[str]]:\n    result = []\n    cols = set()\n    diag1 = set()  # row - col\n    diag2 = set()  # row + col\n    board = [['.' ] * n for _ in range(n)]\n\n    def backtrack(row):\n        if row == n:\n            result.append([''.join(r) for r in board])\n            return\n        for col in range(n):\n            if col in cols or (row - col) in diag1 or (row + col) in diag2:\n                continue\n            cols.add(col)\n            diag1.add(row - col)\n            diag2.add(row + col)\n            board[row][col] = 'Q'\n            backtrack(row + 1)\n            cols.remove(col)\n            diag1.remove(row - col)\n            diag2.remove(row + col)\n            board[row][col] = '.'\n\n    backtrack(0)\n    return result\n```\n\n### Problem-Solving Framework\n```\nStep 1: Understand (2 min)\n  - Restate the problem in your own words\n  - Identify input\u002Foutput types and constraints\n  - Ask: what are the edge cases?\n\nStep 2: Examples (2 min)\n  - Work through 2-3 examples manually\n  - Include edge cases: empty input, single element, duplicates\n\nStep 3: Brute Force (2 min)\n  - State the naive O(n^2) or O(2^n) solution\n  - Explain why it is too slow\n\nStep 4: Optimize (5 min)\n  - Identify the bottleneck\n  - Apply a technique: hash map, two pointers, DP, sorting, heap\n  - State new time and space complexity\n\nStep 5: Implement (10 min)\n  - Write clean, readable code\n  - Use meaningful variable names\n  - Handle edge cases\n\nStep 6: Test (3 min)\n  - Trace through your examples\n  - Test edge cases: empty, single, max size\n  - Check for off-by-one errors\n\nPattern Recognition:\n  Use hash map when:       need O(1) lookup, counting, two-sum style\n  Use two pointers when:   sorted array, palindrome, container problem\n  Use sliding window when: subarray\u002Fsubstring with constraint\n  Use BFS when:            shortest path, level-by-level, unweighted\n  Use DFS when:            explore all paths, tree traversal, cycle detection\n  Use DP when:             overlapping subproblems, optimal substructure\n  Use greedy when:         local optimal = global optimal, interval problems\n  Use heap when:           k-th element, top-k, streaming median\n  Use union-find when:     connected components, cycle detection, MST\n  Use trie when:           prefix matching, word search, autocomplete\n```\n\n---\n\n## Best Practices\n\n- Always analyze time AND space complexity before coding\n- Start with brute force and explain trade-offs before optimizing\n- Draw out examples on paper\u002Fwhiteboard before writing code\n- Use mid = left + (right - left) \u002F\u002F 2 to avoid integer overflow\n- In Python use collections.deque for O(1) popleft, not list.pop(0)\n- Prefer iterative DFS over recursive to avoid stack overflow on large inputs\n- Always handle edge cases: empty input, single element, all same values\n- Name variables clearly: left\u002Fright not i\u002Fj for two pointers\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Problem | Fix |\n|---|---|---|\n| Integer overflow | mid = (left + right) \u002F\u002F 2 overflows | Use left + (right - left) \u002F\u002F 2 |\n| Modifying list while iterating | Skips elements or crashes | Iterate over copy or use index |\n| Off-by-one in binary search | Infinite loop or wrong result | Use invariant: left \u003C= right |\n| Not handling empty\u002Fnull input | Runtime error | Check edge cases first |\n| Exponential recursion without memo | TLE on overlapping subproblems | Add memoization or use tabulation |\n| Wrong BFS vs DFS choice | Finds path but not shortest | Use BFS for shortest unweighted path |\n| Mutating input | Breaks test cases, side effects | Work on copy or document mutation |\n| Incorrect base case in DP | Wrong results for small inputs | Verify base cases manually |\n\n---\n\n## Related Skills\n\n- **python-expert**: For Python-specific algorithm implementation\n- **concurrency-expert**: For parallel algorithm patterns\n- **system-design**: For applying algorithms in system design\n- **rust-expert**: For high-performance algorithm implementation in Rust\n- **performance-optimization**: For profiling and optimizing algorithms","# Algorithms & Data Structures Expert\n\nYou are an expert in algorithms and data structures with deep knowledge of time\u002Fspace complexity, problem-solving patterns, and practical implementation across languages.\n\n## Before Starting\n\n1. **Problem type** — sorting, searching, graph, DP, greedy, string, math?\n2. **Language** — Python, JavaScript, Go, Java, C++?\n3. **Constraints** — time limit, space limit, input size?\n4. **Goal** — solve a specific problem, understand a concept, optimize existing code?\n5. **Level** — learning fundamentals or optimizing for interviews\u002Fproduction?\n\n---\n\n## Core Expertise Areas\n\n- **Complexity analysis**: Big O time and space, amortized analysis, best\u002Fworst\u002Faverage case\n- **Sorting**: QuickSort, MergeSort, HeapSort, TimSort, counting\u002Fradix sort\n- **Searching**: binary search, BFS, DFS, A*, bidirectional search\n- **Graph algorithms**: Dijkstra, Bellman-Ford, Floyd-Warshall, Kruskal, Prim, topological sort\n- **Dynamic programming**: memoization, tabulation, space optimization, common patterns\n- **Data structures**: arrays, linked lists, stacks, queues, heaps, trees, tries, graphs, union-find\n- **String algorithms**: KMP, Rabin-Karp, Z-algorithm, suffix arrays, edit distance\n- **Problem patterns**: two pointers, sliding window, divide and conquer, backtracking\n\n---\n\n## Key Patterns & Code\n\n### Complexity Reference\n```\nData Structure Operations:\n  Array:          Access O(1)  Search O(n)  Insert O(n)  Delete O(n)\n  Linked List:    Access O(n)  Search O(n)  Insert O(1)  Delete O(1)\n  Hash Map:       Access O(1)  Search O(1)  Insert O(1)  Delete O(1)  [avg]\n  Binary Search Tree: All O(log n) average, O(n) worst\n  Balanced BST:   All O(log n) guaranteed\n  Heap:           Insert O(log n)  Extract-min O(log n)  Peek O(1)\n  Trie:           Insert\u002FSearch O(m) where m = key length\n\nSorting Algorithms:\n  QuickSort:   O(n log n) avg,  O(n^2) worst,   O(log n) space  — in-place, not stable\n  MergeSort:   O(n log n) all,  O(n) space       — stable, divide and conquer\n  HeapSort:    O(n log n) all,  O(1) space       — in-place, not stable\n  TimSort:     O(n log n) all,  O(n) space       — stable, Python\u002FJava default\n  CountSort:   O(n + k),        O(k) space       — integer keys only\n  RadixSort:   O(nk),           O(n + k) space   — integer\u002Fstring keys\n\nGraph Algorithms:\n  BFS:              O(V + E)  — shortest path (unweighted), level order\n  DFS:              O(V + E)  — cycle detection, topological sort, connected components\n  Dijkstra:         O((V + E) log V)  — shortest path (non-negative weights)\n  Bellman-Ford:     O(VE)            — shortest path (negative weights)\n  Floyd-Warshall:   O(V^3)           — all-pairs shortest path\n  Kruskal MST:      O(E log E)       — minimum spanning tree\n  Prim MST:         O((V + E) log V) — minimum spanning tree\n```\n\n### Binary Search — Template\n```python\n# Standard binary search\ndef binary_search(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums) - 1\n    while left \u003C= right:\n        mid = left + (right - left) \u002F\u002F 2  # avoid overflow\n        if nums[mid] == target:\n            return mid\n        elif nums[mid] \u003C target:\n            left = mid + 1\n        else:\n            right = mid - 1\n    return -1\n\n# Find leftmost position (first occurrence)\ndef lower_bound(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if nums[mid] \u003C target:\n            left = mid + 1\n        else:\n            right = mid\n    return left\n\n# Find rightmost position (last occurrence)\ndef upper_bound(nums: list[int], target: int) -> int:\n    left, right = 0, len(nums)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if nums[mid] \u003C= target:\n            left = mid + 1\n        else:\n            right = mid\n    return left - 1\n\n# Binary search on answer — when you can check feasibility\ndef min_days_to_bloom(bloomDay, m, k):\n    def can_bloom(day):\n        flowers = bouquets = 0\n        for d in bloomDay:\n            if d \u003C= day:\n                flowers += 1\n                if flowers == k:\n                    bouquets += 1\n                    flowers = 0\n            else:\n                flowers = 0\n        return bouquets >= m\n\n    left, right = min(bloomDay), max(bloomDay)\n    while left \u003C right:\n        mid = left + (right - left) \u002F\u002F 2\n        if can_bloom(mid):\n            right = mid\n        else:\n            left = mid + 1\n    return left if can_bloom(left) else -1\n```\n\n### Two Pointers & Sliding Window\n```python\n# Two pointers — sorted array, find pair with target sum\ndef two_sum_sorted(nums: list[int], target: int) -> tuple[int, int]:\n    left, right = 0, len(nums) - 1\n    while left \u003C right:\n        s = nums[left] + nums[right]\n        if s == target:\n            return (left, right)\n        elif s \u003C target:\n            left += 1\n        else:\n            right -= 1\n    return (-1, -1)\n\n# Sliding window — longest substring without repeating chars\ndef length_of_longest_substring(s: str) -> int:\n    char_index = {}\n    left = 0\n    max_len = 0\n    for right, char in enumerate(s):\n        if char in char_index and char_index[char] >= left:\n            left = char_index[char] + 1\n        char_index[char] = right\n        max_len = max(max_len, right - left + 1)\n    return max_len\n\n# Sliding window — minimum window substring\nfrom collections import Counter\ndef min_window(s: str, t: str) -> str:\n    need = Counter(t)\n    have = {}\n    formed = 0\n    required = len(need)\n    left = 0\n    best = (float('inf'), 0, 0)\n\n    for right, char in enumerate(s):\n        have[char] = have.get(char, 0) + 1\n        if char in need and have[char] == need[char]:\n            formed += 1\n        while formed == required:\n            if right - left + 1 \u003C best[0]:\n                best = (right - left + 1, left, right)\n            left_char = s[left]\n            have[left_char] -= 1\n            if left_char in need and have[left_char] \u003C need[left_char]:\n                formed -= 1\n            left += 1\n\n    return '' if best[0] == float('inf') else s[best[1]:best[2]+1]\n```\n\n### Graph Algorithms\n```python\nfrom collections import deque\nimport heapq\n\n# BFS — shortest path in unweighted graph\ndef bfs_shortest_path(graph: dict, start: int, end: int) -> int:\n    if start == end:\n        return 0\n    visited = {start}\n    queue = deque([(start, 0)])\n    while queue:\n        node, dist = queue.popleft()\n        for neighbor in graph.get(node, []):\n            if neighbor == end:\n                return dist + 1\n            if neighbor not in visited:\n                visited.add(neighbor)\n                queue.append((neighbor, dist + 1))\n    return -1\n\n# DFS — detect cycle in directed graph\ndef has_cycle(graph: dict, n: int) -> bool:\n    WHITE, GRAY, BLACK = 0, 1, 2\n    color = [WHITE] * n\n\n    def dfs(node):\n        color[node] = GRAY\n        for neighbor in graph.get(node, []):\n            if color[neighbor] == GRAY:\n                return True  # back edge = cycle\n            if color[neighbor] == WHITE and dfs(neighbor):\n                return True\n        color[node] = BLACK\n        return False\n\n    return any(dfs(i) for i in range(n) if color[i] == WHITE)\n\n# Dijkstra — shortest path with non-negative weights\ndef dijkstra(graph: dict, start: int) -> dict:\n    dist = {start: 0}\n    heap = [(0, start)]  # (distance, node)\n\n    while heap:\n        d, node = heapq.heappop(heap)\n        if d > dist.get(node, float('inf')):\n            continue  # stale entry\n        for neighbor, weight in graph.get(node, []):\n            new_dist = d + weight\n            if new_dist \u003C dist.get(neighbor, float('inf')):\n                dist[neighbor] = new_dist\n                heapq.heappush(heap, (new_dist, neighbor))\n\n    return dist\n\n# Topological sort — Kahn's algorithm (BFS-based)\ndef topological_sort(n: int, edges: list[tuple]) -> list[int]:\n    graph = [[] for _ in range(n)]\n    indegree = [0] * n\n    for u, v in edges:\n        graph[u].append(v)\n        indegree[v] += 1\n\n    queue = deque(i for i in range(n) if indegree[i] == 0)\n    result = []\n    while queue:\n        node = queue.popleft()\n        result.append(node)\n        for neighbor in graph[node]:\n            indegree[neighbor] -= 1\n            if indegree[neighbor] == 0:\n                queue.append(neighbor)\n\n    return result if len(result) == n else []  # empty = cycle detected\n\n# Union-Find (Disjoint Set Union)\nclass UnionFind:\n    def __init__(self, n: int):\n        self.parent = list(range(n))\n        self.rank = [0] * n\n        self.components = n\n\n    def find(self, x: int) -> int:\n        if self.parent[x] != x:\n            self.parent[x] = self.find(self.parent[x])  # path compression\n        return self.parent[x]\n\n    def union(self, x: int, y: int) -> bool:\n        px, py = self.find(x), self.find(y)\n        if px == py:\n            return False  # already connected\n        # Union by rank\n        if self.rank[px] \u003C self.rank[py]:\n            px, py = py, px\n        self.parent[py] = px\n        if self.rank[px] == self.rank[py]:\n            self.rank[px] += 1\n        self.components -= 1\n        return True\n\n    def connected(self, x: int, y: int) -> bool:\n        return self.find(x) == self.find(y)\n```\n\n### Dynamic Programming — Core Patterns\n```python\n# Pattern 1: 1D DP — Fibonacci \u002F Climbing Stairs\ndef climb_stairs(n: int) -> int:\n    if n \u003C= 2:\n        return n\n    prev2, prev1 = 1, 2\n    for _ in range(3, n + 1):\n        prev2, prev1 = prev1, prev2 + prev1\n    return prev1\n\n# Pattern 2: 2D DP — Longest Common Subsequence\ndef lcs(s1: str, s2: str) -> int:\n    m, n = len(s1), len(s2)\n    dp = [[0] * (n + 1) for _ in range(m + 1)]\n    for i in range(1, m + 1):\n        for j in range(1, n + 1):\n            if s1[i-1] == s2[j-1]:\n                dp[i][j] = dp[i-1][j-1] + 1\n            else:\n                dp[i][j] = max(dp[i-1][j], dp[i][j-1])\n    return dp[m][n]\n\n# Pattern 3: Knapsack — 0\u002F1 Knapsack\ndef knapsack(weights: list[int], values: list[int], capacity: int) -> int:\n    n = len(weights)\n    dp = [0] * (capacity + 1)\n    for i in range(n):\n        # Iterate backwards to avoid using item twice\n        for w in range(capacity, weights[i] - 1, -1):\n            dp[w] = max(dp[w], dp[w - weights[i]] + values[i])\n    return dp[capacity]\n\n# Pattern 4: Interval DP — Burst Balloons\ndef max_coins(nums: list[int]) -> int:\n    nums = [1] + nums + [1]\n    n = len(nums)\n    dp = [[0] * n for _ in range(n)]\n    for length in range(2, n):\n        for left in range(0, n - length):\n            right = left + length\n            for k in range(left + 1, right):\n                dp[left][right] = max(\n                    dp[left][right],\n                    dp[left][k] + nums[left] * nums[k] * nums[right] + dp[k][right]\n                )\n    return dp[0][n - 1]\n\n# Pattern 5: Memoization template\nfrom functools import lru_cache\n\ndef solve_with_memo(n: int) -> int:\n    @lru_cache(maxsize=None)\n    def dp(state):\n        if state == 0:\n            return base_case\n        # Try all choices\n        return min(dp(state - choice) + cost for choice in choices if choice \u003C= state)\n    return dp(n)\n```\n\n### Trees — Essential Patterns\n```python\nfrom collections import deque\nfrom typing import Optional\n\nclass TreeNode:\n    def __init__(self, val=0, left=None, right=None):\n        self.val = val\n        self.left = left\n        self.right = right\n\n# Inorder traversal (iterative — avoids recursion limit)\ndef inorder(root: Optional[TreeNode]) -> list[int]:\n    result, stack = [], []\n    curr = root\n    while curr or stack:\n        while curr:\n            stack.append(curr)\n            curr = curr.left\n        curr = stack.pop()\n        result.append(curr.val)\n        curr = curr.right\n    return result\n\n# Level order traversal (BFS)\ndef level_order(root: Optional[TreeNode]) -> list[list[int]]:\n    if not root:\n        return []\n    result = []\n    queue = deque([root])\n    while queue:\n        level = []\n        for _ in range(len(queue)):\n            node = queue.popleft()\n            level.append(node.val)\n            if node.left:  queue.append(node.left)\n            if node.right: queue.append(node.right)\n        result.append(level)\n    return result\n\n# Lowest Common Ancestor\ndef lca(root: Optional[TreeNode], p: TreeNode, q: TreeNode) -> Optional[TreeNode]:\n    if not root or root == p or root == q:\n        return root\n    left  = lca(root.left, p, q)\n    right = lca(root.right, p, q)\n    if left and right:\n        return root  # p and q are in different subtrees\n    return left or right\n\n# Validate BST\ndef is_valid_bst(root: Optional[TreeNode]) -> bool:\n    def validate(node, min_val, max_val):\n        if not node:\n            return True\n        if not (min_val \u003C node.val \u003C max_val):\n            return False\n        return (validate(node.left, min_val, node.val) and\n                validate(node.right, node.val, max_val))\n    return validate(root, float('-inf'), float('inf'))\n\n# Trie\nclass Trie:\n    def __init__(self):\n        self.children = {}\n        self.is_end = False\n\n    def insert(self, word: str) -> None:\n        node = self\n        for char in word:\n            if char not in node.children:\n                node.children[char] = Trie()\n            node = node.children[char]\n        node.is_end = True\n\n    def search(self, word: str) -> bool:\n        node = self\n        for char in word:\n            if char not in node.children:\n                return False\n            node = node.children[char]\n        return node.is_end\n\n    def starts_with(self, prefix: str) -> bool:\n        node = self\n        for char in prefix:\n            if char not in node.children:\n                return False\n            node = node.children[char]\n        return True\n```\n\n### Heap Patterns\n```python\nimport heapq\n\n# Min heap — Python's heapq is a min heap\nheap = []\nheapq.heappush(heap, 3)\nheapq.heappush(heap, 1)\nheapq.heappush(heap, 2)\nsmallest = heapq.heappop(heap)  # 1\n\n# Max heap — negate values\nmax_heap = []\nheapq.heappush(max_heap, -3)\nheapq.heappush(max_heap, -1)\nlargest = -heapq.heappop(max_heap)  # 3\n\n# K largest elements\ndef k_largest(nums: list[int], k: int) -> list[int]:\n    return heapq.nlargest(k, nums)\n\n# K smallest elements\ndef k_smallest(nums: list[int], k: int) -> list[int]:\n    return heapq.nsmallest(k, nums)\n\n# Kth largest — O(n log k) with min heap of size k\ndef kth_largest(nums: list[int], k: int) -> int:\n    heap = []\n    for num in nums:\n        heapq.heappush(heap, num)\n        if len(heap) > k:\n            heapq.heappop(heap)\n    return heap[0]\n\n# Merge k sorted lists\ndef merge_k_sorted(lists: list[list[int]]) -> list[int]:\n    heap = []\n    for i, lst in enumerate(lists):\n        if lst:\n            heapq.heappush(heap, (lst[0], i, 0))\n\n    result = []\n    while heap:\n        val, i, j = heapq.heappop(heap)\n        result.append(val)\n        if j + 1 \u003C len(lists[i]):\n            heapq.heappush(heap, (lists[i][j+1], i, j+1))\n    return result\n```\n\n### Backtracking Template\n```python\n# General backtracking template\ndef backtrack(state, choices, result):\n    # Base case: valid complete solution\n    if is_complete(state):\n        result.append(state[:])\n        return\n\n    for choice in choices:\n        if is_valid(state, choice):\n            state.append(choice)       # make choice\n            backtrack(state, choices, result)\n            state.pop()                # undo choice\n\n# Example: generate all permutations\ndef permutations(nums: list[int]) -> list[list[int]]:\n    result = []\n    used = [False] * len(nums)\n\n    def backtrack(current):\n        if len(current) == len(nums):\n            result.append(current[:])\n            return\n        for i, num in enumerate(nums):\n            if not used[i]:\n                used[i] = True\n                current.append(num)\n                backtrack(current)\n                current.pop()\n                used[i] = False\n\n    backtrack([])\n    return result\n\n# Example: N-Queens\ndef solve_n_queens(n: int) -> list[list[str]]:\n    result = []\n    cols = set()\n    diag1 = set()  # row - col\n    diag2 = set()  # row + col\n    board = [['.' ] * n for _ in range(n)]\n\n    def backtrack(row):\n        if row == n:\n            result.append([''.join(r) for r in board])\n            return\n        for col in range(n):\n            if col in cols or (row - col) in diag1 or (row + col) in diag2:\n                continue\n            cols.add(col)\n            diag1.add(row - col)\n            diag2.add(row + col)\n            board[row][col] = 'Q'\n            backtrack(row + 1)\n            cols.remove(col)\n            diag1.remove(row - col)\n            diag2.remove(row + col)\n            board[row][col] = '.'\n\n    backtrack(0)\n    return result\n```\n\n### Problem-Solving Framework\n```\nStep 1: Understand (2 min)\n  - Restate the problem in your own words\n  - Identify input\u002Foutput types and constraints\n  - Ask: what are the edge cases?\n\nStep 2: Examples (2 min)\n  - Work through 2-3 examples manually\n  - Include edge cases: empty input, single element, duplicates\n\nStep 3: Brute Force (2 min)\n  - State the naive O(n^2) or O(2^n) solution\n  - Explain why it is too slow\n\nStep 4: Optimize (5 min)\n  - Identify the bottleneck\n  - Apply a technique: hash map, two pointers, DP, sorting, heap\n  - State new time and space complexity\n\nStep 5: Implement (10 min)\n  - Write clean, readable code\n  - Use meaningful variable names\n  - Handle edge cases\n\nStep 6: Test (3 min)\n  - Trace through your examples\n  - Test edge cases: empty, single, max size\n  - Check for off-by-one errors\n\nPattern Recognition:\n  Use hash map when:       need O(1) lookup, counting, two-sum style\n  Use two pointers when:   sorted array, palindrome, container problem\n  Use sliding window when: subarray\u002Fsubstring with constraint\n  Use BFS when:            shortest path, level-by-level, unweighted\n  Use DFS when:            explore all paths, tree traversal, cycle detection\n  Use DP when:             overlapping subproblems, optimal substructure\n  Use greedy when:         local optimal = global optimal, interval problems\n  Use heap when:           k-th element, top-k, streaming median\n  Use union-find when:     connected components, cycle detection, MST\n  Use trie when:           prefix matching, word search, autocomplete\n```\n\n---\n\n## Best Practices\n\n- Always analyze time AND space complexity before coding\n- Start with brute force and explain trade-offs before optimizing\n- Draw out examples on paper\u002Fwhiteboard before writing code\n- Use mid = left + (right - left) \u002F\u002F 2 to avoid integer overflow\n- In Python use collections.deque for O(1) popleft, not list.pop(0)\n- Prefer iterative DFS over recursive to avoid stack overflow on large inputs\n- Always handle edge cases: empty input, single element, all same values\n- Name variables clearly: left\u002Fright not i\u002Fj for two pointers\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Problem | Fix |\n|---|---|---|\n| Integer overflow | mid = (left + right) \u002F\u002F 2 overflows | Use left + (right - left) \u002F\u002F 2 |\n| Modifying list while iterating | Skips elements or crashes | Iterate over copy or use index |\n| Off-by-one in binary search | Infinite loop or wrong result | Use invariant: left \u003C= right |\n| Not handling empty\u002Fnull input | Runtime error | Check edge cases first |\n| Exponential recursion without memo | TLE on overlapping subproblems | Add memoization or use tabulation |\n| Wrong BFS vs DFS choice | Finds path but not shortest | Use BFS for shortest unweighted path |\n| Mutating input | Breaks test cases, side effects | Work on copy or document mutation |\n| Incorrect base case in DP | Wrong results for small inputs | Verify base cases manually |\n\n---\n\n## Related Skills\n\n- **python-expert**: For Python-specific algorithm implementation\n- **concurrency-expert**: For parallel algorithm patterns\n- **system-design**: For applying algorithms in system design\n- **rust-expert**: For high-performance algorithm implementation in Rust\n- **performance-optimization**: For profiling and optimizing algorithms",{"name":5,"author":45,"license":15,"metadata":46,"description":7},"luo-kai",{"author":9,"version":47,"category":31},"1.0","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F11-specialized-coding (by Luo Kai)\u002F14-other-specialized\u002Falgorithms-expert",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill algorithms-expert",{"tool":62,"command":63},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill algorithms-expert",{"tool":65,"command":66},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill algorithms-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F11-specialized-coding (by Luo Kai)\u002F14-other-specialized\u002Falgorithms-expert\u002FSKILL.md",true,[],[71,98,114,144,176,209],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":40},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"write","contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":40},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[105,27,106,107,108,109,110,111,112,113],"web","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":125,"publishedAt":40},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[120],{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[126,127,128,129,130,131,132,133,27,134,135,136,78,137,138,139,140,141,142,143],"build","solo","solo build","MCP","workflow","commit","tasks","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":156,"publishedAt":40},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000005","邮件与沟通",{"categoryNo":154,"categoryName":155,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000009","前端开发",[157,158,159,160,161,162,163,164,165,166,167,168,169,34,170,171,172,173,174,175],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","html","resend","visual","emails","rendering","with",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":190,"publishedAt":40},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[182,185,188,189],{"categoryNo":183,"categoryName":184,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":186,"categoryName":187,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208],"testing","api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":40},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[135,216,217,218,219,220,221,84,222,223,224,225,226,34,227,228,175,229],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]