[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78DEQTE2QTRK19AR2VTHTY6":3,"skill-same:01M78DEQTE2QTRK19AR2VTHTY6":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M78DEQTE2QTRK19AR2VTHTY6","codesync-platform-adapter",null,"Guide for creating, extending, and testing competitive programming platform adapters (LeetCode, Codeforces, HackerRank, GeeksforGeeks, CodeChef) in CodeSync.","pardeep1916P\u002FcodeSync","pardeep1916P","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F168327487?v=4","01M78DE87WVVWDH8M849ATQ25Y","Devanaboyina Charan Chaitanya","01M78DE890X74HPFK91EMX91W5",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fcodesync-platform-adapter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: codesync-platform-adapter\ndescription: Guide for creating, extending, and testing competitive programming platform adapters (LeetCode, Codeforces, HackerRank, GeeksforGeeks, CodeChef) in CodeSync.\n---\n\n# CodeSync Platform Adapter Engineering Guide\n\nUse this skill when implementing support for a new competitive programming platform (e.g. NeetCode, AtCoder) or modifying existing adapters in `src\u002Fplatforms\u002F`.\n\n---\n\n## 1. Architectural Contract\n\nEvery platform adapter must implement the `PlatformAdapter` interface defined in `src\u002Fplatforms\u002Ftypes.ts`:\n\n```typescript\nexport type PlatformId = 'leetcode' | 'codeforces' | 'hackerrank' | 'geeksforgeeks' | 'codechef' | 'neetcode';\n\nexport type Difficulty = 'Easy' | 'Medium' | 'Hard' | string;\n\nexport interface Problem {\n  id: string;\n  title: string;\n  slug: string;\n  difficulty: Difficulty;\n  description: string;\n  tags: string[];\n  url: string;\n  platform?: PlatformId;\n}\n\nexport interface Submission {\n  id: string;\n  problem: Problem;\n  language: string;\n  code: string;\n  timestamp: number;\n  status: 'ACCEPTED' | 'FAILED' | 'PENDING';\n  platform?: PlatformId;\n}\n\nexport interface PlatformAdapter {\n  readonly id: PlatformId;\n  readonly name: string;\n  readonly domainPatterns: RegExp[];\n  \n  matchesUrl(url: string): boolean;\n  getFileExtension(language: string): string;\n}\n```\n\n---\n\n## 2. Difficulty Normalization Standard\n\nTo maintain uniform directory organization (`{platform}\u002F{difficulty}\u002F{slug}\u002F`) and consistent badges across platforms, all platform ratings and division tags must be normalized to:\n- **`Easy`**\n- **`Medium`**\n- **`Hard`**\n\n### Normalization Reference Table\n| Platform | Source Rating \u002F Tier | Normalized Difficulty |\n| :--- | :--- | :--- |\n| **LeetCode** | `Easy` \u002F `Medium` \u002F `Hard` | Direct match |\n| **Codeforces** | Rating $\u003C 1400$ | `Easy` |\n| **Codeforces** | Rating $1400 - 1899$ | `Medium` |\n| **Codeforces** | Rating $\\ge 1900$ | `Hard` |\n| **CodeChef** | `School` or Rating $\u003C 1400$ | `Easy` |\n| **CodeChef** | `1-Star` to `3-Star` ($1400 - 1799$) | `Medium` |\n| **CodeChef** | $\\ge \\text{4-Star}$ ($\\ge 1800$) or `Challenge` | `Hard` |\n| **HackerRank** | `Easy` \u002F `Medium` \u002F `Hard` | Direct match |\n| **GeeksforGeeks** | `Basic`, `Easy` $\\rightarrow$ `Easy`\u003Cbr\u002F>`Medium` $\\rightarrow$ `Medium`\u003Cbr\u002F>`Hard` $\\rightarrow$ `Hard` | Mapped |\n\n---\n\n## 3. Language & File Extension Mapping\n\nEach adapter must correctly map platform-specific language names to standard file extensions:\n\n```typescript\nconst LANGUAGE_EXTENSION_MAP: Record\u003Cstring, string> = {\n  \u002F\u002F C \u002F C++\n  'c': 'c',\n  'cpp': 'cpp',\n  'c++': 'cpp',\n  'c++14': 'cpp',\n  'c++17': 'cpp',\n  'c++20': 'cpp',\n  'clang': 'c',\n  'clang++': 'cpp',\n  \u002F\u002F Java & JVM\n  'java': 'java',\n  'java8': 'java',\n  'java11': 'java',\n  'java17': 'java',\n  'kotlin': 'kt',\n  'scala': 'scala',\n  \u002F\u002F Python\n  'python': 'py',\n  'python3': 'py',\n  'py': 'py',\n  'pypy': 'py',\n  'pypy3': 'py',\n  \u002F\u002F Web & Scripting\n  'javascript': 'js',\n  'js': 'js',\n  'node': 'js',\n  'nodejs': 'js',\n  'typescript': 'ts',\n  'ts': 'ts',\n  \u002F\u002F Systems & Other\n  'csharp': 'cs',\n  'c#': 'cs',\n  'rust': 'rs',\n  'go': 'go',\n  'golang': 'go',\n  'swift': 'swift',\n  'ruby': 'rb',\n  'php': 'php',\n};\n```\n\n---\n\n## 4. Implementation Template for New Adapters\n\nCreate `src\u002Fplatforms\u002F\u003Cplatform-id>\u002Findex.ts`:\n\n```typescript\nimport { PlatformAdapter, PlatformId, Difficulty } from '..\u002Ftypes';\n\nexport class NewPlatformAdapter implements PlatformAdapter {\n  readonly id: PlatformId = 'newplatform' as PlatformId;\n  readonly name = 'NewPlatform';\n  readonly domainPatterns: RegExp[] = [\n    \u002F^https?:\\\u002F\\\u002F([a-zA-Z0-9-]+\\.)?newplatform\\.com\u002F,\n  ];\n\n  matchesUrl(url: string): boolean {\n    if (!url) return false;\n    return this.domainPatterns.some(pattern => pattern.test(url));\n  }\n\n  normalizeDifficulty(rawDifficulty: string): Difficulty {\n    const raw = (rawDifficulty || '').trim().toLowerCase();\n    if (raw === 'easy') return 'Easy';\n    if (raw === 'medium') return 'Medium';\n    if (raw === 'hard') return 'Hard';\n    return 'Medium'; \u002F\u002F Sensible fallback\n  }\n\n  getFileExtension(language: string): string {\n    const normalized = (language || '').toLowerCase().trim();\n    return LANGUAGE_EXTENSION_MAP[normalized] || 'txt';\n  }\n}\n```\n\n---\n\n## 5. Adapter Registration Checklist\n\nWhen adding or updating an adapter:\n1. [ ] Update `PlatformId` union in `src\u002Fplatforms\u002Ftypes.ts` if adding a new platform.\n2. [ ] Implement the adapter class in `src\u002Fplatforms\u002F\u003Cplatform-id>\u002Findex.ts`.\n3. [ ] Register the instance in `src\u002Fplatforms\u002Fregistry.ts`:\n   ```typescript\n   import { NewPlatformAdapter } from '.\u002Fnewplatform';\n   \n   const platformAdapters: PlatformAdapter[] = [\n     new LeetCodeAdapter(),\n     new CodeforcesAdapter(),\n     new HackerRankAdapter(),\n     new GeeksforGeeksAdapter(),\n     new CodeChefAdapter(),\n     new NewPlatformAdapter(), \u002F\u002F Add here\n   ];\n   ```\n4. [ ] Export the adapter from `src\u002Fplatforms\u002Findex.ts`.\n5. [ ] Add unit tests in `src\u002Fplatforms\u002F__tests__\u002Fplatforms.test.ts`.\n\n---\n\n## 6. Testing & Validation\n\nRun Vitest unit tests to verify URL pattern matching and language mapping:\n```bash\nnpm run test -- src\u002Fplatforms\u002F__tests__\u002Fplatforms.test.ts\n```\n\n### Verification Test Pattern\n```typescript\ndescribe('NewPlatformAdapter', () => {\n  const adapter = new NewPlatformAdapter();\n\n  it('matches valid platform URLs', () => {\n    expect(adapter.matchesUrl('https:\u002F\u002Fnewplatform.com\u002Fproblems\u002Ftwo-sum')).toBe(true);\n    expect(adapter.matchesUrl('https:\u002F\u002Fother.com\u002Fproblems\u002Ftwo-sum')).toBe(false);\n  });\n\n  it('correctly maps language extensions', () => {\n    expect(adapter.getFileExtension('python3')).toBe('py');\n    expect(adapter.getFileExtension('cpp')).toBe('cpp');\n  });\n});\n```\n","# CodeSync Platform Adapter Engineering Guide\n\nUse this skill when implementing support for a new competitive programming platform (e.g. NeetCode, AtCoder) or modifying existing adapters in `src\u002Fplatforms\u002F`.\n\n---\n\n## 1. Architectural Contract\n\nEvery platform adapter must implement the `PlatformAdapter` interface defined in `src\u002Fplatforms\u002Ftypes.ts`:\n\n```typescript\nexport type PlatformId = 'leetcode' | 'codeforces' | 'hackerrank' | 'geeksforgeeks' | 'codechef' | 'neetcode';\n\nexport type Difficulty = 'Easy' | 'Medium' | 'Hard' | string;\n\nexport interface Problem {\n  id: string;\n  title: string;\n  slug: string;\n  difficulty: Difficulty;\n  description: string;\n  tags: string[];\n  url: string;\n  platform?: PlatformId;\n}\n\nexport interface Submission {\n  id: string;\n  problem: Problem;\n  language: string;\n  code: string;\n  timestamp: number;\n  status: 'ACCEPTED' | 'FAILED' | 'PENDING';\n  platform?: PlatformId;\n}\n\nexport interface PlatformAdapter {\n  readonly id: PlatformId;\n  readonly name: string;\n  readonly domainPatterns: RegExp[];\n  \n  matchesUrl(url: string): boolean;\n  getFileExtension(language: string): string;\n}\n```\n\n---\n\n## 2. Difficulty Normalization Standard\n\nTo maintain uniform directory organization (`{platform}\u002F{difficulty}\u002F{slug}\u002F`) and consistent badges across platforms, all platform ratings and division tags must be normalized to:\n- **`Easy`**\n- **`Medium`**\n- **`Hard`**\n\n### Normalization Reference Table\n| Platform | Source Rating \u002F Tier | Normalized Difficulty |\n| :--- | :--- | :--- |\n| **LeetCode** | `Easy` \u002F `Medium` \u002F `Hard` | Direct match |\n| **Codeforces** | Rating $\u003C 1400$ | `Easy` |\n| **Codeforces** | Rating $1400 - 1899$ | `Medium` |\n| **Codeforces** | Rating $\\ge 1900$ | `Hard` |\n| **CodeChef** | `School` or Rating $\u003C 1400$ | `Easy` |\n| **CodeChef** | `1-Star` to `3-Star` ($1400 - 1799$) | `Medium` |\n| **CodeChef** | $\\ge \\text{4-Star}$ ($\\ge 1800$) or `Challenge` | `Hard` |\n| **HackerRank** | `Easy` \u002F `Medium` \u002F `Hard` | Direct match |\n| **GeeksforGeeks** | `Basic`, `Easy` $\\rightarrow$ `Easy`\u003Cbr\u002F>`Medium` $\\rightarrow$ `Medium`\u003Cbr\u002F>`Hard` $\\rightarrow$ `Hard` | Mapped |\n\n---\n\n## 3. Language & File Extension Mapping\n\nEach adapter must correctly map platform-specific language names to standard file extensions:\n\n```typescript\nconst LANGUAGE_EXTENSION_MAP: Record\u003Cstring, string> = {\n  \u002F\u002F C \u002F C++\n  'c': 'c',\n  'cpp': 'cpp',\n  'c++': 'cpp',\n  'c++14': 'cpp',\n  'c++17': 'cpp',\n  'c++20': 'cpp',\n  'clang': 'c',\n  'clang++': 'cpp',\n  \u002F\u002F Java & JVM\n  'java': 'java',\n  'java8': 'java',\n  'java11': 'java',\n  'java17': 'java',\n  'kotlin': 'kt',\n  'scala': 'scala',\n  \u002F\u002F Python\n  'python': 'py',\n  'python3': 'py',\n  'py': 'py',\n  'pypy': 'py',\n  'pypy3': 'py',\n  \u002F\u002F Web & Scripting\n  'javascript': 'js',\n  'js': 'js',\n  'node': 'js',\n  'nodejs': 'js',\n  'typescript': 'ts',\n  'ts': 'ts',\n  \u002F\u002F Systems & Other\n  'csharp': 'cs',\n  'c#': 'cs',\n  'rust': 'rs',\n  'go': 'go',\n  'golang': 'go',\n  'swift': 'swift',\n  'ruby': 'rb',\n  'php': 'php',\n};\n```\n\n---\n\n## 4. Implementation Template for New Adapters\n\nCreate `src\u002Fplatforms\u002F\u003Cplatform-id>\u002Findex.ts`:\n\n```typescript\nimport { PlatformAdapter, PlatformId, Difficulty } from '..\u002Ftypes';\n\nexport class NewPlatformAdapter implements PlatformAdapter {\n  readonly id: PlatformId = 'newplatform' as PlatformId;\n  readonly name = 'NewPlatform';\n  readonly domainPatterns: RegExp[] = [\n    \u002F^https?:\\\u002F\\\u002F([a-zA-Z0-9-]+\\.)?newplatform\\.com\u002F,\n  ];\n\n  matchesUrl(url: string): boolean {\n    if (!url) return false;\n    return this.domainPatterns.some(pattern => pattern.test(url));\n  }\n\n  normalizeDifficulty(rawDifficulty: string): Difficulty {\n    const raw = (rawDifficulty || '').trim().toLowerCase();\n    if (raw === 'easy') return 'Easy';\n    if (raw === 'medium') return 'Medium';\n    if (raw === 'hard') return 'Hard';\n    return 'Medium'; \u002F\u002F Sensible fallback\n  }\n\n  getFileExtension(language: string): string {\n    const normalized = (language || '').toLowerCase().trim();\n    return LANGUAGE_EXTENSION_MAP[normalized] || 'txt';\n  }\n}\n```\n\n---\n\n## 5. Adapter Registration Checklist\n\nWhen adding or updating an adapter:\n1. [ ] Update `PlatformId` union in `src\u002Fplatforms\u002Ftypes.ts` if adding a new platform.\n2. [ ] Implement the adapter class in `src\u002Fplatforms\u002F\u003Cplatform-id>\u002Findex.ts`.\n3. [ ] Register the instance in `src\u002Fplatforms\u002Fregistry.ts`:\n   ```typescript\n   import { NewPlatformAdapter } from '.\u002Fnewplatform';\n   \n   const platformAdapters: PlatformAdapter[] = [\n     new LeetCodeAdapter(),\n     new CodeforcesAdapter(),\n     new HackerRankAdapter(),\n     new GeeksforGeeksAdapter(),\n     new CodeChefAdapter(),\n     new NewPlatformAdapter(), \u002F\u002F Add here\n   ];\n   ```\n4. [ ] Export the adapter from `src\u002Fplatforms\u002Findex.ts`.\n5. [ ] Add unit tests in `src\u002Fplatforms\u002F__tests__\u002Fplatforms.test.ts`.\n\n---\n\n## 6. Testing & Validation\n\nRun Vitest unit tests to verify URL pattern matching and language mapping:\n```bash\nnpm run test -- src\u002Fplatforms\u002F__tests__\u002Fplatforms.test.ts\n```\n\n### Verification Test Pattern\n```typescript\ndescribe('NewPlatformAdapter', () => {\n  const adapter = new NewPlatformAdapter();\n\n  it('matches valid platform URLs', () => {\n    expect(adapter.matchesUrl('https:\u002F\u002Fnewplatform.com\u002Fproblems\u002Ftwo-sum')).toBe(true);\n    expect(adapter.matchesUrl('https:\u002F\u002Fother.com\u002Fproblems\u002Ftwo-sum')).toBe(false);\n  });\n\n  it('correctly maps language extensions', () => {\n    expect(adapter.getFileExtension('python3')).toBe('py');\n    expect(adapter.getFileExtension('cpp')).toBe('cpp');\n  });\n});\n```\n",{"name":5,"description":7},"main","f2a54fba6f9faab5c8991fc4a98973e74303f925",".agent\u002Fskills\u002Fcodesync-platform-adapter","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync","https:\u002F\u002Fpardeep1916p.github.io\u002FcodeSync\u002F","https:\u002F\u002Fgithub.com\u002Fpardeep1916P","https:\u002F\u002Fcharan-chaitanya-devanaboyina.vercel.app\u002F","2026-11-10 02:31:26",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add pardeep1916P\u002FcodeSync --skill codesync-platform-adapter",{"tool":38,"command":39},"bunx","bunx skills add pardeep1916P\u002FcodeSync --skill codesync-platform-adapter",{"tool":41,"command":42},"pnpm","pnpm dlx skills add pardeep1916P\u002FcodeSync --skill codesync-platform-adapter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fcodesync-platform-adapter\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78DFT64JJNAQR5TETTT7S5A","openspec-update-change","Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Never edits code.","MIT","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-update-change\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78DFQNNEY55FD44WZAC85MS","openspec-sync-specs","Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-sync-specs\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78DFMM7Q03FQ00QRDB9KY53","openspec-propose","Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-propose\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78DFHBCWK1VE0GCKJ9FZC9T","openspec-explore","Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-explore\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M78DFEZR53TXK69N8X00MBH3","openspec-archive-change","Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-archive-change\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M78DFB8AXAA18VTCV22PYGG4","openspec-apply-change","Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.","https:\u002F\u002Fgithub.com\u002Fpardeep1916P\u002FcodeSync\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-apply-change\u002FSKILL.md",[],[]]