docs-v2/test/scripts
Jason Stirnaman 0a37d652cb
chore: add hooks and guidelines to reduce agent friction (#6999)
* chore: add hooks and guidelines to reduce agent friction

Add prompt hooks to .claude/settings.json to enforce:
- Worktree path safety (reject reads from main clone)
- Local-first search (reject WebFetch for repo content)
- Shared content awareness (remind about content/shared/)

Add agent and documentation guidelines:
- doc-triage-agent: search rules for local-first, worktree-aware,
  shared content, and parallel search
- AGENTS.md: worktree awareness and search patterns sections
- influxdb3-test-setup skill: Enterprise unavailable troubleshooting
- init-influxdb3.sh: placeholder email validation and startup health check

Addresses friction points identified in session analysis for #6991.

* chore: replace prompt hook with deterministic worktree path check

Replace the prompt-based worktree path hook with a command hook that
uses git plumbing (rev-parse --git-dir vs --git-common-dir) to detect
worktrees and block reads targeting the main clone. Works regardless
of where the worktree is located on disk.

Also add git, fzf, and common shell utilities to project allow list,
and clean up settings.local.json (remove phantom tools, duplicates).

* chore: add yarn install hooks for worktree and session start

WorktreeCreate: always install deps (new worktree needs them)
SessionStart: install only if node_modules missing (async, non-blocking)

Both skip Cypress binary and use --frozen-lockfile.
2026-03-27 20:28:10 -05:00
..
get-container-info.sh chore(telegraf): Update and improve Telegraf install instructions 2024-08-26 16:32:16 -05:00
init-influxdb3.sh chore: add hooks and guidelines to reduce agent friction (#6999) 2026-03-27 20:28:10 -05:00
monitor-container-urls.sh chore(ci): Improve pre-commit hook, test harness, and linter 2024-07-23 15:08:28 -05:00
monitor-tests.sh chore(ci): Improve pre-commit hook, test harness, and linter 2024-07-23 15:08:28 -05:00
parse_yaml.sh chore(ci): Improve pre-commit hook, test harness, and linter 2024-07-23 15:08:28 -05:00
prepare-content.sh refactor(test): parameterize container paths for host-runner support (#6992) 2026-03-26 14:50:24 -05:00
run-tests.sh refactor(test): parameterize container paths for host-runner support (#6992) 2026-03-26 14:50:24 -05:00