commit 694f7c6b44be08935800b51556690628bcdfc00a Author: Zhongwei Li Date: Sat Nov 29 18:06:10 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..6ff3a0c --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "husky", + "description": "Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message standards, integrating with linting tools, and ensuring code quality on commits.", + "version": "1.0.0", + "author": { + "name": "evmts", + "url": "https://github.com/evmts" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c918d8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# husky + +Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message standards, integrating with linting tools, and ensuring code quality on commits. diff --git a/commands/husky.md b/commands/husky.md new file mode 100644 index 0000000..6c202e7 --- /dev/null +++ b/commands/husky.md @@ -0,0 +1,40 @@ +--- +description: Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message standards, integrating with linting tools, and ensuring code quality on commits. +author: evmts +author-url: https://github.com/evmts +version: 1.0.0 +--- + +# Repository Health Verification Protocol + +This command outlines a comprehensive protocol for verifying and maintaining a repository's health. + +## Key Goals +- Verify repo is in a working state +- Run CI checks +- Fix any identified issues +- Prepare files for staging + +## Main Steps +1. Update dependencies with `pnpm i` +2. Run linter checks +3. Verify builds and types +4. Run test coverage +5. Sort package.json +6. Lint packages +7. Double-check all previous steps +8. Stage files (avoiding git submodules) + +## Error Handling Protocol +1. Explain why something broke +2. Propose and implement a fix +3. Check for similar issues elsewhere +4. Clean up debugging code + +## Important Guidelines +- Never commit, only stage files +- Run tests package-by-package +- Be willing to make necessary fixes +- Use typescript and tests as safeguards + +The document emphasizes a methodical approach to maintaining code quality and resolving issues systematically. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..e5ef1a0 --- /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/husky", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "967bc3b57347deb28f7645063ec4badc9e77ba22", + "treeHash": "8287d3cba6cae0cdcb513c46bb95355cabd8af7e7208d5e1b6a420ad7e15c2da", + "generatedAt": "2025-11-28T10:14:38.182908Z", + "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": "husky", + "description": "Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message standards, integrating with linting tools, and ensuring code quality on commits.", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "7b95d6718fca33b0fceff4c0e0b4072dbcd6e3f64ce9f79b14c92e1eb7e3a653" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "5bed5bcba94a363f05576637b572bf05892b67d314980712a5ff55bb327c71b5" + }, + { + "path": "commands/husky.md", + "sha256": "a31682f6e312b76f8d5f849524c1f64633b692c315af944b72ec827449be39f1" + } + ], + "dirSha256": "8287d3cba6cae0cdcb513c46bb95355cabd8af7e7208d5e1b6a420ad7e15c2da" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file