From 784afe7b447b7571da0710de938a72b2b86d4d80 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:06:42 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 ++++++++++ README.md | 3 +++ commands/optimize.md | 23 +++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/optimize.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..832cfa2 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "optimize", + "description": "Analyze and optimize code performance", + "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..294655a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# optimize + +Analyze and optimize code performance diff --git a/commands/optimize.md b/commands/optimize.md new file mode 100644 index 0000000..3f010c1 --- /dev/null +++ b/commands/optimize.md @@ -0,0 +1,23 @@ +--- +allowed-tools: Bash(du:*), Bash(wc:*) +description: Analyze and optimize code performance +--- + +## Context + +- File size: !`du -h $ARGUMENTS 2>/dev/null || echo "File not specified"` +- Line count: !`wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"` + +## Your task + +Analyze and optimize: @$ARGUMENTS + +Focus areas: +1. **Algorithm efficiency**: Improve time/space complexity +2. **Memory usage**: Reduce memory footprint +3. **I/O operations**: Optimize file/network operations +4. **Caching opportunities**: Identify cacheable operations +5. **Lazy loading**: Implement lazy loading where beneficial +6. **Bundle optimization**: Reduce bundle size (if applicable) + +Provide before/after comparisons and performance impact estimates. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..19816cc --- /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/optimize", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "a8c33d7bede55b6753811e9f0370c577802c959c", + "treeHash": "883b224fcef129da24e384c3b5b62460972f7a1a30931bd31ca9f96598f2ed6b", + "generatedAt": "2025-11-28T10:14:33.852722Z", + "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": "optimize", + "description": "Analyze and optimize code performance", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "d487a7498c34666a5aa54d420a4160e1f4ba46e40184b69ea1fa1ff0e9ab0f1a" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "5a6df408ba86c1a0f1be113e9e44bbbe6a8eecab2bcc93a343b7063779af7f77" + }, + { + "path": "commands/optimize.md", + "sha256": "db0e5221e55c80888ce90a8a79ec4b9b2d4199c67330fa621d77d3ebf6f0308a" + } + ], + "dirSha256": "883b224fcef129da24e384c3b5b62460972f7a1a30931bd31ca9f96598f2ed6b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file