Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.
TypeScript agent-skillsai-agentsautomationcopilotcopilot-clicopilot-coworkcopilot-studioelectronmicrosoft-scoutscreen-recording
Address Copilot review: enforce skill id, restore arch, harden reveal
adilei0a0873d739d6
diff --git a/common/ipc.ts b/common/ipc.tsindex b9a9993..b20cdd2 100644--- a/common/ipc.ts+++ b/common/ipc.ts@@ -218,7 +218,8 @@ export interface SkillRecorderApi {/** Abort an in-flight build. */cancelSkill(sessionId: string): Promise<{ ok: boolean }>;/** Reveal an exported SKILL.md in the OS file manager. */- revealSkill(path: string): Promise<{ ok: boolean }>;+ /** Reveal a session's exported SKILL.md in the OS file manager. */+ revealSkill(sessionId: string): Promise<{ ok: boolean }>;onSkillProgress(cb: (progress: SkillBuildProgress) => void): () => void;/** Open (and focus) the Sessions library window, docked to the recorder. */openLibrary(): Promise<void>;diff --git a/common/skill.ts b/common/skill.tsindex fbf345a..79125e4 100644--- a/common/skill.ts+++ b/common/skill.ts@@ -74,7 +74,7 @@ export const SkillPlanSchema = z.object({/** Target architecture this plan is written for. */architecture: SkillArchitecture,/** kebab-case skill id, e.g. "submit-expense-records". */- name: z.string(),+ name: z.string().transform(slugifySkillName),/** Human-friendly title, e.g. "Submit expense records". */title: z.string(),/** Trigger-oriented description (becomes the SKILL.md `description`). */@@ -98,7 +98,7 @@ export type SkillPlan = z.infer<typeof SkillPlanSchema>;*/export const SkillSubmissionSchema = z.object({/** kebab-case skill id. */- name: z.string(),+ name: z.string().transform(slugifySkillName),/** SKILL.md `description` (trigger keywords). */description: z.string(),/** `allowed-tools` frontmatter patterns. */diff --git a/electron/ipc.ts b/electron/ipc.tsindex 71e8e5c..4daef06 100644--- a/electron/ipc.ts+++ b/electron/ipc.ts@@ -172,8 +172,10 @@ export function registerIpc(return { ok: true };});- ipcMain.handle(IPC.revealSkill, (_event, file: string) => {- if (typeof file === "string" && file) shell.showItemInFolder(file);+ ipcMain.handle(IPC.revealSkill, (_event, sessionId: string) => {+ if (!isValidSessionId(sessionId)) return { ok: false };+ const skill = loadPersistedSkill(sessionId);+ if (skill?.exportedPath) shell.showItemInFolder(skill.exportedPath);return { ok: true };});}diff --git a/electron/preload.cjs b/electron/preload.cjsindex 191f987..86e429b 100644--- a/electron/preload.cjs+++ b/electron/preload.cjs@@ -60,7 +60,7 @@ contextBridge.exposeInMainWorld("skillRecorder", {createSkill: (sessionId) => ipcRenderer.invoke(IPC.createSkill, sessionId),getSkill: (sessionId) => ipcRenderer.invoke(IPC.getSkill, sessionId),cancelSkill: (sessionId) => ipcRenderer.invoke(IPC.cancelSkill, sessionId),- revealSkill: (path) => ipcRenderer.invoke(IPC.revealSkill, path),+ revealSkill: (sessionId) => ipcRenderer.invoke(IPC.revealSkill, sessionId),onSkillProgress: (cb) => {const listener = (_event, progress) => cb(progress);ipcRenderer.on(IPC.skillProgress, listener);diff --git a/src/Library.tsx b/src/Library.tsxindex 519dc55..fd4065c 100644--- a/src/Library.tsx+++ b/src/Library.tsx@@ -527,6 +527,7 @@ function SkillBuilderView({if (live && s?.exportedPath) {setBuiltName(s.name);setExportedPath(s.exportedPath);+ setArchitecture(s.architecture);if (s.plan) setPlan(s.plan);setPhase("done");}@@ -758,7 +759,7 @@ function SkillBuilderView({<span className="foot-status">Saved</span><div className="ws-foot-actions">{exportedPath && (- <button className="secondary" onClick={() => void window.skillRecorder.revealSkill(exportedPath)}>+ <button className="secondary" onClick={() => void window.skillRecorder.revealSkill(sessionId)}>Reveal file</button>)}