[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75N9HBKQCSB80P8771ZSACN":3,"skill-same:01M75N9HBKQCSB80P8771ZSACN":55},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M75N9HBKQCSB80P8771ZSACN","py2py3-converter",null,"Automatically converts legacy Python 2 code to Python 3 with compatibility checks and test generation.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmartinforsulu\u002Fneo-py2py3-converter\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: py2py3-converter\ndescription: Automatically converts legacy Python 2 code to Python 3 with compatibility checks and test generation.\nversion: 1.0.0\ntriggers:\n  - \"Convert this Python 2 code to Python 3\"\n  - \"Upgrade this legacy script to Python 3\"\n  - \"Fix Python 2 to 3 compatibility issues\"\n  - \"Automate Python 2 to 3 migration\"\n  - \"Generate tests for Python 3 converted code\"\n  - \"Transform this script using 2to3\"\n---\n\n# py2py3-converter\n\n## 1. Introduction\n\n**py2py3-converter** is an OpenClaw skill that automatically converts legacy Python 2 code to modern Python 3 syntax. It handles the most common migration patterns, generates compatibility reports, and creates unit tests for the converted code.\n\nPython 2 reached end-of-life on January 1, 2020, yet many codebases still contain Python 2 code. This skill automates the tedious work of manual migration, reducing human error and accelerating the upgrade process.\n\n## 2. Core Capabilities\n\n### Conversion Logic\nThe converter handles these Python 2 → 3 transformations:\n- `print` statements → `print()` function calls\n- `raw_input()` → `input()`\n- `xrange()` → `range()`\n- `unicode()` → `str()`\n- `basestring` → `str`\n- `long` type → `int`\n- `dict.has_key(k)` → `k in dict`\n- `except Exception, e` → `except Exception as e`\n- `raise ValueError, \"msg\"` → `raise ValueError(\"msg\")`\n- Integer division `\u002F` awareness\n- `__future__` import removal\n- `iteritems()` \u002F `itervalues()` \u002F `iterkeys()` → `items()` \u002F `values()` \u002F `keys()`\n- `reduce()` → `functools.reduce()`\n\n### Compatibility Checking\nAfter conversion, a compatibility report is generated listing:\n- Warnings for patterns that may need manual review\n- Errors for constructs that could not be safely converted\n- Informational notes about behavior changes\n\n### Test Generation\nFor each converted file, a companion pytest test file is generated that:\n- Validates syntax correctness of converted code\n- Tests key functions for expected behavior\n- Covers detected edge cases\n\n## 3. Edge Cases Handling\n\n### Print Statements\n- `print \"hello\"` → `print(\"hello\")`\n- `print \"a\", \"b\"` → `print(\"a\", \"b\")`\n- `print >> sys.stderr, \"err\"` → `print(\"err\", file=sys.stderr)`\n- `print()` already valid → left unchanged\n\n### String\u002FBytes Compatibility\n- `u\"string\"` prefix → `\"string\"` (default in Python 3)\n- Warns about `b\"bytes\"` patterns that may need review\n- `basestring` references → `str`\n\n### Import Resolution\n- `from __future__ import print_function` → removed (default in Python 3)\n- `import urllib2` → `import urllib.request`\n- `import ConfigParser` → `import configparser`\n- `reduce` → adds `from functools import reduce`\n\n## 4. CLI Interface\n\n### Command Syntax\n```bash\n# Convert a file\nnode scripts\u002Fcli.js convert --input path\u002Fto\u002Fpy2file.py --output path\u002Fto\u002Fpy3file.py\n\n# Convert from stdin\ncat py2file.py | node scripts\u002Fcli.js convert\n\n# Convert and generate tests\nnode scripts\u002Fcli.js convert --input file.py --output converted.py --generate-tests\n\n# Show compatibility report only\nnode scripts\u002Fcli.js check --input file.py\n```\n\n### Exit Codes\n- `0` - Conversion successful, no errors\n- `1` - Conversion completed with warnings\n- `2` - Conversion failed due to errors\n\n## 5. Integration\n\n### OpenClaw Agent Workflow\nAgents invoke the skill via the CLI interface. The standard workflow:\n1. Agent receives Python 2 code from user\n2. Agent calls `node scripts\u002Fcli.js convert --input \u003Cfile>`\n3. Skill returns converted code + compatibility report\n4. Agent presents results to user\n\n### API Contract\n**Input:**\n```json\n{\n  \"code\": \"print 'hello world'\",\n  \"options\": {\n    \"generateTests\": false,\n    \"keepWarnings\": true\n  }\n}\n```\n\n**Output:**\n```json\n{\n  \"convertedCode\": \"print('hello world')\",\n  \"issues\": [\n    {\n      \"type\": \"info\",\n      \"line\": 1,\n      \"message\": \"Converted print statement to function call\"\n    }\n  ]\n}\n```\n","# py2py3-converter\n\n## 1. Introduction\n\n**py2py3-converter** is an OpenClaw skill that automatically converts legacy Python 2 code to modern Python 3 syntax. It handles the most common migration patterns, generates compatibility reports, and creates unit tests for the converted code.\n\nPython 2 reached end-of-life on January 1, 2020, yet many codebases still contain Python 2 code. This skill automates the tedious work of manual migration, reducing human error and accelerating the upgrade process.\n\n## 2. Core Capabilities\n\n### Conversion Logic\nThe converter handles these Python 2 → 3 transformations:\n- `print` statements → `print()` function calls\n- `raw_input()` → `input()`\n- `xrange()` → `range()`\n- `unicode()` → `str()`\n- `basestring` → `str`\n- `long` type → `int`\n- `dict.has_key(k)` → `k in dict`\n- `except Exception, e` → `except Exception as e`\n- `raise ValueError, \"msg\"` → `raise ValueError(\"msg\")`\n- Integer division `\u002F` awareness\n- `__future__` import removal\n- `iteritems()` \u002F `itervalues()` \u002F `iterkeys()` → `items()` \u002F `values()` \u002F `keys()`\n- `reduce()` → `functools.reduce()`\n\n### Compatibility Checking\nAfter conversion, a compatibility report is generated listing:\n- Warnings for patterns that may need manual review\n- Errors for constructs that could not be safely converted\n- Informational notes about behavior changes\n\n### Test Generation\nFor each converted file, a companion pytest test file is generated that:\n- Validates syntax correctness of converted code\n- Tests key functions for expected behavior\n- Covers detected edge cases\n\n## 3. Edge Cases Handling\n\n### Print Statements\n- `print \"hello\"` → `print(\"hello\")`\n- `print \"a\", \"b\"` → `print(\"a\", \"b\")`\n- `print >> sys.stderr, \"err\"` → `print(\"err\", file=sys.stderr)`\n- `print()` already valid → left unchanged\n\n### String\u002FBytes Compatibility\n- `u\"string\"` prefix → `\"string\"` (default in Python 3)\n- Warns about `b\"bytes\"` patterns that may need review\n- `basestring` references → `str`\n\n### Import Resolution\n- `from __future__ import print_function` → removed (default in Python 3)\n- `import urllib2` → `import urllib.request`\n- `import ConfigParser` → `import configparser`\n- `reduce` → adds `from functools import reduce`\n\n## 4. CLI Interface\n\n### Command Syntax\n```bash\n# Convert a file\nnode scripts\u002Fcli.js convert --input path\u002Fto\u002Fpy2file.py --output path\u002Fto\u002Fpy3file.py\n\n# Convert from stdin\ncat py2file.py | node scripts\u002Fcli.js convert\n\n# Convert and generate tests\nnode scripts\u002Fcli.js convert --input file.py --output converted.py --generate-tests\n\n# Show compatibility report only\nnode scripts\u002Fcli.js check --input file.py\n```\n\n### Exit Codes\n- `0` - Conversion successful, no errors\n- `1` - Conversion completed with warnings\n- `2` - Conversion failed due to errors\n\n## 5. Integration\n\n### OpenClaw Agent Workflow\nAgents invoke the skill via the CLI interface. The standard workflow:\n1. Agent receives Python 2 code from user\n2. Agent calls `node scripts\u002Fcli.js convert --input \u003Cfile>`\n3. Skill returns converted code + compatibility report\n4. Agent presents results to user\n\n### API Contract\n**Input:**\n```json\n{\n  \"code\": \"print 'hello world'\",\n  \"options\": {\n    \"generateTests\": false,\n    \"keepWarnings\": true\n  }\n}\n```\n\n**Output:**\n```json\n{\n  \"convertedCode\": \"print('hello world')\",\n  \"issues\": [\n    {\n      \"type\": \"info\",\n      \"line\": 1,\n      \"message\": \"Converted print statement to function call\"\n    }\n  ]\n}\n```\n",{"name":5,"version":24,"triggers":25,"description":7},"1.0.0",[26,27,28,29,30,31],"Convert this Python 2 code to Python 3","Upgrade this legacy script to Python 3","Fix Python 2 to 3 compatibility issues","Automate Python 2 to 3 migration","Generate tests for Python 3 converted code","Transform this script using 2to3","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fmartinforsulu\u002Fneo-py2py3-converter",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill py2py3-converter",{"tool":47,"command":48},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill py2py3-converter",{"tool":50,"command":51},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill py2py3-converter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmartinforsulu\u002Fneo-py2py3-converter\u002FSKILL.md",true,[],[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":63},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":63},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":63},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":63},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]