From 5d07d2d3c02ee67f1c2d5cc128996453d9368e00 Mon Sep 17 00:00:00 2001 From: huangpz6 Date: Wed, 4 Nov 2026 21:54:44 +0800 Subject: [PATCH] docs(gateguard): use recursive exemption glob examples (#3866) GATEGUARD_EXEMPT_GLOBS matches the complete target path, so literal .venv/ and node_modules/ do not cover files inside those directories. Document recursive patterns and keep the .git/** warning. Co-Authored-By: TRAE --- skills/gateguard/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/gateguard/SKILL.md b/skills/gateguard/SKILL.md index 2c7fd02bf..553db807a 100644 --- a/skills/gateguard/SKILL.md +++ b/skills/gateguard/SKILL.md @@ -705,7 +705,7 @@ environment variables documented above. - Let the gate fire naturally. Don't try to pre-answer the gate questions — the investigation itself is what improves quality. A real search for the target before editing is investigation, and is credited (see [What Counts as Already Done](#what-counts-as-already-done)). - Customize gate messages for your domain. If your project has specific conventions, add them to the gate prompts. -- Use `GATEGUARD_EXEMPT_GLOBS` to skip first-touch checks for generated trees like `.venv/` and `node_modules/`; the hook does not read `.gateguard.yml`. Do not exempt `.git/**`: a literal `.git/` does not match `.git/config`, and a broad metadata glob would also skip sensitive-target and hard-link checks. +- Use `GATEGUARD_EXEMPT_GLOBS` with recursive patterns such as `.venv/**,node_modules/**,**/node_modules/**`; the hook does not read `.gateguard.yml`. Do not exempt `.git/**`: a literal `.git/` does not match `.git/config`, and a broad metadata glob would also skip sensitive-target and hard-link checks. ## Related Skills