{"id":51121607,"url":"https://github.com/yerzhansa/codex-plugin-intervals-icu","last_synced_at":"2026-06-25T03:01:19.388Z","repository":{"id":352207991,"uuid":"1214274527","full_name":"yerzhansa/codex-plugin-intervals-icu","owner":"yerzhansa","description":"Codex plugin for creating structured Intervals.icu workouts from natural-language prompts","archived":false,"fork":false,"pushed_at":"2026-04-18T12:02:21.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T13:16:35.390Z","etag":null,"topics":["ai-coach","codex","codex-plugin","intervals-icu"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yerzhansa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-18T10:53:36.000Z","updated_at":"2026-04-18T12:20:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yerzhansa/codex-plugin-intervals-icu","commit_stats":null,"previous_names":["yerzhansa/codex-plugin-intervals-icu"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/yerzhansa/codex-plugin-intervals-icu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yerzhansa%2Fcodex-plugin-intervals-icu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yerzhansa%2Fcodex-plugin-intervals-icu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yerzhansa%2Fcodex-plugin-intervals-icu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yerzhansa%2Fcodex-plugin-intervals-icu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yerzhansa","download_url":"https://codeload.github.com/yerzhansa/codex-plugin-intervals-icu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yerzhansa%2Fcodex-plugin-intervals-icu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34757355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-coach","codex","codex-plugin","intervals-icu"],"created_at":"2026-06-25T03:01:18.606Z","updated_at":"2026-06-25T03:01:19.376Z","avatar_url":"https://github.com/yerzhansa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Plugin: Intervals.icu Workout\n\nA standalone Codex plugin repo for creating structured cycling workouts in [Intervals.icu](https://intervals.icu) from short natural-language prompts.\n\nIt is designed for prompts like:\n\n- `Create 3x15 sweet spot FTP 200 today`\n- `Schedule 5x4 VO2max FTP 260 tomorrow`\n- `Preview a 90min endurance workout FTP 210`\n\n## What the plugin includes\n\n- A repo-scoped Codex marketplace example at `.agents/plugins/marketplace.json`\n- A local plugin at `plugins/intervals-icu-workout`\n- An MCP server that exposes preview + create tools\n- A Codex skill that nudges the model toward the right tool and prompt handling\n- Deterministic workout parsing, structuring, and Intervals.icu event creation\n\n## Install in Codex\n\nThis can mostly be automated, but not by `git clone` alone:\n\n- Git does not run repo setup code automatically after clone.\n- Codex Desktop currently installs local plugins from user-local paths under `~/plugins` and `~/.agents/plugins/marketplace.json`, not directly from an arbitrary cloned repo.\n\nSo the repo now provides a one-command installer for the user-local registration step.\n\nRecommended for new users on Codex Desktop:\n\n1. Clone this repo locally.\n2. Run:\n\n```bash\nnpm run install:codex\nnpm run setup\n```\n\nThese commands will:\n\n- symlink `plugins/intervals-icu-workout` into `~/plugins/intervals-icu-workout`\n- create or update `~/.agents/plugins/marketplace.json`\n- register the plugin under `Local Plugins`\n- prompt for `INTERVALS_API_KEY` and `INTERVALS_ATHLETE_ID`, then save them to local plugin config\n\n3. Fully restart Codex.\n4. Open `Plugins`.\n5. Choose the `Local Plugins` marketplace.\n6. Install `Intervals.icu Workout`.\n\nThe checked-in `.agents/plugins/marketplace.json` remains a repo example for development, but the installer writes the user-local marketplace that the current desktop app reliably picks up.\n\n## Credential setup\n\nRecommended order:\n\n1. `env vars manually`: Best for security. No secret goes into chat history, and you can keep credentials session-only or manage them with your shell / OS secret tools.\n2. `npm run setup`: Best compromise. It prompts in the terminal, avoids chat history, and saves local plugin config to `~/.codex/plugins/intervals-icu-workout/config.json` with `0600` permissions.\n3. `ask in chat`: Ask in chat if you want help, and Codex should tell you to run `npm run setup` or set environment variables manually.\n\n### Environment variables\n\nThis does **not** mean \"create a `.env` file in this repo\". The plugin does not read a repo `.env` file automatically.\n\nManual environment variables means:\n\n1. Open Terminal.\n2. Run:\n\n```bash\nexport INTERVALS_API_KEY=your-key\nexport INTERVALS_ATHLETE_ID=your-athlete-id\nopen -a Codex\n```\n\n3. Use Codex after it opens.\n\nIf Codex is already open, fully quit it first, then run those commands and reopen Codex.\n\nIf you want those variables available every time, add the same `export ...` lines to your shell profile such as `~/.zshrc`, open a new Terminal, and then start Codex from that Terminal.\n\n- `INTERVALS_API_KEY`\n- `INTERVALS_ATHLETE_ID`\n\nOptional environment variables:\n\n- `INTERVALS_BASE_URL` — defaults to `https://intervals.icu`\n\n### Guided setup\n\n```bash\nnpm run setup\n```\n\nEnvironment variables still override the saved config if you set both.\n\n### Ask in chat\n\nAsk in chat if you want help, but the plugin should direct you to `npm run setup` or tell you to set the variables in Terminal and reopen Codex. It should not ask you to paste secrets into chat.\n\n## Local smoke tests\n\nPreview without creating anything:\n\n```bash\nnpm run preview -- --request \"Create 3x15 sweet spot FTP 200 tomorrow\"\n```\n\nCreate the workout in Intervals.icu:\n\n```bash\nINTERVALS_API_KEY=your-key INTERVALS_ATHLETE_ID=your-athlete-id npm run create -- --request \"Create 3x15 sweet spot FTP 200 tomorrow\"\n```\n\nRun tests:\n\n```bash\nnpm test\n```\n\n## Supported first-pass prompt formats\n\nThe parser is intentionally narrow and deterministic in v0.1.0.\n\nSupported workout types:\n\n- sweet spot\n- tempo\n- threshold\n- VO2max\n- endurance\n- recovery\n\nSupported date phrases:\n\n- `YYYY-MM-DD`\n- `today`\n- `tomorrow`\n\nSupported structure examples:\n\n- `3x15 sweet spot FTP 200`\n- `4x8 threshold FTP 260 tomorrow`\n- `90min endurance FTP 210`\n- `45 min recovery FTP 190 today`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyerzhansa%2Fcodex-plugin-intervals-icu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyerzhansa%2Fcodex-plugin-intervals-icu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyerzhansa%2Fcodex-plugin-intervals-icu/lists"}