Skip to content
Source
Sign inSign up
TanStack/intent

fix(intent): avoid blocking agents when no skill matches #214

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/214/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 6 changed files with 14 additions and 6 deletions (loading 3).

x
0 of 6 viewed, 6 left
5 additions and 0 deletions.changeset/giant-geckos-beam.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Allow agent hooks to continue after checking Intent guidance when no matching skill applies.
3 additions and 3 deletionsdocs/cli/intent-hooks.mdModified
View file
@@ -3,7 +3,7 @@
id: intent-hooks
---
​
-`intent hooks install` installs lifecycle hooks that surface available Intent skills and gate supported edit tools until they observe an Intent load command.
+`intent hooks install` installs lifecycle hooks that surface available Intent skills and gate supported edit tools until they observe an Intent guidance check.
​
```bash
npx @tanstack/intent@latest hooks install [--scope project|user] [--agents copilot,claude,codex|all]
@@ -20,7 +20,7 @@
​
- Installs hook behavior without writing an `intent-skills` guidance block.
- Returns a session-start skill catalog as agent context with available `skill-id: description` entries.
-- Blocks supported edit tools until the hook observes a recognized `intent load <skill-id>` command.
+- Blocks supported edit tools until the hook observes a recognized `intent list` or `intent load <skill-id>` command. If no listed skill matches the task, the agent can continue without loading one.
- Uses `package.json#intent.skills` and `package.json#intent.exclude` to control which skills appear in the session catalog.
​
### Installation behavior
@@ -30,7 +30,7 @@
- `--agents all` is the default. In project scope, Copilot is skipped because the supported Copilot CLI hook location is user-scoped.