Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:07:21 +08:00
commit 65faf5cd95
4 changed files with 77 additions and 0 deletions

View File

@@ -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"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# refractor
Refactor code following best practices and design patterns

17
commands/refractor.md Normal file
View File

@@ -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.

45
plugin.lock.json Normal file
View File

@@ -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": []
}
}