From dcc8727e8c28a692ba6f1cbabe0582bf67cc9cde Mon Sep 17 00:00:00 2001 From: eandreeva-twr Date: Thu, 20 Aug 2026 15:18:29 +0200 Subject: [PATCH 1/2] Point the skill fetch at the renamed adapty-integration directory The skills repo renamed its SDK skill directory from `skills/adapty-sdk-integration` to `skills/adapty-integration`, so RAW_BASE has to follow or every integrate/migrate run 404s. The repo name itself is unchanged, so the rest of the URL stays as-is. The other five edits are comments naming the skill. MERGE ORDER: RAW_BASE points at `main` of the skills repo, so this must land after adaptyteam/adapty-sdk-integration-skill#35 merges, not before. --- src/lib/agent/actions/integrate.ts | 2 +- src/lib/agent/actions/migrate.ts | 4 ++-- src/lib/agent/skill-source.ts | 2 +- src/lib/agent/skills-install.ts | 2 +- src/lib/agent/telemetry.ts | 2 +- src/lib/project/scan.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/agent/actions/integrate.ts b/src/lib/agent/actions/integrate.ts index e4d19eb..947429d 100644 --- a/src/lib/agent/actions/integrate.ts +++ b/src/lib/agent/actions/integrate.ts @@ -22,7 +22,7 @@ export const integrateAction: AgentAction = { 3. Implement the SDK following the platform playbook below, stage by stage, fetching the listed docs pages before writing each stage's code. 4. If a build command exists for this project, build to verify it compiles. Fix what you broke; do not chase pre-existing failures. ---- PLATFORM PLAYBOOK (from the adapty-sdk-integration skill) --- +--- PLATFORM PLAYBOOK (from the adapty-integration skill) --- ${platformReference}` }, diff --git a/src/lib/agent/actions/migrate.ts b/src/lib/agent/actions/migrate.ts index 249c403..d53f814 100644 --- a/src/lib/agent/actions/migrate.ts +++ b/src/lib/agent/actions/migrate.ts @@ -55,11 +55,11 @@ ${ : '' }\n` } ---- MIGRATION PLAYBOOK (from the adapty-sdk-integration skill) --- +--- MIGRATION PLAYBOOK (from the adapty-integration skill) --- ${migrationReference || '(not available - state this in ADAPTY_SETUP.md and map conservatively: create nothing you cannot verify.)'} ---- PLATFORM PLAYBOOK (from the adapty-sdk-integration skill) --- +--- PLATFORM PLAYBOOK (from the adapty-integration skill) --- ${platformReference}` }, diff --git a/src/lib/agent/skill-source.ts b/src/lib/agent/skill-source.ts index 8d25e20..72fc105 100644 --- a/src/lib/agent/skill-source.ts +++ b/src/lib/agent/skill-source.ts @@ -11,7 +11,7 @@ import type {Platform} from '../project/scan.js' * edits. */ const RAW_BASE = - 'https://raw.githubusercontent.com/adaptyteam/adapty-sdk-integration-skill/main/skills/adapty-sdk-integration' + 'https://raw.githubusercontent.com/adaptyteam/adapty-sdk-integration-skill/main/skills/adapty-integration' function stripFrontmatter(md: string): string { const lines = md.split('\n') diff --git a/src/lib/agent/skills-install.ts b/src/lib/agent/skills-install.ts index 4df1ca2..8aef747 100644 --- a/src/lib/agent/skills-install.ts +++ b/src/lib/agent/skills-install.ts @@ -1,7 +1,7 @@ import {spawn} from 'node:child_process' /** - * Install the adapty-sdk-integration skill into the user's coding agents + * Install the adapty-integration skill into the user's coding agents * (Claude Code, Codex, Cursor, ...) via the `skills` CLI, so the agent knows * Adapty in every future session - not just this run. Same source repo the * integrate prompt is built from. diff --git a/src/lib/agent/telemetry.ts b/src/lib/agent/telemetry.ts index 0a49867..c1d32b5 100644 --- a/src/lib/agent/telemetry.ts +++ b/src/lib/agent/telemetry.ts @@ -1,6 +1,6 @@ /** * One event per agent-driven command run (integrate, migrate, ...), sent to - * the same feedback endpoint the adapty-sdk-integration skill uses (Slack + + * the same feedback endpoint the adapty-integration skill uses (Slack + * Airtable behind it), so CLI and skill sessions land in one funnel. * Fire-and-forget: never blocks the command for more than 3s, never surfaces * an error. diff --git a/src/lib/project/scan.ts b/src/lib/project/scan.ts index 85259bc..55fa2d2 100644 --- a/src/lib/project/scan.ts +++ b/src/lib/project/scan.ts @@ -45,7 +45,7 @@ async function hasKmpModule(dir: string, topLevel: string[]): Promise { /** * Detect the mobile framework of the project at `dir`. Signals mirror the - * adapty-sdk-integration skill's Phase 1 table. Only the top level is + * adapty-integration skill's Phase 1 table. Only the top level is * inspected - monorepos should pass the app directory explicitly. */ export async function scanProject(dir: string): Promise { From 3e341b5dc5d4ac8aa6e6fc35610ddf9060d2d465 Mon Sep 17 00:00:00 2001 From: eandreeva-twr Date: Thu, 20 Aug 2026 15:31:32 +0200 Subject: [PATCH 2/2] Point the skill fetch at adaptyteam/adapty-skills MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The skills repo is being renamed. RAW_BASE matters most here: raw.githubusercontent does NOT follow GitHub repo renames, so this is a hard break rather than a redirect — integrate/migrate 404 on every run until this lands. SKILL_SOURCE and the manual-install hint go through the skills CLI and git, which do follow the redirect, but are updated for consistency. --- src/lib/agent/run.ts | 2 +- src/lib/agent/skill-source.ts | 4 ++-- src/lib/agent/skills-install.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/agent/run.ts b/src/lib/agent/run.ts index 73e5400..122a11a 100644 --- a/src/lib/agent/run.ts +++ b/src/lib/agent/run.ts @@ -31,7 +31,7 @@ async function installSkill(): Promise { spin.stop( installed ? 'Adapty skill installed - your agent can now handle Adapty tasks in any session.' - : 'Skill install skipped - run `npx skills add adaptyteam/adapty-sdk-integration-skill` to add it manually.', + : 'Skill install skipped - run `npx skills add adaptyteam/adapty-skills` to add it manually.', ) } diff --git a/src/lib/agent/skill-source.ts b/src/lib/agent/skill-source.ts index 72fc105..428f91e 100644 --- a/src/lib/agent/skill-source.ts +++ b/src/lib/agent/skill-source.ts @@ -5,13 +5,13 @@ import type {Platform} from '../project/scan.js' /** * Skill content is NOT vendored into this package - the single source of - * truth is the adapty-sdk-integration-skill repo. Files are fetched from + * truth is the adapty-skills repo. Files are fetched from * GitHub raw at run time; set ADAPTY_SKILL_DIR to a local checkout of the * skill directory (the one containing SKILL.md) to develop against local * edits. */ const RAW_BASE = - 'https://raw.githubusercontent.com/adaptyteam/adapty-sdk-integration-skill/main/skills/adapty-integration' + 'https://raw.githubusercontent.com/adaptyteam/adapty-skills/main/skills/adapty-integration' function stripFrontmatter(md: string): string { const lines = md.split('\n') diff --git a/src/lib/agent/skills-install.ts b/src/lib/agent/skills-install.ts index 8aef747..539a94e 100644 --- a/src/lib/agent/skills-install.ts +++ b/src/lib/agent/skills-install.ts @@ -6,7 +6,7 @@ import {spawn} from 'node:child_process' * Adapty in every future session - not just this run. Same source repo the * integrate prompt is built from. */ -const SKILL_SOURCE = 'adaptyteam/adapty-sdk-integration-skill' +const SKILL_SOURCE = 'adaptyteam/adapty-skills' export function installAgentSkills(): Promise { return new Promise((resolve) => {