@tanstack/intent 0.0.44 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +0 -3
  2. package/dist/artifact-coverage-BfJ7f-S9.mjs +3 -0
  3. package/dist/cli-support-BADtMg6z.mjs +6 -0
  4. package/dist/{cli-support-BNDR3l1g.mjs → cli-support-C8SKYTA4.mjs} +35 -9
  5. package/dist/cli.mjs +17 -13
  6. package/dist/{core-qlBI_aQL.mjs → core-hEMP5GMV.mjs} +33 -17
  7. package/dist/core.d.mts +4 -2
  8. package/dist/core.mjs +9 -7
  9. package/dist/{display-0FnzlKRq.mjs → display-CFnFnrtx.mjs} +2 -2
  10. package/dist/exclude-CBxkyK3Q.mjs +126 -0
  11. package/dist/excludes-DDMe-4iu.mjs +111 -0
  12. package/dist/index.d.mts +3 -30
  13. package/dist/index.mjs +13 -278
  14. package/dist/{install-D1dsnbr9.mjs → install-BE7gVoNT.mjs} +15 -11
  15. package/dist/{list-DrChOziX.mjs → list-UqYivAcV.mjs} +17 -15
  16. package/dist/{load-ll7s5E3J.mjs → load-Dgw151E3.mjs} +11 -9
  17. package/dist/{meta-BEJIfnPG.mjs → meta-BZMVgIzJ.mjs} +1 -1
  18. package/dist/{project-context-BRIMzhi4.mjs → project-context-DDCie6Ro.mjs} +1 -1
  19. package/dist/{resolver-D9cjsz11.mjs → resolver-CZXZ0rft.mjs} +3 -86
  20. package/dist/{scanner-DaG82zNc.mjs → scanner-2XDBAsbm.mjs} +7 -5
  21. package/dist/{setup-BklJkH_6.mjs → setup-CMec7fht.mjs} +2 -2
  22. package/dist/setup.d.mts +1 -1
  23. package/dist/setup.mjs +4 -4
  24. package/dist/{skill-paths-B-j0dWDA.mjs → skill-paths-Cr74uFk4.mjs} +1 -1
  25. package/dist/source-policy-D4slvwwI.mjs +9 -0
  26. package/dist/source-policy-rGOtjQSM.mjs +247 -0
  27. package/dist/{stale-C6dPKQ98.mjs → stale-DxZyYibt.mjs} +4 -2
  28. package/dist/{staleness-BGFfic-Y.mjs → staleness-B8IvDS_9.mjs} +3 -3
  29. package/dist/staleness-Ctzy2Zac.mjs +5 -0
  30. package/dist/{types-CIha6LtJ.d.mts → types-oEflMSso.d.mts} +2 -33
  31. package/dist/utils-BuNMwKct.mjs +3 -0
  32. package/dist/{utils-9fhWAVua.mjs → utils-Dj49bkF_.mjs} +14 -1
  33. package/dist/{validate-CEhp9gDs.mjs → validate-B3pkTIZl.mjs} +6 -6
  34. package/dist/{workflow-review-CrWkP7Hc.mjs → workflow-review-CtOR1bgh.mjs} +1 -1
  35. package/dist/{workspace-patterns-Bjq_cXww.mjs → workspace-patterns-BBW4c1gr.mjs} +2 -2
  36. package/dist/{workspace-patterns-BffPlZ1D.mjs → workspace-patterns-Cz_lNhwz.mjs} +1 -1
  37. package/meta/domain-discovery/SKILL.md +1 -1
  38. package/meta/generate-skill/SKILL.md +1 -8
  39. package/meta/tree-generator/SKILL.md +1 -1
  40. package/package.json +1 -1
  41. package/dist/artifact-coverage-DA26utB1.mjs +0 -3
  42. package/dist/cli-support-BtHFD7gl.mjs +0 -6
  43. package/dist/scanner-BV7X5n_z.mjs +0 -6
  44. package/dist/staleness-CB3qpVCq.mjs +0 -5
  45. package/dist/utils-CSPzvaFu.mjs +0 -3
  46. package/meta/feedback-collection/SKILL.md +0 -234
  47. /package/dist/{artifact-coverage-DgWuVqUp.mjs → artifact-coverage-nGwun1tt.mjs} +0 -0
  48. /package/dist/{command-runner-C0yCOHLi.mjs → command-runner-fstUIUhe.mjs} +0 -0
  49. /package/dist/{edit-package-json-CtuelQ_q.mjs → edit-package-json-DKyJ04t1.mjs} +0 -0
  50. /package/dist/{scaffold-CLM6bt3c.mjs → scaffold-D2vwv9ls.mjs} +0 -0
  51. /package/dist/{setup-DhMqESd3.d.mts → setup-DW3pn0QW.d.mts} +0 -0
  52. /package/dist/{setup-github-actions-CUd1oncY.mjs → setup-github-actions-emXSyGy3.mjs} +0 -0
  53. /package/dist/{skill-use-umYvZl94.mjs → skill-use-CUrNHf-u.mjs} +0 -0
  54. /package/dist/{workflow-review-D9Fg1G0P.mjs → workflow-review-wL1Iu2Sf.mjs} +0 -0
@@ -1,234 +0,0 @@
1
- ---
2
- name: skill-feedback-collection
3
- description: >
4
- Collect structured feedback about skill usage after completing a coding task.
5
- Activate at the end of any session where one or more SKILL.md files were
6
- loaded. Captures agent signals (gaps, errors, corrections, human interventions)
7
- and brief human input, then submits directly via gh CLI or provides manual
8
- submission instructions.
9
- metadata:
10
- version: '2.0'
11
- category: meta-tooling
12
- ---
13
-
14
- # Skill Feedback Collection
15
-
16
- Run this at the end of any session where you loaded one or more SKILL.md files.
17
- The goal is to capture what worked, what didn't, and what was missing — so skill
18
- maintainers can improve future versions.
19
-
20
- This skill also covers **meta-skill feedback** — feedback about the scaffolding
21
- process itself. When invoked after running domain-discovery, tree-generator, and
22
- generate-skill, treat those three meta skills as the "skills" being evaluated.
23
- Capture what worked and what didn't in each scaffolding phase so the meta skills
24
- can be improved.
25
-
26
- ---
27
-
28
- ## Phase 1 — Automated Signal Collection
29
-
30
- Review your own session transcript. No human interaction needed yet.
31
-
32
- ### 1a: Skills inventory
33
-
34
- Before analyzing gaps and errors, inventory all skills that were available
35
- during the session:
36
-
37
- - **Loaded and used:** Skills you read and actively followed.
38
- - **Available but not loaded:** Skills that were installed (discoverable via
39
- `npx @tanstack/intent@latest list`) but you never read. This is important — many issues stem from
40
- the agent not loading the right skill, not from the skill itself being wrong.
41
-
42
- ### 1b: Gap detection
43
-
44
- Identify moments where the skill was silent and you had to bridge the gap
45
- yourself — via code reading, search, trial-and-error, or general knowledge.
46
-
47
- For each gap, note:
48
-
49
- - What you needed to do
50
- - What the skill should have told you
51
- - How you solved it (code reading, web search, guessing)
52
-
53
- ### 1c: Error/correction tracking
54
-
55
- Identify moments where the skill prescribed an approach that produced an error.
56
-
57
- For each error, note:
58
-
59
- - What the skill said to do
60
- - The error or incorrect behavior that resulted
61
- - The fix you applied
62
-
63
- ### 1d: Human intervention events
64
-
65
- Identify moments where the human clarified, corrected, or overrode your approach.
66
-
67
- For each intervention, note:
68
-
69
- - What you were doing when the human intervened
70
- - What the human said or changed
71
- - Whether the skill could have prevented this
72
-
73
- ### 1e: Step duration anomalies
74
-
75
- Identify steps that consumed disproportionate effort compared to their apparent
76
- complexity. These signal that the skill should provide a template, snippet, or
77
- more detailed guidance.
78
-
79
- ---
80
-
81
- ## Phase 2 — Human Interview
82
-
83
- Ask the human up to 4 questions. Keep it brief — skip questions if the session
84
- already provided clear answers. Respect if they decline.
85
-
86
- 1. "Was anything unclear about what was happening during the task?"
87
- 2. "Did anything feel frustrating or take longer than expected?"
88
- 3. "Were you uncertain about the output quality at any point?"
89
- 4. "Anything you'd want done differently next time?"
90
-
91
- Derive `userRating` from overall sentiment:
92
-
93
- - Mostly positive → `good`
94
- - Mixed signals → `mixed`
95
- - Mostly negative → `bad`
96
-
97
- If the human gives an explicit rating, use that instead.
98
-
99
- ---
100
-
101
- ## Phase 3 — Build the Feedback
102
-
103
- Write one Markdown feedback file per skill used. Only include skills that were
104
- actually used during the session — skip any that were loaded but never
105
- referenced.
106
-
107
- ### Template
108
-
109
- ```markdown
110
- # Skill Feedback: [skill name from SKILL.md frontmatter]
111
-
112
- **Package:** [npm package name that contains the skill]
113
- **Skill version:** [metadata.version or library_version from frontmatter]
114
- **Rating:** [good | mixed | bad]
115
-
116
- ## Task
117
-
118
- [one-sentence summary of what the human asked you to do]
119
-
120
- ## Skills Inventory
121
-
122
- **Loaded and used:**
123
-
124
- - [list each skill the agent read and actively followed during the session]
125
-
126
- **Available but not loaded:**
127
-
128
- - [list skills that were installed/available but the agent never read]
129
-
130
- ## What Worked
131
-
132
- [patterns/instructions from the skill that were accurate and helpful]
133
-
134
- ## What Failed
135
-
136
- [from 1c — skill instructions that produced errors]
137
-
138
- ## Missing
139
-
140
- [from 1b — gaps where the skill should have covered]
141
-
142
- ## Self-Corrections
143
-
144
- [from 1c fixes + 1d human interventions, combined]
145
-
146
- ## User Comments
147
-
148
- [optional — direct quotes or paraphrased human input from Phase 2]
149
- ```
150
-
151
- ### Field derivation guide
152
-
153
- | Field | Source |
154
- | ---------------- | ------------------------------------------------------------------ |
155
- | Skill name | Frontmatter `name` field of the SKILL.md you loaded |
156
- | Package | The npm package the skill lives in (e.g. `@tanstack/query-intent`) |
157
- | Skill version | Frontmatter `metadata.version` or `library_version` |
158
- | Task | Summarize the human's original request in one sentence |
159
- | Skills Inventory | Which skills were loaded vs. available but not loaded (see below) |
160
- | What Worked | List skill sections/patterns that were correct and useful |
161
- | What Failed | From 1c — skill instructions that produced errors |
162
- | Missing | From 1b — gaps where the skill was silent |
163
- | Self-Corrections | From 1c fixes + 1d human interventions, combined |
164
- | Rating | From Phase 2 sentiment analysis or explicit rating |
165
- | User Comments | From Phase 2 answers, keep brief |
166
-
167
- ---
168
-
169
- ## Phase 4 — Submit
170
-
171
- Determine the target repo from the skill's package. The repo is typically
172
- derivable from the `repository` field in the package's `package.json`, or
173
- from the `sources` field in the SKILL.md frontmatter.
174
-
175
- ### Link to existing issues/discussions
176
-
177
- Before creating a new issue, search the target repo for existing issues or
178
- discussions that match the feedback. Use `gh search issues` or the GitHub
179
- web search with keywords from the "What Failed" and "Missing" sections.
180
-
181
- - If an **open issue** already describes the same problem, comment on it
182
- with the feedback instead of creating a duplicate. Reference the skill
183
- name and version in your comment.
184
- - If a **closed issue** describes a problem the skill still gets wrong
185
- (regression or stale skill content), reference the closed issue in the
186
- new feedback issue body: `Related to #[number] — this was fixed in the
187
- library but the skill still describes the old behavior.`
188
- - If a **discussion thread** covers the same topic, link to it in the
189
- feedback issue body so maintainers can see the community context.
190
-
191
- This prevents duplicate issues and gives maintainers richer context for
192
- improving skills.
193
-
194
- ### Privacy check
195
-
196
- Before submitting, determine whether the user's project is public or private.
197
- Check with `gh repo view --json visibility` or look for a `private` field in
198
- the project's `package.json`. If you can't determine visibility, assume private.
199
-
200
- **Private repos:** Feedback is submitted to a public issue tracker, so it must
201
- not contain project-specific details. Before submission:
202
-
203
- 1. Strip any project-specific code, file paths, internal API names, service
204
- URLs, or business logic from all fields
205
- 2. Rewrite the "Task" field to describe the _type_ of task generically
206
- (e.g. "set up authenticated data fetching" not "set up auth for our
207
- internal billing API at api.acme.corp/billing")
208
- 3. Rewrite "What Failed" and "Missing" entries to reference only the
209
- skill's own APIs and patterns, not the user's code
210
- 4. Show the sanitized feedback to the user and ask them to confirm it's
211
- safe to submit before proceeding
212
-
213
- **Public repos:** No sanitization needed. Proceed directly to submission.
214
-
215
- ### If `gh` CLI is available
216
-
217
- Submit directly as a GitHub issue:
218
-
219
- ```bash
220
- gh issue create --repo [owner/repo] --title "Skill Feedback: [skill-name] ([rating])" --label "skill:[skill-name]" --body-file intent-feedback.md
221
- ```
222
-
223
- If the label doesn't exist, omit the `--label` flag — don't let a missing
224
- label block submission.
225
-
226
- If submission succeeds, delete the feedback file.
227
-
228
- ### If `gh` CLI is not available
229
-
230
- Tell the human:
231
-
232
- > "I've written skill feedback to `intent-feedback.md`. To submit it,
233
- > open an issue at https://github.com/[owner/repo]/issues and paste the
234
- > contents."