commit 65faf5cd950daf477c56f0c4011d83ba60e2920a Author: Zhongwei Li Date: Sat Nov 29 18:07:21 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..ebcd31e --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "refractor", + "description": "Refactor code following best practices and design patterns", + "version": "1.0.0", + "author": { + "name": " Anand Tyagi", + "url": "https://github.com/ananddtyagi" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..cadb726 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# refractor + +Refactor code following best practices and design patterns diff --git a/commands/refractor.md b/commands/refractor.md new file mode 100644 index 0000000..6b84962 --- /dev/null +++ b/commands/refractor.md @@ -0,0 +1,17 @@ +--- +description: Refactor code following best practices and design patterns +--- + +## Your task + +Refactor the following code: @$ARGUMENTS + +Guidelines: +1. **Maintain functionality**: Ensure no breaking changes +2. **Improve readability**: Make code more self-documenting +3. **Extract common patterns**: Identify and extract reusable components +4. **Performance optimization**: Improve efficiency where possible +5. **Modern conventions**: Use current best practices +6. **Type safety**: Add or improve type annotations if applicable + +Explain each change and why it's beneficial. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..dd78469 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ccplugins/awesome-claude-code-plugins:plugins/refractor", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "e286e01f71c2fc6baca7209fc2206560eeacb0f0", + "treeHash": "a37554693f494ceeac9d5968152fec9e92b18e7e5067af45f4857c6bbaa00398", + "generatedAt": "2025-11-28T10:14:32.614650Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "refractor", + "description": "Refactor code following best practices and design patterns", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "8a234ef460cb6120c294d799ac5a4629635a122bb5e0adc32d8cf96b0eaa8050" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "3ae17fc71a0f27d319a0c1d606daa0a5d35caa49fc3d8ec0d46626e16ae4865f" + }, + { + "path": "commands/refractor.md", + "sha256": "5e3fef6d4c2c4d5f0e1f9c551a207447a88ceb5d6f892d3a034192afca3823b0" + } + ], + "dirSha256": "a37554693f494ceeac9d5968152fec9e92b18e7e5067af45f4857c6bbaa00398" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file