@routinerun/form 0.0.0-stage → 0.1.0

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 (66) hide show
  1. package/README.md +53 -2
  2. package/bin/routinerun.js +72 -0
  3. package/package.json +43 -4
  4. package/schema/skin.v1.schema.json +194 -0
  5. package/schema/written-routine.v1.schema.json +1722 -0
  6. package/schema/written-routine.v2.schema.json +2396 -0
  7. package/src/check.js +102 -0
  8. package/src/index.js +47 -0
  9. package/src/link.js +36 -0
  10. package/src/schema-skin.js +196 -0
  11. package/src/schema-v1.js +1724 -0
  12. package/src/schema-v2.js +2398 -0
  13. package/src/skin.js +14 -0
  14. package/src/upgrade.js +118 -0
  15. package/starters/on-call/a-practice-page.json +43 -0
  16. package/starters/on-call/after-it-is-fixed.json +42 -0
  17. package/starters/on-call/handing-the-pager-over.json +41 -0
  18. package/starters/on-call/putting-something-live.json +48 -0
  19. package/starters/on-call/the-alert-that-keeps-coming-back.json +42 -0
  20. package/starters/on-call/when-something-pages-you.json +50 -0
  21. package/starters/starters/a-chapter-at-a-time.json +42 -0
  22. package/starters/starters/a-glass-of-water.json +51 -0
  23. package/starters/starters/a-meeting-you-called.json +47 -0
  24. package/starters/starters/a-post-idea-to-published.json +61 -0
  25. package/starters/starters/a-shoot-shot-by-shot.json +49 -0
  26. package/starters/starters/awake-at-three.json +43 -0
  27. package/starters/starters/before-a-trial-charges-you.json +47 -0
  28. package/starters/starters/before-people-come-round.json +40 -0
  29. package/starters/starters/check-a-purchase.json +43 -0
  30. package/starters/starters/closing-the-day.json +38 -0
  31. package/starters/starters/count-it-without-looking.json +40 -0
  32. package/starters/starters/due-diligence-on-a-deal.json +76 -0
  33. package/starters/starters/fifty-two-and-seventeen.json +37 -0
  34. package/starters/starters/first-half-hour.json +57 -0
  35. package/starters/starters/five-sets.json +41 -0
  36. package/starters/starters/getting-up-when-it-is-dark.json +61 -0
  37. package/starters/starters/good-night-house.json +53 -0
  38. package/starters/starters/home-and-the-house-knows.json +42 -0
  39. package/starters/starters/inbox.json +31 -0
  40. package/starters/starters/into-deep-work.json +53 -0
  41. package/starters/starters/leaving-a-note-for-tomorrow.json +37 -0
  42. package/starters/starters/leaving-it-empty-for-a-week.json +49 -0
  43. package/starters/starters/out-and-the-house-off.json +43 -0
  44. package/starters/starters/out-of-the-door.json +37 -0
  45. package/starters/starters/physio-three-times-a-day.json +60 -0
  46. package/starters/starters/picking-it-back-up.json +37 -0
  47. package/starters/starters/pomodoro-four-rounds.json +50 -0
  48. package/starters/starters/read-it-and-keep-one-thing.json +44 -0
  49. package/starters/starters/reading-somebodys-code.json +48 -0
  50. package/starters/starters/receipts-before-they-are-lost.json +45 -0
  51. package/starters/starters/run-and-walk.json +79 -0
  52. package/starters/starters/something-that-runs-out.json +42 -0
  53. package/starters/starters/something-worth-remembering.json +40 -0
  54. package/starters/starters/standup-before-the-call.json +51 -0
  55. package/starters/starters/sunday-evening.json +45 -0
  56. package/starters/starters/tabata-four-minutes.json +73 -0
  57. package/starters/starters/the-bills-this-month.json +48 -0
  58. package/starters/starters/the-button-one-press-at-a-time.json +94 -0
  59. package/starters/starters/the-week-looked-at.json +46 -0
  60. package/starters/starters/the-weekly-shop.json +50 -0
  61. package/starters/starters/to-read.json +31 -0
  62. package/starters/starters/to-watch.json +31 -0
  63. package/starters/starters/washing-end-to-end.json +43 -0
  64. package/starters/starters/when-something-breaks.json +46 -0
  65. package/starters/starters/winding-down.json +58 -0
  66. package/starters/starters/work-until-you-drift.json +40 -0
package/src/skin.js ADDED
@@ -0,0 +1,14 @@
1
+ // A skin: how the rows of a page look, as data (schema/skin.v1.schema.json). Checked the way
2
+ // a routine is, by the same few rules of JSON Schema, so a skin somebody writes is refused in
3
+ // a sentence before anybody draws it.
4
+ import schema from "./schema-skin.js";
5
+ import { problemsAgainst, isObject } from "./check.js";
6
+
7
+ export const SKIN_SCHEMA = schema;
8
+
9
+ /** Every problem with a skin, one sentence each; an empty list when there is none. */
10
+ export function problemsWithSkin(skin) {
11
+ if (!isObject(skin)) return ["Send one skin as a JSON object."];
12
+ if (skin.skin !== 1) return ['The skin needs "skin": 1, the version of the shape it is written in.'];
13
+ return problemsAgainst(skin, schema).map((problem) => problem.replace(/^The routine/, "The skin"));
14
+ }
package/src/upgrade.js ADDED
@@ -0,0 +1,118 @@
1
+ // Form 1 of the written routine turned into form 2.
2
+ //
3
+ // The same table as the app's (WrittenForm.form2 in WrittenForm.swift), line for line, so a
4
+ // routine upgraded here and one upgraded on the phone are the same routine. The pairs in
5
+ // fixtures/upgrade/ are written by the app from every example it shows an assistant and
6
+ // every starter; test/upgrade.test.js asks this for the same form 2 from each form 1.
7
+ //
8
+ // Nothing is lost: every key form 1 has a place in form 2, and a key this does not know is
9
+ // carried across as it was.
10
+
11
+ import { isObject } from "./check.js";
12
+
13
+ export const NEWEST_FORM = 2;
14
+
15
+ /** Form 2 from form 1. A routine already in form 2 comes back as it is. */
16
+ export function upgrade(routine) {
17
+ if (!isObject(routine) || routine.routineRun >= NEWEST_FORM) return routine;
18
+ const out = { ...routine, routineRun: NEWEST_FORM };
19
+ rename(out, "about", "description");
20
+ const triggers = [];
21
+ if (Array.isArray(out.times)) {
22
+ for (const time of out.times) {
23
+ if (!isObject(time)) continue;
24
+ const when = {};
25
+ if ("at" in time) when.at = time.at;
26
+ if ("days" in time) when.weekdays = time.days;
27
+ triggers.push({ when });
28
+ }
29
+ }
30
+ delete out.times;
31
+ if (Array.isArray(out.triggers)) triggers.push(...out.triggers.map(triggerWritten));
32
+ if (triggers.length) out.triggers = triggers;
33
+ else delete out.triggers;
34
+ if (isObject(out.rounds)) {
35
+ out.rounds = { ...out.rounds };
36
+ rename(out.rounds, "times", "repeats");
37
+ }
38
+ if (Array.isArray(out.steps)) out.steps = out.steps.map(stepWritten);
39
+ return out;
40
+ }
41
+
42
+ function stepWritten(step) {
43
+ if (!isObject(step)) return step;
44
+ const out = { ...step };
45
+ rename(out, "about", "description");
46
+ rename(out, "times", "repeats");
47
+ const deadline = {};
48
+ // One time and what it means, rather than a key for each meaning: "by" and "startBy"
49
+ // become "at", and a start-by says so in "kind".
50
+ if ("by" in out || "startBy" in out) {
51
+ deadline.at = "by" in out ? out.by : out.startBy;
52
+ if (!("by" in out)) deadline.kind = "startBy";
53
+ delete out.by;
54
+ delete out.startBy;
55
+ }
56
+ for (const key of ["day", "late", "tellMe"]) {
57
+ if (key in out) {
58
+ deadline[key] = out[key];
59
+ delete out[key];
60
+ }
61
+ }
62
+ // "alarm" was a second way to say how the time reaches you. Said where "tellMe" is not,
63
+ // it becomes the one way.
64
+ if ("alarm" in out) {
65
+ const rings = out.alarm;
66
+ delete out.alarm;
67
+ if (typeof rings === "boolean" && !("tellMe" in deadline)) deadline.tellMe = rings ? "alarm" : "notification";
68
+ }
69
+ if ("warnHours" in out) {
70
+ deadline.warn = { hours: out.warnHours };
71
+ delete out.warnHours;
72
+ }
73
+ if ("byMinutesFromStart" in out) {
74
+ deadline.within = { minutes: out.byMinutesFromStart };
75
+ delete out.byMinutesFromStart;
76
+ }
77
+ const byDate = out.byDate;
78
+ const byValue = out.byValue;
79
+ delete out.byDate;
80
+ delete out.byValue;
81
+ if (byDate !== undefined || byValue !== undefined) deadline.from = byDate ?? byValue;
82
+ if (Object.keys(deadline).length) out.deadline = deadline;
83
+ if (Array.isArray(out.triggers)) out.triggers = out.triggers.map(triggerWritten);
84
+ return out;
85
+ }
86
+
87
+ function triggerWritten(trigger) {
88
+ if (!isObject(trigger)) return trigger;
89
+ const out = { ...trigger };
90
+ rename(out, "ask", "question");
91
+ if (isObject(out.when)) {
92
+ const when = { ...out.when };
93
+ rename(when, "days", "weekdays");
94
+ if ("every" in when) {
95
+ const count = when.every;
96
+ delete when.every;
97
+ let unit = "minutes";
98
+ if ("unit" in when) {
99
+ if (typeof when.unit === "string") unit = when.unit;
100
+ delete when.unit;
101
+ }
102
+ when.every = { [unit]: count };
103
+ }
104
+ if ("from" in when && "until" in when) {
105
+ when.between = [when.from, when.until];
106
+ delete when.from;
107
+ delete when.until;
108
+ }
109
+ out.when = when;
110
+ }
111
+ return out;
112
+ }
113
+
114
+ function rename(object, from, to) {
115
+ if (!(from in object)) return;
116
+ object[to] = object[from];
117
+ delete object[from];
118
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+
5
+ ],
6
+ "firstShelf" : true,
7
+ "group" : "onCall",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 6,
10
+ "order" : 6,
11
+ "release" : 5,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "a-practice-page",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bZIxb9swEIX_yoGzoKGjt4ydUqQGOhQZKOpssaJ4xJGsYAT-73mkEdROA2gQKb277727N-MkSFVzMMnH1Qxm5uzUp-Il4vK4C20-1sJ5oChl8fFMyjaM9L1QLpIy2TiTzSteCpWFKbMTXOXCaegXu72Q7SpK9oyzD9C_fJwhVPV_mXxsv9VIcmo6ryR7HMEU7caAeaKk1hXvuOvwQaUWH_mlgvXbYFrLbA6_3z65-KFcGEjAz_Sn5kK7rEwXqQdyC7sVZYhVRcEyCVBOjSexOo6FTqIE_UcQIx1hquu692Yx1m1i7RH1s1tsjBzIFwr4h2eYa06KL6FZgfmZ9gWJnbzybK7DZ-ZjY8WzL6zc6jyGPdJzvA_133SShb8uWmxKHDPVWHygLBtPMl9wnSlbjwlJQ0KJGRlmBIdliODZ7kB_YnZAgCdtEABqLb_gfcS5Rd3x21ZwCLnnolLsI4kv97k8uTXKHng-N89ftmEKwO37529F4Zz_WzDkZRXxqmz3DX6pL9xVMJrbsFpm2ASsRA3zbazm-oplumyTBEgm0I-TBZK5vgM"
18
+ },
19
+ "colour" : "pink",
20
+ "description" : "Two minutes, nothing real. It stops and asks at the second step, the way a real page will. Real pages arrive in a run of their own.",
21
+ "name" : "A practice page",
22
+ "routineRun" : 2,
23
+ "steps" : [
24
+ {
25
+ "description" : "Pretend this just woke you: checkout errors above five percent for ten minutes. The check and the number, not the channel it landed in.",
26
+ "title" : "Read what fired"
27
+ },
28
+ {
29
+ "description" : "This is where it stops and asks. On a real page, nothing past here happens until somebody has said so.",
30
+ "readiness" : "confirm",
31
+ "title" : "Say whether it is real"
32
+ },
33
+ {
34
+ "description" : "On a real page this is what tells the rota somebody has it.",
35
+ "title" : "Acknowledge it"
36
+ },
37
+ {
38
+ "description" : "One line. It is the note a real page will start from.",
39
+ "title" : "Write the first thing you would check"
40
+ }
41
+ ],
42
+ "symbol" : "bell.badge"
43
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "onCall",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 3,
10
+ "order" : 3,
11
+ "release" : 1,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "after-it-is-fixed",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bZGxbsMwDER_hdBseOiYLWOnAG2ADkUH2qItwbJoSFQcI8i_l3JRFGiyiSLFe3e6mZ4Dl2QOZilpCWQaE3EmrY-DUAIv4DMM_kpWW4mL-EhvJZrDS2MyXShhOMop9vpEUiG9FFqyOXzejKXcJ7-IZx03p0iQKQrpbAuvQ10tOFEGcYmogY0LOLwQyMqwJO4CzblVVfESKtGHQ4Eu8UTm3vxff4wWHK8QOI6Av-xZMAnZFs717YhLdSNONZzXuZWTuOpOiwcl4WAr1BOxs25wGAaoAWwd2w0CKXoGDQhQUf4akcg-2qhmJXmySqKl9RYiSwWanpmD3lE_NYAQy9xRqifrh4GSJroHmJ3itvDOM_14qwo9RsBeCoawwcg72ayZP-CsXNTsnn6PZXSyh8ccKZn7l37qNnccdFroKu2MY_TDpipjwJzN_Rs"
18
+ },
19
+ "colour" : "purple",
20
+ "name" : "After it is fixed",
21
+ "routineRun" : 2,
22
+ "severalAtOnce" : true,
23
+ "steps" : [
24
+ {
25
+ "description" : "One sentence. If it takes three, you have two problems.",
26
+ "title" : "What broke"
27
+ },
28
+ {
29
+ "description" : "And how long after it started. That gap is the thing worth fixing.",
30
+ "title" : "What told you"
31
+ },
32
+ {
33
+ "description" : "The half everybody leaves out and everybody needs.",
34
+ "title" : "What you tried that did not work"
35
+ },
36
+ {
37
+ "description" : "A check, a number, a different threshold. Something you can actually go and make.",
38
+ "title" : "What would have caught it sooner"
39
+ }
40
+ ],
41
+ "symbol" : "text.magnifyingglass"
42
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+
5
+ ],
6
+ "firstShelf" : true,
7
+ "group" : "onCall",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 2,
10
+ "order" : 2,
11
+ "release" : 1,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "handing-the-pager-over",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bVHBSsRADP2VMOfSg8e9iRcF8aCCB_EwbbNt3GlSJmnXsuy_m7YqyyIMTCZ5eS95cwq1JBlz2AXJkVsMReDYo7_vIzfELViHMMQWM8iE2etZRiPG55HD7qYIajho2L2fQoNaZxqMxCvhges0_jEIo3oQDfb0hc2S6xXThFrCayeKEDNeIWvpEapYH0pXNbK0jPVIanDciPJKRAra0d7Cubie4Y2sczA69SwjtGJgUgD7_Tk6zypDfhRkQL7UeYnzJrPQG6W0Iv7RuAWlhFyj01bSzHBgOSrEym1amiODR27gb13Rl75QenK_HTX7Jm7WMucPYbOqZYzuIqp77J_FvnV_0Xy3ZRbnZujihL5OOH_4t8x9JckRMWc5lgn3Vm5hprZzzDc"
18
+ },
19
+ "colour" : "orange",
20
+ "name" : "Handing the pager over",
21
+ "routineRun" : 2,
22
+ "steps" : [
23
+ {
24
+ "description" : "Including the ones that fixed themselves. Those are the ones that come back.",
25
+ "title" : "List what fired this shift"
26
+ },
27
+ {
28
+ "description" : "With where you got to, not just that it is open.",
29
+ "title" : "Say what is still open"
30
+ },
31
+ {
32
+ "description" : "A silence nobody knows about is an outage nobody sees.",
33
+ "title" : "Name anything you silenced"
34
+ },
35
+ {
36
+ "readiness" : "confirm",
37
+ "title" : "Confirm they have it"
38
+ }
39
+ ],
40
+ "symbol" : "arrow.left.arrow.right"
41
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Notifications"
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "onCall",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 4,
10
+ "order" : 4,
11
+ "release" : 2,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "putting-something-live",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bVJNb9swDP0rhM9GsO3YnbKddtrQFcih6IGRaUuILBkSFTco8t_36CJYke1kmaL4vvjWuRxzK91DNxWR1PXdINWVsGjICdUfWknDLKVSEXaeLrnRGtQTk-MyfKUqSjkJaaaVT7I1hJHUCy3eLtYQIx2FRnZCQ17TDiiJZ8H4X001pIlqnkW9nWI4C-5LbriQxwYSX_quylkKx73-TA7vtDRBUWWp3cPz2x3nQwmqkoA55iI9pazEo0rZ0d4-K3hXsokXmgovnmLOpwpo0A8KGZVm4aSmaciQwmqcNWg00r_5Qitqm1R5XcRtnc5zmqS79vd8ntbbZaWQ6N2TBCco1O0vJBcGAd5mrKK9tmpj60fY717cCcCZJFaxt9WHZYFpGybiGeBYhSMINY2hzB85Sxqg7T_s9k4bxwhJrM7v6MlbVCG2AromnWaGnQVoYNwWMAjxPWYuQlUt3i1tLElOG0HHiRoUAtEUzCE1FRD7_Okvo4PBmd0IiSyuW9e_FL9l2zeAjRC4o4ORgnzL1Sp2jsJnWx_M8xxHwvoQQ_KUrYp0YktQd5di2OYMyKAnsCgZUlA7sjt11xds2GU-5ojmm9PH_Npd_wA"
18
+ },
19
+ "colour" : "green",
20
+ "description" : "Its timers reach you with a card; set one to wake you if the phone will be face down.",
21
+ "name" : "Putting something live",
22
+ "routineRun" : 2,
23
+ "severalAtOnce" : true,
24
+ "steps" : [
25
+ {
26
+ "description" : "Written before, not after. Afterwards every graph looks like it was meant to do that.",
27
+ "title" : "Say what you expect to change"
28
+ },
29
+ {
30
+ "description" : "Two changes in one window is one incident with two suspects.",
31
+ "title" : "Check who else is shipping"
32
+ },
33
+ {
34
+ "readiness" : "confirm",
35
+ "title" : "Send it"
36
+ },
37
+ {
38
+ "description" : "Actually watch. The failures that matter show up while you are still the person who can undo it.",
39
+ "minutes" : 10,
40
+ "title" : "Watch it for ten minutes"
41
+ },
42
+ {
43
+ "description" : "Both are fine. What is not fine is leaving it half out and going to lunch.",
44
+ "title" : "Say it is done, or roll it back"
45
+ }
46
+ ],
47
+ "symbol" : "shippingbox"
48
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "onCall",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 5,
10
+ "order" : 5,
11
+ "release" : 2,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "the-alert-that-keeps-coming-back",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bZIxb9wwDIX_CqHZ8JDxtiJdsiRAmy3JIEu8M3GSeKCoukZw_72UfUCSIpssk-99j9S7C5y4iTu4FVPixQ2u-Iz2_Twj-ISioLNXOCNeKgTOVE4w-XC2SuGmVPBXK-5wN7iKf1B8-qFPJZiCSkO7VOtzh5d3F7EGoYsSl5t8aXlCAapmYWZyahmLjvDIE8cVLkIspFSxwqsjhSOJHT0k1lc3GoCSps56z60ozLxA9mUFpYxd04QzF53ddfjf_uG4e5a6fBBUS24HQexBTSrWYU9_KzjSX2uJQNtNYd1F-pQ-4_z2Kyy9beUGkQF9mDeob0CeN7vILHWTNsHVRtFVE0yoaniGUHZ_W5XOwAUHMyBT7WC8LeeWpa-HvtD8xEARD-CbcvZqrYLaugQLREyo33E9WjjeXfu2E59GeNA-FxttvzG4Iwt-rrAYWL9Y8_bbeLdRhJmrbd1e2fXNXsaaJ05W5UV4GVXIl1PCGX0c78aQOJwX2727_gM"
18
+ },
19
+ "colour" : "yellow",
20
+ "name" : "The alert that keeps coming back",
21
+ "routineRun" : 2,
22
+ "severalAtOnce" : true,
23
+ "steps" : [
24
+ {
25
+ "description" : "The number is the argument. Nobody prioritises \"it fires a lot\".",
26
+ "title" : "Count how many times this month"
27
+ },
28
+ {
29
+ "description" : "If the answer is the same three commands, that is the fix and it is not the alert.",
30
+ "title" : "Say what you do each time"
31
+ },
32
+ {
33
+ "description" : "Three doors and they are all better than the fourth one, which is to keep answering it.",
34
+ "title" : "Decide: automate, retune, or delete"
35
+ },
36
+ {
37
+ "description" : "Not on the backlog. It comes back before the backlog does.",
38
+ "title" : "Do the one you chose now"
39
+ }
40
+ ],
41
+ "symbol" : "arrow.trianglehead.2.clockwise"
42
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Notifications",
5
+ "A Shortcuts automation on your paging app's notification"
6
+ ],
7
+ "firstShelf" : true,
8
+ "group" : "onCall",
9
+ "licence" : "CC-BY-4.0",
10
+ "number" : 1,
11
+ "order" : 1,
12
+ "release" : 1,
13
+ "shortcuts" : [
14
+
15
+ ],
16
+ "slug" : "when-something-pages-you",
17
+ "startsByItself" : true,
18
+ "web" : "https://routinerun.com/r?w=1&d=bZNBaxwxDIX_iphLL9sJ5NBCckqhob00kC3kUHrQejQ7Zj32YMs7WUL-e5-cbRtCYFk8tiw9fXp-6lwKqebuqssydJtukOKyX9SniL2tctZCuxN5LRJGWieJdMIFWnjv4554WT4Uikn96B3bNco1FmLaTimrq7jOVdP8crZ6negbxyEIfT1KVPIRuTdI7N1EUWQo5O-2dPn5mhDflp-sIhXTglhTMyFDTzlV9VFQr3dpvpgkLBcpfnQcApUprYXw19N3SFA_Sy6UhVHFsjUhTI7zcE1FFMWENNHKB2kBfiSdhJbJDlaPlDuhkZ3QkNbYA1XkWcDowZCUNItOBgRcpFgGRJwF3lewvNx0RY6SOdzoXXS4qbkKNlWW0l39enqD_ieKc5AMNqDbtDi0HSUYgwAAMgBeTw8TA0s5R4g7bAiHAIrtI4eKtpB1sWg12bOPVaU0Reo1WA_3wucb7LSC34lGb4Z43rzVdVdRPdVhAx5jygatutY5x1ND0GPAsEpqAAu6QBBjnQVDCQPa2aXBZmjzOPriFdqKB5PWQ5F89Fjv0fWuFi_ZVGNyA1AW6IZlI9TN3X_9Wz6ZNXE9Gx3fJh3eUb9NrUaUR6UFjoDF8LOtnJTpEM01Nsx_El-g_S104ywkyLAXnLxT4Edam5mDnIUw7Stkmw3tc8WjmGhu4DDOVlo9asEaxV5IM2cGE-JRJa8waHmt4KGdmQdfBmbxhv1g2Sc8R4mYwTvKviRzvM0ilhXFetp6VRucvbMmDkZ7XerWP7a3mXJ7cBaETM-_YdrTvEsBITsJod8xcHTPfwA"
19
+ },
20
+ "colour" : "red",
21
+ "description" : "Starts by itself when your paging app's notification runs a Shortcuts automation with Handle Event in it, which needs iOS 27; on iOS 26 you start it by hand. routinerun.com/help/on-call shows how. Its timers reach you with a card; set one to wake you if the phone will be face down.",
22
+ "name" : "When something pages you",
23
+ "routineRun" : 2,
24
+ "severalAtOnce" : true,
25
+ "steps" : [
26
+ {
27
+ "description" : "The alert, not the channel it landed in. What is the check, and what value tripped it.",
28
+ "minutes" : 2,
29
+ "title" : "Read what actually fired"
30
+ },
31
+ {
32
+ "description" : "Out loud, before touching anything. Half of these are a threshold nobody has revisited since the service got busier.",
33
+ "readiness" : "confirm",
34
+ "title" : "Say whether it is real"
35
+ },
36
+ {
37
+ "description" : "So the next person on the rota knows somebody has it.",
38
+ "title" : "Acknowledge it"
39
+ },
40
+ {
41
+ "description" : "Now, while it is a guess. It is worth more than the tidy version you write afterwards.",
42
+ "title" : "Write down what you think is happening"
43
+ },
44
+ {
45
+ "description" : "Both are answers. Sitting on it is not.",
46
+ "title" : "Fix it, or hand it on"
47
+ }
48
+ ],
49
+ "symbol" : "bell.badge"
50
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Notifications"
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "making",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 5,
10
+ "order" : 5,
11
+ "release" : 3,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "a-chapter-at-a-time",
16
+ "startsByItself" : true,
17
+ "web" : "https://routinerun.com/r?w=1&d=XZBPa8MwDMW_itCuZrCyweitlJ52GOSyw9hBidXYNLGC_7QLId99cgZj28lGetL76S3YySAl4h7vDrvnx6cTGi2NnBopwR568gH3C9I5c6wfS3PC_cO6GrScuuin7EUleKxD0FJ3gewYAn9mULGBkSmVyBbOUcatp2WYpQB1udAwzBCZ7L0aBxpZVx2gczSpIVAGguy1ajBKyT5wU9RtZzBlnpTkffnH8cI8gde5pKNXGgpDpybqf_xeaoCCVQ6fIGWZlJl96KuPq28Fc3RlyAJnr0qqGVS67PNQ8d4cR950vWSV4WqWn2ajp2yFv1SnIKV3declyM2AD2o4MynNzbGGErdkWpEL3Cp6mHW72N--r4Fh0ASAWo1Cb8T1Q3OYx1YGbddZXL8A"
18
+ },
19
+ "colour" : "#A2845E",
20
+ "comesRoundAgain" : {
21
+ "after" : {
22
+ "days" : 1
23
+ }
24
+ },
25
+ "description" : "Comes back the next day, measured from the day you actually read.",
26
+ "name" : "A chapter at a time",
27
+ "routineRun" : 2,
28
+ "steps" : [
29
+ {
30
+ "description" : "Keep it as a value called Chapter, and this stops being a thing you have to find again.",
31
+ "title" : "Where you got to"
32
+ },
33
+ {
34
+ "title" : "Read"
35
+ },
36
+ {
37
+ "description" : "Enough to know, in a year, whether the book was any good.",
38
+ "title" : "One line about it"
39
+ }
40
+ ],
41
+ "symbol" : "book"
42
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Health",
5
+ "Notifications"
6
+ ],
7
+ "firstShelf" : true,
8
+ "group" : "body",
9
+ "licence" : "CC-BY-4.0",
10
+ "number" : 5,
11
+ "order" : 5,
12
+ "release" : 3,
13
+ "shortcuts" : [
14
+
15
+ ],
16
+ "slug" : "a-glass-of-water",
17
+ "startsByItself" : true,
18
+ "web" : "https://routinerun.com/r?w=1&d=XY_BasMwDIZfRXjXMLKy7pDboJSex2CH0YOXqrGpbRVJIYSQd5-S7DB6M7-k7_88uZYS9ewa9_T2etgdj65yF5SW410jFcu_OCoKoG8DdMmLgBKc0CcNFQwhWuzlZmlAuEYWBY0ZISpcCOXZeMVnNND73zldYfCKbBOmXmPBj96KdpUTxbu45nt6UPgMWIwfBYZNxuD_JITWciX1CWxJKOMQkBHIcrahLzDaLyFjJh4Xp8VtbQorxDWT85n6ola329e2kaiz92Y6z-fKadS0_OPAsdxMwS2hjPmHkqUXprtdKceuQ97YJlFW8kJ9qZu6NlL1mO-3_Dz_Ag"
19
+ },
20
+ "colour" : "#64D2FF",
21
+ "description" : "Writes each glass to Health, which asks the first time it does.",
22
+ "name" : "A glass of water",
23
+ "routineRun" : 2,
24
+ "steps" : [
25
+ {
26
+ "description" : "Then this writes it to Health, so the total is somewhere other than your memory.",
27
+ "does" : [
28
+ {
29
+ "health" : {
30
+ "amount" : "250",
31
+ "log" : "water"
32
+ }
33
+ }
34
+ ],
35
+ "title" : "Drink it"
36
+ }
37
+ ],
38
+ "symbol" : "drop",
39
+ "triggers" : [
40
+ {
41
+ "when" : {
42
+ "at" : "10:00"
43
+ }
44
+ },
45
+ {
46
+ "when" : {
47
+ "at" : "15:00"
48
+ }
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Notifications"
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "work",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 4,
10
+ "order" : 4,
11
+ "release" : 2,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "a-meeting-you-called",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bVJNb9swDP0rhM5BMHS37BTstMsGtAN2GHZQpJdYqCx6olzDKPLfRypNu6252SIf3wf57AJnnqvbOa6-nOA2LkJCTVNLXPT5SxNqaUQVqvBhoJVnWlIbyFPwNX4iQSMuoMa0-Ef0hnSkNoCmwQpLypkOoKMPoMhL2SpL8SN0_J5GoKVy6rDgc0bUauVZH3E_q4S7jRM8ofq8b99KUFSrM_SxYRK3-_n8n-K9qLTfM8T-r1JXCHHVj8KUCqW2pTdq61HC7iIZ-lpog2-EEsUwvrB6qteimWipZXPxo6aG7jgiJDFes1OgZs6bdwJLvEwufOC4Gq5CyfPaEWJJDvC1q_w-sGiQ4CmDThq1sagSyN8CPg8Ij2QprX0VfWLwJloW2KQbOr7ysrFRZs6mpvJ0sVEBGlOZlUT3duSKLd3DR4skvbZX5tHisu8bmTxobrSYTW24ODNjekSXTF4I3O7jhzeQLvy21gc9F4p-tbW9ZvyS31I1jn5YeoC2vpgkzGIt7wT9syPfFTIpUrpUd_6ld7WOB84KmPTodcSdO_8B"
18
+ },
19
+ "colour" : "orange",
20
+ "description" : "Its timers reach you with a card; set one to wake you if the phone will be face down.",
21
+ "name" : "A meeting you called",
22
+ "routineRun" : 2,
23
+ "severalAtOnce" : true,
24
+ "steps" : [
25
+ {
26
+ "description" : "As a question with a yes or a no in it. A meeting without one is a meeting that ends in another meeting.",
27
+ "title" : "Write the decision you need"
28
+ },
29
+ {
30
+ "description" : "And that nobody there only needs to hear it. Those people get the notes.",
31
+ "title" : "Check everyone there can answer it"
32
+ },
33
+ {
34
+ "description" : "Now, not in the invite three minutes before. Reading it in the room is the meeting.",
35
+ "title" : "Send what they need to read"
36
+ },
37
+ {
38
+ "minutes" : 30,
39
+ "title" : "Run it"
40
+ },
41
+ {
42
+ "description" : "Same day. A decision nobody wrote down was a discussion.",
43
+ "title" : "Send the decision and who owns what"
44
+ }
45
+ ],
46
+ "symbol" : "person.2"
47
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+ "Reminders"
5
+ ],
6
+ "firstShelf" : true,
7
+ "group" : "making",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 3,
10
+ "order" : 3,
11
+ "release" : 3,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "a-post-idea-to-published",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=bZJBb9swDIX_iqCzF2Q7bbll3aWXrtgG7DDsQFt0LFQWPUquYQT573tSitYbAvhg0yTfx0eebSdBZrUHK0rxxLaxkUbG99FMknJjvGMyWcw0t8GngR1SVObsI3-boz18aGziZ1YKx_w1dijNOjOCmadkD7_O1nHq1E_ZC9LtfW_yQNkENDA-GTeH0CDEVe8tQtEhik885W83ME2MjFFGjrkg9R45QNkBKfscCvZP9ZlrgaD_VaR2pRaZ9tKcX1O_KPW5_G3JhRWKIdTChdbSvbxydLXk3xEeBGDxVJKc7MwdgNCje0JgFFVZXuBL1JmBQm8Wj-YtoNpnL3MqxMrkgJdg0tlGyZ-5Fy1c-0-H_R6yr6DfA_OEecB6g-a-jheZNKyYAfTFMBXK77qAKEi3Bt3NuaL1XmHmREonpWm40fjHi4llk2ZghTM-DyZKdagM3Jhl8N1Q9JdhLVZSevp_OJxYhNi4YXi83tLteR7nupQEV5eqCrdZy9FEs-JWzchwGftK1x1hVohhEwwXJJuTGBy1KxQlVk9QecStsBarPUTef9y_0RxjWqoAG-UpePTBZs8-pkw46Iu9XH5v_Ntse1tjS1Jax1YCstKfmZR3uIPdxLHzwV7-Ag"
18
+ },
19
+ "colour" : "orange",
20
+ "name" : "A post, idea to published",
21
+ "routineRun" : 2,
22
+ "severalAtOnce" : true,
23
+ "steps" : [
24
+ {
25
+ "description" : "If that line is dull, the post is dull, and this is the cheapest moment to find out.",
26
+ "title" : "Write the one line it is about"
27
+ },
28
+ {
29
+ "title" : "Draft it badly, all the way to the end"
30
+ },
31
+ {
32
+ "description" : "Nothing to do. Come back tomorrow and the bad half will be obvious.",
33
+ "readiness" : {
34
+ "notBefore" : "09:00"
35
+ },
36
+ "title" : "Sleep on it"
37
+ },
38
+ {
39
+ "description" : "It is nearly always throat-clearing.",
40
+ "title" : "Cut the first paragraph"
41
+ },
42
+ {
43
+ "description" : "The one step here with no way back, which is why it asks.",
44
+ "readiness" : "confirm",
45
+ "title" : "Publish it"
46
+ },
47
+ {
48
+ "description" : "Put it somewhere other than your memory, so the thread does not go cold.",
49
+ "does" : [
50
+ {
51
+ "reminder" : {
52
+ "in" : 180,
53
+ "title" : "Answer the replies to {instance}"
54
+ }
55
+ }
56
+ ],
57
+ "title" : "Come back to the replies"
58
+ }
59
+ ],
60
+ "symbol" : "square.and.pencil"
61
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "catalogue" : {
3
+ "dependsOn" : [
4
+
5
+ ],
6
+ "firstShelf" : false,
7
+ "group" : "making",
8
+ "licence" : "CC-BY-4.0",
9
+ "number" : 4,
10
+ "order" : 4,
11
+ "release" : 3,
12
+ "shortcuts" : [
13
+
14
+ ],
15
+ "slug" : "a-shoot-shot-by-shot",
16
+ "startsByItself" : false,
17
+ "web" : "https://routinerun.com/r?w=1&d=hVJNixsxDP0rwpdehhx6zC3bHhcK7cIelh40Y00s4rGCrdkwLPnvlZwN7JZCYcBjWX56H34Lk2RZa9iHM5dTGELBhWx3gJZEdPBFYdz6asdVVuVCP9cS9l-H0OiVKuaD_iiTXdO6khWVzi3sX95CpDZVPiuLtYcH0QQjqlJlagOMvp-wxraDp8QN7NNEICXbPAOxHap1lOIcCKIUgox2f-dUCKNRaTbKVJSZ62JVZc0u4FvCeiTAEmGWuqCG6_A3oefKSkA4JXBkLoAN8Db6kjgTbLICVrKSAXE5QqJKzpY2I5TFKir2Rdy-tLtlPtN4uxSyX8eINHEkAyWrVuvYQGbvWD7C2IV3f3cflBxi7EeeQOtoFyw3OfeWRz4m7XObrCUOXc5cLUrHnRJNp0_9v5wo8L888SA9CLccLa3ptJ538F1cPGvXDxW7CkunuNAkC92zizzP1uIgI-mFqHSUCObQzRjI0tQJ_j_DB5vuQ1d7CRfukJblLZVM-EqfTUCzspPobypcf9tT3JZRsoObFxXD9Q8"
18
+ },
19
+ "colour" : "pink",
20
+ "name" : "A shoot, shot by shot",
21
+ "routineRun" : 2,
22
+ "severalAtOnce" : true,
23
+ "steps" : [
24
+ {
25
+ "description" : "Both batteries, both cards. This is the only step that cannot be done later.",
26
+ "readiness" : "confirm",
27
+ "title" : "Charge and format"
28
+ },
29
+ {
30
+ "description" : "Write each one in as a step while you are standing here. They belong to today's shoot, and at the end you decide whether any of them belong to the routine.",
31
+ "title" : "Add the shots you want"
32
+ },
33
+ {
34
+ "title" : "Light and sound, one frame to check"
35
+ },
36
+ {
37
+ "title" : "Shoot it"
38
+ },
39
+ {
40
+ "description" : "Once is not a backup. Doing it here rather than at home is the difference between a bad day and a lost one.",
41
+ "readiness" : "confirm",
42
+ "title" : "Back it up twice before you leave"
43
+ },
44
+ {
45
+ "title" : "Label the cards"
46
+ }
47
+ ],
48
+ "symbol" : "camera"
49
+ }