shortcuts-playground 1.2.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 (68) hide show
  1. package/README.md +54 -0
  2. package/agents/shortcut-builder.md +172 -0
  3. package/agents/shortcut-remixer.md +239 -0
  4. package/commands/build-shortcut.md +32 -0
  5. package/commands/remix-shortcut.md +34 -0
  6. package/opencode.json +30 -0
  7. package/package.json +47 -0
  8. package/plugin/validator.ts +179 -0
  9. package/skills/shortcuts-playground/ACTIONS.md +713 -0
  10. package/skills/shortcuts-playground/APPINTENTS.md +2760 -0
  11. package/skills/shortcuts-playground/AUTOMATION_TRIGGERS.md +133 -0
  12. package/skills/shortcuts-playground/BEST_PRACTICES.md +357 -0
  13. package/skills/shortcuts-playground/CHANGELOG.md +585 -0
  14. package/skills/shortcuts-playground/CONTROL_FLOW.md +777 -0
  15. package/skills/shortcuts-playground/DATE_TIME.md +75 -0
  16. package/skills/shortcuts-playground/EXAMPLES.md +738 -0
  17. package/skills/shortcuts-playground/FILTERS.md +697 -0
  18. package/skills/shortcuts-playground/HEALTHKIT.md +317 -0
  19. package/skills/shortcuts-playground/ICONS_AND_COLORS.md +89 -0
  20. package/skills/shortcuts-playground/JAVASCRIPT_WEBPAGE.md +51 -0
  21. package/skills/shortcuts-playground/PARAMETER_TYPES.md +1117 -0
  22. package/skills/shortcuts-playground/PLIST_FORMAT.md +296 -0
  23. package/skills/shortcuts-playground/README.md +77 -0
  24. package/skills/shortcuts-playground/SKILL.md +459 -0
  25. package/skills/shortcuts-playground/THIRD_PARTY_ACTIONS.md +77 -0
  26. package/skills/shortcuts-playground/TOOLKIT_SNAPSHOT.md +62 -0
  27. package/skills/shortcuts-playground/URL_SCHEMES.md +59 -0
  28. package/skills/shortcuts-playground/VARIABLES.md +569 -0
  29. package/skills/shortcuts-playground/assets/shortcuts-small.svg +14 -0
  30. package/skills/shortcuts-playground/assets/shortcuts.png +0 -0
  31. package/skills/shortcuts-playground/data/healthkit-ios26.2-reference.json +2603 -0
  32. package/skills/shortcuts-playground/data/macos27-shortpy-grounding.json +4085 -0
  33. package/skills/shortcuts-playground/data/macos27-workflow-trigger-samples.json +1 -0
  34. package/skills/shortcuts-playground/data/shortcuts-glyph-synonyms.json +5102 -0
  35. package/skills/shortcuts-playground/data/shortcuts-icon-colors.json +107 -0
  36. package/skills/shortcuts-playground/data/shortcuts-official-glyph-mapping.json +509 -0
  37. package/skills/shortcuts-playground/data/toolkit-v63-tool-ids.json +1806 -0
  38. package/skills/shortcuts-playground/data/toolkit-v78-first-party-enum-cases.json +1 -0
  39. package/skills/shortcuts-playground/data/toolkit-v78-first-party-parameter-keys.json +1 -0
  40. package/skills/shortcuts-playground/data/toolkit-v78-ios27-tool-ids.json +1222 -0
  41. package/skills/shortcuts-playground/data/toolkit-v78-tool-ids.json +2745 -0
  42. package/skills/shortcuts-playground/data/toolkit-v78-trigger-parameter-keys.json +1051 -0
  43. package/skills/shortcuts-playground/golden-shortcuts/index.jsonl +19 -0
  44. package/skills/shortcuts-playground/golden-shortcuts/xml/1be4dde95b794253bf82438e201b33e7.xml +174 -0
  45. package/skills/shortcuts-playground/golden-shortcuts/xml/2e0fb675e45948aaacee7e534f910492.xml +1016 -0
  46. package/skills/shortcuts-playground/golden-shortcuts/xml/332c12a0060043b388b22b806be7ab58.xml +1924 -0
  47. package/skills/shortcuts-playground/golden-shortcuts/xml/3dd4ee24e43f464f92adaa70a0311eaa.xml +1177 -0
  48. package/skills/shortcuts-playground/golden-shortcuts/xml/4d102301c6e646faa7a8a221f4f4ec98.xml +321 -0
  49. package/skills/shortcuts-playground/golden-shortcuts/xml/51cc4e26d1044893a0c3f2f3630cf2d2.xml +1933 -0
  50. package/skills/shortcuts-playground/golden-shortcuts/xml/623e7f1ca5f948e2bd53811fec63e544.xml +136 -0
  51. package/skills/shortcuts-playground/golden-shortcuts/xml/6a18b76843ac45c384ac3400f3740997.xml +1791 -0
  52. package/skills/shortcuts-playground/golden-shortcuts/xml/71f0cacb0f604b399b76c5dcb7286e7c.xml +2228 -0
  53. package/skills/shortcuts-playground/golden-shortcuts/xml/807525ed9f974829bc8494defac923a8.xml +259 -0
  54. package/skills/shortcuts-playground/golden-shortcuts/xml/8ab0d39826ab4249be58672763caa3ba.xml +420 -0
  55. package/skills/shortcuts-playground/golden-shortcuts/xml/91c45fd3fd3b427897d9ba485efb1227.xml +800 -0
  56. package/skills/shortcuts-playground/golden-shortcuts/xml/97be626bb25c41709d175646a7f6d8f2.xml +424 -0
  57. package/skills/shortcuts-playground/golden-shortcuts/xml/ae59e10d409348f9bd33894f03f9beb4.xml +568 -0
  58. package/skills/shortcuts-playground/golden-shortcuts/xml/afa83b6be811483b9c32189c41eb9312.xml +391 -0
  59. package/skills/shortcuts-playground/golden-shortcuts/xml/cfdb083b857e4ac189629fa386d27cdc.xml +193 -0
  60. package/skills/shortcuts-playground/golden-shortcuts/xml/e01cebe192d64b2fbca80204d03d92ab.xml +111 -0
  61. package/skills/shortcuts-playground/golden-shortcuts/xml/ef669bcf8bad489d9ef4b88bfaf5772f.xml +780 -0
  62. package/skills/shortcuts-playground/golden-shortcuts/xml/f44f5caf5e3e48d4817e73af450c4404.xml +570 -0
  63. package/skills/shortcuts-playground/scripts/generate_healthkit_reference.py +394 -0
  64. package/skills/shortcuts-playground/scripts/lookup_action_grounding.py +1164 -0
  65. package/skills/shortcuts-playground/scripts/select_shortcut_icon_color.py +597 -0
  66. package/skills/shortcuts-playground/scripts/test_random_mixed_shortcuts.py +1067 -0
  67. package/skills/shortcuts-playground/scripts/test_wiring_regressions.py +2247 -0
  68. package/skills/shortcuts-playground/scripts/validate_shortcut.py +4526 -0
@@ -0,0 +1,75 @@
1
+ # Date and Time Recipes
2
+
3
+ Use these patterns when a shortcut handles API dates, timestamps, filenames, or user-facing dates. Keep a raw Date value for calculations and use **Format Date** only when a string is needed.
4
+
5
+ ## Built-In Date and Time Styles
6
+
7
+ Format Date supports date styles:
8
+
9
+ - `Short`: numeric date.
10
+ - `Medium`: abbreviated month date.
11
+ - `Long`: full month date.
12
+ - `None`: omit the date component.
13
+
14
+ Format Date also supports time styles:
15
+
16
+ - `Short`: hours and minutes.
17
+ - `Medium`: hours, minutes, and seconds.
18
+ - `Long`: hours, minutes, seconds, and time zone.
19
+ - `None`: omit the time component.
20
+
21
+ These styles are locale-sensitive. Do not rely on them for API parameters unless the API explicitly accepts locale-formatted dates.
22
+
23
+ ## UNIX / Epoch Timestamp Conversion
24
+
25
+ Apple's documented UNIX timestamp pattern is:
26
+
27
+ 1. Create a **Date** value set to `1970-01-01 00:00:00 UTC`.
28
+ 2. Use **Adjust Date** to add the UNIX timestamp value as seconds.
29
+ 3. Use **Format Date** only after the adjusted raw Date exists.
30
+
31
+ UNIX time is seconds since `1970-01-01 00:00:00 UTC`. If an API returns milliseconds, divide by `1000` only when that API's documentation confirms milliseconds.
32
+
33
+ ## API Standards
34
+
35
+ Prefer explicit technical standards for APIs:
36
+
37
+ | Standard | Use | Pattern |
38
+ | --- | --- | --- |
39
+ | ISO 8601 date | Sortable date-only values, filenames, simple API date fields | `yyyy-MM-dd` |
40
+ | ISO 8601 date-time | API date-time values with timezone offset | `yyyy-MM-dd'T'HH:mm:ssXXXXX` |
41
+ | RFC 2822 | HTTP/email-style dates when explicitly required | `EEE, dd MMM yyyy HH:mm:ss Z` |
42
+
43
+ ISO 8601 date strings sort chronologically when sorted alphabetically. RFC 2822 is specialized for internet message formats; do not choose it unless the API requires it.
44
+
45
+ ## Custom Format Strings
46
+
47
+ Custom Format Date strings use Unicode Technical Standard #35 date patterns. Pattern characters are case-sensitive:
48
+
49
+ - `yyyy` = calendar year.
50
+ - `MM` = month number.
51
+ - `MMM` / `MMMM` = abbreviated/full month name.
52
+ - `dd` = day of month.
53
+ - `HH` = 24-hour hour.
54
+ - `hh` = 12-hour hour.
55
+ - `mm` = minutes.
56
+ - `ss` = seconds.
57
+ - `XXXXX` = ISO 8601 timezone offset with a colon.
58
+ - `Z` = RFC-style numeric timezone offset.
59
+
60
+ Wrap literal text in single quotes, including the ISO separator `T`: `yyyy-MM-dd'T'HH:mm:ssXXXXX`.
61
+
62
+ ## Plist Notes
63
+
64
+ For `is.workflow.actions.format.date`:
65
+
66
+ - Always set `WFDate` to the source Date as an editor-visible token string.
67
+ - For custom formats, set `WFDateFormatStyle` to `Custom`, set `WFDateFormat` to `Custom`, and put the custom pattern in `WFDateFormatString`.
68
+ - Keep the unformatted Date value available for later **Adjust Date**, **Get Time Between Dates**, or comparison actions.
69
+
70
+ ## Sources
71
+
72
+ - Apple Shortcuts User Guide: Handling timestamps using Format Date
73
+ - Apple Shortcuts User Guide: Date and time formats
74
+ - Apple Shortcuts User Guide: Technical standards
75
+ - Apple Shortcuts User Guide: Custom date formats