[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1PN3GES26QM782FDDNFF3":3,"skill-same:01M7C1PN3GES26QM782FDDNFF3":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C1PN3GES26QM782FDDNFF3","position-controller-trajectory-planner",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdrone-planning-control\u002Frepaired_skill\u002Fposition-controller-trajectory-planner\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Quadrotor Outer-Loop Planning And Control Artifact Pipeline\n\n## Purpose\nGenerate a verifier-aligned planned trajectory and outer-loop control signals for a quadrotor by building an end-to-end, constraint-gated workflow: discover environment contracts (paths, schemas, limits), plan a dynamically feasible reference (pos\u002Fvel\u002Facc plus attitude and body-rate feedforward if required), validate feasibility, optionally simulate\u002Fscore, then write artifacts and re-verify them at the exact expected locations.\n\n## When to Use\nUse this skill when a task requires producing trajectory\u002Fcontroller artifacts (often a 15-row desired state matrix) and passing strict per-timestep feasibility and\u002For tracking checks under a provided quadrotor model (motor\u002Fthrust limits, gravity, sample rate), and when the expected output paths are enforced by a test harness or verifier.\n\n## Procedure\n- 1) Discover the contract before coding or writing files (no irreversible actions).\n- Locate where the environment defines: (a) sample rate\u002Fdt, (b) mass and gravity, (c) actuator\u002Fthrust limits, (d) required artifact names and output locations.\n- Use repository discovery rather than assumptions: search for config files (for example \"*params*.yaml\", \"*system*.yaml\"), task READMEs, and test scripts that reference output paths or artifact filenames.\n- Decision: If required output path(s) are not explicitly stated, stop and derive them from the harness entrypoint (the script that grades\u002Fruns) by inspecting how it locates outputs; do not invent \"\u002Froot\u002F...\" paths.\n- 2) Build the reference trajectory generator around constraints (method is a choice, constraints are not).\n- Inputs: waypoints\u002Fsegments, waypoint times (or durations), modes, and dt from discovered sample rate.\n- Produce time-sampled desired signals at each timestep, minimally:\n- position p(t), velocity v(t), acceleration a(t)\n- plus any task-declared additional rows (commonly attitude\u002Forientation and body rates).\n- Planner choice rule (do not hard-mandate one):\n- If the contract emphasizes continuity\u002Fjerk limits, prefer a quintic\u002Fminimum-jerk segment method.\n- If only smoothness is required, cubic is acceptable, but keep the option to time-scale segments.\n- If attitude is part of the required state (or needed for tight tracking), map desired acceleration to a physically consistent thrust direction and orientation (tilt-aware), and generate corresponding body-rate feedforward only if the downstream controller consumes it.\n- 3) Implement the outer-loop position controller with explicit state handling and tilt-aware thrust.\n- Maintain integral state explicitly; never use a mutable default. Provide a constructor like make_integral_state() that returns a fresh zero vector.\n- Compute errors using a consistent sign convention and document it in code (avoid silent flips).\n- Compute commanded acceleration a_cmd = a_des + feedback_terms, then compute thrust magnitude using the discovered mass and gravity and the current\u002Fdesired attitude mapping required by the model (do not assume small angles unless verified).\n- Checkpoint: clamp or reject commands only using discovered limits (never hard-coded numbers).\n- 4) Feasibility gate on the planned trajectory (must pass before simulation and before writing final artifacts).\n- Read limits from the discovered config\u002Fmodel (thrust min\u002Fmax, accel bounds, rate bounds, etc.).\n- Audit per timestep:\n- max\u002Fmin of each acceleration component and horizontal norm\n- implied thrust (and tilt) feasibility if your model requires it\n- body-rate magnitude if you output omega\n- If any violation occurs: record the first violating timestep and channel, then apply ONE bounded fallback (next step) rather than ad hoc redesign.\n- 5) Bounded fallback loop (one of these, then re-run Step 4; do not loop indefinitely).\n- If acceleration\u002Fthrust violates limits: increase segment duration (time-scaling) for the violating segment(s) or apply a global time scale, then regenerate trajectory.\n- If tracking is poor but trajectory is feasible: add the missing feedforward terms that the controller\u002Fmodel expects (for example, attitude\u002Fomega feedforward from a_des and yaw plan), then re-run minimal simulation\u002Fscore.\n- If tool\u002Flibrary assumptions fail (missing spline library, etc.): switch to a simpler interpolator available in the environment (linear + smoothing window) and compensate via longer durations; keep the same output schema.\n- Stop condition: after one fallback application, if constraints still fail, escalate to method-level change (planner family or mapping), not parameter tweaking.\n- 6) Write artifacts to verifier-visible paths and verify them in-place (final gate).\n- Write outputs ONLY to the exact discovered required path(s) and filenames.\n- Immediately verify:\n- existence and readability at those exact paths (list directory and stat files)\n- reload\u002Fparsing succeeds using the same mechanism the environment uses (for example, load array file; parse JSON)\n- shape\u002Ffields match the discovered schema (for example, 15 rows and expected length; required keys present)\n- If writing fails (permissions\u002Fmounts): inspect the discovered output root and harness expectations; do not silently redirect to a different directory.\n\n## Constraints \u002F Pitfalls\n- Never hard-code absolute output paths, numeric physical limits, sample rate, or schema details unless they are verified invariants in the discovered environment; always discover from config\u002Fharness and then enforce via a final existence+reload check at the exact required path.\n- Do not commit to a single planner method (for example, cubic splines) as a rule. The invariant is constraint satisfaction (per-timestep feasibility) and required signal continuity; if feasibility fails, prefer time-scaling and limit-aware regeneration before controller retuning.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdrone-planning-control\u002Frepaired_skill\u002Fposition-controller-trajectory-planner",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill position-controller-trajectory-planner",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill position-controller-trajectory-planner",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill position-controller-trajectory-planner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdrone-planning-control\u002Frepaired_skill\u002Fposition-controller-trajectory-planner\u002FSKILL.md",true,[],[44,51,58,65,70,75],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":66,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":76,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]