[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BVR3P3MZF3AFA2YAN5PJ3Q":3,"skill-same:01M6BVR3P3MZF3AFA2YAN5PJ3Q":132},{"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":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6BVR3P3MZF3AFA2YAN5PJ3Q","python-refactor",null,"This skill should be used when the user asks to \"refactor this\", \"simplify this code\", \"improve maintainability\", \"reduce complexity\", \"extract method\", \"reduce code duplication\", \"apply DRY principle\", \"clean up this function\", or mentions Python code quality, maintainability, or simplification.","feniix\u002Fdotfiles","feniix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F91633?v=4","01M6BVMJ0Q5E6HZ4JTEWYBBKV9","Sebastian B Otaegui","01M6BVMJ53ZV8DFKXTRBPESTF3",8,"MIT","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fpython-refactor\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"refactor","python refactor","python","complexity","when","apply","reduce","python code","dry","maintainability","simplification","duplication","clean","up","quality","improve","simplify","code","code quality","python code quality","2026-11-10 10:12:30",false,"---\nname: python-refactor\ndescription: This skill should be used when the user asks to \"refactor this\", \"simplify this code\", \"improve maintainability\", \"reduce complexity\", \"extract method\", \"reduce code duplication\", \"apply DRY principle\", \"clean up this function\", or mentions Python code quality, maintainability, or simplification.\nversion: 1.0.0\n---\n\n# Python Refactoring\n\nSimplify and maintain Python code through systematic refactoring. Focus on clarity, reduction of complexity, and elimination of duplication while preserving all functionality.\n\n## Purpose\n\nRefactoring improves code structure without changing behavior. The goal is code that is:\n- **Easy to understand** - Clear intent, minimal cognitive load\n- **Easy to modify** - Single Responsibility, low coupling\n- **Easy to test** - Pure functions, clear dependencies\n- **Maintainable** - Low duplication, clear patterns\n\n## When to Use This Skill\n\nInvoke this skill when:\n- Functions exceed 15-20 lines or have nesting > 3 levels\n- Similar code appears in multiple places (duplication)\n- Parameter lists exceed 4-5 parameters\n- Variable names are unclear or misleading\n- Complex boolean logic or conditionals exist\n- NumPy loops could be vectorized\n- Type hints are missing or incorrect\n\n## Refactoring Workflow\n\nFollow this systematic process:\n\n### 1. Understand the Code\n\nBefore changing anything, understand what the code does:\n\n```python\n# Use serena to get symbol overview\nget_symbols_overview(relative_path=\"path\u002Fto\u002Ffile.py\")\n\n# Read the specific symbol\nfind_symbol(name_path_pattern=\"ClassName\u002Fmethod_name\", include_body=True)\n```\n\n**Ask:**\n- What is the single responsibility of this code?\n- What are the inputs and outputs?\n- What edge cases are handled?\n\n### 2. Identify Refactoring Opportunities\n\nLook for:\n- **Complexity**: Functions with cyclomatic complexity > 10\n- **Duplication**: Similar patterns repeated\n- **Side effects**: Functions that do multiple things\n- **Magic numbers**: Unnamed constants\n- **Deep nesting**: More than 3 levels of indentation\n\n```python\n# Use serena to search for duplication patterns\nsearch_for_pattern(\n    substring_pattern=r\"def\\s+\\w+.*:\",\n    restrict_search_to_code_files=True\n)\n```\n\n### 3. Plan the Changes\n\nFor complex refactoring, use sequential-thinking to plan:\n\n```python\nsequentialthinking(\n    \"I need to refactor [function_name]. It has [X] issues: \"\n    \"1. [issue1] 2. [issue2] 3. [issue3]. \"\n    \"Plan: Extract [part1] to helper, simplify [part2]...\"\n)\n```\n\n**Verify plan:**\n- Each change is small and testable\n- No functionality changes\n- Tests will pass after each step\n\n### 4. Execute Refactoring\n\nUse serena for precise edits:\n\n```python\n# Replace symbol body for functions\nreplace_symbol_body(\n    name_path=\"function_name\",\n    relative_path=\"module\u002Ffile.py\",\n    body=\"# new implementation\"\n)\n\n# Insert new helper after existing symbol\ninsert_after_symbol(\n    name_path=\"existing_function\",\n    relative_path=\"module\u002Ffile.py\",\n    body=\"# new helper function\"\n)\n```\n\n### 5. Validate\n\nAlways verify after refactoring:\n\n```bash\n# Run tests\npytest\n\n# Type check\npyright\n\n# Lint\nruff check --fix\n```\n\n## Key Refactoring Patterns\n\n### Extract Method\n\nBreak large functions into smaller, named pieces:\n\n```python\n# Before - 40 lines, hard to understand\ndef process_video(video_path, quality, output):\n    pose = detect_pose(video_path)\n    smoothed = smooth_landmarks(pose, quality)\n    filtered = filter_signal(smoothed)\n    metrics = calculate_metrics(filtered)\n    if output:\n        save_debug_video(filtered, output)\n    return metrics\n\n# After - each piece is clear and testable\ndef process_video(video_path, quality, output=None):\n    landmarks = detect_pose(video_path)\n    processed = process_landmarks(landmarks, quality)\n    metrics = calculate_metrics(processed.signal)\n\n    if output:\n        save_debug_video(processed, output)\n\n    return metrics\n\ndef process_landmarks(landmarks, quality):\n    smoothed = smooth_landmarks(landmarks, quality)\n    return SignalData(smoothed, filter_signal(smoothed))\n```\n\n**When to extract:**\n- Function exceeds 15-20 lines\n- Logic has a clear name\u002Fpurpose\n- Code needs to be tested independently\n- Same logic appears in multiple places\n\n### Early Return\n\nReduce nesting by handling edge cases first:\n\n```python\n# Before - nested, hard to follow\ndef calculate_metrics(data):\n    if data is not None:\n        if len(data) > 0:\n            if all(isinstance(x, (int, float)) for x in data):\n                return sum(data) \u002F len(data)\n    return None\n\n# After - flat, clear flow\ndef calculate_metrics(data):\n    if data is None:\n        return None\n    if len(data) == 0:\n        return None\n    if not all(isinstance(x, (int, float)) for x in data):\n        raise TypeError(\"All values must be numeric\")\n\n    return sum(data) \u002F len(data)\n```\n\n### Parameter Object\n\nReplace long parameter lists with data structures:\n\n```python\n# Before - too many parameters\ndef analyze_video(\n    path,\n    quality,\n    smoothing_window,\n    filter_cutoff,\n    min_confidence,\n    debug_mode,\n    output_path\n):\n    ...\n\n# After - grouped, extensible\n@dataclass\nclass AnalysisConfig:\n    quality: str = \"balanced\"\n    smoothing_window: int = 5\n    filter_cutoff: float = 6.0\n    min_confidence: float = 0.5\n\n@dataclass\nclass DebugConfig:\n    enabled: bool = False\n    output_path: Optional[str] = None\n\ndef analyze_video(\n    path: str,\n    config: AnalysisConfig,\n    debug: DebugConfig = DebugConfig()\n):\n    ...\n```\n\n### Extract Function (DRY)\n\nWhen logic repeats, extract to a shared function:\n\n```python\n# Before - duplicated validation\ndef process_cmj(data):\n    if data is None or len(data) == 0:\n        raise ValueError(\"Invalid data\")\n    # ... CMJ logic\n\ndef process_drop_jump(data):\n    if data is None or len(data) == 0:\n        raise ValueError(\"Invalid data\")\n    # ... DJ logic\n\n# After - shared validation\ndef validate_input(data, name=\"data\"):\n    if data is None:\n        raise ValueError(f\"{name} cannot be None\")\n    if len(data) == 0:\n        raise ValueError(f\"{name} cannot be empty\")\n\ndef process_cmj(data):\n    validate_input(data, \"CMJ data\")\n    # ... CMJ logic\n```\n\n## NumPy Optimization\n\n### Vectorize Operations\n\nReplace Python loops with NumPy operations:\n\n```python\n# Before - slow Python loop\ndef calculate_velocity(positions, dt):\n    velocities = []\n    for i in range(len(positions) - 1):\n        v = (positions[i+1] - positions[i]) \u002F dt\n        velocities.append(v)\n    return np.array(velocities)\n\n# After - fast vectorized\ndef calculate_velocity(positions: NDArray[np.float64], dt: float) -> NDArray[np.float64]:\n    return np.diff(positions) \u002F dt\n```\n\n### Use Boolean Indexing\n\nAvoid conditional loops:\n\n```python\n# Before\nfiltered = []\nfor val in data:\n    if val > threshold and not np.isnan(val):\n        filtered.append(val)\n\n# After\nmask = (data > threshold) & ~np.isnan(data)\nfiltered = data[mask]\n```\n\n### Avoid Unnecessary Copies\n\nUse views when possible:\n\n```python\n# Before - creates copy\nresult = array.copy()\nresult = result * 2 + 1\n\n# After - in-place\nresult = array * 2 + 1  # Single allocation\n```\n\n## Code Quality Checklist\n\n### Complexity\n- [ ] Functions under 20 lines (most cases)\n- [ ] Nesting ≤ 3 levels\n- [ ] Cyclomatic complexity \u003C 10\n\n### Duplication\n- [ ] No repeated logic patterns\n- [ ] Shared utilities for common operations\n- [ ] Similar code uses parameterization\n\n### Clarity\n- [ ] Intention-revealing names\n- [ ] No magic numbers (use named constants)\n- [ ] Boolean conditions read like sentences\n\n### Type Safety\n- [ ] All functions have type hints\n- [ ] Return types are specific (not `Any`)\n- [ ] TypedDict for structured data\n- [ ] NDArray with dtype for NumPy arrays\n\n### Documentation\n- [ ] Complex logic has inline comments\n- [ ] Public APIs have docstrings\n- [ ] Edge cases are documented\n\n## Tool Integration\n\n### Serena (Code Analysis)\n\n**Understand structure:**\n```python\nget_symbols_overview(relative_path=\"module\u002Ffile.py\")\nfind_symbol(name_path_pattern=\"ClassName\", depth=1)\n```\n\n**Find duplication:**\n```python\nsearch_for_pattern(substring_pattern=r\"pattern\", paths_include_glob=\"**\u002F*.py\")\n```\n\n**Make edits:**\n```python\nreplace_symbol_body(name_path=\"function_name\", relative_path=\"...\", body=\"...\")\ninsert_after_symbol(name_path=\"existing\", relative_path=\"...\", body=\"...\")\n```\n\n### Exa (Best Practices)\n\n```python\nget_code_context_exa(\n    \"Python type hints best practices TypedDict NDArray\"\n)\n```\n\n### Ref (Documentation)\n\n```python\nref_search_documentation(\"Python refactoring patterns clean code\")\nref_read_url(\"https:\u002F\u002Fdocs.python.org\u002F3\u002Flibrary\u002Ftyping.html\")\n```\n\n### Sequential Thinking (Complex Planning)\n\n```python\n# For multi-step refactoring\n# Break down the problem, identify alternatives, verify approach\n```\n\n## Additional Resources\n\n### Reference Files\n\nFor detailed patterns and examples:\n- **`references\u002Fpatterns.md`** - Comprehensive refactoring patterns with before\u002Fafter\n- **`references\u002Fanti-patterns.md`** - Common Python mistakes to avoid\n\n## Principles\n\n1. **Do No Harm** - Tests must pass before and after\n2. **Small Steps** - One small change at a time\n3. **No Over-Engineering** - Simple is better than clever\n4. **Preserve Behavior** - Refactoring never changes functionality\n5. **Test Coverage** - Ensure tests exist before refactoring\n\n## Common Mistakes to Avoid\n\n- **Over-abstracting** - Don't create single-use \"helpers\"\n- **Premature optimization** - Profile before optimizing\n- **Chasing trends** - Use patterns that fit, not what's fashionable\n- **Ignoring tests** - Never refactor without test coverage\n- **Changing interfaces** - Refactoring is internal, API changes are redesign\n\n---\n\nRemember: The best code is code that doesn't exist. Delete unnecessary code before adding more.\n","# Python Refactoring\n\nSimplify and maintain Python code through systematic refactoring. Focus on clarity, reduction of complexity, and elimination of duplication while preserving all functionality.\n\n## Purpose\n\nRefactoring improves code structure without changing behavior. The goal is code that is:\n- **Easy to understand** - Clear intent, minimal cognitive load\n- **Easy to modify** - Single Responsibility, low coupling\n- **Easy to test** - Pure functions, clear dependencies\n- **Maintainable** - Low duplication, clear patterns\n\n## When to Use This Skill\n\nInvoke this skill when:\n- Functions exceed 15-20 lines or have nesting > 3 levels\n- Similar code appears in multiple places (duplication)\n- Parameter lists exceed 4-5 parameters\n- Variable names are unclear or misleading\n- Complex boolean logic or conditionals exist\n- NumPy loops could be vectorized\n- Type hints are missing or incorrect\n\n## Refactoring Workflow\n\nFollow this systematic process:\n\n### 1. Understand the Code\n\nBefore changing anything, understand what the code does:\n\n```python\n# Use serena to get symbol overview\nget_symbols_overview(relative_path=\"path\u002Fto\u002Ffile.py\")\n\n# Read the specific symbol\nfind_symbol(name_path_pattern=\"ClassName\u002Fmethod_name\", include_body=True)\n```\n\n**Ask:**\n- What is the single responsibility of this code?\n- What are the inputs and outputs?\n- What edge cases are handled?\n\n### 2. Identify Refactoring Opportunities\n\nLook for:\n- **Complexity**: Functions with cyclomatic complexity > 10\n- **Duplication**: Similar patterns repeated\n- **Side effects**: Functions that do multiple things\n- **Magic numbers**: Unnamed constants\n- **Deep nesting**: More than 3 levels of indentation\n\n```python\n# Use serena to search for duplication patterns\nsearch_for_pattern(\n    substring_pattern=r\"def\\s+\\w+.*:\",\n    restrict_search_to_code_files=True\n)\n```\n\n### 3. Plan the Changes\n\nFor complex refactoring, use sequential-thinking to plan:\n\n```python\nsequentialthinking(\n    \"I need to refactor [function_name]. It has [X] issues: \"\n    \"1. [issue1] 2. [issue2] 3. [issue3]. \"\n    \"Plan: Extract [part1] to helper, simplify [part2]...\"\n)\n```\n\n**Verify plan:**\n- Each change is small and testable\n- No functionality changes\n- Tests will pass after each step\n\n### 4. Execute Refactoring\n\nUse serena for precise edits:\n\n```python\n# Replace symbol body for functions\nreplace_symbol_body(\n    name_path=\"function_name\",\n    relative_path=\"module\u002Ffile.py\",\n    body=\"# new implementation\"\n)\n\n# Insert new helper after existing symbol\ninsert_after_symbol(\n    name_path=\"existing_function\",\n    relative_path=\"module\u002Ffile.py\",\n    body=\"# new helper function\"\n)\n```\n\n### 5. Validate\n\nAlways verify after refactoring:\n\n```bash\n# Run tests\npytest\n\n# Type check\npyright\n\n# Lint\nruff check --fix\n```\n\n## Key Refactoring Patterns\n\n### Extract Method\n\nBreak large functions into smaller, named pieces:\n\n```python\n# Before - 40 lines, hard to understand\ndef process_video(video_path, quality, output):\n    pose = detect_pose(video_path)\n    smoothed = smooth_landmarks(pose, quality)\n    filtered = filter_signal(smoothed)\n    metrics = calculate_metrics(filtered)\n    if output:\n        save_debug_video(filtered, output)\n    return metrics\n\n# After - each piece is clear and testable\ndef process_video(video_path, quality, output=None):\n    landmarks = detect_pose(video_path)\n    processed = process_landmarks(landmarks, quality)\n    metrics = calculate_metrics(processed.signal)\n\n    if output:\n        save_debug_video(processed, output)\n\n    return metrics\n\ndef process_landmarks(landmarks, quality):\n    smoothed = smooth_landmarks(landmarks, quality)\n    return SignalData(smoothed, filter_signal(smoothed))\n```\n\n**When to extract:**\n- Function exceeds 15-20 lines\n- Logic has a clear name\u002Fpurpose\n- Code needs to be tested independently\n- Same logic appears in multiple places\n\n### Early Return\n\nReduce nesting by handling edge cases first:\n\n```python\n# Before - nested, hard to follow\ndef calculate_metrics(data):\n    if data is not None:\n        if len(data) > 0:\n            if all(isinstance(x, (int, float)) for x in data):\n                return sum(data) \u002F len(data)\n    return None\n\n# After - flat, clear flow\ndef calculate_metrics(data):\n    if data is None:\n        return None\n    if len(data) == 0:\n        return None\n    if not all(isinstance(x, (int, float)) for x in data):\n        raise TypeError(\"All values must be numeric\")\n\n    return sum(data) \u002F len(data)\n```\n\n### Parameter Object\n\nReplace long parameter lists with data structures:\n\n```python\n# Before - too many parameters\ndef analyze_video(\n    path,\n    quality,\n    smoothing_window,\n    filter_cutoff,\n    min_confidence,\n    debug_mode,\n    output_path\n):\n    ...\n\n# After - grouped, extensible\n@dataclass\nclass AnalysisConfig:\n    quality: str = \"balanced\"\n    smoothing_window: int = 5\n    filter_cutoff: float = 6.0\n    min_confidence: float = 0.5\n\n@dataclass\nclass DebugConfig:\n    enabled: bool = False\n    output_path: Optional[str] = None\n\ndef analyze_video(\n    path: str,\n    config: AnalysisConfig,\n    debug: DebugConfig = DebugConfig()\n):\n    ...\n```\n\n### Extract Function (DRY)\n\nWhen logic repeats, extract to a shared function:\n\n```python\n# Before - duplicated validation\ndef process_cmj(data):\n    if data is None or len(data) == 0:\n        raise ValueError(\"Invalid data\")\n    # ... CMJ logic\n\ndef process_drop_jump(data):\n    if data is None or len(data) == 0:\n        raise ValueError(\"Invalid data\")\n    # ... DJ logic\n\n# After - shared validation\ndef validate_input(data, name=\"data\"):\n    if data is None:\n        raise ValueError(f\"{name} cannot be None\")\n    if len(data) == 0:\n        raise ValueError(f\"{name} cannot be empty\")\n\ndef process_cmj(data):\n    validate_input(data, \"CMJ data\")\n    # ... CMJ logic\n```\n\n## NumPy Optimization\n\n### Vectorize Operations\n\nReplace Python loops with NumPy operations:\n\n```python\n# Before - slow Python loop\ndef calculate_velocity(positions, dt):\n    velocities = []\n    for i in range(len(positions) - 1):\n        v = (positions[i+1] - positions[i]) \u002F dt\n        velocities.append(v)\n    return np.array(velocities)\n\n# After - fast vectorized\ndef calculate_velocity(positions: NDArray[np.float64], dt: float) -> NDArray[np.float64]:\n    return np.diff(positions) \u002F dt\n```\n\n### Use Boolean Indexing\n\nAvoid conditional loops:\n\n```python\n# Before\nfiltered = []\nfor val in data:\n    if val > threshold and not np.isnan(val):\n        filtered.append(val)\n\n# After\nmask = (data > threshold) & ~np.isnan(data)\nfiltered = data[mask]\n```\n\n### Avoid Unnecessary Copies\n\nUse views when possible:\n\n```python\n# Before - creates copy\nresult = array.copy()\nresult = result * 2 + 1\n\n# After - in-place\nresult = array * 2 + 1  # Single allocation\n```\n\n## Code Quality Checklist\n\n### Complexity\n- [ ] Functions under 20 lines (most cases)\n- [ ] Nesting ≤ 3 levels\n- [ ] Cyclomatic complexity \u003C 10\n\n### Duplication\n- [ ] No repeated logic patterns\n- [ ] Shared utilities for common operations\n- [ ] Similar code uses parameterization\n\n### Clarity\n- [ ] Intention-revealing names\n- [ ] No magic numbers (use named constants)\n- [ ] Boolean conditions read like sentences\n\n### Type Safety\n- [ ] All functions have type hints\n- [ ] Return types are specific (not `Any`)\n- [ ] TypedDict for structured data\n- [ ] NDArray with dtype for NumPy arrays\n\n### Documentation\n- [ ] Complex logic has inline comments\n- [ ] Public APIs have docstrings\n- [ ] Edge cases are documented\n\n## Tool Integration\n\n### Serena (Code Analysis)\n\n**Understand structure:**\n```python\nget_symbols_overview(relative_path=\"module\u002Ffile.py\")\nfind_symbol(name_path_pattern=\"ClassName\", depth=1)\n```\n\n**Find duplication:**\n```python\nsearch_for_pattern(substring_pattern=r\"pattern\", paths_include_glob=\"**\u002F*.py\")\n```\n\n**Make edits:**\n```python\nreplace_symbol_body(name_path=\"function_name\", relative_path=\"...\", body=\"...\")\ninsert_after_symbol(name_path=\"existing\", relative_path=\"...\", body=\"...\")\n```\n\n### Exa (Best Practices)\n\n```python\nget_code_context_exa(\n    \"Python type hints best practices TypedDict NDArray\"\n)\n```\n\n### Ref (Documentation)\n\n```python\nref_search_documentation(\"Python refactoring patterns clean code\")\nref_read_url(\"https:\u002F\u002Fdocs.python.org\u002F3\u002Flibrary\u002Ftyping.html\")\n```\n\n### Sequential Thinking (Complex Planning)\n\n```python\n# For multi-step refactoring\n# Break down the problem, identify alternatives, verify approach\n```\n\n## Additional Resources\n\n### Reference Files\n\nFor detailed patterns and examples:\n- **`references\u002Fpatterns.md`** - Comprehensive refactoring patterns with before\u002Fafter\n- **`references\u002Fanti-patterns.md`** - Common Python mistakes to avoid\n\n## Principles\n\n1. **Do No Harm** - Tests must pass before and after\n2. **Small Steps** - One small change at a time\n3. **No Over-Engineering** - Simple is better than clever\n4. **Preserve Behavior** - Refactoring never changes functionality\n5. **Test Coverage** - Ensure tests exist before refactoring\n\n## Common Mistakes to Avoid\n\n- **Over-abstracting** - Don't create single-use \"helpers\"\n- **Premature optimization** - Profile before optimizing\n- **Chasing trends** - Use patterns that fit, not what's fashionable\n- **Ignoring tests** - Never refactor without test coverage\n- **Changing interfaces** - Refactoring is internal, API changes are redesign\n\n---\n\nRemember: The best code is code that doesn't exist. Delete unnecessary code before adding more.\n",{"name":5,"version":52,"description":7},"1.0.0","main","23e30a8887155f1bfa8c727b3c81128c3f918088","agents\u002Fskills\u002Fpython-refactor",0,"https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Ffeniix","https:\u002F\u002Ffeniix-hq.net\u002F","Systems and platform engineer. Kubernetes, Terraform, CI\u002FCD, observability; MCP and agent tooling. asdf plugins, Prometheus Operator.","2026-11-09 04:16:06",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add feniix\u002Fdotfiles --skill python-refactor",{"tool":68,"command":69},"bunx","bunx skills add feniix\u002Fdotfiles --skill python-refactor",{"tool":71,"command":72},"pnpm","pnpm dlx skills add feniix\u002Fdotfiles --skill python-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fpython-refactor\u002FSKILL.md",true,[76,82,86,90,94,98,102,106,110,114,120,124,128],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"api-style.md","REFERENCE","参考文档",1228,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fapi-style.md",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"auth.md",666,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fauth.md",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"documentation.md",549,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fdocumentation.md",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"graphql.md",1014,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fgraphql.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"rate-limiting.md",726,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Frate-limiting.md",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fanti-patterns.md",12001,"https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fpython-refactor\u002Freferences\u002Fanti-patterns.md",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fpatterns.md",17660,"https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fpython-refactor\u002Freferences\u002Fpatterns.md",{"path":107,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":108,"sourceHtmlUrl":109},"response.md",921,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fresponse.md",{"path":111,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":112,"sourceHtmlUrl":113},"rest.md",1280,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Frest.md",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fapi_validator.py","SCRIPT","脚本",7832,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fscripts\u002Fapi_validator.py",{"path":121,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":122,"sourceHtmlUrl":123},"security-testing.md",2892,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fsecurity-testing.md",{"path":125,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":126,"sourceHtmlUrl":127},"trpc.md",879,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Ftrpc.md",{"path":129,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":130,"sourceHtmlUrl":131},"versioning.md",689,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-api-patterns\u002Fversioning.md",[133,160,177,208,222,234],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":47},"01M70M28HFDKQPGSWESHGB0HV4","security-audit","Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full\u002Fcomprehensive\u002Fend-to-end reviews, or requested report artifacts.","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],"security","audit","security audit","review","cli","workflow","libraries","run","Tools","vulnerability","security guidance","use","only","codebase audit","full","tests","end","complete","reviews","for",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":174,"publishedAt":47},"01M6BVT1CVKQNSANZMZTNBDDY5","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[166,169],{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":170,"categoryName":171,"taxonomyType":172,"taxonomyTypeDesc":173},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[175,176],"writing shape","writing",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":181,"licenseFileUrl":182,"sourceHtmlUrl":183,"categories":184,"keywords":191,"publishedAt":47},"01M6BVSP7TBXD5GBW6KBTN5GGC","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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[185,188],{"categoryNo":186,"categoryName":187,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":189,"categoryName":190,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[192,193,194,159,195,196,197,198,199,200,201,202,203,204,205,206,207],"testing","webapp testing","webapp","logs","with","local","behavior","applications","toolkit","ui","frontend","screenshots","playwright","web","debugging","browser",{"skillNo":209,"name":210,"nameZh":6,"description":211,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":47},"01M6BVSMEE5GRR6ZCM43JNR73Y","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[210,215,216,217,218,219,220,221],"chunk","plan","decision","work","one at a time","session","issue",{"skillNo":223,"name":224,"nameZh":6,"description":225,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":226,"categories":227,"keywords":228,"publishedAt":47},"01M6BVS3BHEG1D2RPZ2J6GNV90","to-tickets","Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[229,230,231,232,233,216],"to tickets","text","spec","file","SET",{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":240,"publishedAt":47},"01M6BVRT61DF4XJE3ZERBBV0AW","tdd","Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Ftdd\u002FSKILL.md",[],[236,241,242,243,244,27,245,246,247,151,248],"test","integration tests","development","integration","first","user","fix","red-green-refactor"]