[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XDYN726V26QMH7QWE2JJJD":3,"skill-same:01M6XDYN726V26QMH7QWE2JJJD":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6XDYN726V26QMH7QWE2JJJD","pid-controller",null,"Use this skill when implementing PID control loops for adaptive cruise control, vehicle speed regulation, throttle\u002Fbrake management, or any feedback control system requiring proportional-integral-derivative control.","Waaaalnut\u002Fskillsbench","Waaaalnut","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F103995656?v=4","01M6XCS9K1V51EY3JMB7DGMX24","01M6XCS9Q4WPW88W62C55G1H44",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fadaptive-cruise-control\u002Fenvironment\u002Fskills\u002Fpid-controller\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"controller","PID","pid controller","system","feedback","management","use","speed","control","loops","throttle","implementing","for","adaptive","when","2026-11-10 10:12:30",false,"---\nname: pid-controller\ndescription: Use this skill when implementing PID control loops for adaptive cruise control, vehicle speed regulation, throttle\u002Fbrake management, or any feedback control system requiring proportional-integral-derivative control.\n---\n\n# PID Controller Implementation\n\n## Overview\n\nA PID (Proportional-Integral-Derivative) controller is a feedback control mechanism used in industrial control systems. It continuously calculates an error value and applies a correction based on proportional, integral, and derivative terms.\n\n## Control Law\n\n```\noutput = Kp * error + Ki * integral(error) + Kd * derivative(error)\n```\n\nWhere:\n- `error` = setpoint - measured_value\n- `Kp` = proportional gain (reacts to current error)\n- `Ki` = integral gain (reacts to accumulated error)\n- `Kd` = derivative gain (reacts to rate of change)\n\n## Discrete-Time Implementation\n\n```python\nclass PIDController:\n    def __init__(self, kp, ki, kd, output_min=None, output_max=None):\n        self.kp = kp\n        self.ki = ki\n        self.kd = kd\n        self.output_min = output_min\n        self.output_max = output_max\n        self.integral = 0.0\n        self.prev_error = 0.0\n\n    def reset(self):\n        \"\"\"Clear controller state.\"\"\"\n        self.integral = 0.0\n        self.prev_error = 0.0\n\n    def compute(self, error, dt):\n        \"\"\"Compute control output given error and timestep.\"\"\"\n        # Proportional term\n        p_term = self.kp * error\n\n        # Integral term\n        self.integral += error * dt\n        i_term = self.ki * self.integral\n\n        # Derivative term\n        derivative = (error - self.prev_error) \u002F dt if dt > 0 else 0.0\n        d_term = self.kd * derivative\n        self.prev_error = error\n\n        # Total output\n        output = p_term + i_term + d_term\n\n        # Output clamping (optional)\n        if self.output_min is not None:\n            output = max(output, self.output_min)\n        if self.output_max is not None:\n            output = min(output, self.output_max)\n\n        return output\n```\n\n## Anti-Windup\n\nIntegral windup occurs when output saturates but integral keeps accumulating. Solutions:\n\n1. **Clamping**: Limit integral term magnitude\n2. **Conditional Integration**: Only integrate when not saturated\n3. **Back-calculation**: Reduce integral when output is clamped\n\n## Tuning Guidelines\n\n**Manual Tuning:**\n1. Set Ki = Kd = 0\n2. Increase Kp until acceptable response speed\n3. Add Ki to eliminate steady-state error\n4. Add Kd to reduce overshoot\n\n**Effect of Each Gain:**\n- Higher Kp -> faster response, more overshoot\n- Higher Ki -> eliminates steady-state error, can cause oscillation\n- Higher Kd -> reduces overshoot, sensitive to noise\n","# PID Controller Implementation\n\n## Overview\n\nA PID (Proportional-Integral-Derivative) controller is a feedback control mechanism used in industrial control systems. It continuously calculates an error value and applies a correction based on proportional, integral, and derivative terms.\n\n## Control Law\n\n```\noutput = Kp * error + Ki * integral(error) + Kd * derivative(error)\n```\n\nWhere:\n- `error` = setpoint - measured_value\n- `Kp` = proportional gain (reacts to current error)\n- `Ki` = integral gain (reacts to accumulated error)\n- `Kd` = derivative gain (reacts to rate of change)\n\n## Discrete-Time Implementation\n\n```python\nclass PIDController:\n    def __init__(self, kp, ki, kd, output_min=None, output_max=None):\n        self.kp = kp\n        self.ki = ki\n        self.kd = kd\n        self.output_min = output_min\n        self.output_max = output_max\n        self.integral = 0.0\n        self.prev_error = 0.0\n\n    def reset(self):\n        \"\"\"Clear controller state.\"\"\"\n        self.integral = 0.0\n        self.prev_error = 0.0\n\n    def compute(self, error, dt):\n        \"\"\"Compute control output given error and timestep.\"\"\"\n        # Proportional term\n        p_term = self.kp * error\n\n        # Integral term\n        self.integral += error * dt\n        i_term = self.ki * self.integral\n\n        # Derivative term\n        derivative = (error - self.prev_error) \u002F dt if dt > 0 else 0.0\n        d_term = self.kd * derivative\n        self.prev_error = error\n\n        # Total output\n        output = p_term + i_term + d_term\n\n        # Output clamping (optional)\n        if self.output_min is not None:\n            output = max(output, self.output_min)\n        if self.output_max is not None:\n            output = min(output, self.output_max)\n\n        return output\n```\n\n## Anti-Windup\n\nIntegral windup occurs when output saturates but integral keeps accumulating. Solutions:\n\n1. **Clamping**: Limit integral term magnitude\n2. **Conditional Integration**: Only integrate when not saturated\n3. **Back-calculation**: Reduce integral when output is clamped\n\n## Tuning Guidelines\n\n**Manual Tuning:**\n1. Set Ki = Kd = 0\n2. Increase Kp until acceptable response speed\n3. Add Ki to eliminate steady-state error\n4. Add Kd to reduce overshoot\n\n**Effect of Each Gain:**\n- Higher Kp -> faster response, more overshoot\n- Higher Ki -> eliminates steady-state error, can cause oscillation\n- Higher Kd -> reduces overshoot, sensitive to noise\n",{"name":5,"description":7},"main","7eeb258ada72b7f58119b0e7a2c00ea89d9beedd","tasks\u002Fadaptive-cruise-control\u002Fenvironment\u002Fskills\u002Fpid-controller","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench","https:\u002F\u002Fgithub.com\u002FWaaaalnut","student of Zhejiang University","2026-04-21 23:16:23",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Waaaalnut\u002Fskillsbench --skill pid-controller",{"tool":51,"command":52},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill pid-controller",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill pid-controller","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fadaptive-cruise-control\u002Fenvironment\u002Fskills\u002Fpid-controller\u002FSKILL.md",true,[],[60,74,89,115,137,155],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":70,"publishedAt":33},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[65],{"categoryNo":66,"categoryName":67,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[71,72,73],"data reconciliation","reconciliation","data",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":33},"01M6XEW8MNPMF1KRXV6ATGFRQF","speech-to-text","Transcribe video to timestamped text using Whisper tiny model (pre-installed).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-tutorial-indexer\u002Fenvironment\u002Fskills\u002Fspeech-to-text\u002FSKILL.md",[],[81,82,83,84,85,86,87,88],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":100,"publishedAt":33},"01M6XEW3FQZP0T1RKQQJFXVY9T","video-processor","Process videos by removing segments and concatenating remaining parts. Use when you need to remove detected pauses\u002Fopenings from videos, create highlight reels, or batch process segment removals using ffmpeg filter_complex.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fvideo-processor\u002FSKILL.md",[95],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[87,101,102,103,104,105,32,106,107,108,109,110,111,112,113,24,114],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","filter","ffmpeg","remove",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":122,"publishedAt":33},"01M6XEVXJ5KZ0NTY3XZKRY4AS1","silence-detector","Detect initial silence segments in audio\u002Fvideo using energy-based analysis. Use when you need to find low-energy periods at the start of recordings (title slides, setup time, pre-roll silence).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsilence-detector\u002FSKILL.md",[121],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},[123,124,125,126,32,110,127,128,129,130,131,107,132,133,87,134,135,136,24],"detector","silence detector","title","slides","time","energy","at","recordings","detect","find","Audio","analysis","start","setup",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":33},"01M6XEVT3NGRN1FT7JPMAPXS6M","segment-combiner","Combine multiple segment detection results into a unified list. Use when you need to merge segments from different detectors, prepare removal lists for video processing, or consolidate detection outputs.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsegment-combiner\u002FSKILL.md",[],[111,144,87,145,146,147,148,30,32,149,150,107,110,151,152,24,153,154],"segment combiner","detection","prepare","merge","video processing","outputs","combine","processing","consolidate","results","list",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":164,"publishedAt":33},"01M6XEVMPVASGS2KX86QK4FMT7","report-generator","Generate compression reports for video processing. Use when you need to create structured JSON reports with duration statistics, compression ratios, and segment details after video processing.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Freport-generator\u002FSKILL.md",[161],{"categoryNo":162,"categoryName":163,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000034","行政与办公人员",[165,166,167,111,32,30,110,168,151,169,170,171,24,148,172,87,173,174,104],"generator","report generator","report","with","statistics","structured","reports","json","compression","generate"]