Skip to content

feat: warn when FFCA layer validation prerequisites are missing - #15

Open
ryzizub wants to merge 2 commits into
mainfrom
feat/warn-missing-prereqs
Open

ryzizub wants to merge 2 commits into
mainfrom
feat/warn-missing-prereqs

Conversation

@ryzizub

@ryzizub ryzizub commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

validate_layers.sh exits 0 silently when jq or dart is missing, so Claude never learns layer validation is off. This adds a SessionStart hook that warns Claude in that case.

  • hooks/warn_missing_prereqs.sh: only runs in FFCA-shaped repos (features/*/*_{domain,data,presentation} packages under the project). Warns when dart or jq is not on PATH. Always exits 0. Modeled on warn-missing-mcp.sh from vgv-ai-flutter-plugin.
  • hooks/warn_missing_prereqs_test.sh: stubbed-PATH tests, run in the existing Hook Tests CI job.
  • README Hooks section, AGENTS.md, CLAUDE.md, and CONTRIBUTING.md updated.

Reviewer note: the hook doesn't parse the stdin payload, since jq may be the missing tool. It scans CLAUDE_PROJECT_DIR (or $PWD) up to depth 6 and prunes hidden, build, and node_modules dirs.

🤖 Generated with Claude Code

@ryzizub
ryzizub force-pushed the feat/warn-missing-prereqs branch from 3827676 to 90d0b5a Compare September 30, 2026 08:57
@ryzizub
ryzizub requested a review from a team as a code owner September 30, 2026 08:57
ryzizub and others added 2 commits October 1, 2026 15:40
Add a SessionStart hook that tells Claude when dart or jq is missing in an
FFCA-shaped repo, since validate_layers.sh skips silently without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ryzizub
ryzizub force-pushed the feat/warn-missing-prereqs branch from 90d0b5a to 13d98cc Compare October 1, 2026 13:40
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.

2 participants