Skip to content

feat(hooks): extract scripts, add coverage hook, agent-command CI val…#1

Merged
codebysantosh-eng merged 6 commits into
mainfrom
feat/hook-maintainability-coverage-ci-validation
Apr 18, 2026
Merged

feat(hooks): extract scripts, add coverage hook, agent-command CI val…#1
codebysantosh-eng merged 6 commits into
mainfrom
feat/hook-maintainability-coverage-ci-validation

Conversation

@codebysantosh-eng
Copy link
Copy Markdown
Owner

…idation

  • Extract all 10 hook one-liners into readable hooks/scripts/*.js files
  • Add hooks/build.js to regenerate hooks.json from scripts (shell-escape pipeline)
  • Add coverage-threshold-warn hook (warns when jest/vitest coverage < 80%)
  • Update run-tests.sh to pipe stdin to scripts directly (25 tests, up from 21)
  • Add CI steps: hooks-in-sync check, every-hook-has-script check, agent-command mapping validation

codebysantosh-eng and others added 6 commits April 18, 2026 15:06
…idation

- Extract all 10 hook one-liners into readable hooks/scripts/*.js files
- Add hooks/build.js to regenerate hooks.json from scripts (shell-escape pipeline)
- Add coverage-threshold-warn hook (warns when jest/vitest coverage < 80%)
- Update run-tests.sh to pipe stdin to scripts directly (25 tests, up from 21)
- Add CI steps: hooks-in-sync check, every-hook-has-script check, agent-command mapping validation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n is current

Ensures the generated hooks.json is always rebuilt from hooks/scripts/
at install time, so importing via Buildery or cloning and running
install.sh never uses a stale committed artifact.

Falls back gracefully with a warning if node is not available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…commit time

CI sync check guarantees hooks.json is always current before merge.
No build step needed at install time; Buildery imports all files under
hooks/ including scripts as-is.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds /onboard slash command that detects project stack, prints the
toolkit summary and workflow overview, gives a personalised first-step
recommendation, explains active hooks, and invites the first action.

Updates install.sh summary to suggest /onboard after install.
Updates CLAUDE.md command count 14 → 15.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- uninstall.sh now removes only Forge hooks by ID (mirrors install.sh
  deep-merge logic) instead of wiping the entire hooks key — user's
  custom hooks are no longer destroyed on uninstall
- README.md: 14 → 15 commands, 10 → 11 hooks; add /onboard to commands
  table; add coverage-threshold-warn to hooks table
- CLAUDE.md: 14 → 15 slash commands in structure section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add six new sections to skills/observability/SKILL.md:
- Context propagation across service boundaries (W3C traceparent + baggage)
- Sampling strategies: head-based, parent-based, tail-based with Collector config
- Database span instrumentation (Prisma named spans + slow query events)
- Hono observability middleware (logging + tracing + context extraction)
- Health check endpoint patterns (Hono + Next.js App Router)
- Local dev Docker Compose for Jaeger + Prometheus + Grafana

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codebysantosh-eng codebysantosh-eng merged commit a063698 into main Apr 18, 2026
1 check passed
@codebysantosh-eng codebysantosh-eng deleted the feat/hook-maintainability-coverage-ci-validation branch April 18, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant