aemeathcli 1.0.11 → 1.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.
- package/LICENSE +21 -21
- package/README.md +620 -609
- package/dist/{App-YAHJUWCX.js → App-NT6MRKQJ.js} +675 -169
- package/dist/App-NT6MRKQJ.js.map +1 -0
- package/dist/agent-store/architect.md +32 -32
- package/dist/agent-store/debugger.md +32 -32
- package/dist/agent-store/developer.md +29 -29
- package/dist/agent-store/documenter.md +30 -30
- package/dist/agent-store/researcher.md +31 -31
- package/dist/agent-store/reviewer.md +28 -28
- package/dist/agent-store/supervisor.md +37 -37
- package/dist/agent-store/tester.md +30 -30
- package/dist/api-key-fallback-RJLPM3KH.js +11 -0
- package/dist/{api-key-fallback-UN3TJEOO.js.map → api-key-fallback-RJLPM3KH.js.map} +1 -1
- package/dist/auth-status-JQJOKUPF.js +13 -0
- package/dist/{auth-status-EIM5A5KL.js.map → auth-status-JQJOKUPF.js.map} +1 -1
- package/dist/{chunk-P66WDACW.js → chunk-2KMA5RBC.js} +18 -42
- package/dist/chunk-2KMA5RBC.js.map +1 -0
- package/dist/{chunk-2GKOK6T7.js → chunk-2Y7TR6BS.js} +2 -2
- package/dist/chunk-2Y7TR6BS.js.map +1 -0
- package/dist/{chunk-ONQ4WCUI.js → chunk-2ZYK5IJG.js} +6 -6
- package/dist/chunk-2ZYK5IJG.js.map +1 -0
- package/dist/{chunk-OCJPQFOR.js → chunk-36RXCZOV.js} +4 -4
- package/dist/chunk-36RXCZOV.js.map +1 -0
- package/dist/{chunk-H2SYKIMI.js → chunk-7EBLXPL4.js} +10 -10
- package/dist/chunk-7EBLXPL4.js.map +1 -0
- package/dist/{chunk-IARA5XYP.js → chunk-BIMQL4AG.js} +4 -4
- package/dist/chunk-BIMQL4AG.js.map +1 -0
- package/dist/{chunk-BY4DAKUU.js → chunk-D275MCIH.js} +2 -2
- package/dist/chunk-D275MCIH.js.map +1 -0
- package/dist/{chunk-SOQFMNQC.js → chunk-FFS4T7BZ.js} +5 -5
- package/dist/chunk-FFS4T7BZ.js.map +1 -0
- package/dist/{chunk-LDVY5ELP.js → chunk-GXAJGP2T.js} +5 -5
- package/dist/chunk-GXAJGP2T.js.map +1 -0
- package/dist/{chunk-62HSGYQD.js → chunk-HCIHOHLX.js} +2 -2
- package/dist/chunk-HCIHOHLX.js.map +1 -0
- package/dist/{chunk-6GUD7QIM.js → chunk-HESQLCLU.js} +4 -4
- package/dist/chunk-HESQLCLU.js.map +1 -0
- package/dist/{chunk-HEKFAKVH.js → chunk-IR5HLBMH.js} +2 -2
- package/dist/chunk-IR5HLBMH.js.map +1 -0
- package/dist/{chunk-2LF7ALGR.js → chunk-K2FCMRXH.js} +4 -4
- package/dist/chunk-K2FCMRXH.js.map +1 -0
- package/dist/{chunk-2NWNIKBK.js → chunk-KIC7UI5U.js} +4 -4
- package/dist/chunk-KIC7UI5U.js.map +1 -0
- package/dist/{chunk-YPFOE2QJ.js → chunk-KMOAJRDE.js} +5 -5
- package/dist/chunk-KMOAJRDE.js.map +1 -0
- package/dist/{chunk-RP2TAL3J.js → chunk-LQBALETG.js} +2 -2
- package/dist/chunk-LQBALETG.js.map +1 -0
- package/dist/{chunk-CC7MGWYY.js → chunk-M3FPQSRU.js} +2 -2
- package/dist/chunk-M3FPQSRU.js.map +1 -0
- package/dist/{chunk-3TSPZRGM.js → chunk-NQEUK763.js} +3 -3
- package/dist/chunk-NQEUK763.js.map +1 -0
- package/dist/{chunk-VBLLDY4R.js → chunk-OPWAFS6Y.js} +2 -2
- package/dist/chunk-OPWAFS6Y.js.map +1 -0
- package/dist/{chunk-RYOB3TLZ.js → chunk-PS4WEFW6.js} +6 -6
- package/dist/chunk-PS4WEFW6.js.map +1 -0
- package/dist/{chunk-LCYH4T6N.js → chunk-QK7TKNHV.js} +6 -6
- package/dist/chunk-QK7TKNHV.js.map +1 -0
- package/dist/{chunk-QCRK4QEL.js → chunk-RADJSEG5.js} +3 -3
- package/dist/chunk-RADJSEG5.js.map +1 -0
- package/dist/{chunk-AQ23TYSQ.js → chunk-SNWPI6XJ.js} +4 -4
- package/dist/chunk-SNWPI6XJ.js.map +1 -0
- package/dist/{chunk-TDFTX32B.js → chunk-UM7MSLOV.js} +4 -4
- package/dist/chunk-UM7MSLOV.js.map +1 -0
- package/dist/{chunk-FIC7AK4Q.js → chunk-VNZ3YTQD.js} +5 -5
- package/dist/chunk-VNZ3YTQD.js.map +1 -0
- package/dist/{chunk-5XFSV6PF.js → chunk-WXIN65UG.js} +6 -6
- package/dist/chunk-WXIN65UG.js.map +1 -0
- package/dist/{chunk-WC72BRHR.js → chunk-XEXWX7C7.js} +3 -3
- package/dist/chunk-XEXWX7C7.js.map +1 -0
- package/dist/{chunk-VJNQJALF.js → chunk-YCCYXDW7.js} +4 -4
- package/dist/chunk-YCCYXDW7.js.map +1 -0
- package/dist/{chunk-ROJPFPJ7.js → chunk-YL5XFHR3.js} +2 -2
- package/dist/chunk-YL5XFHR3.js.map +1 -0
- package/dist/{chunk-GU33WKPG.js → chunk-YPQ2MLAV.js} +5 -5
- package/dist/chunk-YPQ2MLAV.js.map +1 -0
- package/dist/{chunk-WAYSJMPS.js → chunk-ZCOVMVK4.js} +2 -2
- package/dist/chunk-ZCOVMVK4.js.map +1 -0
- package/dist/{chunk-473JN6M5.js → chunk-ZGOHARPV.js} +2 -2
- package/dist/chunk-ZGOHARPV.js.map +1 -0
- package/dist/{claude-login-IS5WTBMP.js → claude-login-AIFIWTYF.js} +10 -10
- package/dist/claude-login-AIFIWTYF.js.map +1 -0
- package/dist/cli.js +30 -30
- package/dist/cli.js.map +1 -1
- package/dist/{codex-login-GMPF64MR.js → codex-login-LW5X7GAM.js} +10 -10
- package/dist/codex-login-LW5X7GAM.js.map +1 -0
- package/dist/config-store-NF56VHFU.js +7 -0
- package/dist/{config-store-POB6I37G.js.map → config-store-NF56VHFU.js.map} +1 -1
- package/dist/conversation-store-7GRDQZD2.js +4 -0
- package/dist/{conversation-store-PRBHWQMJ.js.map → conversation-store-7GRDQZD2.js.map} +1 -1
- package/dist/detect-providers-QICJ5U3R.js +4 -0
- package/dist/{detect-providers-C4SVQHFF.js.map → detect-providers-QICJ5U3R.js.map} +1 -1
- package/dist/executor-FTABX2AW.js +4 -0
- package/dist/{executor-RUX7VK3T.js.map → executor-FTABX2AW.js.map} +1 -1
- package/dist/{first-run-GDEVRFPO.js → first-run-ADROZVYF.js} +13 -13
- package/dist/first-run-ADROZVYF.js.map +1 -0
- package/dist/{gemini-login-KE224MSW.js → gemini-login-TST454MX.js} +10 -10
- package/dist/gemini-login-TST454MX.js.map +1 -0
- package/dist/index.d.ts +2 -56
- package/dist/index.js +30 -34
- package/dist/index.js.map +1 -1
- package/dist/{input-history-MIOO3FIW.js → input-history-BEICE7PT.js} +3 -3
- package/dist/input-history-BEICE7PT.js.map +1 -0
- package/dist/kimi-adapter-7FYOAKOI.js +6 -0
- package/dist/{kimi-adapter-UODMNX6K.js.map → kimi-adapter-7FYOAKOI.js.map} +1 -1
- package/dist/{kimi-login-DNT5YBKX.js → kimi-login-3IGVOBJI.js} +10 -10
- package/dist/kimi-login-3IGVOBJI.js.map +1 -0
- package/dist/logger-KGHUQ4VE.js +3 -0
- package/dist/{logger-PLPDWACQ.js.map → logger-KGHUQ4VE.js.map} +1 -1
- package/dist/model-discovery-AAJDHRFO.js +6 -0
- package/dist/{model-discovery-O64ZWPX5.js.map → model-discovery-AAJDHRFO.js.map} +1 -1
- package/dist/native-cli-adapters-CLONTZOA.js +8 -0
- package/dist/{native-cli-adapters-JMZX2C2C.js.map → native-cli-adapters-CLONTZOA.js.map} +1 -1
- package/dist/ollama-adapter-2N5OQIEV.js +5 -0
- package/dist/{ollama-adapter-GE67BNSS.js.map → ollama-adapter-2N5OQIEV.js.map} +1 -1
- package/dist/{pathResolver-A6IXQQFE.js → pathResolver-UVAB2FCW.js} +3 -3
- package/dist/{pathResolver-A6IXQQFE.js.map → pathResolver-UVAB2FCW.js.map} +1 -1
- package/dist/{profile-loader-TNAXBLDX.js → profile-loader-EMLV4J7S.js} +4 -4
- package/dist/profile-loader-EMLV4J7S.js.map +1 -0
- package/dist/registry-LRURZVUL.js +5 -0
- package/dist/{registry-3NHVCXCZ.js.map → registry-LRURZVUL.js.map} +1 -1
- package/dist/registry-MVNSXCEF.js +6 -0
- package/dist/{registry-7CQ3NCAD.js.map → registry-MVNSXCEF.js.map} +1 -1
- package/dist/server-manager-THGZBBZB.js +5 -0
- package/dist/{server-manager-DES23IBQ.js.map → server-manager-THGZBBZB.js.map} +1 -1
- package/dist/session-manager-X3DXT53M.js +12 -0
- package/dist/{session-manager-EHD7GWM2.js.map → session-manager-X3DXT53M.js.map} +1 -1
- package/dist/skills/built-in/code-review/SKILL.md +85 -85
- package/dist/skills/built-in/commit/SKILL.md +83 -83
- package/dist/skills/built-in/debug/SKILL.md +119 -119
- package/dist/skills/built-in/plan/SKILL.md +123 -123
- package/dist/skills/built-in/refactor/SKILL.md +132 -132
- package/dist/skills/built-in/test/SKILL.md +128 -128
- package/dist/sqlite-store-7OECRTXM.js +5 -0
- package/dist/{sqlite-store-7ZIVOUNI.js.map → sqlite-store-7OECRTXM.js.map} +1 -1
- package/dist/team-manager-2VSMALAA.js +11 -0
- package/dist/{team-manager-6DCNLGTC.js.map → team-manager-2VSMALAA.js.map} +1 -1
- package/dist/team-state-HZNVMQHT.js +3 -0
- package/dist/{team-state-R2D7DT5M.js.map → team-state-HZNVMQHT.js.map} +1 -1
- package/dist/tmux-manager-57QCUVHU.js +6 -0
- package/dist/{tmux-manager-WBKHUHDT.js.map → tmux-manager-57QCUVHU.js.map} +1 -1
- package/dist/tools-KWFSYT56.js +6 -0
- package/dist/{tools-I6XCTEZY.js.map → tools-KWFSYT56.js.map} +1 -1
- package/package.json +89 -93
- package/dist/App-YAHJUWCX.js.map +0 -1
- package/dist/api-key-fallback-UN3TJEOO.js +0 -11
- package/dist/auth-status-EIM5A5KL.js +0 -13
- package/dist/chunk-25UNNEHN.js +0 -140
- package/dist/chunk-25UNNEHN.js.map +0 -1
- package/dist/chunk-2GKOK6T7.js.map +0 -1
- package/dist/chunk-2LF7ALGR.js.map +0 -1
- package/dist/chunk-2NWNIKBK.js.map +0 -1
- package/dist/chunk-3TSPZRGM.js.map +0 -1
- package/dist/chunk-473JN6M5.js.map +0 -1
- package/dist/chunk-5XFSV6PF.js.map +0 -1
- package/dist/chunk-62HSGYQD.js.map +0 -1
- package/dist/chunk-6GUD7QIM.js.map +0 -1
- package/dist/chunk-AQ23TYSQ.js.map +0 -1
- package/dist/chunk-BY4DAKUU.js.map +0 -1
- package/dist/chunk-CC7MGWYY.js.map +0 -1
- package/dist/chunk-CTFZTARK.js +0 -155
- package/dist/chunk-CTFZTARK.js.map +0 -1
- package/dist/chunk-FIC7AK4Q.js.map +0 -1
- package/dist/chunk-GU33WKPG.js.map +0 -1
- package/dist/chunk-H2SYKIMI.js.map +0 -1
- package/dist/chunk-HEKFAKVH.js.map +0 -1
- package/dist/chunk-IARA5XYP.js.map +0 -1
- package/dist/chunk-LCYH4T6N.js.map +0 -1
- package/dist/chunk-LDVY5ELP.js.map +0 -1
- package/dist/chunk-OCJPQFOR.js.map +0 -1
- package/dist/chunk-ODBY7S4X.js +0 -141
- package/dist/chunk-ODBY7S4X.js.map +0 -1
- package/dist/chunk-ONQ4WCUI.js.map +0 -1
- package/dist/chunk-P5TKZM3T.js +0 -159
- package/dist/chunk-P5TKZM3T.js.map +0 -1
- package/dist/chunk-P66WDACW.js.map +0 -1
- package/dist/chunk-QCRK4QEL.js.map +0 -1
- package/dist/chunk-ROJPFPJ7.js.map +0 -1
- package/dist/chunk-RP2TAL3J.js.map +0 -1
- package/dist/chunk-RYOB3TLZ.js.map +0 -1
- package/dist/chunk-SOQFMNQC.js.map +0 -1
- package/dist/chunk-TDFTX32B.js.map +0 -1
- package/dist/chunk-VBLLDY4R.js.map +0 -1
- package/dist/chunk-VJNQJALF.js.map +0 -1
- package/dist/chunk-WAYSJMPS.js.map +0 -1
- package/dist/chunk-WC72BRHR.js.map +0 -1
- package/dist/chunk-YPFOE2QJ.js.map +0 -1
- package/dist/claude-adapter-6P4SJH7P.js +0 -7
- package/dist/claude-adapter-6P4SJH7P.js.map +0 -1
- package/dist/claude-login-IS5WTBMP.js.map +0 -1
- package/dist/codex-login-GMPF64MR.js.map +0 -1
- package/dist/config-store-POB6I37G.js +0 -7
- package/dist/conversation-store-PRBHWQMJ.js +0 -4
- package/dist/detect-providers-C4SVQHFF.js +0 -4
- package/dist/executor-RUX7VK3T.js +0 -4
- package/dist/first-run-GDEVRFPO.js.map +0 -1
- package/dist/gemini-adapter-MV3U4QFH.js +0 -7
- package/dist/gemini-adapter-MV3U4QFH.js.map +0 -1
- package/dist/gemini-login-KE224MSW.js.map +0 -1
- package/dist/input-history-MIOO3FIW.js.map +0 -1
- package/dist/kimi-adapter-UODMNX6K.js +0 -6
- package/dist/kimi-login-DNT5YBKX.js.map +0 -1
- package/dist/logger-PLPDWACQ.js +0 -3
- package/dist/model-discovery-O64ZWPX5.js +0 -6
- package/dist/native-cli-adapters-JMZX2C2C.js +0 -8
- package/dist/ollama-adapter-GE67BNSS.js +0 -5
- package/dist/openai-adapter-SHPLK77L.js +0 -7
- package/dist/openai-adapter-SHPLK77L.js.map +0 -1
- package/dist/profile-loader-TNAXBLDX.js.map +0 -1
- package/dist/registry-3NHVCXCZ.js +0 -6
- package/dist/registry-7CQ3NCAD.js +0 -5
- package/dist/server-manager-DES23IBQ.js +0 -5
- package/dist/session-manager-EHD7GWM2.js +0 -12
- package/dist/sqlite-store-7ZIVOUNI.js +0 -5
- package/dist/team-manager-6DCNLGTC.js +0 -11
- package/dist/team-state-R2D7DT5M.js +0 -3
- package/dist/tmux-manager-WBKHUHDT.js +0 -6
- package/dist/tools-I6XCTEZY.js +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/orchestrator/profiles/profile-loader.ts"],"names":["parseYaml"],"mappings":";;;;;;;AA8BA,I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AC,CAAA,IAAK,IAAI,IAAA,EAAK;AACnC,IAAA,IAAI,IAAA,CAAK,WAAW,CAAA,EAAG;AACrB,MAAA,MAAM,IAAI,KAAA,CAAM,CAAA,uBAAA,EAA0B,UAAU,CAAA,CAAE,CAAA;AAAA,IACxD;AAEA,IAAA,MAAM,WAAA,GAAcA,MAAU,cAAc,CAAA;AAE5C,IAAA,MAAM,WAAW,WAAA,CAAY,QAAA;AAC7B,IAAA,MAAM,mBACJ,QAAA,IAAa,aAAA,CAAoC,QAAA,CAAS,QAAQ,IAC9D,QAAA,GACA,MAAA;AAEN,IAAA,OAAO;AAAA,MACL,MAAM,mBAAA,CAAoB,WAAA,CAAY,QAAQ,QAAA,CAAS,UAAA,EAAY,KAAK,CAAC,CAAA;AAAA,MACzE,WAAA,EAAa,YAAY,WAAA,IAAe,EAAA;AAAA,MACxC,QAAA,EAAU,gBAAA;AAAA,MACV,YAAA,EAAc;AAAA,KAChB;AAAA,EACF;AACF","file":"profile-loader-EMLV4J7S.js","sourcesContent":["/**\n * ProfileLoader — loads, lists, installs, and resolves agent profiles.\n *\n * Agent profiles are Markdown files with YAML frontmatter that define\n * an agent's identity (name, description, preferred CLI provider) and\n * a system prompt body.\n *\n * Resolution order: user store (~/.aemeathcli/agent-store/) takes\n * priority over the built-in store shipped with the package.\n */\n\nimport {\n readFileSync,\n readdirSync,\n existsSync,\n mkdirSync,\n writeFileSync,\n} from \"node:fs\";\nimport { join, basename } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { parse as parseYaml } from \"yaml\";\nimport { getAemeathHome } from \"../../utils/pathResolver.js\";\nimport { CLI_PROVIDERS, type AgentProfile, type CliProviderType } from \"../constants.js\";\n\n// ── Store Paths ──────────────────────────────────────────────────────────\n\n/**\n * Built-in agent-store directory, co-located with the source/dist tree.\n * Uses `import.meta.url` so it resolves correctly after compilation.\n */\nconst DIST_BUILTIN_STORE = fileURLToPath(new URL(\"./agent-store/\", import.meta.url));\nconst SOURCE_BUILTIN_STORE = fileURLToPath(new URL(\"../agent-store/\", import.meta.url));\nconst BUILTIN_STORE = existsSync(DIST_BUILTIN_STORE) ? DIST_BUILTIN_STORE : SOURCE_BUILTIN_STORE;\n\n/** Per-user override directory. */\nconst USER_STORE: string = join(getAemeathHome(), \"agent-store\");\nconst MAX_PROFILE_BYTES = 64 * 1024;\n\n// ── Frontmatter Shape ────────────────────────────────────────────────────\n\ninterface ProfileFrontmatter {\n name?: string;\n description?: string;\n provider?: string;\n}\n\nfunction sanitizeProfileName(name: string): string {\n const normalized = name\n .trim()\n .replace(/\\.md$/iu, \"\")\n .replace(/[^a-zA-Z0-9._-]+/gu, \"-\")\n .replace(/^-+/u, \"\")\n .replace(/-+/gu, \"-\");\n\n if (normalized.length === 0 || normalized === \".\" || normalized === \"..\") {\n throw new Error(\"Profile name must contain at least one alphanumeric character\");\n }\n\n return normalized;\n}\n\nfunction assertProfileSize(content: string, source: string): void {\n if (Buffer.byteLength(content, \"utf-8\") > MAX_PROFILE_BYTES) {\n throw new Error(`Profile is too large: ${source}`);\n }\n}\n\n// ── ProfileLoader ────────────────────────────────────────────────────────\n\nexport class ProfileLoader {\n constructor() {\n // Ensure the user store directory exists on first access.\n mkdirSync(USER_STORE, { recursive: true });\n }\n\n // ── Core API ─────────────────────────────────────────────────────────\n\n /**\n * Load a profile by name.\n * User store takes priority over the built-in store.\n */\n load(name: string): AgentProfile {\n const fileName = name.endsWith(\".md\") ? name : `${name}.md`;\n\n // Try user store first\n const userPath = join(USER_STORE, fileName);\n if (existsSync(userPath)) {\n return this.parseProfile(readFileSync(userPath, \"utf-8\"), userPath);\n }\n\n // Fall back to built-in store\n const builtinPath = join(BUILTIN_STORE, fileName);\n if (existsSync(builtinPath)) {\n return this.parseProfile(\n readFileSync(builtinPath, \"utf-8\"),\n builtinPath,\n );\n }\n\n throw new Error(`Agent profile not found: ${name}`);\n }\n\n /**\n * List all available profiles (user + built-in, deduplicated by name).\n * User profiles shadow built-in profiles with the same name.\n */\n listProfiles(): AgentProfile[] {\n const seen = new Set<string>();\n const profiles: AgentProfile[] = [];\n\n // User profiles first — they take priority\n for (const dir of [USER_STORE, BUILTIN_STORE]) {\n if (!existsSync(dir)) continue;\n for (const file of readdirSync(dir)) {\n if (!file.endsWith(\".md\")) continue;\n const name = basename(file, \".md\");\n if (seen.has(name)) continue;\n seen.add(name);\n try {\n profiles.push(this.load(name));\n } catch {\n // Skip malformed profiles silently\n }\n }\n }\n\n return profiles;\n }\n\n /**\n * Install a profile from a local file path or remote URL.\n * The profile is validated before being written to the user store.\n * Returns the canonical profile name (filename without extension).\n */\n async install(source: string): Promise<string> {\n let content: string;\n\n if (source.startsWith(\"http://\") || source.startsWith(\"https://\")) {\n const url = new URL(source);\n if (url.protocol !== \"https:\") {\n throw new Error(\"Remote profile installation requires HTTPS\");\n }\n\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`Failed to fetch profile: ${response.statusText}`);\n }\n\n const contentLength = response.headers.get(\"content-length\");\n if (contentLength !== null && Number(contentLength) > MAX_PROFILE_BYTES) {\n throw new Error(\"Remote profile exceeds the maximum supported size\");\n }\n\n content = await response.text();\n } else {\n if (!existsSync(source)) {\n throw new Error(`Profile source file not found: ${source}`);\n }\n content = readFileSync(source, \"utf-8\");\n }\n\n assertProfileSize(content, source);\n\n // Validate that the content is a valid profile\n const profile = this.parseProfile(content, source);\n const profileName = sanitizeProfileName(profile.name);\n\n const destPath = join(USER_STORE, `${profileName}.md`);\n writeFileSync(destPath, content, \"utf-8\");\n\n return profileName;\n }\n\n /**\n * Resolve the CLI provider for a profile, falling back to the given\n * default when the profile is missing or does not specify a provider.\n */\n resolveProvider(name: string, fallback: CliProviderType): CliProviderType {\n try {\n const profile = this.load(name);\n return profile.provider ?? fallback;\n } catch {\n return fallback;\n }\n }\n\n // ── Internal Parser ──────────────────────────────────────────────────\n\n /**\n * Parse a profile Markdown file with optional YAML frontmatter.\n *\n * Accepted formats:\n *\n * ---\n * name: my-agent\n * description: Does cool things\n * provider: claude-code\n * ---\n * # System Prompt Body ...\n *\n * If no frontmatter block is present the entire file is treated as\n * the system prompt and the file's basename is used as the name.\n */\n private parseProfile(content: string, sourcePath: string): AgentProfile {\n const match = content.match(/^---\\r?\\n([\\s\\S]*?)\\r?\\n---\\r?\\n([\\s\\S]*)$/);\n if (!match) {\n // No frontmatter — treat entire content as system prompt\n const name = sanitizeProfileName(basename(sourcePath, \".md\"));\n return {\n name,\n description: name,\n systemPrompt: content.trim(),\n };\n }\n\n const rawFrontmatter = match[1] || \"\";\n const body = (match[2] || \"\").trim();\n if (body.length === 0) {\n throw new Error(`Profile body is empty: ${sourcePath}`);\n }\n\n const frontmatter = parseYaml(rawFrontmatter) as ProfileFrontmatter;\n\n const provider = frontmatter.provider;\n const resolvedProvider =\n provider && (CLI_PROVIDERS as readonly string[]).includes(provider)\n ? provider as CliProviderType\n : undefined;\n\n return {\n name: sanitizeProfileName(frontmatter.name ?? basename(sourcePath, \".md\")),\n description: frontmatter.description ?? \"\",\n provider: resolvedProvider,\n systemPrompt: body,\n };\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-LRURZVUL.js"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ProviderRegistry, createDefaultRegistry } from './chunk-2KMA5RBC.js';
|
|
2
|
+
import './chunk-ZGOHARPV.js';
|
|
3
|
+
import './chunk-HCIHOHLX.js';
|
|
4
|
+
import './chunk-IR5HLBMH.js';
|
|
5
|
+
//# sourceMappingURL=registry-MVNSXCEF.js.map
|
|
6
|
+
//# sourceMappingURL=registry-MVNSXCEF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-MVNSXCEF.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-manager-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-manager-THGZBBZB.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { SessionManager } from './chunk-7EBLXPL4.js';
|
|
2
|
+
import './chunk-HESQLCLU.js';
|
|
3
|
+
import './chunk-SNWPI6XJ.js';
|
|
4
|
+
import './chunk-YCCYXDW7.js';
|
|
5
|
+
import './chunk-OPWAFS6Y.js';
|
|
6
|
+
import './chunk-ZGOHARPV.js';
|
|
7
|
+
import './chunk-HCIHOHLX.js';
|
|
8
|
+
import './chunk-2Y7TR6BS.js';
|
|
9
|
+
import './chunk-IR5HLBMH.js';
|
|
10
|
+
import './chunk-D275MCIH.js';
|
|
11
|
+
//# sourceMappingURL=session-manager-X3DXT53M.js.map
|
|
12
|
+
//# sourceMappingURL=session-manager-X3DXT53M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-manager-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-manager-X3DXT53M.js"}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-review
|
|
3
|
-
description: "Comprehensive code review with security, performance, and style analysis"
|
|
4
|
-
version: "1.0.0"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read
|
|
7
|
-
- grep
|
|
8
|
-
- glob
|
|
9
|
-
triggers:
|
|
10
|
-
- "review"
|
|
11
|
-
- "$review"
|
|
12
|
-
model-requirements:
|
|
13
|
-
preferred-role: review
|
|
14
|
-
min-context: 32000
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Code Review Skill
|
|
18
|
-
|
|
19
|
-
You are a meticulous code reviewer. Perform a structured, multi-pass review of the provided code.
|
|
20
|
-
|
|
21
|
-
## Review Process
|
|
22
|
-
|
|
23
|
-
### Pass 1 — Correctness & Logic
|
|
24
|
-
|
|
25
|
-
1. Read all files under review using the `read` tool.
|
|
26
|
-
2. Trace the primary execution paths and identify:
|
|
27
|
-
- Off-by-one errors, null/undefined dereference, unreachable code.
|
|
28
|
-
- Missing error handling or swallowed exceptions.
|
|
29
|
-
- Race conditions or unguarded shared state.
|
|
30
|
-
3. Verify edge cases: empty inputs, boundary values, unexpected types.
|
|
31
|
-
|
|
32
|
-
### Pass 2 — Security (OWASP Top 10)
|
|
33
|
-
|
|
34
|
-
1. Check for injection vulnerabilities (SQL, command, XSS, template).
|
|
35
|
-
2. Look for hardcoded secrets, credentials, or API keys.
|
|
36
|
-
3. Validate authentication and authorization boundaries.
|
|
37
|
-
4. Identify insecure deserialization or unvalidated redirects.
|
|
38
|
-
5. Flag overly permissive CORS, CSP, or file permissions.
|
|
39
|
-
|
|
40
|
-
### Pass 3 — Performance
|
|
41
|
-
|
|
42
|
-
1. Identify N+1 query patterns or unnecessary database calls.
|
|
43
|
-
2. Look for O(n^2) or worse algorithmic complexity where avoidable.
|
|
44
|
-
3. Flag unnecessary re-renders in React components.
|
|
45
|
-
4. Check for missing caching opportunities or redundant I/O.
|
|
46
|
-
5. Identify large synchronous operations that should be async.
|
|
47
|
-
|
|
48
|
-
### Pass 4 — Type Safety & Style
|
|
49
|
-
|
|
50
|
-
1. Check for `any` types or unsafe type assertions.
|
|
51
|
-
2. Verify proper use of `readonly`, `as const`, and discriminated unions.
|
|
52
|
-
3. Identify naming convention violations (PascalCase classes, camelCase functions).
|
|
53
|
-
4. Ensure exported functions have explicit return types.
|
|
54
|
-
5. Verify consistent formatting and import ordering.
|
|
55
|
-
|
|
56
|
-
## Output Format
|
|
57
|
-
|
|
58
|
-
Present findings organized by severity:
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
## Critical (must fix before merge)
|
|
62
|
-
- [FILE:LINE] Description of issue
|
|
63
|
-
→ Suggested fix with code example
|
|
64
|
-
|
|
65
|
-
## Warning (should fix)
|
|
66
|
-
- [FILE:LINE] Description of issue
|
|
67
|
-
→ Suggested fix
|
|
68
|
-
|
|
69
|
-
## Info (consider)
|
|
70
|
-
- [FILE:LINE] Description of suggestion
|
|
71
|
-
→ Rationale
|
|
72
|
-
|
|
73
|
-
## Summary
|
|
74
|
-
- Files reviewed: N
|
|
75
|
-
- Critical: N | Warning: N | Info: N
|
|
76
|
-
- Overall assessment: APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Rules
|
|
80
|
-
|
|
81
|
-
- Never approve code with critical security findings.
|
|
82
|
-
- Be specific: cite file paths and line numbers for every finding.
|
|
83
|
-
- Provide concrete fix suggestions, not vague recommendations.
|
|
84
|
-
- Respect existing project conventions found in AGENTS.md if present.
|
|
85
|
-
- Do not nitpick formatting if a formatter (Prettier) is configured.
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: "Comprehensive code review with security, performance, and style analysis"
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- read
|
|
7
|
+
- grep
|
|
8
|
+
- glob
|
|
9
|
+
triggers:
|
|
10
|
+
- "review"
|
|
11
|
+
- "$review"
|
|
12
|
+
model-requirements:
|
|
13
|
+
preferred-role: review
|
|
14
|
+
min-context: 32000
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Code Review Skill
|
|
18
|
+
|
|
19
|
+
You are a meticulous code reviewer. Perform a structured, multi-pass review of the provided code.
|
|
20
|
+
|
|
21
|
+
## Review Process
|
|
22
|
+
|
|
23
|
+
### Pass 1 — Correctness & Logic
|
|
24
|
+
|
|
25
|
+
1. Read all files under review using the `read` tool.
|
|
26
|
+
2. Trace the primary execution paths and identify:
|
|
27
|
+
- Off-by-one errors, null/undefined dereference, unreachable code.
|
|
28
|
+
- Missing error handling or swallowed exceptions.
|
|
29
|
+
- Race conditions or unguarded shared state.
|
|
30
|
+
3. Verify edge cases: empty inputs, boundary values, unexpected types.
|
|
31
|
+
|
|
32
|
+
### Pass 2 — Security (OWASP Top 10)
|
|
33
|
+
|
|
34
|
+
1. Check for injection vulnerabilities (SQL, command, XSS, template).
|
|
35
|
+
2. Look for hardcoded secrets, credentials, or API keys.
|
|
36
|
+
3. Validate authentication and authorization boundaries.
|
|
37
|
+
4. Identify insecure deserialization or unvalidated redirects.
|
|
38
|
+
5. Flag overly permissive CORS, CSP, or file permissions.
|
|
39
|
+
|
|
40
|
+
### Pass 3 — Performance
|
|
41
|
+
|
|
42
|
+
1. Identify N+1 query patterns or unnecessary database calls.
|
|
43
|
+
2. Look for O(n^2) or worse algorithmic complexity where avoidable.
|
|
44
|
+
3. Flag unnecessary re-renders in React components.
|
|
45
|
+
4. Check for missing caching opportunities or redundant I/O.
|
|
46
|
+
5. Identify large synchronous operations that should be async.
|
|
47
|
+
|
|
48
|
+
### Pass 4 — Type Safety & Style
|
|
49
|
+
|
|
50
|
+
1. Check for `any` types or unsafe type assertions.
|
|
51
|
+
2. Verify proper use of `readonly`, `as const`, and discriminated unions.
|
|
52
|
+
3. Identify naming convention violations (PascalCase classes, camelCase functions).
|
|
53
|
+
4. Ensure exported functions have explicit return types.
|
|
54
|
+
5. Verify consistent formatting and import ordering.
|
|
55
|
+
|
|
56
|
+
## Output Format
|
|
57
|
+
|
|
58
|
+
Present findings organized by severity:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
## Critical (must fix before merge)
|
|
62
|
+
- [FILE:LINE] Description of issue
|
|
63
|
+
→ Suggested fix with code example
|
|
64
|
+
|
|
65
|
+
## Warning (should fix)
|
|
66
|
+
- [FILE:LINE] Description of issue
|
|
67
|
+
→ Suggested fix
|
|
68
|
+
|
|
69
|
+
## Info (consider)
|
|
70
|
+
- [FILE:LINE] Description of suggestion
|
|
71
|
+
→ Rationale
|
|
72
|
+
|
|
73
|
+
## Summary
|
|
74
|
+
- Files reviewed: N
|
|
75
|
+
- Critical: N | Warning: N | Info: N
|
|
76
|
+
- Overall assessment: APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Rules
|
|
80
|
+
|
|
81
|
+
- Never approve code with critical security findings.
|
|
82
|
+
- Be specific: cite file paths and line numbers for every finding.
|
|
83
|
+
- Provide concrete fix suggestions, not vague recommendations.
|
|
84
|
+
- Respect existing project conventions found in AGENTS.md if present.
|
|
85
|
+
- Do not nitpick formatting if a formatter (Prettier) is configured.
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "Smart git commit with conventional message generation and pre-commit safety"
|
|
4
|
-
version: "1.0.0"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- bash
|
|
7
|
-
- read
|
|
8
|
-
- grep
|
|
9
|
-
- glob
|
|
10
|
-
triggers:
|
|
11
|
-
- "commit"
|
|
12
|
-
- "$commit"
|
|
13
|
-
model-requirements:
|
|
14
|
-
preferred-role: coding
|
|
15
|
-
min-context: 16000
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Commit Skill
|
|
19
|
-
|
|
20
|
-
You are a git commit specialist. Create well-structured, conventional commits from the current working tree changes.
|
|
21
|
-
|
|
22
|
-
## Process
|
|
23
|
-
|
|
24
|
-
### Step 1 — Analyze Changes
|
|
25
|
-
|
|
26
|
-
1. Run `git status` to see all modified, added, and deleted files.
|
|
27
|
-
2. Run `git diff --staged` to inspect already-staged changes.
|
|
28
|
-
3. Run `git diff` to inspect unstaged changes.
|
|
29
|
-
4. Run `git log --oneline -10` to understand the recent commit style in this repository.
|
|
30
|
-
|
|
31
|
-
### Step 2 — Categorize Changes
|
|
32
|
-
|
|
33
|
-
Classify changes into one of these conventional commit types:
|
|
34
|
-
|
|
35
|
-
| Type | When to use |
|
|
36
|
-
|------|-------------|
|
|
37
|
-
| `feat` | New feature or capability |
|
|
38
|
-
| `fix` | Bug fix |
|
|
39
|
-
| `refactor` | Code restructuring without behavior change |
|
|
40
|
-
| `docs` | Documentation only |
|
|
41
|
-
| `test` | Adding or updating tests |
|
|
42
|
-
| `chore` | Build, CI, tooling, dependency updates |
|
|
43
|
-
| `perf` | Performance improvement |
|
|
44
|
-
| `style` | Formatting, whitespace (no logic change) |
|
|
45
|
-
|
|
46
|
-
### Step 3 — Safety Checks
|
|
47
|
-
|
|
48
|
-
1. Verify no secrets or credentials are staged (.env, *.pem, credentials.*, etc.).
|
|
49
|
-
2. Verify no large binary files are staged unintentionally.
|
|
50
|
-
3. If pre-commit hooks exist, warn that they will run.
|
|
51
|
-
4. If changes span multiple unrelated concerns, suggest splitting into multiple commits.
|
|
52
|
-
|
|
53
|
-
### Step 4 — Draft Commit Message
|
|
54
|
-
|
|
55
|
-
Follow the Conventional Commits specification:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
<type>(<scope>): <short description>
|
|
59
|
-
|
|
60
|
-
<body — explain WHY, not WHAT>
|
|
61
|
-
|
|
62
|
-
<footer — breaking changes, issue references>
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Rules for the message:
|
|
66
|
-
- Subject line: imperative mood, no period, max 72 characters.
|
|
67
|
-
- Body: wrap at 80 characters, explain motivation and context.
|
|
68
|
-
- Reference issues when applicable (e.g., `Closes #42`).
|
|
69
|
-
|
|
70
|
-
### Step 5 — Execute
|
|
71
|
-
|
|
72
|
-
1. Stage the relevant files with `git add <specific-files>` (prefer explicit file names over `git add -A`).
|
|
73
|
-
2. Create the commit with the drafted message.
|
|
74
|
-
3. Run `git status` after commit to confirm success.
|
|
75
|
-
4. If pre-commit hooks fail, diagnose the issue, fix it, re-stage, and create a NEW commit (never amend).
|
|
76
|
-
|
|
77
|
-
## Rules
|
|
78
|
-
|
|
79
|
-
- Never use `--no-verify` to skip hooks unless explicitly told to.
|
|
80
|
-
- Never amend a previous commit unless explicitly requested.
|
|
81
|
-
- Never push to remote unless explicitly requested.
|
|
82
|
-
- Never stage files that likely contain secrets.
|
|
83
|
-
- If there are no changes to commit, report that clearly instead of creating an empty commit.
|
|
1
|
+
---
|
|
2
|
+
name: commit
|
|
3
|
+
description: "Smart git commit with conventional message generation and pre-commit safety"
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- bash
|
|
7
|
+
- read
|
|
8
|
+
- grep
|
|
9
|
+
- glob
|
|
10
|
+
triggers:
|
|
11
|
+
- "commit"
|
|
12
|
+
- "$commit"
|
|
13
|
+
model-requirements:
|
|
14
|
+
preferred-role: coding
|
|
15
|
+
min-context: 16000
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Commit Skill
|
|
19
|
+
|
|
20
|
+
You are a git commit specialist. Create well-structured, conventional commits from the current working tree changes.
|
|
21
|
+
|
|
22
|
+
## Process
|
|
23
|
+
|
|
24
|
+
### Step 1 — Analyze Changes
|
|
25
|
+
|
|
26
|
+
1. Run `git status` to see all modified, added, and deleted files.
|
|
27
|
+
2. Run `git diff --staged` to inspect already-staged changes.
|
|
28
|
+
3. Run `git diff` to inspect unstaged changes.
|
|
29
|
+
4. Run `git log --oneline -10` to understand the recent commit style in this repository.
|
|
30
|
+
|
|
31
|
+
### Step 2 — Categorize Changes
|
|
32
|
+
|
|
33
|
+
Classify changes into one of these conventional commit types:
|
|
34
|
+
|
|
35
|
+
| Type | When to use |
|
|
36
|
+
|------|-------------|
|
|
37
|
+
| `feat` | New feature or capability |
|
|
38
|
+
| `fix` | Bug fix |
|
|
39
|
+
| `refactor` | Code restructuring without behavior change |
|
|
40
|
+
| `docs` | Documentation only |
|
|
41
|
+
| `test` | Adding or updating tests |
|
|
42
|
+
| `chore` | Build, CI, tooling, dependency updates |
|
|
43
|
+
| `perf` | Performance improvement |
|
|
44
|
+
| `style` | Formatting, whitespace (no logic change) |
|
|
45
|
+
|
|
46
|
+
### Step 3 — Safety Checks
|
|
47
|
+
|
|
48
|
+
1. Verify no secrets or credentials are staged (.env, *.pem, credentials.*, etc.).
|
|
49
|
+
2. Verify no large binary files are staged unintentionally.
|
|
50
|
+
3. If pre-commit hooks exist, warn that they will run.
|
|
51
|
+
4. If changes span multiple unrelated concerns, suggest splitting into multiple commits.
|
|
52
|
+
|
|
53
|
+
### Step 4 — Draft Commit Message
|
|
54
|
+
|
|
55
|
+
Follow the Conventional Commits specification:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
<type>(<scope>): <short description>
|
|
59
|
+
|
|
60
|
+
<body — explain WHY, not WHAT>
|
|
61
|
+
|
|
62
|
+
<footer — breaking changes, issue references>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Rules for the message:
|
|
66
|
+
- Subject line: imperative mood, no period, max 72 characters.
|
|
67
|
+
- Body: wrap at 80 characters, explain motivation and context.
|
|
68
|
+
- Reference issues when applicable (e.g., `Closes #42`).
|
|
69
|
+
|
|
70
|
+
### Step 5 — Execute
|
|
71
|
+
|
|
72
|
+
1. Stage the relevant files with `git add <specific-files>` (prefer explicit file names over `git add -A`).
|
|
73
|
+
2. Create the commit with the drafted message.
|
|
74
|
+
3. Run `git status` after commit to confirm success.
|
|
75
|
+
4. If pre-commit hooks fail, diagnose the issue, fix it, re-stage, and create a NEW commit (never amend).
|
|
76
|
+
|
|
77
|
+
## Rules
|
|
78
|
+
|
|
79
|
+
- Never use `--no-verify` to skip hooks unless explicitly told to.
|
|
80
|
+
- Never amend a previous commit unless explicitly requested.
|
|
81
|
+
- Never push to remote unless explicitly requested.
|
|
82
|
+
- Never stage files that likely contain secrets.
|
|
83
|
+
- If there are no changes to commit, report that clearly instead of creating an empty commit.
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: debug
|
|
3
|
-
description: "Systematic debugging workflow with root cause analysis and targeted fixes"
|
|
4
|
-
version: "1.0.0"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read
|
|
7
|
-
- grep
|
|
8
|
-
- glob
|
|
9
|
-
- bash
|
|
10
|
-
triggers:
|
|
11
|
-
- "debug"
|
|
12
|
-
- "$debug"
|
|
13
|
-
model-requirements:
|
|
14
|
-
preferred-role: bugfix
|
|
15
|
-
min-context: 32000
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# Debug Skill
|
|
19
|
-
|
|
20
|
-
You are a systematic debugger. Diagnose issues methodically using evidence-based reasoning. Never guess — investigate.
|
|
21
|
-
|
|
22
|
-
## Process
|
|
23
|
-
|
|
24
|
-
### Step 1 — Reproduce & Characterize
|
|
25
|
-
|
|
26
|
-
1. Understand the reported symptom:
|
|
27
|
-
- What is the expected behavior?
|
|
28
|
-
- What is the actual behavior?
|
|
29
|
-
- When did it start happening (recent changes, new dependency)?
|
|
30
|
-
2. If an error message or stack trace is provided, parse it for:
|
|
31
|
-
- The exact error type and message.
|
|
32
|
-
- The file and line number of origin.
|
|
33
|
-
- The call chain leading to the error.
|
|
34
|
-
3. Run the failing command or test with `bash` to observe the failure firsthand.
|
|
35
|
-
|
|
36
|
-
### Step 2 — Form Hypotheses
|
|
37
|
-
|
|
38
|
-
Based on the error characterization, generate ranked hypotheses:
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
Hypothesis 1 (most likely): [description]
|
|
42
|
-
Evidence for: ...
|
|
43
|
-
Evidence against: ...
|
|
44
|
-
How to verify: ...
|
|
45
|
-
|
|
46
|
-
Hypothesis 2: [description]
|
|
47
|
-
Evidence for: ...
|
|
48
|
-
Evidence against: ...
|
|
49
|
-
How to verify: ...
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Prioritize hypotheses by:
|
|
53
|
-
- Recent changes (check `git log --oneline -20` and `git diff HEAD~5`).
|
|
54
|
-
- Proximity to the error location in the stack trace.
|
|
55
|
-
- Frequency of similar bugs in the codebase.
|
|
56
|
-
|
|
57
|
-
### Step 3 — Investigate
|
|
58
|
-
|
|
59
|
-
For each hypothesis, starting with the most likely:
|
|
60
|
-
|
|
61
|
-
1. Use `read` to examine the suspect code at the exact lines referenced.
|
|
62
|
-
2. Use `grep` to find related usages, callers, and data flow paths.
|
|
63
|
-
3. Use `glob` to locate related test files or configuration.
|
|
64
|
-
4. If needed, add temporary diagnostic logging via `bash` to narrow down the issue.
|
|
65
|
-
5. Verify or falsify the hypothesis with evidence.
|
|
66
|
-
|
|
67
|
-
### Step 4 — Root Cause Identification
|
|
68
|
-
|
|
69
|
-
Once the root cause is found:
|
|
70
|
-
|
|
71
|
-
1. Explain WHY the bug occurs, not just WHERE.
|
|
72
|
-
2. Trace back to the original incorrect assumption or logic error.
|
|
73
|
-
3. Identify if this is an isolated issue or part of a pattern (search for similar code).
|
|
74
|
-
4. Determine the blast radius: what else could be affected?
|
|
75
|
-
|
|
76
|
-
### Step 5 — Propose Fix
|
|
77
|
-
|
|
78
|
-
Present the fix with context:
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
## Root Cause
|
|
82
|
-
[Clear explanation of why the bug occurs]
|
|
83
|
-
|
|
84
|
-
## Fix
|
|
85
|
-
File: src/path/to/file.ts
|
|
86
|
-
Line: 42
|
|
87
|
-
|
|
88
|
-
Before:
|
|
89
|
-
```typescript
|
|
90
|
-
// buggy code
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
After:
|
|
94
|
-
```typescript
|
|
95
|
-
// fixed code
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Verification
|
|
99
|
-
- [ ] Run: `npm test -- --grep "related test"`
|
|
100
|
-
- [ ] Manual check: [specific steps]
|
|
101
|
-
|
|
102
|
-
## Related Concerns
|
|
103
|
-
- [Other code that might have the same issue]
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Step 6 — Verify Fix
|
|
107
|
-
|
|
108
|
-
1. Apply the fix.
|
|
109
|
-
2. Run the originally failing command/test to confirm it passes.
|
|
110
|
-
3. Run the broader test suite to check for regressions.
|
|
111
|
-
4. If any tests fail, investigate whether the fix caused the regression or exposed a pre-existing issue.
|
|
112
|
-
|
|
113
|
-
## Rules
|
|
114
|
-
|
|
115
|
-
- Never apply a fix without understanding the root cause first.
|
|
116
|
-
- Never silence errors or add try/catch as a "fix" without addressing the underlying issue.
|
|
117
|
-
- Always check for similar patterns elsewhere when fixing a bug.
|
|
118
|
-
- Test the fix, not just the symptom — verify the root cause is actually resolved.
|
|
119
|
-
- If the bug is in a dependency, document the workaround and file an upstream issue.
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: "Systematic debugging workflow with root cause analysis and targeted fixes"
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- read
|
|
7
|
+
- grep
|
|
8
|
+
- glob
|
|
9
|
+
- bash
|
|
10
|
+
triggers:
|
|
11
|
+
- "debug"
|
|
12
|
+
- "$debug"
|
|
13
|
+
model-requirements:
|
|
14
|
+
preferred-role: bugfix
|
|
15
|
+
min-context: 32000
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Debug Skill
|
|
19
|
+
|
|
20
|
+
You are a systematic debugger. Diagnose issues methodically using evidence-based reasoning. Never guess — investigate.
|
|
21
|
+
|
|
22
|
+
## Process
|
|
23
|
+
|
|
24
|
+
### Step 1 — Reproduce & Characterize
|
|
25
|
+
|
|
26
|
+
1. Understand the reported symptom:
|
|
27
|
+
- What is the expected behavior?
|
|
28
|
+
- What is the actual behavior?
|
|
29
|
+
- When did it start happening (recent changes, new dependency)?
|
|
30
|
+
2. If an error message or stack trace is provided, parse it for:
|
|
31
|
+
- The exact error type and message.
|
|
32
|
+
- The file and line number of origin.
|
|
33
|
+
- The call chain leading to the error.
|
|
34
|
+
3. Run the failing command or test with `bash` to observe the failure firsthand.
|
|
35
|
+
|
|
36
|
+
### Step 2 — Form Hypotheses
|
|
37
|
+
|
|
38
|
+
Based on the error characterization, generate ranked hypotheses:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Hypothesis 1 (most likely): [description]
|
|
42
|
+
Evidence for: ...
|
|
43
|
+
Evidence against: ...
|
|
44
|
+
How to verify: ...
|
|
45
|
+
|
|
46
|
+
Hypothesis 2: [description]
|
|
47
|
+
Evidence for: ...
|
|
48
|
+
Evidence against: ...
|
|
49
|
+
How to verify: ...
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Prioritize hypotheses by:
|
|
53
|
+
- Recent changes (check `git log --oneline -20` and `git diff HEAD~5`).
|
|
54
|
+
- Proximity to the error location in the stack trace.
|
|
55
|
+
- Frequency of similar bugs in the codebase.
|
|
56
|
+
|
|
57
|
+
### Step 3 — Investigate
|
|
58
|
+
|
|
59
|
+
For each hypothesis, starting with the most likely:
|
|
60
|
+
|
|
61
|
+
1. Use `read` to examine the suspect code at the exact lines referenced.
|
|
62
|
+
2. Use `grep` to find related usages, callers, and data flow paths.
|
|
63
|
+
3. Use `glob` to locate related test files or configuration.
|
|
64
|
+
4. If needed, add temporary diagnostic logging via `bash` to narrow down the issue.
|
|
65
|
+
5. Verify or falsify the hypothesis with evidence.
|
|
66
|
+
|
|
67
|
+
### Step 4 — Root Cause Identification
|
|
68
|
+
|
|
69
|
+
Once the root cause is found:
|
|
70
|
+
|
|
71
|
+
1. Explain WHY the bug occurs, not just WHERE.
|
|
72
|
+
2. Trace back to the original incorrect assumption or logic error.
|
|
73
|
+
3. Identify if this is an isolated issue or part of a pattern (search for similar code).
|
|
74
|
+
4. Determine the blast radius: what else could be affected?
|
|
75
|
+
|
|
76
|
+
### Step 5 — Propose Fix
|
|
77
|
+
|
|
78
|
+
Present the fix with context:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
## Root Cause
|
|
82
|
+
[Clear explanation of why the bug occurs]
|
|
83
|
+
|
|
84
|
+
## Fix
|
|
85
|
+
File: src/path/to/file.ts
|
|
86
|
+
Line: 42
|
|
87
|
+
|
|
88
|
+
Before:
|
|
89
|
+
```typescript
|
|
90
|
+
// buggy code
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
After:
|
|
94
|
+
```typescript
|
|
95
|
+
// fixed code
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Verification
|
|
99
|
+
- [ ] Run: `npm test -- --grep "related test"`
|
|
100
|
+
- [ ] Manual check: [specific steps]
|
|
101
|
+
|
|
102
|
+
## Related Concerns
|
|
103
|
+
- [Other code that might have the same issue]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Step 6 — Verify Fix
|
|
107
|
+
|
|
108
|
+
1. Apply the fix.
|
|
109
|
+
2. Run the originally failing command/test to confirm it passes.
|
|
110
|
+
3. Run the broader test suite to check for regressions.
|
|
111
|
+
4. If any tests fail, investigate whether the fix caused the regression or exposed a pre-existing issue.
|
|
112
|
+
|
|
113
|
+
## Rules
|
|
114
|
+
|
|
115
|
+
- Never apply a fix without understanding the root cause first.
|
|
116
|
+
- Never silence errors or add try/catch as a "fix" without addressing the underlying issue.
|
|
117
|
+
- Always check for similar patterns elsewhere when fixing a bug.
|
|
118
|
+
- Test the fix, not just the symptom — verify the root cause is actually resolved.
|
|
119
|
+
- If the bug is in a dependency, document the workaround and file an upstream issue.
|