[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MJCZD53KJVB0HKT19DVT9":3,"skill-same:01M75MJCZD53KJVB0HKT19DVT9":66},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M75MJCZD53KJVB0HKT19DVT9","matlab-write-help",null,"Generate or improve MATLAB help text (documentation comments) for a function, class, or script file following MathWorks standards (H1 line, syntax paragraphs, See Also, 75-char lines). Read BEFORE writing MATLAB help — default patterns (Inputs:\u002FOutputs: lists, block comments, uppercase See Also) produce non-conforming output. Use when writing, rewriting, fixing, or reviewing MATLAB help comments or function documentation.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"BSD-2-Clause","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmatlab-write-help\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmatlab-write-help\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: matlab-write-help\ndescription: \"Generate or improve MATLAB help text (documentation comments) for a function, class, or script file following MathWorks standards (H1 line, syntax paragraphs, See Also, 75-char lines). Read BEFORE writing MATLAB help — default patterns (Inputs:\u002FOutputs: lists, block comments, uppercase See Also) produce non-conforming output. Use when writing, rewriting, fixing, or reviewing MATLAB help comments or function documentation.\"\nlicense: MathWorks BSD-3-Clause\nargument-hint: \"[name-or-path]\"\narguments: [file]\nallowed-tools: Read(*) Edit(*) Bash(matlab *) mcp__matlab__evaluate_matlab_code(*)\nmetadata:\n  author: MathWorks\n  version: \"1.1\"\n---\n\n## When to Use\n\n- Writing help text for a new MATLAB function, class, or script\n- Rewriting or improving existing help text that is incomplete or non-conforming\n- Reviewing help text for standards compliance\n- Adding help to methods in a classdef file\n- Generating property comments for a class\n\n## When NOT to Use\n\n- Writing general documentation or README files (not help comments)\n- Generating code — this skill only produces help text\n- Working with non-MATLAB languages\n- Writing MATLAB Live Script markup (use plain-text-live-code guidelines instead)\n\n## Task\n\nResolve `$file` to an M-file path and generate complete, standards-compliant MATLAB help text for it. If the file already has help text, improve it to meet the standards below. Present the proposed help text to the user for review before modifying the file.\n\n## Standards for MATLAB Help Text\n\nAll rules below are mandatory. Violating any of them produces non-conforming help.\n\n### General Rules\n\n- Help begins on line 2 (after `function` or `classdef` line) for functions\u002Fclasses\n- Help begins on line 1 for scripts or built-in sidecar files\n- Help comments must match the indentation of the body code.\n  Look at the first non-comment content after the help block to\n  determine the indentation level:\n  - For `classdef` files: the body is `properties`\u002F`methods` blocks,\n    which are always indented 4 spaces → class help at 4 spaces\n  - For `function` files: look at the first executable statement.\n    If at column 1, help at column 1; if at 4 spaces, help at 4 spaces.\n    Example at 4-space indent:\n    ```\n    function result = myFunc(x)\n        %myFunc - Brief description\n        %   RESULT = myFunc(X) does something with X.\n        result = x + 1;\n    end\n    ```\n  - For inline methods in classdef: if body is at 12 spaces, help at\n    12 spaces\n  Both styles are valid for top-level functions — match whichever one\n  the file already uses. Do NOT change the file's indentation style\n- No comment line may exceed 75 characters measured from the `%` onward\n  (i.e., 75 characters of comment content including the `%` itself).\n  If the `%` is indented, the total line width is indent + 75.\n  Syntax lines are exempt (see below).\n\n  Max column = indent + 75 (e.g., indent 12 → max col 87).\n  Count from the `%`, not from column 1.\n- No tabs — spaces only\n- No trailing whitespace\n- No block comments (`%{ %}`) — only `%` line comments\n- No hardcoded links to documentation or webpages\n- No `'href=\"matlab:'` evaluation links\n\n### Section Order\n\n1. H1 Line\n2. Release Compatibility (if applicable)\n3. Syntax Paragraphs\n4. Example (optional)\n5. See Also line\n6. Note (optional)\n\nA blank line (no `%`) separates help from the copyright line.\n\n---\n\n### Help Casing\n\nWhen function or class names appear in help text (H1 lines, syntax\nparagraphs, prose references, and See Also lines), they use **help\ncasing** to distinguish them from ordinary words. The `help` command\nrenders help-cased names as bold or hyperlinks.\n\nRules:\n- Names that are entirely lowercase letters [a-z] are uppercased\n  (e.g., `sort` → `SORT`, `magic` → `MAGIC`)\n- Names that start with an uppercase letter but the remaining letters\n  are all lowercase are also uppercased\n  (e.g., `Table` → `TABLE`, `Handle` → `HANDLE`)\n- Any other name (mixed case, digits, or underscores) keeps its exact\n  original casing — do NOT uppercase it\n  (e.g., `readTable` → `readTable`, `XMLReader` → `XMLReader`,\n  `image_resize` → `image_resize`, `pdist2` → `pdist2`)\n\n---\n\n### H1 Line\n\n```\n%FUNCNAME - Brief description without a period\n```\n\n- Begins with `%` immediately followed by the function name in help\n  casing (no space after `%`)\n- Do NOT include namespace or class name\n- ` - ` (space-dash-space) separates the name from the description\n- Do NOT end with a period\n- Description should be a brief summary of the function's purpose\n\n---\n\n### Syntax Paragraphs\n\n```\n%FUNC - Brief description without a period\n%   B = FUNC(A,OPTION) does the thing with A using OPTION.\n%\n%   B = FUNC(A,Name=VALUE) also specifies a name-value argument.\n```\n\nNote: no blank `%` line between the H1 and the first syntax paragraph.\n\n- One paragraph per syntax\n- Each paragraph begins with the syntax it describes followed by a\n  lowercase verb — the syntax reads as the subject of the sentence\n  (e.g., `%   B = FUNC(A) does...` not `%   B = FUNC(A) Returns...`)\n- Function name uses help casing\n- All lines indented with three spaces after `%` (i.e., `%   `)\n- No blank `%` line before the first syntax paragraph\n- A blank `%` line separates each syntax paragraph\n- Input ordering in syntax: Required → Optional → Name-Value\n- The first syntax paragraph describes all required inputs only\n- Each optional input gets its own syntax paragraph\n- The first syntax paragraph shows only the primary output. Additional\n  outputs are introduced one at a time in later syntax paragraphs —\n  never jump from one output to all outputs at once. Each new output\n  gets its own paragraph. This mirrors the input layering — start\n  simple, add complexity one piece at a time. Examples:\n\n  Two outputs — one additional paragraph:\n  ```\n  %   IDX = FINDNEAREST(POINTS,TARGET) finds the nearest point.\n  %\n  %   [IDX,DIST] = FINDNEAREST(...) also returns the distances.\n  ```\n\n  Three outputs — two additional paragraphs (not one):\n  ```\n  %   SEGMENTS = segmentSignal(DATA,THRESHOLD) segments the signal.\n  %\n  %   [SEGMENTS,BOUNDARIES] = segmentSignal(...) also returns the\n  %   boundary indices where segments split.\n  %\n  %   [SEGMENTS,BOUNDARIES,LABELS] = segmentSignal(...) also returns\n  %   string labels for each segment.\n  ```\n- Use `...` to abbreviate previously-described arguments when an optional\n  applies to all prior syntaxes\n- If a syntax exceeds 75 characters, the syntax itself is exempt from\n  wrapping — keep it on one line. The description text that follows\n  wraps normally starting on the next line. To shorten long syntaxes:\n  - Abbreviate the LHS with `[...]` when outputs were described in an\n    earlier syntax (e.g., `[...] = func(...,Name=VAL)`)\n  - Abbreviate the RHS with `...` for previously-described inputs\n  - Both abbreviations can be combined\n\n#### Variable Naming in Syntaxes\n\n- Inputs and outputs: use help casing\n  — all-lowercase names become UPPERCASE; names with ANY uppercase\n  letter, digit, or underscore keep exact original casing\n  Examples: `data` → `DATA`, `method` → `METHOD`, `result` → `RESULT`,\n  `depth` → `DEPTH`, `obj` → `OBJ`, `tf` → `TF`\n  but `filePath` → `filePath`, `queryPoints` → `queryPoints`,\n  `startSample` → `startSample`, `maxMemory` → `maxMemory`,\n  `otherBuffer` → `otherBuffer`\n  (these contain uppercase letters, so they keep exact casing)\n- References to other functions in prose: use help casing — never\n  fully-qualified for same-folder functions\n- Generic logical outputs: use `TF`\n- Generic data: single uppercase letters (`A`, `B`, `X`)\n- Command-form arguments: all UPPERCASE\n\n#### Flag (Option String) Inputs\n\n```\n%   B = SORT(A,DIRECTION) also specifies the sort direction. DIRECTION\n%   must be:\n%       \"ascend\"  - (default) Sorts in ascending order.\n%       \"descend\" - Sorts in descending order.\n```\n\n- Flag name in UPPERCASE in the syntax\n- Allowed values listed as double-quoted strings\n- Values indented seven spaces after `%` (i.e., `%       `)\n- Value separated from description by ` - ` (space-dash-space)\n- Pad shorter values so dashes align vertically\n- Indicate default with `(default)` at start of description\n- Default value listed first\n\n#### Name-Value Arguments\n\n```\n%   B = FUNC(A,...,Name=VALUE) also specifies the thing.\n```\n\n- Written as `Name=VALUE` with the value in UPPERCASE\n- If the name-value has allowed values, list them using the same flag rules above\n\n---\n\n### Example Section\n\n```\n%   Example: Brief label describing the example\n%       x = func(input1,input2);\n%       disp(x)\n```\n\n- Only include an example if it helps illustrate non-obvious syntax usage\n- Preceded by a blank `%` line\n- Heading: `%   Example:` (or `%   Example: label`)\n- Code indented seven spaces after `%` (i.e., `%       `)\n- No control flow (`for`, `if`, `while`)\n- Must run when copied to Command Window\n- No more than 10 lines of code per example\n- Separate multiple examples with a blank `%` line\n- Do NOT number examples — use text labels on the heading line\n- Use inline `% comments` to annotate code, not prose between lines\n\n---\n\n### See Also Line\n\n```\n%\n%   See also readtable, griddedInterpolant, pdist2\n```\n\n- Preceded by a blank `%` line\n- Begins with `%   See also ` (three-space indent)\n- Names use their **original case-correct spelling** as they appear on\n  the MATLAB path (e.g., `readtable`, `griddedInterpolant`, `pdist2`)\n  — do NOT apply help casing to See Also names\n- Use the shortest name that resolves. Functions on the MATLAB path\n  without packages can use bare names. Functions in OTHER packages\n  MUST be fully qualified (e.g., `pkg.subpkg.funcName`). Functions\n  in the SAME folder (same package level) use bare names — they\n  resolve relative to each other\n- Do NOT reference private methods or private functions — they cannot\n  be reached via `help` without full qualification, and even then only\n  from within the class. In `@class` folders, any file that is not the\n  class constructor is a method; check its Access before referencing it\n- Methods in `@class` folders SHOULD have a See Also line referencing\n  the class itself and relevant public methods or properties of the\n  class, using unqualified names (e.g., `ClassName`, `methodName`,\n  `propertyName`). Do NOT reference other private methods\n- Separated by comma and space\n- NOT terminated with a period\n- Between 2 and 7 items\n- Do NOT include descriptions — just names\n- If the line exceeds 75 characters, wrap at a comma boundary:\n  ```\n  %   See also readtable, readtimetable,\n  %   griddedInterpolant, scatteredInterpolant\n  ```\n\n---\n\n### Note Section\n\n```\n%\n%   Note: FUNC is in the Signal Processing Toolbox\n```\n\n- Preceded by a blank `%` line\n- Begins with `%   Note: `\n- Functions use their H1 casing\n- Products use full names\n- NOT terminated with a period\n\n---\n\n### Copyright Line\n\nA copyright line is specifically a comment that matches:\n```\n%   Copyright YYYY\n```\nwhere the line starts with `%` followed by spaces, then the whole word\n`Copyright`, then a four-digit year or year range (e.g.,`2024` or \n`2020-2025`). Other comments that merely contain the word \"copyright\" as\npart of a function name or description are NOT copyright lines.\n\n- The copyright is NOT part of the help text\n- If a copyright comment exists in the file, ensure it appears after the\n  help block, separated by a blank line (no `%` — just a newline)\n- This blank line terminates the help block; MATLAB's `help` command\n  stops reading at the first non-comment line\n- The copyright line must be indented to match the help comments above it\n- Do not add, remove, or modify the copyright — only move it if needed\n\n---\n\n### Class Help\n\nFor `classdef` files:\n\n- Main class help describes construction (do NOT write separate constructor help)\n- Construction syntax paragraphs follow the same required\u002Foptional rules:\n  the first syntax shows required args only; each optional gets its own\n  paragraph. Example for `MyClass(data, opts)` where data is required:\n  ```\n  %   OBJ = MyClass(DATA) creates an object from DATA.\n  %\n  %   OBJ = MyClass(DATA, sampleRate) also specifies the sample rate.\n  ```\n- After syntax paragraphs, include class detail listings:\n\n```\n%   CLASSNAME functions:\n%       method1 - Brief description\n%       method2 - Brief description\n%\n%   CLASSNAME properties:\n%       Prop1   - Brief description\n%       Prop2   - Brief description\n```\n\n- The heading MUST be `CLASSNAME functions:` — use the word\n  **functions**, NOT **methods** (matches MATLAB's own `help` output).\n  Never write `CLASSNAME methods:`\n- List every public method and property\n- Pad names so dashes align\n- In the classdef file's own See Also, do NOT list the class's own\n  methods or properties (they are already in the listings above)\n- In method files (`@class` folder), DO reference the class itself\n  and other public methods or properties — use unqualified names\n  (e.g., `ClassName`, `methodName`, `propertyName`)\n\n#### Property Help\n\n**When generating help for a classdef file, always check that every\npublic property has a comment.** This is not optional and should not\nrequire the user to ask — it is part of the standard classdef help\nworkflow. If any public property lacks a comment, add one.\n\nEvery public property should have at least a postfix comment:\n\nPostfix (short, H1 only):\n```\n    PropName  % Brief description\n```\n\nPrefix (for longer descriptions):\n```\n    %PROPNAME - Brief description\n    %   Additional detail about the property.\n    PropName\n```\n\nIf properties already have postfix comments, leave them as-is. Only add\nmissing ones. Do not duplicate the class-level properties listing — the\nlisting is a summary, while property-level comments are inline docs.\n\n#### Method Help\n\nMethods defined locally in a classdef file (not in separate `@class`\nfolder files) follow these rules based on access level:\n\n**Public methods** get full function help:\n- H1 line\n- Syntax paragraph describing all inputs and outputs\n- No blank `%` line between the H1 and the syntax paragraph\n- Fill description text to the full 75-character width measured from\n  `%` — do not wrap short\n- The syntax itself (e.g., `%   OUT = func(A,B,C)`) is exempt from\n  the 75-char limit — never wrap a syntax across lines. If the syntax\n  exceeds 75 chars, put the description on the next line\n\n```\n        function result = myMethod(obj, x)\n            %myMethod - Brief description\n            %   RESULT = myMethod(OBJ,X) does something with X.\n            result = x + 1;\n        end\n```\n\n**Protected and private methods** get H1 only:\n```\n        function result = helperMethod(obj)\n            %helperMethod - Brief description\n            result = obj.data;\n        end\n```\n\n**Exceptions** that get H1 only regardless of access:\n- Property getters\u002Fsetters (`get.Prop`, `set.Prop`)\n- Constructors (class-level help covers construction)\n- Trivial no-op methods (empty body)\n\n**Overriding methods and help inheritance:**\n\nWhen a subclass overrides a superclass method, MATLAB inherits the\nsuperclass help if the override has none. Use this to avoid duplication:\n\n- **Omit help** when the override does the same thing (different impl)\n- **Write help** only when the contract changes (different inputs\u002Foutputs)\n\nWrite superclass help generically — describe *what*, not *how*.\n\nHelp for locally-defined methods is indented to match the method body\n(typically 12 spaces when the `function` keyword is at 8 spaces).\n\nMethods in separate files (`@class` folders) follow standard function\nhelp rules independently — help indentation matches the body code\nindentation of that file (column 1 if the body is at column 1, or\n4 spaces if the body is indented 4 spaces).\n\n---\n\n## Using the arguments block for syntax paragraphs\n\nWhen a function has an `arguments` block, read it to determine the correct\nsyntax paragraphs. The block tells you everything:\n\n- **Required positional**: no `=` default value, no dot prefix\n  ```\n  inputData (1,:) double;\n  ```\n- **Optional positional**: has `= default`, no dot prefix\n  ```\n  method (1,1) string = \"linear\";\n  ```\n- **Name-value**: prefixed with a group name and dot\n  ```\n  opts.Tolerance (1,1) double = 1e-6;\n  ```\n\nUse this to generate syntax paragraphs:\n\n1. **First syntax**: required positional args only → describe the base call\n2. **Optional positional**: each gets its own paragraph with all prior args\n   shown (or abbreviated with `...`)\n3. **Name-value args**: show as `Name=VALUE` in additional syntaxes\n\nNever write a raw internal variable name like `ARGS` in a syntax — expand\nit into the actual name-value pairs the caller would use.\n\n---\n\n## Process\n\n1. Resolve `$file` to a full file path:\n   - If `$file` is already a valid absolute or relative path to an\n     existing `.m` file, use it directly\n   - Otherwise, resolve it via MATLAB using the MCP tool:\n     ```matlab\n     foundName = which(\"$file\");\n     if ~isempty(foundName), disp(foundName), end\n     ```\n   - If resolution fails (MCP unavailable, MATLAB not running, or\n     name not found), report the failure and ask the user for\n     a valid path\n2. Read the resolved M-file\n3. Identify: function, classdef, or script\n4. If the function has an `arguments` block, read it to determine\n   required, optional, and name-value arguments\n5. Analyze the signature(s), inputs, outputs, and behavior\n6. Draft help text following all rules above\n7. For classdef files: check every public property for a comment. Add\n   postfix comments to any that are missing — do this proactively as\n   part of the draft, without waiting for the user to ask\n8. Verify: no line > 75 chars from `%`, correct section order, correct\n   indentation\n9. Present the draft to the user\n10. After approval, insert\u002Freplace the help text in the file using Edit\n\n---\n\nCopyright 2026 The MathWorks, Inc.\n","## When to Use\n\n- Writing help text for a new MATLAB function, class, or script\n- Rewriting or improving existing help text that is incomplete or non-conforming\n- Reviewing help text for standards compliance\n- Adding help to methods in a classdef file\n- Generating property comments for a class\n\n## When NOT to Use\n\n- Writing general documentation or README files (not help comments)\n- Generating code — this skill only produces help text\n- Working with non-MATLAB languages\n- Writing MATLAB Live Script markup (use plain-text-live-code guidelines instead)\n\n## Task\n\nResolve `$file` to an M-file path and generate complete, standards-compliant MATLAB help text for it. If the file already has help text, improve it to meet the standards below. Present the proposed help text to the user for review before modifying the file.\n\n## Standards for MATLAB Help Text\n\nAll rules below are mandatory. Violating any of them produces non-conforming help.\n\n### General Rules\n\n- Help begins on line 2 (after `function` or `classdef` line) for functions\u002Fclasses\n- Help begins on line 1 for scripts or built-in sidecar files\n- Help comments must match the indentation of the body code.\n  Look at the first non-comment content after the help block to\n  determine the indentation level:\n  - For `classdef` files: the body is `properties`\u002F`methods` blocks,\n    which are always indented 4 spaces → class help at 4 spaces\n  - For `function` files: look at the first executable statement.\n    If at column 1, help at column 1; if at 4 spaces, help at 4 spaces.\n    Example at 4-space indent:\n    ```\n    function result = myFunc(x)\n        %myFunc - Brief description\n        %   RESULT = myFunc(X) does something with X.\n        result = x + 1;\n    end\n    ```\n  - For inline methods in classdef: if body is at 12 spaces, help at\n    12 spaces\n  Both styles are valid for top-level functions — match whichever one\n  the file already uses. Do NOT change the file's indentation style\n- No comment line may exceed 75 characters measured from the `%` onward\n  (i.e., 75 characters of comment content including the `%` itself).\n  If the `%` is indented, the total line width is indent + 75.\n  Syntax lines are exempt (see below).\n\n  Max column = indent + 75 (e.g., indent 12 → max col 87).\n  Count from the `%`, not from column 1.\n- No tabs — spaces only\n- No trailing whitespace\n- No block comments (`%{ %}`) — only `%` line comments\n- No hardcoded links to documentation or webpages\n- No `'href=\"matlab:'` evaluation links\n\n### Section Order\n\n1. H1 Line\n2. Release Compatibility (if applicable)\n3. Syntax Paragraphs\n4. Example (optional)\n5. See Also line\n6. Note (optional)\n\nA blank line (no `%`) separates help from the copyright line.\n\n---\n\n### Help Casing\n\nWhen function or class names appear in help text (H1 lines, syntax\nparagraphs, prose references, and See Also lines), they use **help\ncasing** to distinguish them from ordinary words. The `help` command\nrenders help-cased names as bold or hyperlinks.\n\nRules:\n- Names that are entirely lowercase letters [a-z] are uppercased\n  (e.g., `sort` → `SORT`, `magic` → `MAGIC`)\n- Names that start with an uppercase letter but the remaining letters\n  are all lowercase are also uppercased\n  (e.g., `Table` → `TABLE`, `Handle` → `HANDLE`)\n- Any other name (mixed case, digits, or underscores) keeps its exact\n  original casing — do NOT uppercase it\n  (e.g., `readTable` → `readTable`, `XMLReader` → `XMLReader`,\n  `image_resize` → `image_resize`, `pdist2` → `pdist2`)\n\n---\n\n### H1 Line\n\n```\n%FUNCNAME - Brief description without a period\n```\n\n- Begins with `%` immediately followed by the function name in help\n  casing (no space after `%`)\n- Do NOT include namespace or class name\n- ` - ` (space-dash-space) separates the name from the description\n- Do NOT end with a period\n- Description should be a brief summary of the function's purpose\n\n---\n\n### Syntax Paragraphs\n\n```\n%FUNC - Brief description without a period\n%   B = FUNC(A,OPTION) does the thing with A using OPTION.\n%\n%   B = FUNC(A,Name=VALUE) also specifies a name-value argument.\n```\n\nNote: no blank `%` line between the H1 and the first syntax paragraph.\n\n- One paragraph per syntax\n- Each paragraph begins with the syntax it describes followed by a\n  lowercase verb — the syntax reads as the subject of the sentence\n  (e.g., `%   B = FUNC(A) does...` not `%   B = FUNC(A) Returns...`)\n- Function name uses help casing\n- All lines indented with three spaces after `%` (i.e., `%   `)\n- No blank `%` line before the first syntax paragraph\n- A blank `%` line separates each syntax paragraph\n- Input ordering in syntax: Required → Optional → Name-Value\n- The first syntax paragraph describes all required inputs only\n- Each optional input gets its own syntax paragraph\n- The first syntax paragraph shows only the primary output. Additional\n  outputs are introduced one at a time in later syntax paragraphs —\n  never jump from one output to all outputs at once. Each new output\n  gets its own paragraph. This mirrors the input layering — start\n  simple, add complexity one piece at a time. Examples:\n\n  Two outputs — one additional paragraph:\n  ```\n  %   IDX = FINDNEAREST(POINTS,TARGET) finds the nearest point.\n  %\n  %   [IDX,DIST] = FINDNEAREST(...) also returns the distances.\n  ```\n\n  Three outputs — two additional paragraphs (not one):\n  ```\n  %   SEGMENTS = segmentSignal(DATA,THRESHOLD) segments the signal.\n  %\n  %   [SEGMENTS,BOUNDARIES] = segmentSignal(...) also returns the\n  %   boundary indices where segments split.\n  %\n  %   [SEGMENTS,BOUNDARIES,LABELS] = segmentSignal(...) also returns\n  %   string labels for each segment.\n  ```\n- Use `...` to abbreviate previously-described arguments when an optional\n  applies to all prior syntaxes\n- If a syntax exceeds 75 characters, the syntax itself is exempt from\n  wrapping — keep it on one line. The description text that follows\n  wraps normally starting on the next line. To shorten long syntaxes:\n  - Abbreviate the LHS with `[...]` when outputs were described in an\n    earlier syntax (e.g., `[...] = func(...,Name=VAL)`)\n  - Abbreviate the RHS with `...` for previously-described inputs\n  - Both abbreviations can be combined\n\n#### Variable Naming in Syntaxes\n\n- Inputs and outputs: use help casing\n  — all-lowercase names become UPPERCASE; names with ANY uppercase\n  letter, digit, or underscore keep exact original casing\n  Examples: `data` → `DATA`, `method` → `METHOD`, `result` → `RESULT`,\n  `depth` → `DEPTH`, `obj` → `OBJ`, `tf` → `TF`\n  but `filePath` → `filePath`, `queryPoints` → `queryPoints`,\n  `startSample` → `startSample`, `maxMemory` → `maxMemory`,\n  `otherBuffer` → `otherBuffer`\n  (these contain uppercase letters, so they keep exact casing)\n- References to other functions in prose: use help casing — never\n  fully-qualified for same-folder functions\n- Generic logical outputs: use `TF`\n- Generic data: single uppercase letters (`A`, `B`, `X`)\n- Command-form arguments: all UPPERCASE\n\n#### Flag (Option String) Inputs\n\n```\n%   B = SORT(A,DIRECTION) also specifies the sort direction. DIRECTION\n%   must be:\n%       \"ascend\"  - (default) Sorts in ascending order.\n%       \"descend\" - Sorts in descending order.\n```\n\n- Flag name in UPPERCASE in the syntax\n- Allowed values listed as double-quoted strings\n- Values indented seven spaces after `%` (i.e., `%       `)\n- Value separated from description by ` - ` (space-dash-space)\n- Pad shorter values so dashes align vertically\n- Indicate default with `(default)` at start of description\n- Default value listed first\n\n#### Name-Value Arguments\n\n```\n%   B = FUNC(A,...,Name=VALUE) also specifies the thing.\n```\n\n- Written as `Name=VALUE` with the value in UPPERCASE\n- If the name-value has allowed values, list them using the same flag rules above\n\n---\n\n### Example Section\n\n```\n%   Example: Brief label describing the example\n%       x = func(input1,input2);\n%       disp(x)\n```\n\n- Only include an example if it helps illustrate non-obvious syntax usage\n- Preceded by a blank `%` line\n- Heading: `%   Example:` (or `%   Example: label`)\n- Code indented seven spaces after `%` (i.e., `%       `)\n- No control flow (`for`, `if`, `while`)\n- Must run when copied to Command Window\n- No more than 10 lines of code per example\n- Separate multiple examples with a blank `%` line\n- Do NOT number examples — use text labels on the heading line\n- Use inline `% comments` to annotate code, not prose between lines\n\n---\n\n### See Also Line\n\n```\n%\n%   See also readtable, griddedInterpolant, pdist2\n```\n\n- Preceded by a blank `%` line\n- Begins with `%   See also ` (three-space indent)\n- Names use their **original case-correct spelling** as they appear on\n  the MATLAB path (e.g., `readtable`, `griddedInterpolant`, `pdist2`)\n  — do NOT apply help casing to See Also names\n- Use the shortest name that resolves. Functions on the MATLAB path\n  without packages can use bare names. Functions in OTHER packages\n  MUST be fully qualified (e.g., `pkg.subpkg.funcName`). Functions\n  in the SAME folder (same package level) use bare names — they\n  resolve relative to each other\n- Do NOT reference private methods or private functions — they cannot\n  be reached via `help` without full qualification, and even then only\n  from within the class. In `@class` folders, any file that is not the\n  class constructor is a method; check its Access before referencing it\n- Methods in `@class` folders SHOULD have a See Also line referencing\n  the class itself and relevant public methods or properties of the\n  class, using unqualified names (e.g., `ClassName`, `methodName`,\n  `propertyName`). Do NOT reference other private methods\n- Separated by comma and space\n- NOT terminated with a period\n- Between 2 and 7 items\n- Do NOT include descriptions — just names\n- If the line exceeds 75 characters, wrap at a comma boundary:\n  ```\n  %   See also readtable, readtimetable,\n  %   griddedInterpolant, scatteredInterpolant\n  ```\n\n---\n\n### Note Section\n\n```\n%\n%   Note: FUNC is in the Signal Processing Toolbox\n```\n\n- Preceded by a blank `%` line\n- Begins with `%   Note: `\n- Functions use their H1 casing\n- Products use full names\n- NOT terminated with a period\n\n---\n\n### Copyright Line\n\nA copyright line is specifically a comment that matches:\n```\n%   Copyright YYYY\n```\nwhere the line starts with `%` followed by spaces, then the whole word\n`Copyright`, then a four-digit year or year range (e.g.,`2024` or \n`2020-2025`). Other comments that merely contain the word \"copyright\" as\npart of a function name or description are NOT copyright lines.\n\n- The copyright is NOT part of the help text\n- If a copyright comment exists in the file, ensure it appears after the\n  help block, separated by a blank line (no `%` — just a newline)\n- This blank line terminates the help block; MATLAB's `help` command\n  stops reading at the first non-comment line\n- The copyright line must be indented to match the help comments above it\n- Do not add, remove, or modify the copyright — only move it if needed\n\n---\n\n### Class Help\n\nFor `classdef` files:\n\n- Main class help describes construction (do NOT write separate constructor help)\n- Construction syntax paragraphs follow the same required\u002Foptional rules:\n  the first syntax shows required args only; each optional gets its own\n  paragraph. Example for `MyClass(data, opts)` where data is required:\n  ```\n  %   OBJ = MyClass(DATA) creates an object from DATA.\n  %\n  %   OBJ = MyClass(DATA, sampleRate) also specifies the sample rate.\n  ```\n- After syntax paragraphs, include class detail listings:\n\n```\n%   CLASSNAME functions:\n%       method1 - Brief description\n%       method2 - Brief description\n%\n%   CLASSNAME properties:\n%       Prop1   - Brief description\n%       Prop2   - Brief description\n```\n\n- The heading MUST be `CLASSNAME functions:` — use the word\n  **functions**, NOT **methods** (matches MATLAB's own `help` output).\n  Never write `CLASSNAME methods:`\n- List every public method and property\n- Pad names so dashes align\n- In the classdef file's own See Also, do NOT list the class's own\n  methods or properties (they are already in the listings above)\n- In method files (`@class` folder), DO reference the class itself\n  and other public methods or properties — use unqualified names\n  (e.g., `ClassName`, `methodName`, `propertyName`)\n\n#### Property Help\n\n**When generating help for a classdef file, always check that every\npublic property has a comment.** This is not optional and should not\nrequire the user to ask — it is part of the standard classdef help\nworkflow. If any public property lacks a comment, add one.\n\nEvery public property should have at least a postfix comment:\n\nPostfix (short, H1 only):\n```\n    PropName  % Brief description\n```\n\nPrefix (for longer descriptions):\n```\n    %PROPNAME - Brief description\n    %   Additional detail about the property.\n    PropName\n```\n\nIf properties already have postfix comments, leave them as-is. Only add\nmissing ones. Do not duplicate the class-level properties listing — the\nlisting is a summary, while property-level comments are inline docs.\n\n#### Method Help\n\nMethods defined locally in a classdef file (not in separate `@class`\nfolder files) follow these rules based on access level:\n\n**Public methods** get full function help:\n- H1 line\n- Syntax paragraph describing all inputs and outputs\n- No blank `%` line between the H1 and the syntax paragraph\n- Fill description text to the full 75-character width measured from\n  `%` — do not wrap short\n- The syntax itself (e.g., `%   OUT = func(A,B,C)`) is exempt from\n  the 75-char limit — never wrap a syntax across lines. If the syntax\n  exceeds 75 chars, put the description on the next line\n\n```\n        function result = myMethod(obj, x)\n            %myMethod - Brief description\n            %   RESULT = myMethod(OBJ,X) does something with X.\n            result = x + 1;\n        end\n```\n\n**Protected and private methods** get H1 only:\n```\n        function result = helperMethod(obj)\n            %helperMethod - Brief description\n            result = obj.data;\n        end\n```\n\n**Exceptions** that get H1 only regardless of access:\n- Property getters\u002Fsetters (`get.Prop`, `set.Prop`)\n- Constructors (class-level help covers construction)\n- Trivial no-op methods (empty body)\n\n**Overriding methods and help inheritance:**\n\nWhen a subclass overrides a superclass method, MATLAB inherits the\nsuperclass help if the override has none. Use this to avoid duplication:\n\n- **Omit help** when the override does the same thing (different impl)\n- **Write help** only when the contract changes (different inputs\u002Foutputs)\n\nWrite superclass help generically — describe *what*, not *how*.\n\nHelp for locally-defined methods is indented to match the method body\n(typically 12 spaces when the `function` keyword is at 8 spaces).\n\nMethods in separate files (`@class` folders) follow standard function\nhelp rules independently — help indentation matches the body code\nindentation of that file (column 1 if the body is at column 1, or\n4 spaces if the body is indented 4 spaces).\n\n---\n\n## Using the arguments block for syntax paragraphs\n\nWhen a function has an `arguments` block, read it to determine the correct\nsyntax paragraphs. The block tells you everything:\n\n- **Required positional**: no `=` default value, no dot prefix\n  ```\n  inputData (1,:) double;\n  ```\n- **Optional positional**: has `= default`, no dot prefix\n  ```\n  method (1,1) string = \"linear\";\n  ```\n- **Name-value**: prefixed with a group name and dot\n  ```\n  opts.Tolerance (1,1) double = 1e-6;\n  ```\n\nUse this to generate syntax paragraphs:\n\n1. **First syntax**: required positional args only → describe the base call\n2. **Optional positional**: each gets its own paragraph with all prior args\n   shown (or abbreviated with `...`)\n3. **Name-value args**: show as `Name=VALUE` in additional syntaxes\n\nNever write a raw internal variable name like `ARGS` in a syntax — expand\nit into the actual name-value pairs the caller would use.\n\n---\n\n## Process\n\n1. Resolve `$file` to a full file path:\n   - If `$file` is already a valid absolute or relative path to an\n     existing `.m` file, use it directly\n   - Otherwise, resolve it via MATLAB using the MCP tool:\n     ```matlab\n     foundName = which(\"$file\");\n     if ~isempty(foundName), disp(foundName), end\n     ```\n   - If resolution fails (MCP unavailable, MATLAB not running, or\n     name not found), report the failure and ask the user for\n     a valid path\n2. Read the resolved M-file\n3. Identify: function, classdef, or script\n4. If the function has an `arguments` block, read it to determine\n   required, optional, and name-value arguments\n5. Analyze the signature(s), inputs, outputs, and behavior\n6. Draft help text following all rules above\n7. For classdef files: check every public property for a comment. Add\n   postfix comments to any that are missing — do this proactively as\n   part of the draft, without waiting for the user to ask\n8. Verify: no line > 75 chars from `%`, correct section order, correct\n   indentation\n9. Present the draft to the user\n10. After approval, insert\u002Freplace the help text in the file using Edit\n\n---\n\nCopyright 2026 The MathWorks, Inc.\n",{"name":5,"license":25,"metadata":26,"arguments":29,"description":7,"allowed-tools":31,"argument-hint":32},"MathWorks BSD-3-Clause",{"author":27,"version":28},"MathWorks","1.1",[30],"file","Read(*) Edit(*) Bash(matlab *) mcp__matlab__evaluate_matlab_code(*)","[name-or-path]","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fmatlab-write-help",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add stanfish06\u002Fskillquarium --skill matlab-write-help",{"tool":47,"command":48},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill matlab-write-help",{"tool":50,"command":51},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill matlab-write-help","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmatlab-write-help\u002FSKILL.md",true,[55,60],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":16},"LICENSE.md","LICENSE","许可证",1482,{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"manifest.yaml","REFERENCE","参考文档",366,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmatlab-write-help\u002Fmanifest.yaml",[67,75,84,91,98,105],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":20},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":20},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"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":71,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]