claude-everything-workflow 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.claude-plugin/hooks.json +1 -6
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/README.md +1 -2
  5. package/README.zh-CN.md +1 -2
  6. package/docs/plugins.md +4 -4
  7. package/evals/routing-scenarios.json +9 -0
  8. package/hooks/check-code-size.js +4 -126
  9. package/hooks/check-console-log.js +4 -79
  10. package/hooks/check-edited-file.js +139 -0
  11. package/hooks/commit-quality.js +1029 -72
  12. package/hooks/runtime/antigravity-pre-tool.js +116 -0
  13. package/package.json +4 -3
  14. package/rules/02-implementation.md +1 -1
  15. package/rules/common/hooks.md +2 -2
  16. package/scripts/cleanup-retired-skills.js +80 -3
  17. package/scripts/install-antigravity.js +65 -105
  18. package/scripts/install-rules.js +27 -7
  19. package/scripts/install.ps1 +21 -25
  20. package/scripts/install.sh +2 -2
  21. package/scripts/merge-claude-settings.cjs +14 -2
  22. package/scripts/retired-skill-files.json +50 -0
  23. package/scripts/verify/commit-quality.test.js +481 -0
  24. package/scripts/verify/core.js +0 -1
  25. package/scripts/verify/install-rules.test.js +258 -22
  26. package/scripts/verify/metadata-checks.js +18 -10
  27. package/scripts/verify/runtime-checks.js +57 -2
  28. package/scripts/verify/workflow-checks.js +11 -1
  29. package/settings.json +1 -6
  30. package/skills/feature-acceptance/SKILL.md +1 -1
  31. package/skills/systematic-debugging/SKILL.md +7 -4
  32. package/skills/systematic-debugging/references/diagnostic-scenarios.md +7 -0
  33. package/agents/database-reviewer.md +0 -41
  34. package/agents/e2e-runner.md +0 -21
  35. package/agents/harness-optimizer.md +0 -93
  36. package/agents/refactor-cleaner.md +0 -54
  37. package/agents/security-reviewer.md +0 -47
  38. package/references/agents/refactor-cleaner.md +0 -75
  39. package/references/agents/security-reviewer.md +0 -542
@@ -45,6 +45,22 @@ function Invoke-InstallCommand {
45
45
  & $Action
46
46
  }
47
47
 
48
+ function Get-Sha256Hex {
49
+ param([string]$LiteralPath)
50
+
51
+ $resolvedPath = (Resolve-Path -LiteralPath $LiteralPath).ProviderPath
52
+ $sha256 = [System.Security.Cryptography.SHA256]::Create()
53
+ $stream = $null
54
+ try {
55
+ $stream = [System.IO.File]::OpenRead($resolvedPath)
56
+ $bytes = $sha256.ComputeHash($stream)
57
+ return ([BitConverter]::ToString($bytes) -replace '-', '')
58
+ } finally {
59
+ if ($null -ne $stream) { $stream.Dispose() }
60
+ $sha256.Dispose()
61
+ }
62
+ }
63
+
48
64
  function Backup-IfChanged {
49
65
  param(
50
66
  [string]$Source,
@@ -56,9 +72,9 @@ function Backup-IfChanged {
56
72
  return
57
73
  }
58
74
 
59
- $sourceHash = Get-FileHash -LiteralPath $Source -Algorithm SHA256
60
- $destHash = Get-FileHash -LiteralPath $Destination -Algorithm SHA256
61
- if ($sourceHash.Hash -eq $destHash.Hash) {
75
+ $sourceHash = Get-Sha256Hex -LiteralPath $Source
76
+ $destHash = Get-Sha256Hex -LiteralPath $Destination
77
+ if ($sourceHash -eq $destHash) {
62
78
  return
63
79
  }
64
80
 
@@ -145,7 +161,6 @@ function Install-SharedDirs {
145
161
  param([string]$Destination)
146
162
 
147
163
  $dirs = @(
148
- "agents",
149
164
  "commands",
150
165
  "scripts",
151
166
  "hooks",
@@ -182,7 +197,8 @@ function Remove-PackageOnlyPaths {
182
197
  "scripts\verify\skill-invocation.test.js",
183
198
  "scripts\verify\install-rules.test.js",
184
199
  "scripts\verify\learning.test.js",
185
- "scripts\verify\plugin-distribution.test.js"
200
+ "scripts\verify\plugin-distribution.test.js",
201
+ "scripts\verify\commit-quality.test.js"
186
202
  )
187
203
 
188
204
  foreach ($relative in $packageOnlyFiles) {
@@ -404,26 +420,6 @@ if ($InstallAntigravity) {
404
420
 
405
421
  Test-RetiredSkillManifest
406
422
 
407
- function Resolve-AntigravityInstall {
408
- if (-not $script:InstallAntigravity -or $ExplicitAntigravity) {
409
- return
410
- }
411
-
412
- $geminiDir = Join-Path $HomeDir ".gemini"
413
- $item = Get-Item -LiteralPath $geminiDir -Force -ErrorAction SilentlyContinue
414
- if ($null -eq $item) {
415
- Write-Host "Skipping Antigravity plugin sync ($geminiDir not found; use -AntigravityOnly to install)."
416
- $script:InstallAntigravity = $false
417
- return
418
- }
419
- if (($item.Attributes -band [IO.FileAttributes]::ReparsePoint) -or (-not $item.PSIsContainer)) {
420
- Write-Host "Skipping Antigravity plugin sync ($geminiDir is not a regular directory; use -AntigravityOnly to inspect)."
421
- $script:InstallAntigravity = $false
422
- }
423
- }
424
-
425
- Resolve-AntigravityInstall
426
-
427
423
  if ($InstallClaude) {
428
424
  Install-ClaudeWorkflow
429
425
  }
@@ -161,7 +161,6 @@ require_rsync() {
161
161
  install_shared_dirs() {
162
162
  local dest="$1"
163
163
 
164
- copy_dir agents "$dest"
165
164
  copy_dir commands "$dest"
166
165
  copy_dir scripts "$dest"
167
166
  copy_dir hooks "$dest"
@@ -193,7 +192,8 @@ remove_package_only_paths() {
193
192
  "scripts/verify/skill-invocation.test.js" \
194
193
  "scripts/verify/install-rules.test.js" \
195
194
  "scripts/verify/learning.test.js" \
196
- "scripts/verify/plugin-distribution.test.js"
195
+ "scripts/verify/plugin-distribution.test.js" \
196
+ "scripts/verify/commit-quality.test.js"
197
197
  do
198
198
  if [ -f "$dest/$file" ]; then
199
199
  run rm -f "$dest/$file"
@@ -53,6 +53,7 @@ function hookCommand(hook, installRoot) {
53
53
  script: installedPath(executable, installRoot),
54
54
  id: match[4],
55
55
  target: relativeLegacyRunner ? target : installedPath(target, installRoot),
56
+ arguments: hook.command.slice(match[0].length).trim(),
56
57
  relativeLegacyRunner,
57
58
  };
58
59
  }
@@ -65,7 +66,7 @@ function validateHookGroups(events) {
65
66
  }
66
67
  }
67
68
 
68
- function mergeHookGroups(current, incoming, installRoot, windowsPaths) {
69
+ function mergeHookGroups(current, incoming, installRoot, windowsPaths, event) {
69
70
  const managedTargets = new Map();
70
71
  const managedGroups = incoming.map((group) => {
71
72
  const hooks = group.hooks.filter((hook) => {
@@ -82,7 +83,17 @@ function mergeHookGroups(current, incoming, installRoot, windowsPaths) {
82
83
  const userGroups = current.map((group) => ({
83
84
  ...group,
84
85
  hooks: group.hooks.filter((hook) => {
85
- const { script, id, target, relativeLegacyRunner } = hookCommand(hook, installRoot);
86
+ const { script, id, target, relativeLegacyRunner, arguments: args } = hookCommand(hook, installRoot);
87
+ if (event === "PostToolUse" &&
88
+ (group.matcher === "Edit|Write|MultiEdit" || group.matcher === "Edit") &&
89
+ script === RUNNER &&
90
+ ((id === "post:edit:console-log" && target === "hooks/check-console-log.js") ||
91
+ (id === "post:edit:code-size" && target === "hooks/check-code-size.js")) &&
92
+ args === "standard,strict" && hook.timeout === 5 &&
93
+ Object.keys(hook).every((key) => ["type", "command", "timeout"].includes(key)) &&
94
+ Object.keys(group).every((key) => ["matcher", "hooks"].includes(key))) {
95
+ return false;
96
+ }
86
97
  if (LEGACY_HOOK_PATTERNS.includes(script)) return false;
87
98
  if (!relativeLegacyRunner && script !== RUNNER) return true;
88
99
  if (LEGACY_WRAPPED_TARGETS.get(id)?.includes(target)) return false;
@@ -103,6 +114,7 @@ function mergeSettings(source, existing, { installRoot = path.join(os.homedir(),
103
114
  Object.hasOwn(incoming, event) ? incoming[event] : [],
104
115
  installRoot,
105
116
  windowsPaths,
117
+ event,
106
118
  )])
107
119
  .filter(([, groups]) => groups.length > 0));
108
120
  return {
@@ -1,5 +1,55 @@
1
1
  {
2
2
  "version": 1,
3
+ "retired_agent_hashes": {
4
+ "harness-optimizer.md": [
5
+ "c5f8f99db42e5c63ebc2398dc426a37e283a653233e25193a1496a6ea3c8fa12",
6
+ "4530b8ff3cf3c1afa20732d3cad0f531ad15205865ee98feefdd2a3c2134a895",
7
+ "f14036aea8ff12806a0c5afb4fac12478471ebee50f6a13405f5c873b46f962a",
8
+ "5830fb4ad09823b9ae2d4e4821764782be4022bc9cd40aeeb20a6082abd662e1",
9
+ "c3ac215be413b024ec10475dbbb18d13f5618583c8ad5c9dd20d2cc99c0b6fe3",
10
+ "ec8b8873829b7dcd07b4bcac2ea9538b24b6417ce23b4a55da41646928a2bfd8",
11
+ "b83d828efde126a994efafc850cbb628999086383b5ceb8da207ab405680dcc9",
12
+ "63f8d6dfbd74b09548761d1e99d805850543769a664c9345293264862d062ebf"
13
+ ],
14
+ "database-reviewer.md": [
15
+ "d5d642043654ade78b46a8045532b061e60abfff6b99fc68f8a5249a4e7f9760",
16
+ "5cb705296352174e8b47f8faff78db5fa42dd5e26ba3dc9a9127b08b766acc1b",
17
+ "590242b164f1ce0f0239472a08a2929b4e41e76f9e27cf02ff1d74818c2516a6",
18
+ "85ab06973161d8942f161157b4b90e92a017680bd733c26707e04baad11e0495"
19
+ ],
20
+ "e2e-runner.md": [
21
+ "bb2cbb65f82bf341bb139b95ecf0e6f641647f46947b660481b7f136160c70f9",
22
+ "70b8eb356597cec3a58050af69b6e417a0297fb35e6e4d07e4031123d700fedf",
23
+ "ea1373d5fd2745a5f4d1588e8fc27a1b5a8f34d3934c6ef456e7af6fe8cdce1b",
24
+ "ed47fd8a1638238b4740ec6d9761d04eb517fa5663dabbe28e2df0849a9d5784",
25
+ "765e6dc9d704afe7664a0a61e3a86282ee594480d6919a3c06b2ea559187cbb6",
26
+ "0aab882777d4fbd1bf9a514ba440912b83a1cfc37d62297296ac322b9e896322",
27
+ "89813024c93cb28948656b066609eb42b4d024e96a8aeb5cbc320913c1e75123",
28
+ "025fa4fe21af385f6b43143c0d75708ebbd0e5b00d66dd530834b3071350a01a"
29
+ ],
30
+ "refactor-cleaner.md": [
31
+ "86d77420df109c27875812637e3be0e8913d8e1969dbfd261b1d4fad7263c53b",
32
+ "e9b3d45345d16f1caf08642c5b1f40a5e1dced376b52310f086072d36e150075",
33
+ "2c90b7e0b41ac871c619e568f857487b79079638da005d14dab91892253efcc4"
34
+ ],
35
+ "security-reviewer.md": [
36
+ "320e690a150ac98a9d5d52c998f025d8142f3227de3790e7abd8667e423ad37c",
37
+ "32cd0510aeb4d9d2e29d5d2ccf6a8bbcd801c33ef0642044df414ba17798b4de",
38
+ "c8d43f964eb647e9d316938525b28ca4758258dcf367655deb231deeb0833fc5"
39
+ ]
40
+ },
41
+ "retired_reference_hashes": {
42
+ "agents/database-reviewer.md": [
43
+ "e4c77775c784a06633cee6ead625c3dddbf76f8f45254eb8e8f9211573c40972",
44
+ "c097dd5a3a31d4123a31288c2db2f0c089b70948e8a68b21aca209ec81bada61"
45
+ ],
46
+ "agents/refactor-cleaner.md": [
47
+ "2c00d71fdccfe7f574cb62bf1387b990d5898d8f386e36467977861672043929"
48
+ ],
49
+ "agents/security-reviewer.md": [
50
+ "9234af3500eb826a99e3ba25eff559d721869b475eb43ebe08a4082b8152a9f1"
51
+ ]
52
+ },
3
53
  "retired_skills": {
4
54
  "brainstorming": [
5
55
  "SKILL.md",