You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve `intent stale` for monorepos by checking repo `_artifacts` coverage, flagging uncovered public workspace packages, and ignoring private workspaces.
6
+
7
+
The generated skills workflow now opens one grouped review PR with maintainer prompts, includes a workflow version stamp, and `intent stale` warns when maintainers should rerun `intent setup`.
- For single packages: also adds `!skills/_artifacts` to exclude artifacts from npm
114
114
- For monorepos: skips the artifacts exclusion (artifacts live at repo root)
115
-
-`setup-github-actions` copies workflow templates to `.github/workflows/` for automated validation and staleness checking
115
+
-`setup` copies workflow templates to `.github/workflows/` for automated validation and staleness checking
116
116
117
117
### 5. Ship skills with your package
118
118
@@ -135,24 +135,19 @@ Consumers who install your library automatically get the skills. They discover l
135
135
136
136
### 6. Set up CI workflows
137
137
138
-
After running `setup-github-actions`, you'll have three workflows in `.github/workflows/`:
138
+
After running `setup`, you'll have two workflows in `.github/workflows/`:
139
139
140
140
**validate-skills.yml** (runs on PRs touching `skills/`)
141
141
- Validates SKILL.md frontmatter and structure
142
142
- Ensures files stay under 500 lines
143
143
- Runs automatically on every pull request that modifies skills
144
144
145
-
**check-skills.yml** (runs on release or manual trigger)
146
-
- Automatically detects stale skills after you publish a new release
147
-
- Opens a review PR with an agent-friendly prompt
148
-
- Requires you to copy the prompt into Claude Code, Cursor, or your agent to update skills
149
-
150
-
**notify-intent.yml** (runs on docs/source changes to main)
151
-
- Sends a webhook to TanStack/intent when your docs or source change
152
-
- Enables cross-library skill staleness tracking
153
-
- Requires a fine-grained GitHub token (`INTENT_NOTIFY_TOKEN`) secret
154
-
155
-
### 7. Update stale skills
145
+
**check-skills.yml** (runs on release or manual trigger)
146
+
- Automatically detects stale skills and coverage gaps after you publish a new release
147
+
- Opens one grouped review PR with an agent-friendly prompt
148
+
- Requires you to copy the prompt into Claude Code, Cursor, or your agent to update skills
149
+
150
+
### 7. Update stale skills
156
151
157
152
When you publish a new release, `check-skills.yml` automatically opens a PR flagging skills that need review.
158
153
@@ -162,11 +157,25 @@ Manually check which skills need updates with:
162
157
npx @tanstack/intent@latest stale
163
158
```
164
159
165
-
When run from a package, this checks that package's shipped skills. When run from a monorepo root, it checks the workspace packages that ship skills.
166
-
167
-
This detects:
168
-
-**Version drift** — skill targets an older library version than currently installed
169
-
-**New sources** — sources declared in frontmatter that weren't tracked before
160
+
When run from a package, this checks that package's shipped skills. When run from a monorepo root, it checks workspace packages with skills and flags public workspace packages missing skill or `_artifacts` coverage.
161
+
162
+
This detects:
163
+
-**Version drift** — skill targets an older library version than currently installed
164
+
-**New sources** — sources declared in frontmatter that weren't tracked before
165
+
-**Artifact drift** — `_artifacts` entries that no longer match generated skills
166
+
-**Missing package coverage** — public workspace packages not represented by generated skills or artifact coverage
167
+
168
+
If a public workspace package is intentionally out of scope for skills, record that decision in repo-root `_artifacts`:
169
+
170
+
```yaml
171
+
coverage:
172
+
ignored_packages:
173
+
- '@tanstack/internal-tooling'
174
+
- name: packages/devtools-fixture
175
+
reason: test fixture only
176
+
```
177
+
178
+
Private workspace packages are skipped automatically.
Copy file name to clipboardExpand all lines: packages/intent/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,10 +90,10 @@ npx @tanstack/intent@latest stale
90
90
91
91
From a monorepo root, `intent stale` checks every workspace package that ships skills. To scope it to one package, pass a directory like `intent stale packages/router`.
92
92
93
-
Copy CI workflow templates into your repo so validation and staleness checks run on every push:
93
+
Copy CI workflow templates into your repo so validation and staleness checks can run in GitHub Actions:
- Run `npx @tanstack/intent@latest setup-github-actions` from either the repo root or a package directory. Intent detects the workspace root and writes workflows to the repo-level `.github/workflows/` directory.
112
-
- Generated workflows are monorepo-aware: validation loops over workspace packages with skills, staleness checks run from the workspace root, and notify workflows watch package `src/` and docs paths.
111
+
- Run `npx @tanstack/intent@latest setup` from either the repo root or a package directory. Intent detects the workspace root and writes workflows to the repo-level `.github/workflows/` directory.
112
+
- Generated workflows are monorepo-aware: validation loops over workspace packages with skills, and staleness checks run from the workspace root.
113
113
- Run `npx @tanstack/intent@latest validate packages/<pkg>/skills` from the repo root to validate one package without root-level packaging warnings.
114
-
- Run `npx @tanstack/intent@latest stale` from the repo root to check all workspace packages with skills, or `intent stale packages/<pkg>` to check one package.
114
+
- Run `npx @tanstack/intent@latest stale` from the repo root to check workspace packages with skills and public workspace packages missing skill or `_artifacts` coverage, or `intent stale packages/<pkg>` to check one package.
115
115
116
116
## Keeping skills current
117
117
118
-
The real risk with any derived artifact is staleness. `npx @tanstack/intent@latest stale` flags skills whose source docs have changed, and CI templates catch drift before it ships.
118
+
The real risk with any derived artifact is staleness. `npx @tanstack/intent@latest stale` flags skills whose source docs have changed, generated skills that drift from `_artifacts`, and public workspace packages missing coverage. CI templates catch drift before it ships.
119
119
120
120
The feedback loop runs both directions. `npx @tanstack/intent@latest feedback` lets users submit structured reports when a skill produces wrong output — which skill, which version, what broke. That context flows back to the maintainer, and the fix ships to everyone on the next package update. Every support interaction produces an artifact that prevents the same class of problem for all future users — not just the one who reported it.
121
121
@@ -129,7 +129,7 @@ The feedback loop runs both directions. `npx @tanstack/intent@latest feedback` l
129
129
|`npx @tanstack/intent@latest meta`| List meta-skills for library maintainers |
130
130
|`npx @tanstack/intent@latest scaffold`| Print the guided skill generation prompt |
0 commit comments