@rudderhq/agent-runtime-gemini-local 0.2.1 → 0.2.2-canary.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 (42) hide show
  1. package/package.json +2 -2
  2. package/skills/conversation-to-skill/LICENSE.txt +202 -0
  3. package/skills/conversation-to-skill/SKILL.md +428 -0
  4. package/skills/conversation-to-skill/agents/analyzer.md +274 -0
  5. package/skills/conversation-to-skill/agents/comparator.md +202 -0
  6. package/skills/conversation-to-skill/agents/grader.md +223 -0
  7. package/skills/conversation-to-skill/assets/eval_review.html +146 -0
  8. package/skills/conversation-to-skill/eval-viewer/generate_review.py +471 -0
  9. package/skills/conversation-to-skill/eval-viewer/viewer.html +1325 -0
  10. package/skills/conversation-to-skill/references/compatibility.md +36 -0
  11. package/skills/conversation-to-skill/references/description-optimization.md +113 -0
  12. package/skills/conversation-to-skill/references/evaluation-suite.md +410 -0
  13. package/skills/conversation-to-skill/references/schemas.md +431 -0
  14. package/skills/conversation-to-skill/scripts/__init__.py +0 -0
  15. package/skills/conversation-to-skill/scripts/aggregate_benchmark.py +401 -0
  16. package/skills/conversation-to-skill/scripts/generate_report.py +335 -0
  17. package/skills/conversation-to-skill/scripts/improve_description.py +197 -0
  18. package/skills/conversation-to-skill/scripts/model_backends.py +115 -0
  19. package/skills/conversation-to-skill/scripts/package_skill.py +136 -0
  20. package/skills/conversation-to-skill/scripts/quick_validate.py +103 -0
  21. package/skills/conversation-to-skill/scripts/run_eval.py +363 -0
  22. package/skills/conversation-to-skill/scripts/run_loop.py +319 -0
  23. package/skills/conversation-to-skill/scripts/utils.py +223 -0
  24. package/skills/rudder/references/organization-skills.md +1 -1
  25. package/skills/skill-creator/SKILL.md +9 -0
  26. package/skills/skill-optimizer/CHANGELOG.md +29 -0
  27. package/skills/skill-optimizer/SKILL.md +205 -0
  28. package/skills/skill-optimizer/references/adapters/creative-brand-content.md +30 -0
  29. package/skills/skill-optimizer/references/adapters/customer-support-sales.md +30 -0
  30. package/skills/skill-optimizer/references/adapters/document-data-processing.md +31 -0
  31. package/skills/skill-optimizer/references/adapters/education-training.md +31 -0
  32. package/skills/skill-optimizer/references/adapters/finance-accounting.md +31 -0
  33. package/skills/skill-optimizer/references/adapters/healthcare-operations.md +30 -0
  34. package/skills/skill-optimizer/references/adapters/hr-people-ops.md +31 -0
  35. package/skills/skill-optimizer/references/adapters/legal-compliance.md +31 -0
  36. package/skills/skill-optimizer/references/adapters/operations-supply-chain.md +31 -0
  37. package/skills/skill-optimizer/references/adapters/personal-productivity.md +29 -0
  38. package/skills/skill-optimizer/references/adapters/research-knowledge.md +31 -0
  39. package/skills/skill-optimizer/references/adapters/software-ai.md +31 -0
  40. package/skills/skill-optimizer/references/domain-adapter-patterns.md +66 -0
  41. package/skills/skill-optimizer/references/eval-method.md +17 -0
  42. package/skills/skill-optimizer/references/universal-optimization-lens.md +73 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderhq/agent-runtime-gemini-local",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-canary.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "homepage": "https://github.com/Undertone0809/rudder",
6
6
  "bugs": {
@@ -51,7 +51,7 @@
51
51
  "typecheck": "tsc --noEmit"
52
52
  },
53
53
  "dependencies": {
54
- "@rudderhq/agent-runtime-utils": "0.2.1",
54
+ "@rudderhq/agent-runtime-utils": "0.2.2-canary.1",
55
55
  "picocolors": "^1.1.1"
56
56
  },
57
57
  "devDependencies": {
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,428 @@
1
+ ---
2
+ name: conversation-to-skill
3
+ description: >
4
+ Turn the current conversation's workflow into a reusable agent skill. Use this
5
+ whenever the user wants to make a workflow reusable, standardize a successful
6
+ thread, package an agent capability, or convert an ad hoc process into a
7
+ repeatable skill. Read the thread first, extract the stable pattern, decide
8
+ whether the skill should live in `~/.agents/skills/<name>` or
9
+ `<project-path>/.agents/skills/<name>`, write the skill, and when quality
10
+ matters add lightweight evals and iteration instead of just transcribing the
11
+ chat.
12
+ ---
13
+
14
+ # Conversation To Skill
15
+
16
+ This skill turns the work happening in the current conversation into a reusable
17
+ agent skill.
18
+
19
+ Its job is not just to write `SKILL.md`.
20
+ Its job is to identify the durable workflow, separate it from one-off thread
21
+ noise, decide the right packaging and placement, and produce a skill that will
22
+ actually help a future agent perform better.
23
+
24
+ When useful, this skill should borrow the practical methods of `skill-creator`:
25
+ good descriptions, clean skill structure, eval-friendly organization, and an
26
+ improve-via-feedback loop. When this skill owns evaluation, bundle the relevant
27
+ toolchain locally under `agents/`, `assets/`, `eval-viewer/`, `scripts/`, and
28
+ `references/` so it stays self-contained instead of depending on another skill
29
+ directory at runtime.
30
+
31
+ ## Use This Skill For
32
+
33
+ Use this skill when the user is trying to:
34
+
35
+ - turn the current task or workflow into a reusable skill
36
+ - capture a successful collaboration pattern for future runs
37
+ - standardize how a class of tasks should be handled
38
+ - extract a repeatable agent workflow from the current thread
39
+ - package a reasoning framework, execution sequence, or artifact pattern into a skill
40
+ - upgrade an existing draft skill so it is general, usable, and easier to trigger
41
+
42
+ Typical prompts:
43
+
44
+ - "Turn what we're doing into a skill."
45
+ - "I want this conversation to become an agent capability."
46
+ - "Make this reusable for next time."
47
+ - "Abstract this workflow into a Codex skill."
48
+ - "This should be a standard operating pattern, not a one-off chat."
49
+ - "Clean up this skill and make it actually reusable."
50
+
51
+ ## Do Not Use This Skill For
52
+
53
+ Do not use this skill when the user mainly wants:
54
+
55
+ - a summary of the conversation without creating a reusable skill
56
+ - immediate execution of the task with no abstraction step
57
+ - a skill generated from multiple unseen threads you cannot inspect
58
+ - a rigid template that blindly copies file paths, project names, or temporary constraints
59
+ - a generic skill factory that ignores what was actually valuable in the conversation
60
+
61
+ If the conversation does not yet reveal a stable workflow, say that plainly and
62
+ help the user clarify the reusable part first.
63
+
64
+ ## Core Principles
65
+
66
+ ### Capture The Repeatable Value
67
+
68
+ The skill should capture the repeatable value, not the accidental details.
69
+
70
+ A good abstraction preserves:
71
+
72
+ - the job to be done
73
+ - the trigger conditions
74
+ - the critical inputs and outputs
75
+ - the sequence of reasoning or execution
76
+ - the judgment criteria that make the workflow valuable
77
+ - the boundaries and non-goals
78
+
79
+ A bad abstraction copies:
80
+
81
+ - temporary filenames
82
+ - irrelevant project-specific paths
83
+ - incidental tools that happened to be used once
84
+ - order-of-operations that are not actually essential
85
+ - user wording that does not generalize
86
+
87
+ ### Explain Why, Not Just What
88
+
89
+ Prefer instructions that explain why a step matters.
90
+ Avoid brittle mandates unless the workflow truly requires them.
91
+
92
+ If you find yourself writing a long list of rigid commands with no reasoning,
93
+ you are probably transcribing the thread instead of building a skill.
94
+
95
+ ### Choose The Smallest Useful Shape
96
+
97
+ Do not overbuild the skill.
98
+ Use the smallest structure that preserves the capability:
99
+
100
+ - `SKILL.md` only, when the workflow is mostly reasoning and sequencing
101
+ - `SKILL.md` plus `references/`, when the skill needs domain guidance
102
+ - `SKILL.md` plus `scripts/`, when deterministic repeated work should be bundled
103
+ - `SKILL.md` plus `evals/`, when the skill benefits from repeatable testing
104
+
105
+ ### Decide Placement Before Writing Files
106
+
107
+ Pick the skill location before creating files so the paths stay stable:
108
+
109
+ - **Global**: `~/.agents/skills/<skill-name>`
110
+ - **Project-based**: `<project-path>/.agents/skills/<skill-name>`
111
+
112
+ If the user wants a global skill to be discoverable by Codex immediately, also
113
+ create:
114
+
115
+ - `~/.codex/skills/<skill-name>` as a symlink to the global skill directory
116
+
117
+ If you plan to run evals, place the workspace next to the skill directory as:
118
+
119
+ - `<skill-name>-workspace/`
120
+
121
+ ## Default Workflow
122
+
123
+ Follow this sequence unless the user already provided enough structure.
124
+
125
+ ### 1. Extract The Candidate Skill From The Current Thread
126
+
127
+ Read the current conversation first.
128
+ Pull out the real workflow before asking the user to restate everything.
129
+
130
+ Capture:
131
+
132
+ - what the user was trying to achieve
133
+ - what sequence of steps the agent followed or should follow
134
+ - which tools or artifacts mattered
135
+ - what corrections or preferences the user introduced
136
+ - what output the user actually wanted
137
+ - what makes this reusable instead of one-off
138
+
139
+ ### 2. Separate Stable Pattern From Incidental Context
140
+
141
+ Classify each detail into one of three buckets:
142
+
143
+ - **Core**: must stay because the skill breaks without it
144
+ - **Contextual**: useful examples or defaults, but not universal
145
+ - **Incidental**: this-thread noise that should not be baked into the skill
146
+
147
+ Useful heuristic:
148
+
149
+ - if the detail would still matter in six months on a different project, it is probably core
150
+ - if it only mattered because of this repository, filename, or user phrasing, it is probably contextual or incidental
151
+
152
+ ### 3. Fill Gaps With Minimal Interview Or Research
153
+
154
+ Do not ask the user to restate the whole workflow if the thread already tells
155
+ you most of it.
156
+ Only ask for the missing pieces that affect the resulting skill:
157
+
158
+ - what this skill should enable the agent to do
159
+ - when the skill should trigger
160
+ - what output format or artifact the user expects
161
+ - whether lightweight test prompts would help validate the result
162
+
163
+ If examples, edge cases, dependencies, or adjacent skills matter, gather that
164
+ context before writing the final version.
165
+
166
+ ### 4. Produce An Abstraction Brief Before Writing Files
167
+
168
+ Before generating the final skill, write a short abstraction brief for the user
169
+ to review unless they already said to just build it.
170
+
171
+ Use this structure:
172
+
173
+ ```markdown
174
+ ## Skill Intent
175
+ - Name:
176
+ - Goal:
177
+ - Why this should exist:
178
+
179
+ ## Trigger
180
+ - Use when:
181
+ - Do not use when:
182
+
183
+ ## Inputs
184
+ - Required inputs:
185
+ - Optional inputs:
186
+
187
+ ## Outputs
188
+ - Main deliverable:
189
+ - Secondary artifacts:
190
+
191
+ ## Workflow
192
+ 1. ...
193
+ 2. ...
194
+ 3. ...
195
+
196
+ ## Judgment Rules
197
+ - What must stay true:
198
+ - What to avoid:
199
+
200
+ ## Open Questions
201
+ - ...
202
+ ```
203
+
204
+ If the conversation already settles these points, keep the brief short and move
205
+ on.
206
+
207
+ ### 5. Challenge Weak Abstractions
208
+
209
+ Do not act like a passive stenographer.
210
+ If the proposed skill is overfit, under-scoped, or missing the real judgment
211
+ logic, say so and correct it.
212
+
213
+ Common failure modes to call out:
214
+
215
+ - "This is a transcript, not a skill."
216
+ - "These instructions depend on this exact repo, but the user asked for a global skill."
217
+ - "The workflow says what to do, but not how to decide when a step is necessary."
218
+ - "The description would under-trigger because it only names one phrasing."
219
+ - "This skill repeats manual work that should be moved into a bundled script."
220
+
221
+ ### 6. Decide Location, Shape, And Scope
222
+
223
+ Make these decisions before writing:
224
+
225
+ - whether the skill is global or project-based
226
+ - whether to preserve an existing name and directory
227
+ - whether `SKILL.md` alone is enough
228
+ - whether the skill needs `references/`, `scripts/`, `assets/`, or `evals/`
229
+ - whether a sibling workspace should be created for testing
230
+
231
+ Default location rules:
232
+
233
+ - **Global skill**: `~/.agents/skills/<skill-name>`
234
+ - **Project-based skill**: `<project-path>/.agents/skills/<skill-name>`
235
+
236
+ If updating an existing skill, preserve the directory name and frontmatter name
237
+ unless the user asked for a rename.
238
+
239
+ ### 7. Write The Skill Like A Real Skill
240
+
241
+ When writing `SKILL.md`, include:
242
+
243
+ - frontmatter with `name` and a trigger-oriented `description`
244
+ - what the skill is for
245
+ - when to use it and when not to use it
246
+ - the default workflow
247
+ - output expectations
248
+ - edge cases and boundaries when they materially affect quality
249
+
250
+ Bring in the `skill-creator` quality bar here:
251
+
252
+ - make the description a little aggressive so hosts do not under-trigger it
253
+ - include both what the skill does and the contexts that should trigger it
254
+ - prefer imperative instructions
255
+ - explain the reasoning behind important steps
256
+ - keep the file readable; if it grows too large, move detail into references
257
+
258
+ ### 8. Use Clean Skill Structure
259
+
260
+ Prefer this structure when it helps:
261
+
262
+ ```text
263
+ skill-name/
264
+ ├── SKILL.md
265
+ ├── references/
266
+ ├── scripts/
267
+ ├── assets/
268
+ └── evals/
269
+ ```
270
+
271
+ Use progressive disclosure:
272
+
273
+ 1. metadata in frontmatter should be enough to trigger the skill
274
+ 2. `SKILL.md` should explain the workflow clearly
275
+ 3. large reference material should be loaded only when relevant
276
+
277
+ When the skill supports multiple variants or domains, organize references by
278
+ variant and tell the future agent which file to read for which case.
279
+
280
+ If the user wants more than a draft, or explicitly asks for testing,
281
+ benchmarking, or trigger tuning, add local references that capture the
282
+ evaluation workflow instead of leaving that logic implicit.
283
+
284
+ If the workflow needs actual tooling, prefer bundling it inside this skill
285
+ rather than pointing at another repo's copy.
286
+
287
+ ### 9. Bundle Repeated Deterministic Work
288
+
289
+ If multiple runs of the workflow would obviously repeat the same deterministic
290
+ steps, package that work into `scripts/` instead of forcing future agents to
291
+ reinvent it every time.
292
+
293
+ Good candidates:
294
+
295
+ - file conversions
296
+ - formatting helpers
297
+ - benchmark aggregation
298
+ - schema validation
299
+ - packaging helpers
300
+
301
+ Do not add scripts just because you can.
302
+ Only bundle work that is repeated, stable, and cheaper to reuse than to re-derive.
303
+
304
+ ### 10. Add Evals With The Full Suite When The Skill Warrants Them
305
+
306
+ Not every conversation-derived skill needs evals.
307
+ But if the skill produces objectively testable outputs, if the user asks for
308
+ benchmarking, or if you are iterating on quality instead of just drafting, do
309
+ not stop at a hand-wavy "light eval."
310
+
311
+ When you choose to evaluate, use the full evaluation suite:
312
+
313
+ - create 2-3 realistic test prompts and store them in `evals/evals.json`
314
+ - create a sibling `<skill-name>-workspace/` for iteration outputs
315
+ - compare `with_skill` against `without_skill` or an old snapshot
316
+ - draft assertions while runs are executing
317
+ - capture timing and grading artifacts per run
318
+ - aggregate results into a benchmark
319
+ - generate a reviewable viewer artifact for the human
320
+ - read feedback, improve the skill, and rerun into the next iteration
321
+
322
+ The detailed procedure lives in:
323
+
324
+ - `references/evaluation-suite.md` for test execution, grading, benchmark aggregation, feedback, and iteration
325
+ - `references/description-optimization.md` for trigger-query generation and description tuning
326
+ - `references/compatibility.md` and `references/schemas.md` for host differences and file formats
327
+
328
+ The local support toolchain lives in:
329
+
330
+ - `agents/` for grader, comparator, and analyst instructions
331
+ - `assets/` for review UI assets
332
+ - `eval-viewer/` for viewer generation
333
+ - `scripts/` for aggregation, optimization, validation, and packaging
334
+
335
+ If you decide evals are needed, read those reference files before proceeding.
336
+
337
+ Prefer qualitative review for subjective skills.
338
+ Prefer assertions and benchmarks for objective skills.
339
+
340
+ ### 11. Iterate Instead Of Fossilizing Bad Drafts
341
+
342
+ If the first draft feels narrow, ambiguous, or weakly triggered, improve it.
343
+ Useful improvement passes include:
344
+
345
+ - description tuning for better triggering
346
+ - removing overfit instructions
347
+ - generalizing from user feedback
348
+ - turning repeated ad hoc steps into bundled resources
349
+ - simplifying sections that make the model do busywork
350
+
351
+ Do not force a full benchmark loop if the user only wants a draft.
352
+ But do not pretend the first draft is final if it clearly is not.
353
+
354
+ ### 12. Close With A Clear Hand-off
355
+
356
+ After creating or revising the skill, report:
357
+
358
+ - the chosen skill name
359
+ - whether it is global or project-based
360
+ - the final path
361
+ - whether a Codex symlink was created
362
+ - whether eval files or a workspace were created
363
+ - what still needs evaluation, if anything
364
+
365
+ ## Naming Guidance
366
+
367
+ Choose names that are short, clear, and capability-oriented.
368
+
369
+ Prefer names like:
370
+
371
+ - `conversation-to-skill`
372
+ - `workflow-standardizer`
373
+ - `task-to-playbook`
374
+
375
+ Avoid names that depend on this thread's temporary wording unless the user
376
+ explicitly wants that.
377
+
378
+ If updating an existing skill, preserve the existing directory name and
379
+ frontmatter name unless the user asked for a rename.
380
+
381
+ ## Output Format
382
+
383
+ Unless the user wants files written immediately, start with:
384
+
385
+ 1. a compact abstraction brief
386
+ 2. the proposed skill name and placement
387
+ 3. any risks of overfitting or under-specification
388
+
389
+ If the user asks to proceed, then write the files.
390
+
391
+ When the user already said "build it" or "just make it", go straight from the
392
+ brief into file creation in the same turn.
393
+
394
+ If you also set up evals, mention:
395
+
396
+ - the test prompts
397
+ - what is being compared
398
+ - where the reviewable output lives
399
+
400
+ ## Quality Bar
401
+
402
+ The resulting skill should make a future agent meaningfully better at the task.
403
+
404
+ That usually means it captures at least one of these:
405
+
406
+ - a reusable workflow
407
+ - a reusable decision framework
408
+ - a reusable artifact format
409
+ - a reusable boundary or escalation rule
410
+
411
+ Strong skills often also have at least one of these:
412
+
413
+ - a well-targeted description that triggers reliably
414
+ - a clean placement and file layout
415
+ - a bundled helper for repeated deterministic work
416
+ - a full eval loop that makes improvements testable
417
+
418
+ If it captures none of those, it is probably not a real skill yet.
419
+
420
+ ## Safety And Boundaries
421
+
422
+ Do not create misleading, hostile, or surprise-heavy skills.
423
+ The skill should do what its description honestly suggests.
424
+
425
+ Do not package instructions that facilitate unauthorized access, harmful
426
+ automation, or disguised exfiltration.
427
+
428
+ Roleplay, stylistic framing, and benign workflow abstraction are fine.