[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXP448YQEHJ4B8R2Z6TE7M":3,"skill-same:01M6CXP448YQEHJ4B8R2Z6TE7M":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},"01M6CXP448YQEHJ4B8R2Z6TE7M","swarm-intelligence",null,"Swarm intelligence algorithms","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\u002Fswarm-intelligence\u002FSKILL.md",[],[18,19,20,21,22,23,24],"swarm","intelligence","swarm intelligence","machine-learning","learning","opencode","algorithms","2026-11-10 10:12:30",false,"---\nname: swarm-intelligence\ndescription: Swarm intelligence algorithms\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: machine-learning-engineers\n  category: artificial-intelligence\n---\n\n## What I do\n\n- Implement swarm optimization\n- Design particle swarm systems\n- Build ant colony algorithms\n- Create collective intelligence\n- Optimize using swarm behavior\n\n## When to use me\n\nUse me when:\n- Distributed optimization\n- Routing problems\n- Collective robotics\n- Emergent behavior systems\n\n## Key Concepts\n\n### Particle Swarm Optimization (PSO)\n```python\nimport numpy as np\n\nclass ParticleSwarm:\n    def __init__(self, n_particles, n_dims, func):\n        self.n_particles = n_particles\n        self.func = func\n        \n        # Initialize particles\n        self.positions = np.random.uniform(-10, 10, (n_particles, n_dims))\n        self.velocities = np.random.uniform(-1, 1, (n_particles, n_dims))\n        \n        # Personal best\n        self.personal_best_pos = self.positions.copy()\n        self.personal_best_val = np.array([self.func(p) for p in self.positions])\n        \n        # Global best\n        best_idx = np.argmin(self.personal_best_val)\n        self.global_best_pos = self.personal_best_pos[best_idx].copy()\n        self.global_best_val = self.personal_best_val[best_idx]\n    \n    def update(self, w=0.7, c1=1.5, c2=1.5):\n        r1, r2 = np.random.random((2, self.n_particles, 1))\n        \n        # Update velocities\n        cognitive = c1 * r1 * (self.personal_best_pos - self.positions)\n        social = c2 * r2 * (self.global_best_pos - self.positions)\n        self.velocities = w * self.velocities + cognitive + social\n        \n        # Update positions\n        self.positions += self.velocities\n        \n        # Evaluate and update personal bests\n        current_vals = np.array([self.func(p) for p in self.positions])\n        improved = current_vals \u003C self.personal_best_val\n        self.personal_best_pos[improved] = self.positions[improved]\n        self.personal_best_val[improved] = current_vals[improved]\n        \n        # Update global best\n        best_idx = np.argmin(self.personal_best_val)\n        if self.personal_best_val[best_idx] \u003C self.global_best_val:\n            self.global_best_pos = self.personal_best_pos[best_idx].copy()\n            self.global_best_val = self.personal_best_val[best_idx]\n    \n    def optimize(self, n_iterations):\n        for _ in range(n_iterations):\n            self.update()\n        return self.global_best_pos, self.global_best_val\n```\n\n### Ant Colony Optimization\n- Pheromone-based path finding\n- Probabilistic solution construction\n- Global and local pheromone updates\n- Used for: TSP, VRP, routing\n\n### Swarm Applications\n- **ACO**: Routing, scheduling\n- **PSO**: Function optimization\n- **Artificial Bee Colony**: Optimization\n- **Firefly Algorithm**: Clustering\n","## What I do\n\n- Implement swarm optimization\n- Design particle swarm systems\n- Build ant colony algorithms\n- Create collective intelligence\n- Optimize using swarm behavior\n\n## When to use me\n\nUse me when:\n- Distributed optimization\n- Routing problems\n- Collective robotics\n- Emergent behavior systems\n\n## Key Concepts\n\n### Particle Swarm Optimization (PSO)\n```python\nimport numpy as np\n\nclass ParticleSwarm:\n    def __init__(self, n_particles, n_dims, func):\n        self.n_particles = n_particles\n        self.func = func\n        \n        # Initialize particles\n        self.positions = np.random.uniform(-10, 10, (n_particles, n_dims))\n        self.velocities = np.random.uniform(-1, 1, (n_particles, n_dims))\n        \n        # Personal best\n        self.personal_best_pos = self.positions.copy()\n        self.personal_best_val = np.array([self.func(p) for p in self.positions])\n        \n        # Global best\n        best_idx = np.argmin(self.personal_best_val)\n        self.global_best_pos = self.personal_best_pos[best_idx].copy()\n        self.global_best_val = self.personal_best_val[best_idx]\n    \n    def update(self, w=0.7, c1=1.5, c2=1.5):\n        r1, r2 = np.random.random((2, self.n_particles, 1))\n        \n        # Update velocities\n        cognitive = c1 * r1 * (self.personal_best_pos - self.positions)\n        social = c2 * r2 * (self.global_best_pos - self.positions)\n        self.velocities = w * self.velocities + cognitive + social\n        \n        # Update positions\n        self.positions += self.velocities\n        \n        # Evaluate and update personal bests\n        current_vals = np.array([self.func(p) for p in self.positions])\n        improved = current_vals \u003C self.personal_best_val\n        self.personal_best_pos[improved] = self.positions[improved]\n        self.personal_best_val[improved] = current_vals[improved]\n        \n        # Update global best\n        best_idx = np.argmin(self.personal_best_val)\n        if self.personal_best_val[best_idx] \u003C self.global_best_val:\n            self.global_best_pos = self.personal_best_pos[best_idx].copy()\n            self.global_best_val = self.personal_best_val[best_idx]\n    \n    def optimize(self, n_iterations):\n        for _ in range(n_iterations):\n            self.update()\n        return self.global_best_pos, self.global_best_val\n```\n\n### Ant Colony Optimization\n- Pheromone-based path finding\n- Probabilistic solution construction\n- Global and local pheromone updates\n- Used for: TSP, VRP, routing\n\n### Swarm Applications\n- **ACO**: Routing, scheduling\n- **PSO**: Function optimization\n- **Artificial Bee Colony**: Optimization\n- **Firefly Algorithm**: Clustering\n",{"name":5,"license":14,"metadata":30,"description":7,"compatibility":23},{"audience":31,"category":32},"machine-learning-engineers","artificial-intelligence","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 swarm-intelligence",{"tool":45,"command":46},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill swarm-intelligence",{"tool":48,"command":49},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill swarm-intelligence","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fswarm-intelligence\u002FSKILL.md",true,[],[54,65,75,84,94,103],{"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,23,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,23,73,74],"data wrangling","science","data",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":25},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[77,82,23,83],"system","scripting",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":25},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[91,92,23,93,74],"wide column","databases","model",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[101,92,23,102],"wide column stores","database",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":25},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[105,110,111,112,23,113,114],"websocket","real-time","time","best practices","implementation"]