claude-coach 0.0.6 → 0.0.7
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.
- package/README.md +14 -9
- package/dist/viewer/lib/utils.js +2 -2
- package/package.json +1 -1
- package/templates/plan-viewer.html +21 -21
package/README.md
CHANGED
|
@@ -6,7 +6,9 @@ The output is a beautiful training plan app that allows you to add, edit, or mov
|
|
|
6
6
|
|
|
7
7
|
Workouts can be exported as simple calendar events (.ics), Zwift (.zwo), Garmin (.fit), or TrainerRoad/ERG (.mrc) workouts.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Examples
|
|
10
|
+
|
|
11
|
+
See example training plans at [felixrieseberg.github.io/claude-coach](https://felixrieseberg.github.io/claude-coach/#demos).
|
|
10
12
|
|
|
11
13
|
## Installation & Creating a training plan
|
|
12
14
|
|
|
@@ -18,8 +20,16 @@ Syncing all your Strava activities and creating a tailored training plan takes c
|
|
|
18
20
|
|
|
19
21
|
First, [download the latest skill from GitHub Releases](https://github.com/felixrieseberg/claude-coach/releases/latest/download/coach-skill.zip).
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
**Claude.ai:**
|
|
24
|
+
|
|
25
|
+
1. Open [Claude.ai Settings](https://claude.ai/settings/capabilities)
|
|
26
|
+
2. Enable "Code execution and file creation"
|
|
27
|
+
3. In the allowed domains list, add `*.strava.com`
|
|
28
|
+
4. Scroll down to "Skills" and click "Add skill", then upload the `coach-skill.zip` file
|
|
29
|
+
|
|
30
|
+
**Claude Code:**
|
|
31
|
+
|
|
32
|
+
1. Run `/install-skill` and provide the path to the `coach-skill.zip` file you downloaded.
|
|
23
33
|
|
|
24
34
|
### Creating a plan
|
|
25
35
|
|
|
@@ -67,14 +77,9 @@ Don't use Strava, or prefer not to connect it? No problem. You can tell Claude a
|
|
|
67
77
|
|
|
68
78
|
In the next step, Claude will ask you about yourself, the event you're training for, and any constraints it should keep in mind. Examples of information you'd tell any coach:
|
|
69
79
|
|
|
70
|
-
**Training History:**
|
|
71
|
-
|
|
72
80
|
- Years in the sport
|
|
73
81
|
- Previous races completed (distances and approximate times)
|
|
74
82
|
- Any recent breaks from training
|
|
75
|
-
|
|
76
|
-
**Constraints & Considerations:**
|
|
77
|
-
|
|
78
83
|
- Injuries or health issues
|
|
79
84
|
- Schedule limitations (work travel, family, etc.)
|
|
80
85
|
- Equipment access (pool availability, trainer, etc.)
|
|
@@ -83,4 +88,4 @@ Claude will use this information to create a plan tailored to your current fitne
|
|
|
83
88
|
|
|
84
89
|
# About
|
|
85
90
|
|
|
86
|
-
License: MIT.
|
|
91
|
+
Claude Coach is an independent, open-source project and is not made by, endorsed by, or affiliated with Anthropic, PBC. "Claude" is a trademark of Anthropic. This tool is a skill/plugin that works with Claude products but is developed and maintained independently. License: MIT.
|
package/dist/viewer/lib/utils.js
CHANGED
|
@@ -32,7 +32,7 @@ export function formatDistance(meters, sport, settings) {
|
|
|
32
32
|
return `${Math.round(meters)}m`;
|
|
33
33
|
}
|
|
34
34
|
export function formatDate(dateStr) {
|
|
35
|
-
const date =
|
|
35
|
+
const date = parseDate(dateStr);
|
|
36
36
|
return date.toLocaleDateString("en-US", {
|
|
37
37
|
weekday: "long",
|
|
38
38
|
month: "short",
|
|
@@ -40,7 +40,7 @@ export function formatDate(dateStr) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
export function formatEventDate(dateStr) {
|
|
43
|
-
const date =
|
|
43
|
+
const date = parseDate(dateStr);
|
|
44
44
|
return date.toLocaleDateString("en-US", {
|
|
45
45
|
weekday: "long",
|
|
46
46
|
month: "long",
|