@inneranimalmedia/primetech-procedures 0.0.0-stage → 2.6.19

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 (76) hide show
  1. package/.codex-plugin/plugin.json +39 -0
  2. package/LICENSE +110 -0
  3. package/README.md +181 -2
  4. package/agents/openai.yaml +6 -0
  5. package/agentsam.package.json +80 -0
  6. package/assets/architect-icon.svg +10 -0
  7. package/assets/primetech-design-studio.svg +7 -0
  8. package/companion.json +40 -0
  9. package/package.json +56 -4
  10. package/plugin.README.md +37 -0
  11. package/plugin.json +43 -0
  12. package/procedures/arch.assembly.calculate/procedure.json +83 -0
  13. package/procedures/cad.motor-bearing-end-plate/README.md +21 -0
  14. package/procedures/cad.motor-bearing-end-plate/build_freecad.py +514 -0
  15. package/procedures/cad.motor-bearing-end-plate/finalize_bundle.py +26 -0
  16. package/procedures/cad.motor-bearing-end-plate/generate_assets.py +284 -0
  17. package/procedures/cad.motor-bearing-end-plate/generate_toolpaths.py +715 -0
  18. package/procedures/cad.motor-bearing-end-plate/package_artifacts.py +154 -0
  19. package/procedures/cad.motor-bearing-end-plate/parameters.json +51 -0
  20. package/procedures/cad.motor-bearing-end-plate/procedure.json +101 -0
  21. package/procedures/cad.motor-bearing-end-plate/render_preview.py +98 -0
  22. package/procedures/cad.motor-bearing-end-plate/run.py +214 -0
  23. package/procedures/cad.motor-bearing-end-plate/test_generate_toolpaths.py +50 -0
  24. package/procedures/media.asset.preflight/procedure.json +85 -0
  25. package/procedures/media.image.optimize-asset/procedure.json +102 -0
  26. package/procedures/primetech.assets.package/procedure.json +63 -0
  27. package/procedures/primetech.design-system.package/procedure.json +58 -0
  28. package/procedures/primetech.ebook.package/procedure.json +53 -0
  29. package/procedures/primetech.icon-family.build/procedure.json +101 -0
  30. package/procedures/primetech.production-board.manage/procedure.json +156 -0
  31. package/procedures/primetech.sprite-atlas.build/procedure.json +86 -0
  32. package/procedures/primetech.typeface.package/procedure.json +61 -0
  33. package/procedures/primetech.visuals.compare/procedure.json +74 -0
  34. package/procedures/repo.asset.inventory/procedure.json +65 -0
  35. package/procedures/repo.asset.inventory/run.py +116 -0
  36. package/procedures/repo.asset.inventory/run.sh +11 -0
  37. package/procedures/repo.git.status/procedure.json +58 -0
  38. package/procedures/repo.git.status/run.sh +10 -0
  39. package/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +25 -0
  40. package/scripts/generate-procedures.py +112 -0
  41. package/scripts/generate-skills.py +425 -0
  42. package/scripts/package-openai-plugin.py +94 -0
  43. package/skills/primetech-brand-kit/SKILL.md +40 -0
  44. package/skills/primetech-brand-kit/agentsam.skill.json +64 -0
  45. package/skills/primetech-character-sprites/SKILL.md +40 -0
  46. package/skills/primetech-character-sprites/agentsam.skill.json +64 -0
  47. package/skills/primetech-creative-delivery/SKILL.md +39 -0
  48. package/skills/primetech-creative-delivery/agentsam.skill.json +57 -0
  49. package/skills/primetech-design-systems/SKILL.md +43 -0
  50. package/skills/primetech-design-systems/agentsam.skill.json +57 -0
  51. package/skills/primetech-digital-publishing/SKILL.md +39 -0
  52. package/skills/primetech-digital-publishing/agentsam.skill.json +52 -0
  53. package/skills/primetech-iconography/SKILL.md +40 -0
  54. package/skills/primetech-iconography/agentsam.skill.json +53 -0
  55. package/skills/primetech-type-design/SKILL.md +40 -0
  56. package/skills/primetech-type-design/agentsam.skill.json +53 -0
  57. package/skills/primetech-ui-ux-prototypes/SKILL.md +43 -0
  58. package/skills/primetech-ui-ux-prototypes/agentsam.skill.json +64 -0
  59. package/skills/primetech-visual-qa/SKILL.md +39 -0
  60. package/skills/primetech-visual-qa/agentsam.skill.json +56 -0
  61. package/src/creative/asset-package.js +42 -0
  62. package/src/creative/design-system.js +107 -0
  63. package/src/creative/ebook.js +88 -0
  64. package/src/creative/icon-family.js +125 -0
  65. package/src/creative/index.d.ts +157 -0
  66. package/src/creative/index.js +7 -0
  67. package/src/creative/paths.js +64 -0
  68. package/src/creative/sprite-atlas.js +100 -0
  69. package/src/creative/typeface.js +154 -0
  70. package/src/creative/visual-qa.js +88 -0
  71. package/src/index.d.ts +160 -0
  72. package/src/index.js +656 -0
  73. package/src/production-board.d.ts +103 -0
  74. package/src/production-board.js +181 -0
  75. package/src/skills.d.ts +48 -0
  76. package/src/skills.js +101 -0
@@ -0,0 +1,425 @@
1
+ import json
2
+ from pathlib import Path
3
+
4
+ root = Path(__file__).resolve().parents[1] / "skills"
5
+ skills = [
6
+ {
7
+ "id":"primetech-brand-kit","name":"PrimeTech · Brand kit development","description":"Lead a complete, approval-led brand identity project from a focused brief through concepts, systems, production checks and usable deliverables.","icon":"palette","domain":"brand",
8
+ "tasks":["brand_identity","brand_refresh","brand_kit","creative_direction"],"routes":["primetech_brand_kit","brand_identity","brand_refresh"],
9
+ "tools":["imgx_generate_image","illustration_create","agentsam_excalidraw","excalidraw_export","agentsam_terminal_local","browser_screenshot","browser_navigate"],
10
+ "ops":["primetech.production-board.manage","primetech.icon-family.build","primetech.typeface.package","primetech.design-system.package","primetech.assets.package","primetech.visuals.compare"],
11
+ "caps":["media.generate","design.write","media.export","workflow.execute","terminal.execute","browser.capture","browser.navigate"],
12
+ "body":"""## Trigger conditions
13
+ Use for a new brand identity, meaningful identity refresh, or complete brand kit. Do not trigger merely because a logo or brand is mentioned in an unrelated task.
14
+
15
+ ## Inputs
16
+ Establish audience, purpose, positioning, personality, use contexts, required deliverables, constraints, and what success should feel like. Ask only for missing information that materially changes the direction. Supplied assets and history are optional evidence, not mandatory research.
17
+
18
+ ## Prerequisites
19
+ Confirm the brief and scope. Separate facts, user preferences, creative hypotheses, and approved decisions. Do not invent brand history, audience, values, competitors, or existing assets. Do not bulk-load archives unless the request depends on them.
20
+
21
+ ## Workflow
22
+ 1. Translate the brief into a concise creative thesis and 2–4 genuinely distinct directions.
23
+ 2. Explain strategic and visual trade-offs before asking the user to choose or combine a direction.
24
+ 3. Generate concept explorations with imgx_generate_image or illustration_create; keep exploration distinct from approved production masters.
25
+ 4. Iterate against explicit feedback. Change meaningful design variables, not just superficial details.
26
+ 5. Produce the approved mark, icon family, typography, color system, design tokens, supporting graphics, and usage examples as required.
27
+ 6. Use the PrimeTech production board to record stages, generation IDs, decisions, artifact references, revisions and quality evidence.
28
+ 7. Run the relevant packaging operations, then inspect rendered outputs in their intended contexts.
29
+
30
+ ## Artifact contract
31
+ Deliver a concise rationale, approved identity assets, editable source files, icon and logo variants, typeface source and font exports when commissioned, color and design tokens, usage guidance, application examples, a machine-readable manifest, and checksums. Omit out-of-scope deliverables and identify anything not produced.
32
+
33
+ ## Quality gates
34
+ Check distinctiveness, real-size legibility, monochrome and reversed use, clear space, contrast, typography coverage, licensing, editable sources, and exports. A generated image is a concept, not automatically a vector master or complete brand system.
35
+
36
+ ## Persistence
37
+ Keep outputs under the project workspace and preserve original inputs. Use the approved asset storage path for remote handoff; do not invent bucket names or silently switch storage providers. Record source lineage and checksums.
38
+
39
+ ## Iteration
40
+ Keep a decision log: approved, rejected, deferred, unresolved. Do not reintroduce rejected directions. Compare against the accepted brief and latest approved revision, not irrelevant historical material.
41
+
42
+ ## Handoff
43
+ Present actual files and previews, explain contents, list formats and source files, identify licensing or production limitations, and state exact save/publish status.
44
+
45
+ ## Failure handling
46
+ Do not claim completion if a master is missing, font export failed, source files are absent, a required variant was not generated, or the package did not validate. Preserve successful outputs and resume from the last verified artifact."""
47
+ },
48
+ {
49
+ "id":"primetech-iconography","name":"PrimeTech · Icon and mark families","description":"Develop, refine, remaster and compare logo marks, product icons and coherent icon families with vector masters and production-ready variants.","icon":"shapes","domain":"brand",
50
+ "tasks":["icon_design","logo_design","icon_family","brand_mark"],"routes":["primetech_iconography","icon_design","logo_design"],
51
+ "tools":["imgx_generate_image","illustration_create"],
52
+ "ops":["primetech.icon-family.build","primetech.visuals.compare","primetech.assets.package"],
53
+ "caps":["media.generate","design.write","media.export","terminal.execute"],
54
+ "body":"""## Trigger conditions
55
+ Use for a logo, symbol, app icon, product mark, pictogram set, or related family of visual marks. Do not assume an existing asset must be used as the starting point.
56
+
57
+ ## Inputs
58
+ Capture meaning, audience, placement, visual character, required sizes, background contexts, color constraints, and whether the user wants exploration, refinement, remastering, or production exports.
59
+
60
+ ## Prerequisites
61
+ If no approved vector master exists, develop concepts first. Use an existing logo only when supplied or when revision is explicitly requested. Never silently trace, replace, or overwrite the source.
62
+
63
+ ## Workflow
64
+ 1. Translate the brief into visual principles: silhouette, geometry, rhythm, negative space, weight and recognition distance.
65
+ 2. Explore distinct directions with imgx_generate_image or illustration_create; label raster outputs as concepts.
66
+ 3. Select and refine a direction with the user. Establish a clean SVG master before family production.
67
+ 4. Define colorways and usage contexts. Keep all eight PrimeTech colorway identifiers exact when using the family builder.
68
+ 5. Run primetech.icon-family.build for bare, circle and squircle variants, requested raster sizes and a manifest.
69
+ 6. Inspect transparent edges, silhouette clarity, optical balance and real-size legibility. Use primetech.visuals.compare when a reference is available.
70
+ 7. Package the approved master and derivatives with primetech.assets.package.
71
+
72
+ ## Artifact contract
73
+ Provide editable SVG master, generated SVG variants, requested PNG sizes, colorway and shape metadata, source checksum, family manifest and comparison evidence when requested.
74
+
75
+ ## Quality gates
76
+ Check transparent corners, unintended matte, clipped contours, consistent weight, small-size recognition, negative space, contrast and foreground/background mapping. Crops must not damage the mark.
77
+
78
+ ## Persistence
79
+ Write derivatives to a project-relative directory. Preserve the approved source SVG and record its hash. A raster preview is not the editable master.
80
+
81
+ ## Iteration
82
+ Compare meaningful design attributes, not just color. Keep rejected directions out of the final family unless asked to retain alternates.
83
+
84
+ ## Handoff
85
+ List produced colorways, shapes, sizes, source files and manifest location. Identify missing formats or unapproved variants.
86
+
87
+ ## Failure handling
88
+ Stop if the source SVG is malformed, the required colorway set is incomplete, or transparency checks fail. Keep the original master untouched and report the failing variant."""
89
+ },
90
+ {
91
+ "id":"primetech-type-design","name":"PrimeTech · Custom type and letterform design","description":"Develop custom lettering and type systems, then turn approved Typeface Studio glyph geometry into verified static font packages.","icon":"type","domain":"brand",
92
+ "tasks":["typeface_design","letterform_design","wordmark_typography","font_production"],"routes":["primetech_type_design","typeface_design","letterform_design"],
93
+ "tools":["imgx_generate_image","illustration_create","agentsam_terminal_local"],
94
+ "ops":["primetech.typeface.package","primetech.visuals.compare","primetech.assets.package"],
95
+ "caps":["media.generate","design.write","media.export"],
96
+ "body":"""## Trigger conditions
97
+ Use for a custom typeface, display lettering, wordmark letterforms, typographic identity, or production of a font from designed glyphs.
98
+
99
+ ## Inputs
100
+ Clarify intended role, character, language and glyph coverage, reference context, desired contrast and construction, target platforms, formats and licensing requirements.
101
+
102
+ ## Prerequisites
103
+ Separate single-word lettering from a reusable font family. Establish glyph inventory and metrics before promising broad language support. The current exporter produces static TTF, not variable fonts.
104
+
105
+ ## Workflow
106
+ 1. Define proportions, terminals, counters, stroke logic, spacing, rhythm and distinctive letterform rules.
107
+ 2. Explore concepts with image or illustration tools, then move approved shapes into editable glyph contours.
108
+ 3. Build a Typeface Studio source document with family/style metadata, units per em, metrics, glyph names, Unicode values, advance widths and contours.
109
+ 4. Inspect glyph consistency, spacing, counters, overshoots and representative words.
110
+ 5. Run primetech.typeface.package to validate source, compile the TTF, reparse it and verify the glyph map.
111
+ 6. Inspect specimen and package, then compare representative rendered samples.
112
+ 7. Package font, source, specimen and supplied license text.
113
+
114
+ ## Artifact contract
115
+ Deliver editable typeface source JSON, verified static TTF, specimen HTML, package archive and manifest. State glyph count and coverage. Include licensing text only when supplied or confirmed.
116
+
117
+ ## Quality gates
118
+ Verify unique Unicode mappings, valid contours, expected glyph count, readable counters, consistent metrics, reasonable advance widths, working cmap entries and a parseable TTF. Test representative words and sizes. Do not infer broad script coverage from a small Latin sample.
119
+
120
+ ## Persistence
121
+ Preserve editable source and prior font releases. Write a new versioned package rather than silently replacing an approved font.
122
+
123
+ ## Iteration
124
+ Use proof strings and targeted glyph comparisons to refine spacing and shape. Record changed glyphs and rerun validation after every export.
125
+
126
+ ## Handoff
127
+ Provide TTF, source, specimen, archive, glyph coverage, license status and omissions. Explain that variable fonts or other formats require separate implementation.
128
+
129
+ ## Failure handling
130
+ If source, contours, parsing or cmap checks fail, do not distribute the TTF as approved. Preserve source and return validation evidence."""
131
+ },
132
+ {
133
+ "id":"primetech-character-sprites","name":"PrimeTech · Character and sprite production","description":"Create consistent character and pet identities, 2D sprite sheets, 3D companion assets, rigging and animation deliverables.","icon":"smile","domain":"media",
134
+ "tasks":["character_design","pet_sprite_sheet","sprite_animation","companion_3d"],"routes":["primetech_character_sprites","character_design","sprite_animation"],
135
+ "tools":["imgx_generate_image","illustration_create","meshy_text_to_3d","meshy_image_to_3d","meshy_multi_image_to_3d","meshy_rig","meshy_animate","meshy_get_task_status","moviemode_render","moviemode_export"],
136
+ "ops":["primetech.sprite-atlas.build","primetech.visuals.compare","primetech.assets.package","primetech.production-board.manage"],
137
+ "caps":["media.generate","media.transform","media.status","media.render","media.export","workflow.execute"],
138
+ "body":"""## Trigger conditions
139
+ Use for a character, mascot, pet companion, sprite sheet, character states, rigged model or animation package.
140
+
141
+ ## Inputs
142
+ Clarify role, personality, visual identity, proportions, references, style, required states, frame dimensions, transparency, timing, and whether the result is 2D, 3D or both.
143
+
144
+ ## Prerequisites
145
+ Choose the correct path. A 2D sprite request does not require a 3D model; a 3D companion request does not automatically require CAD. Establish a canonical character reference first.
146
+
147
+ ## Workflow
148
+ 1. Define identity: silhouette, palette, face, distinctive features, materials and non-negotiable traits.
149
+ 2. Create a turnaround or pose reference where consistency requires it.
150
+ 3. For 2D, generate or illustrate individual states and frames with transparent backgrounds and consistent scale.
151
+ 4. For 3D, use active Meshy tools: text-to-3D, image-to-3D or multi-image-to-3D; retain task IDs and inspect status.
152
+ 5. Use Meshy rigging and animation only when the model and requested output support them. Render or export with MovieMode where appropriate.
153
+ 6. Order 2D frames and run primetech.sprite-atlas.build for atlas, metadata and controllable preview.
154
+ 7. Track stages and approvals with primetech.production-board.manage; compare final render or atlas to the canonical reference.
155
+
156
+ ## Artifact contract
157
+ Deliver identity/reference sheet, approved source images, individual frames, sprite atlas, frame metadata, preview and requested 3D model, rig, animation or render exports. Record hashes and provider task identifiers.
158
+
159
+ ## Quality gates
160
+ Check continuity, silhouette, proportions, palette, transparent edges, frame bounds, order, cadence, model integrity and export format. A static pose sheet is not a completed animation.
161
+
162
+ ## Persistence
163
+ Keep source images and original model outputs immutable. Store derivatives in the project asset pipeline. Do not assume a provider task has completed until status and files are verified.
164
+
165
+ ## Iteration
166
+ Refine one dimension at a time: face, pose, material, state, timing or camera. Keep the canonical identity reference attached to each regeneration.
167
+
168
+ ## Handoff
169
+ List delivered states, frame count, dimensions, FPS, loop behavior, 3D formats and preview path. Separate completed outputs from tasks still running.
170
+
171
+ ## Failure handling
172
+ If a task fails or a model is unsuitable for rigging, retain task receipt and source references. Retry from the last approved stage."""
173
+ },
174
+ {
175
+ "id":"primetech-design-systems","name":"PrimeTech · Design system production","description":"Turn an approved visual direction into consistent design tokens, accessible palettes, typography rules and reusable UI foundations.","icon":"layers","domain":"design",
176
+ "tasks":["design_system","design_tokens","brand_ui_system","component_foundation"],"routes":["primetech_design_systems","design_system","design_tokens"],
177
+ "tools":["agentsam_excalidraw","excalidraw_export","excalidraw_load_library","imgx_generate_image","browser_screenshot"],
178
+ "ops":["primetech.design-system.package","primetech.visuals.compare","primetech.assets.package"],
179
+ "caps":["design.read","design.write","media.generate","media.export","browser.capture"],
180
+ "body":"""## Trigger conditions
181
+ Use for a reusable design system, token set, visual language, component foundation or design-system package.
182
+
183
+ ## Inputs
184
+ Establish product or brand context, supported surfaces, theme modes, accessibility requirements, typography, color roles, spacing, radii, elevation, motion and component families.
185
+
186
+ ## Prerequisites
187
+ Start from approved creative direction and actual product requirements. Do not invent a universal theme or hardcode brand colors into application code. Confirm token ownership and naming conventions.
188
+
189
+ ## Workflow
190
+ 1. Define semantic roles before raw values: surface, text, border, accent, status, focus and interaction states.
191
+ 2. Establish type scale, spacing, radius, shadow, stroke and motion tokens.
192
+ 3. Map component states and responsive behavior. Use Excalidraw for structural diagrams when useful, not as a substitute for implementation.
193
+ 4. Validate contrast and token references, then run primetech.design-system.package to produce CSS variables and documentation.
194
+ 5. Apply tokens in the target product using its existing theme system and component boundaries.
195
+ 6. Capture actual rendered states and use primetech.visuals.compare for reference-based checks.
196
+ 7. Package the approved token source and generated outputs.
197
+
198
+ ## Artifact contract
199
+ Deliver source token JSON, semantic token map, CSS variables, contrast results, documentation, component/state inventory and package manifest.
200
+
201
+ ## Quality gates
202
+ Check contrast, focus visibility, disabled and error states, dark/light behavior, responsive typography, token naming, missing references and accidental hardcoded values. A token file not consumed by the product is not a completed implementation.
203
+
204
+ ## Persistence
205
+ Keep tokens in the product's canonical theme or design-system source. Avoid parallel token authorities or per-theme CSS patches.
206
+
207
+ ## Iteration
208
+ Change semantic roles deliberately and inspect affected components. Preserve token diffs and identify impacted surfaces.
209
+
210
+ ## Handoff
211
+ Provide token package, documentation, contrast results, implementation locations and remaining adoption gaps.
212
+
213
+ ## Failure handling
214
+ If tokens are malformed, contrast fails or application code still uses hardcoded values, mark the package or implementation as needing review."""
215
+ },
216
+ {
217
+ "id":"primetech-ui-ux-prototypes","name":"PrimeTech · High-fidelity UX flows and demos","description":"Research, map, implement and verify complete responsive product flows and working demos in the actual application codebase.","icon":"layout","domain":"design",
218
+ "tasks":["ux_flow","ui_prototype","interactive_demo","product_experience"],"routes":["primetech_ui_ux_prototypes","ux_flow","interactive_demo"],
219
+ "tools":["agentsam_excalidraw","excalidraw_export","excalidraw_plan_map_create","agentsam_codebase_retrieve","agentsam_terminal_local","browser_navigate","browser_screenshot","browser_run_snapshot","browser_evaluate_script"],
220
+ "ops":["primetech.production-board.manage","primetech.visuals.compare","primetech.assets.package"],
221
+ "caps":["design.read","design.write","repository.read","terminal.execute","browser.navigate","browser.capture","browser.execute","workflow.execute"],
222
+ "body":"""## Trigger conditions
223
+ Use for a product flow, interface concept, high-fidelity prototype, interactive demo, UX redesign or implementation-ready experience.
224
+
225
+ ## Inputs
226
+ Identify target application, user goal, primary journey, user roles, devices, required states, existing codebase, design constraints and what must be demonstrated.
227
+
228
+ ## Prerequisites
229
+ Inspect the actual application and its design system before proposing architecture. Ask for the target repository or surface only when genuinely unknown. Do not substitute a generic mockup for a working product experience.
230
+
231
+ ## Workflow
232
+ 1. Inspect the target codebase, routes, components, tokens, data contracts and interaction patterns with repository and browser tools.
233
+ 2. Map the journey and edge cases. Use Excalidraw or plan-map tools for flow diagrams when useful.
234
+ 3. Define screen inventory, navigation, component states, loading, empty, error, success, permission and mobile behaviors.
235
+ 4. Build the prototype in the actual product codebase using its native framework and packages. Keep data bindings and interactions real; label fixtures clearly when unavoidable.
236
+ 5. Verify keyboard behavior, focus, responsive layout, state transitions, navigation, persistence and error recovery.
237
+ 6. Run the actual app, navigate the implemented journey and capture screenshots or browser snapshots at desktop and mobile sizes.
238
+ 7. Compare key screens with approved references using primetech.visuals.compare, then record remaining gaps in the production board.
239
+
240
+ ## Artifact contract
241
+ Deliver runnable prototype or implemented flow, source changes, route and component inventory, test evidence, browser screenshots, responsive states and acceptance report. A diagram or screenshot alone is not the deliverable.
242
+
243
+ ## Quality gates
244
+ No dead buttons, fake progress, placeholder-only states, blank screens, inaccessible controls, broken routes, hardcoded theme colors or unexplained fixture data. Check loading, empty, error, offline, permission and cancellation states. Verify real save and navigation behavior.
245
+
246
+ ## Persistence
247
+ Work in the requested repository and preserve unrelated WIP. Use existing package and release boundaries. Keep a clean diff, test receipts and stable project identity.
248
+
249
+ ## Iteration
250
+ Review each journey step against the user's goal and observed behavior. Fix the highest-impact friction first, then re-run the whole flow.
251
+
252
+ ## Handoff
253
+ Show the running experience, exact route, responsive screenshots, changed files, tests and what is genuinely implemented versus still mocked or pending.
254
+
255
+ ## Failure handling
256
+ If the app cannot run or a dependency is missing, report the exact blocker and keep verified work. Never label a static design, unbuilt branch or untested route as a shipped demo."""
257
+ },
258
+ {
259
+ "id":"primetech-visual-qa","name":"PrimeTech · Visual quality assurance","description":"Compare approved references and rendered outputs with measurable image evidence and a separate semantic design review.","icon":"scan-eye","domain":"design",
260
+ "tasks":["visual_qa","design_review","render_comparison","visual_regression"],"routes":["primetech_visual_qa","visual_qa","design_review"],
261
+ "tools":["browser_screenshot","browser_run_snapshot","browser_content","agentsam_terminal_local"],
262
+ "ops":["primetech.visuals.compare","primetech.production-board.manage"],
263
+ "caps":["design.read","design.write","browser.capture","browser.read","media.export","terminal.execute"],
264
+ "body":"""## Trigger conditions
265
+ Use for visual QA, reference comparison, screenshot review, render verification or evidence that a design revision actually landed.
266
+
267
+ ## Inputs
268
+ Identify approved reference, candidate render, exact viewport, device scale, state, theme, browser and acceptance criteria.
269
+
270
+ ## Prerequisites
271
+ Capture actual current application output. Ensure reference and candidate represent the same dimensions and state before pixel comparison. A screenshot from an old build is not proof of the current build.
272
+
273
+ ## Workflow
274
+ 1. Capture reference and candidate at matching viewport and state.
275
+ 2. Inspect layout, typography, hierarchy, contrast, alignment, clipping, content fidelity and interaction affordances.
276
+ 3. Run primetech.visuals.compare when dimensions match to generate diff, overlay, MAE, RMSE, changed-pixel ratio and report.
277
+ 4. Review semantic differences separately; pixel similarity cannot determine whether a workflow is correct or accessible.
278
+ 5. Record defects with screenshot evidence, location, severity, reproduction steps and expected result.
279
+ 6. Re-run the full affected flow after fixes and preserve before/after evidence.
280
+
281
+ ## Artifact contract
282
+ Deliver reference and candidate paths, viewport details, diff and overlay images, machine-readable metrics, semantic findings, severity and pass/review result.
283
+
284
+ ## Quality gates
285
+ Do not treat pixel metrics as a substitute for UX judgment. Flag mismatched dimensions, stale references, fixture data, hidden controls, inaccessible contrast and interaction failures. State exactly which thresholds passed or failed.
286
+
287
+ ## Persistence
288
+ Keep evidence with the project or approved QA artifact store. Preserve original screenshots and hashes. Never overwrite the approved reference.
289
+
290
+ ## Iteration
291
+ Re-test the same viewport and state after each change. Track resolved, regressed and open findings.
292
+
293
+ ## Handoff
294
+ Summarize measurable result, semantic review, affected screens and remaining defects. Link actual evidence artifacts.
295
+
296
+ ## Failure handling
297
+ If screenshots cannot be captured or dimensions do not match, report the comparison as blocked. Do not invent metrics or claim a pass without the generated report."""
298
+ },
299
+ {
300
+ "id":"primetech-creative-delivery","name":"PrimeTech · Creative asset packaging and delivery","description":"Assemble approved creative sources and derivatives into traceable, checksummed delivery packages with explicit formats and handoff status.","icon":"package","domain":"media",
301
+ "tasks":["creative_delivery","asset_package","brand_export","media_handoff"],"routes":["primetech_creative_delivery","asset_package","creative_delivery"],
302
+ "tools":["agentsam_terminal_local","moviemode_export","excalidraw_export"],
303
+ "ops":["primetech.assets.package","primetech.icon-family.build","primetech.typeface.package","primetech.sprite-atlas.build","primetech.design-system.package","primetech.ebook.package"],
304
+ "caps":["media.export","design.write","terminal.execute","design.export"],
305
+ "body":"""## Trigger conditions
306
+ Use when the user asks to package, export, hand off, archive or prepare creative assets for another person, product or release.
307
+
308
+ ## Inputs
309
+ Confirm deliverables, approved source files, target formats, naming, licensing notes, recipient, output location and size constraints.
310
+
311
+ ## Prerequisites
312
+ Identify the canonical source for each asset. Confirm sources are approved and generated derivatives link to the correct source revision. Never package unrelated stock or fixture assets as user work.
313
+
314
+ ## Workflow
315
+ 1. Inventory requested assets and source formats.
316
+ 2. Validate each asset and record dimensions, media type, size and source checksum.
317
+ 3. Generate only requested derivatives using the appropriate PrimeTech operation.
318
+ 4. Assemble approved files with primetech.assets.package.
319
+ 5. Inspect archive, manifest, checksums and expected file count.
320
+ 6. Confirm output directory and approved storage or delivery route.
321
+
322
+ ## Artifact contract
323
+ Deliver archive, machine-readable manifest, source and derivative inventory, checksums, file formats, licensing notes and validation result.
324
+
325
+ ## Quality gates
326
+ Check no source is missing, files open, names are stable, formats match, checksums are correct and no temporary or unapproved files are included.
327
+
328
+ ## Persistence
329
+ Preserve original assets. Write packages to a project-relative location and use canonical asset storage for remote persistence. Do not assume Cloudflare Images is the universal destination.
330
+
331
+ ## Iteration
332
+ When a file is rejected or replaced, update only the affected derivative and regenerate the package manifest. Keep prior approved packages available as prior revisions.
333
+
334
+ ## Handoff
335
+ State exact archive path, contents, size, checksum and delivery status. Distinguish a locally created package from an uploaded or published package.
336
+
337
+ ## Failure handling
338
+ If an asset fails validation or an archive is incomplete, do not mark delivery complete. Preserve the failure report and list missing or invalid files."""
339
+ },
340
+ {
341
+ "id":"primetech-digital-publishing","name":"PrimeTech · Digital publication production","description":"Prepare structured book content and produce validated EPUB 3 publications with navigation, preview and source provenance.","icon":"book-open","domain":"publishing",
342
+ "tasks":["ebook_production","epub_export","digital_publication"],"routes":["primetech_digital_publishing","ebook_production","epub_export"],
343
+ "tools":["imgx_generate_image","agentsam_terminal_local"],
344
+ "ops":["primetech.ebook.package","primetech.assets.package","primetech.visuals.compare"],
345
+ "caps":["media.generate","media.export","design.write","terminal.execute"],
346
+ "body":"""## Trigger conditions
347
+ Use for a digital book, ebook, EPUB export or publication package from structured content.
348
+
349
+ ## Inputs
350
+ Confirm title, author, language, chapter order, source content, images, accessibility requirements, identifier, cover requirements and intended distribution.
351
+
352
+ ## Prerequisites
353
+ The current exporter expects a structured source document. Confirm chapter content is authored and safe to package. Do not claim PDF, print-layout or DRM output unless a separate validated workflow exists.
354
+
355
+ ## Workflow
356
+ 1. Validate source structure, metadata, chapter order and referenced media.
357
+ 2. Generate or prepare cover art only when requested; keep concept and final production image distinct.
358
+ 3. Run primetech.ebook.package to build EPUB 3 archive, container metadata, package document, navigation, preview and manifest.
359
+ 4. Inspect archive structure and open the generated preview.
360
+ 5. Compare cover and representative pages at intended reading sizes.
361
+ 6. Package additional approved source and media files for delivery.
362
+
363
+ ## Artifact contract
364
+ Deliver EPUB 3 file, HTML preview, source document, publication manifest, chapter count, archive size and validation evidence.
365
+
366
+ ## Quality gates
367
+ Verify mimetype placement, container.xml, package metadata, navigation, chapter references, language, title, author, archive integrity and readable content. Do not report PDF output unless separately generated and verified.
368
+
369
+ ## Persistence
370
+ Preserve source manuscript and media. Store generated publication files under project output and use approved asset pipeline for remote delivery.
371
+
372
+ ## Iteration
373
+ Correct source document and regenerate EPUB rather than editing archive in place. Re-run structural validation after each change.
374
+
375
+ ## Handoff
376
+ List EPUB path, preview, metadata, validation results and unsupported formats or distribution requirements.
377
+
378
+ ## Failure handling
379
+ If source validation or EPUB structure checks fail, keep source and error evidence. Do not label a malformed archive as publishable."""
380
+ },
381
+ ]
382
+
383
+ for skill in skills:
384
+ skill["caps"] = ["primetech.procedure.run"] + skill["caps"]
385
+ directory = root / skill["id"]
386
+ directory.mkdir(parents=True, exist_ok=True)
387
+ manifest = {
388
+ "schema": "agentsam.skill.v1",
389
+ "package": "@inneranimalmedia/primetech-procedures",
390
+ "id": skill["id"],
391
+ "name": skill["name"],
392
+ "description": skill["description"],
393
+ "icon": skill["icon"],
394
+ "slash": {"suggested": "/" + skill["id"]},
395
+ "instructions": {"source": "local_file", "ref": "SKILL.md"},
396
+ "execution": {
397
+ "mode": "turn",
398
+ "tools": skill["tools"],
399
+ "operations": skill["ops"],
400
+ "capabilities": skill["caps"],
401
+ },
402
+ "provenance": {
403
+ "source": "PrimeTech Creative Production",
404
+ "status": "authored",
405
+ "notice": "Original PrimeTech workflow. Tool references are validated against the live AgentSam registry.",
406
+ },
407
+ "metadata": {
408
+ "skill_domain": skill["domain"],
409
+ "task_types": skill["tasks"],
410
+ "route_keys": skill["routes"],
411
+ },
412
+ }
413
+ markdown = "\n".join([
414
+ "---",
415
+ "name: " + skill["name"],
416
+ "description: " + skill["description"],
417
+ "---",
418
+ "",
419
+ skill["body"].strip(),
420
+ "",
421
+ ])
422
+ (directory / "agentsam.skill.json").write_text(json.dumps(manifest, indent=2) + "\n")
423
+ (directory / "SKILL.md").write_text(markdown)
424
+
425
+ print(json.dumps({"count": len(skills), "ids": [skill["id"] for skill in skills]}, indent=2))
@@ -0,0 +1,94 @@
1
+ #!/usr/bin/env python3
2
+ """Build the existing PrimeTech Design Studio OpenAI plugin archive from canonical package skills."""
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ import re
8
+ import sys
9
+ import zipfile
10
+ from pathlib import Path
11
+
12
+
13
+ def main() -> int:
14
+ package_root = Path(__file__).resolve().parents[1]
15
+ repo_root = package_root.parents[1]
16
+ parser = argparse.ArgumentParser(description=__doc__)
17
+ parser.add_argument('--output', type=Path, default=repo_root / 'primetech-design-studio-0.3.0.zip')
18
+ args = parser.parse_args()
19
+ output = args.output.expanduser().resolve()
20
+ if output == package_root or package_root in output.parents:
21
+ raise SystemExit('Output archive must be outside the npm package directory.')
22
+
23
+ plugin = json.loads((package_root / 'plugin.json').read_text())
24
+ codex = json.loads((package_root / '.codex-plugin' / 'plugin.json').read_text())
25
+ interface = plugin['extensions']['com.openai']['interface']
26
+ if plugin['name'] != 'primetech-design-studio' or codex['name'] != plugin['name']:
27
+ raise SystemExit('Plugin identity mismatch; refusing to build an update archive.')
28
+ if codex['version'] != plugin['version']:
29
+ raise SystemExit('OpenAI and Codex plugin versions do not match.')
30
+ if interface['category'] != 'Creativity' or len(interface['shortDescription']) > 30:
31
+ raise SystemExit('OpenAI listing metadata does not satisfy the listing constraints.')
32
+
33
+ skill_dirs = sorted(p for p in (package_root / 'skills').iterdir() if p.is_dir() and (p / 'SKILL.md').is_file())
34
+ if len(skill_dirs) != 9:
35
+ raise SystemExit(f'Expected exactly nine canonical skills, found {len(skill_dirs)}.')
36
+ names: set[str] = set()
37
+ files: list[tuple[Path, str]] = []
38
+
39
+ def add(source: Path, archive_path: str) -> None:
40
+ if not source.is_file():
41
+ raise SystemExit(f'Missing plugin source file: {source}')
42
+ files.append((source, archive_path))
43
+
44
+ add(package_root / 'plugin.json', 'plugin.json')
45
+ add(package_root / '.codex-plugin' / 'plugin.json', '.codex-plugin/plugin.json')
46
+ add(package_root / 'agents' / 'openai.yaml', 'agents/openai.yaml')
47
+ add(package_root / 'companion.json', 'companion.json')
48
+ add(package_root / 'assets' / 'architect-icon.svg', 'assets/architect-icon.svg')
49
+ add(package_root / 'assets' / 'primetech-design-studio.svg', 'assets/primetech-design-studio.svg')
50
+ add(package_root / 'plugin.README.md', 'README.md')
51
+
52
+ for skill_dir in skill_dirs:
53
+ skill_file = skill_dir / 'SKILL.md'
54
+ content = skill_file.read_text()
55
+ frontmatter = re.match(r'^---\s*\n(.*?)\n---\s*\n', content, flags=re.S)
56
+ if not frontmatter:
57
+ raise SystemExit(f'Missing YAML frontmatter: {skill_file}')
58
+ name = re.search(r'^name:\s*(.+?)\s*$', frontmatter.group(1), flags=re.M)
59
+ description = re.search(r'^description:\s*(.+?)\s*$', frontmatter.group(1), flags=re.M)
60
+ if not name or not description or not name.group(1).strip() or not description.group(1).strip():
61
+ raise SystemExit(f'Skill requires non-empty name and description: {skill_file}')
62
+ normalized_name = name.group(1).strip().strip('"\'')
63
+ if normalized_name in names:
64
+ raise SystemExit(f'Duplicate skill name: {normalized_name}')
65
+ names.add(normalized_name)
66
+ add(skill_file, f'skills/{skill_dir.name}/SKILL.md')
67
+ # Preserve any future skill references/support files, but omit AgentSam-only manifests.
68
+ for child in sorted(skill_dir.rglob('*')):
69
+ if child.is_file() and child.name != 'agentsam.skill.json' and child != skill_file:
70
+ add(child, child.relative_to(package_root).as_posix())
71
+
72
+ output.parent.mkdir(parents=True, exist_ok=True)
73
+ with zipfile.ZipFile(output, 'w', compression=zipfile.ZIP_DEFLATED, compresslevel=9) as archive:
74
+ for source, relative in files:
75
+ archive.write(source, f"{plugin['name']}/{relative}")
76
+
77
+ print(json.dumps({
78
+ 'ok': True,
79
+ 'plugin': plugin['name'],
80
+ 'display_name': interface['displayName'],
81
+ 'version': plugin['version'],
82
+ 'skills': len(skill_dirs),
83
+ 'files': len(files),
84
+ 'archive': str(output),
85
+ 'bytes': output.stat().st_size,
86
+ 'remote_mcp': False,
87
+ 'private_plugin_update_archive': True,
88
+ 'uploaded': False
89
+ }, indent=2))
90
+ return 0
91
+
92
+
93
+ if __name__ == '__main__':
94
+ sys.exit(main())
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: PrimeTech · Brand kit development
3
+ description: Lead a complete, approval-led brand identity project from a focused brief through concepts, systems, production checks and usable deliverables.
4
+ ---
5
+
6
+ ## Trigger conditions
7
+ Use for a new brand identity, meaningful identity refresh, or complete brand kit. Do not trigger merely because a logo or brand is mentioned in an unrelated task.
8
+
9
+ ## Inputs
10
+ Establish audience, purpose, positioning, personality, use contexts, required deliverables, constraints, and what success should feel like. Ask only for missing information that materially changes the direction. Supplied assets and history are optional evidence, not mandatory research.
11
+
12
+ ## Prerequisites
13
+ Confirm the brief and scope. Separate facts, user preferences, creative hypotheses, and approved decisions. Do not invent brand history, audience, values, competitors, or existing assets. Do not bulk-load archives unless the request depends on them.
14
+
15
+ ## Workflow
16
+ 1. Translate the brief into a concise creative thesis and 2–4 genuinely distinct directions.
17
+ 2. Explain strategic and visual trade-offs before asking the user to choose or combine a direction.
18
+ 3. Generate concept explorations with imgx_generate_image or illustration_create; keep exploration distinct from approved production masters.
19
+ 4. Iterate against explicit feedback. Change meaningful design variables, not just superficial details.
20
+ 5. Produce the approved mark, icon family, typography, color system, design tokens, supporting graphics, and usage examples as required.
21
+ 6. Use the PrimeTech production board to record stages, generation IDs, decisions, artifact references, revisions and quality evidence.
22
+ 7. Run the relevant packaging operations, then inspect rendered outputs in their intended contexts.
23
+
24
+ ## Artifact contract
25
+ Deliver a concise rationale, approved identity assets, editable source files, icon and logo variants, typeface source and font exports when commissioned, color and design tokens, usage guidance, application examples, a machine-readable manifest, and checksums. Omit out-of-scope deliverables and identify anything not produced.
26
+
27
+ ## Quality gates
28
+ Check distinctiveness, real-size legibility, monochrome and reversed use, clear space, contrast, typography coverage, licensing, editable sources, and exports. A generated image is a concept, not automatically a vector master or complete brand system.
29
+
30
+ ## Persistence
31
+ Keep outputs under the project workspace and preserve original inputs. Use the approved asset storage path for remote handoff; do not invent bucket names or silently switch storage providers. Record source lineage and checksums.
32
+
33
+ ## Iteration
34
+ Keep a decision log: approved, rejected, deferred, unresolved. Do not reintroduce rejected directions. Compare against the accepted brief and latest approved revision, not irrelevant historical material.
35
+
36
+ ## Handoff
37
+ Present actual files and previews, explain contents, list formats and source files, identify licensing or production limitations, and state exact save/publish status.
38
+
39
+ ## Failure handling
40
+ Do not claim completion if a master is missing, font export failed, source files are absent, a required variant was not generated, or the package did not validate. Preserve successful outputs and resume from the last verified artifact.
@@ -0,0 +1,64 @@
1
+ {
2
+ "schema": "agentsam.skill.v1",
3
+ "package": "@inneranimalmedia/primetech-procedures",
4
+ "id": "primetech-brand-kit",
5
+ "name": "PrimeTech \u00b7 Brand kit development",
6
+ "description": "Lead a complete, approval-led brand identity project from a focused brief through concepts, systems, production checks and usable deliverables.",
7
+ "icon": "palette",
8
+ "slash": {
9
+ "suggested": "/primetech-brand-kit"
10
+ },
11
+ "instructions": {
12
+ "source": "local_file",
13
+ "ref": "SKILL.md"
14
+ },
15
+ "execution": {
16
+ "mode": "turn",
17
+ "tools": [
18
+ "imgx_generate_image",
19
+ "illustration_create",
20
+ "agentsam_excalidraw",
21
+ "excalidraw_export",
22
+ "agentsam_terminal_local",
23
+ "browser_screenshot",
24
+ "browser_navigate"
25
+ ],
26
+ "operations": [
27
+ "primetech.production-board.manage",
28
+ "primetech.icon-family.build",
29
+ "primetech.typeface.package",
30
+ "primetech.design-system.package",
31
+ "primetech.assets.package",
32
+ "primetech.visuals.compare"
33
+ ],
34
+ "capabilities": [
35
+ "primetech.procedure.run",
36
+ "media.generate",
37
+ "design.write",
38
+ "media.export",
39
+ "workflow.execute",
40
+ "terminal.execute",
41
+ "browser.capture",
42
+ "browser.navigate"
43
+ ]
44
+ },
45
+ "provenance": {
46
+ "source": "PrimeTech Creative Production",
47
+ "status": "authored",
48
+ "notice": "Original PrimeTech workflow. Tool references are validated against the live AgentSam registry."
49
+ },
50
+ "metadata": {
51
+ "skill_domain": "brand",
52
+ "task_types": [
53
+ "brand_identity",
54
+ "brand_refresh",
55
+ "brand_kit",
56
+ "creative_direction"
57
+ ],
58
+ "route_keys": [
59
+ "primetech_brand_kit",
60
+ "brand_identity",
61
+ "brand_refresh"
62
+ ]
63
+ }
64
+ }