commit 632657211b4b3114d6a42b5c9acf6b1408bc7902 Author: Zhongwei Li Date: Sat Nov 29 18:19:05 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..d05e12a --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "hook-auto-docs", + "description": "Automatically update project documentation based on code changes", + "version": "1.4.1", + "author": { + "name": "Dev GOM", + "url": "https://github.com/Dev-GOM/claude-code-marketplace" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..a7f7e21 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# hook-auto-docs + +Automatically update project documentation based on code changes diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..0adbbb1 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,59 @@ +{ + "description": "Automatically updates project documentation based on code changes", + "version": "1.4.1", + "author": "Dev GOM", + "lastUpdated": "2025-10-20", + "hooks": { + "SessionStart": [ + { + "description": "Initialize plugin configuration at session start", + "priority": 100, + "enabled": true, + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js", + "description": "Creates default configuration file if it doesn't exist", + "timeout": 5000, + "continueOnError": true, + "suppressOutput": true + } + ] + } + ], + "PostToolUse": [ + { + "description": "Track file changes for structure documentation", + "matcher": "Write|Edit", + "priority": 50, + "enabled": true, + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/track-structure-changes.js", + "description": "Records file changes for project structure tracking", + "timeout": 5000, + "continueOnError": true, + "suppressOutput": true + } + ] + } + ], + "Stop": [ + { + "description": "Update project structure documentation", + "priority": 80, + "enabled": true, + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/update-structure-docs.js", + "description": "Generates or updates project structure documentation with directory tree, scripts, and dependencies", + "timeout": 15000, + "continueOnError": true + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..3f060b7 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:Dev-GOM/claude-code-marketplace:plugins/hook-auto-docs", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "7e02bac7bdb0a07e9c3caea2da4e92a59353fb3a", + "treeHash": "f9598e285ca6addd99db070e52ca9234741c80d4153d008036cb142fcad4f543", + "generatedAt": "2025-11-28T10:10:15.860982Z", + "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": "hook-auto-docs", + "description": "Automatically update project documentation based on code changes", + "version": "1.4.1" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "0cc6e7383a037d67b0ba6191291e1c287c450daaf957e6ec719b90945fc360a1" + }, + { + "path": "hooks/hooks.json", + "sha256": "77579c2ab7a0d58ce2aec7c88da33298100bd1cf5f80d8bdb878a63e559a0956" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "d2da5bc92b4ecd81f2d13dfe3fe11890da2884f1d6b215f9c8809ff383268cd0" + } + ], + "dirSha256": "f9598e285ca6addd99db070e52ca9234741c80d4153d008036cb142fcad4f543" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file