[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV1H53PAKPEFEYA4W269TF":3,"skill-same:01M7CV1H53PAKPEFEYA4W269TF":47},{"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":31,"updatedAt":32,"install":33,"resources":46},"01M7CV1H53PAKPEFEYA4W269TF","add-test",null,"Generate unit or E2E test files for existing code","realsudarshan\u002FSD-skill","realsudarshan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128029723?v=4","01M7CTP2JEKQ9KBJ51NRZ2777Z","Sudarshan Dhakal","01M7CTP2JYR2PRY3BWGA30HX7J",0,"MIT","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Fclaude-code\u002Fclaude-code-local-gitlens-add-test\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-test\ndescription: Generate unit or E2E test files for existing code\n---\n\n# \u002Fadd-test - Generate Tests\n\n## Usage\n\n```\n\u002Fadd-test [type] [target]\n```\n\n- `type` — `unit` (default) or `e2e`\n- `target` — File path or feature name to test\n\n## Unit Test Template\n\nCreates `src\u002Fpath\u002F__tests__\u002Ffile.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport { functionToTest } from '..\u002Ffile.js';\n\nsuite('FeatureName Test Suite', () => {\n\tsuite('functionName', () => {\n\t\ttest('should handle normal input', () => {\n\t\t\tconst result = functionToTest('input');\n\t\t\tassert.strictEqual(result, 'expected');\n\t\t});\n\n\t\ttest('should handle edge case', () => {\n\t\t\tconst result = functionToTest('');\n\t\t\tassert.strictEqual(result, undefined);\n\t\t});\n\n\t\ttest('should throw on invalid input', () => {\n\t\t\tassert.throws(() => functionToTest(null), \u002Ferror message\u002F);\n\t\t});\n\t});\n\n\tsuite('async function', () => {\n\t\ttest('should resolve with data', async () => {\n\t\t\tconst result = await asyncFunction();\n\t\t\tassert.deepStrictEqual(result, { key: 'value' });\n\t\t});\n\t});\n});\n```\n\nWhen mocking is needed, use `sinon`:\n\n```typescript\nimport * as sinon from 'sinon';\n\nlet sandbox: sinon.SinonSandbox;\nsetup(() => {\n\tsandbox = sinon.createSandbox();\n});\nteardown(() => {\n\tsandbox.restore();\n});\n```\n\n## E2E Test Template\n\nCreates `tests\u002Fe2e\u002Fspecs\u002Ffeature.test.ts`:\n\n```typescript\nimport { test as base, expect, GitFixture, MaxTimeout } from '..\u002FbaseTest.js';\nimport { createTmpDir } from '..\u002Ffixtures\u002FtmpDir.js';\n\nconst test = base.extend({\n\tvscodeOptions: [\n\t\t{\n\t\t\tvscodeVersion: process.env.VSCODE_VERSION ?? 'stable',\n\t\t\tsetup: async () => {\n\t\t\t\tconst repoDir = await createTmpDir();\n\t\t\t\tconst git = new GitFixture(repoDir);\n\t\t\t\tawait git.init();\n\t\t\t\tawait git.commit('Initial commit', 'README.md', '# Test');\n\t\t\t\treturn repoDir;\n\t\t\t},\n\t\t},\n\t\t{ scope: 'worker' },\n\t],\n});\n\ntest.describe('Feature Name', () => {\n\ttest.describe.configure({ mode: 'serial' });\n\n\ttest('should display feature correctly', async ({ vscode, page, expect }) => {\n\t\tawait vscode.gitlens.openGitLensSidebar();\n\t\tawait expect(page.getByRole('heading')).toContainText('Expected');\n\t});\n});\n```\n\n## Instructions\n\n### Unit Tests\n\n1. Read target file to understand exports\n2. Create `__tests__\u002F` directory if needed\n3. Cover: normal paths, edge cases (empty\u002Fnull\u002Fundefined), error conditions, async operations\n4. Assertions: `assert.strictEqual()`, `assert.deepStrictEqual()`, `assert.ok()`, `assert.throws()`\n\n### E2E Tests\n\n1. Determine Git state needed (commits, branches, tags)\n2. Create GitFixture setup\n3. Cover: UI presence, user interactions, navigation, error states\n4. Assertions: `expect(locator).toBeVisible()`, `.toContainText()`, `.toHaveCount()`\n\n## GitFixture Methods\n\n```typescript\nawait git.init()\nawait git.commit(message, fileName, content)\nawait git.branch(name)\nawait git.checkout(name, create?)\nawait git.tag(name, { message?, ref? })\nawait git.stash(message?)\nawait git.worktree(path, branch)\nawait git.addRemote(name, url)\nawait git.merge(branch, message?)\n```\n\n## Running Tests\n\n```bash\npnpm run test -- --grep \"FeatureName\"           # Unit\npnpm run test:e2e -- tests\u002Fe2e\u002Fspecs\u002Ffile.test.ts  # E2E\n```\n","# \u002Fadd-test - Generate Tests\n\n## Usage\n\n```\n\u002Fadd-test [type] [target]\n```\n\n- `type` — `unit` (default) or `e2e`\n- `target` — File path or feature name to test\n\n## Unit Test Template\n\nCreates `src\u002Fpath\u002F__tests__\u002Ffile.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport { functionToTest } from '..\u002Ffile.js';\n\nsuite('FeatureName Test Suite', () => {\n\tsuite('functionName', () => {\n\t\ttest('should handle normal input', () => {\n\t\t\tconst result = functionToTest('input');\n\t\t\tassert.strictEqual(result, 'expected');\n\t\t});\n\n\t\ttest('should handle edge case', () => {\n\t\t\tconst result = functionToTest('');\n\t\t\tassert.strictEqual(result, undefined);\n\t\t});\n\n\t\ttest('should throw on invalid input', () => {\n\t\t\tassert.throws(() => functionToTest(null), \u002Ferror message\u002F);\n\t\t});\n\t});\n\n\tsuite('async function', () => {\n\t\ttest('should resolve with data', async () => {\n\t\t\tconst result = await asyncFunction();\n\t\t\tassert.deepStrictEqual(result, { key: 'value' });\n\t\t});\n\t});\n});\n```\n\nWhen mocking is needed, use `sinon`:\n\n```typescript\nimport * as sinon from 'sinon';\n\nlet sandbox: sinon.SinonSandbox;\nsetup(() => {\n\tsandbox = sinon.createSandbox();\n});\nteardown(() => {\n\tsandbox.restore();\n});\n```\n\n## E2E Test Template\n\nCreates `tests\u002Fe2e\u002Fspecs\u002Ffeature.test.ts`:\n\n```typescript\nimport { test as base, expect, GitFixture, MaxTimeout } from '..\u002FbaseTest.js';\nimport { createTmpDir } from '..\u002Ffixtures\u002FtmpDir.js';\n\nconst test = base.extend({\n\tvscodeOptions: [\n\t\t{\n\t\t\tvscodeVersion: process.env.VSCODE_VERSION ?? 'stable',\n\t\t\tsetup: async () => {\n\t\t\t\tconst repoDir = await createTmpDir();\n\t\t\t\tconst git = new GitFixture(repoDir);\n\t\t\t\tawait git.init();\n\t\t\t\tawait git.commit('Initial commit', 'README.md', '# Test');\n\t\t\t\treturn repoDir;\n\t\t\t},\n\t\t},\n\t\t{ scope: 'worker' },\n\t],\n});\n\ntest.describe('Feature Name', () => {\n\ttest.describe.configure({ mode: 'serial' });\n\n\ttest('should display feature correctly', async ({ vscode, page, expect }) => {\n\t\tawait vscode.gitlens.openGitLensSidebar();\n\t\tawait expect(page.getByRole('heading')).toContainText('Expected');\n\t});\n});\n```\n\n## Instructions\n\n### Unit Tests\n\n1. Read target file to understand exports\n2. Create `__tests__\u002F` directory if needed\n3. Cover: normal paths, edge cases (empty\u002Fnull\u002Fundefined), error conditions, async operations\n4. Assertions: `assert.strictEqual()`, `assert.deepStrictEqual()`, `assert.ok()`, `assert.throws()`\n\n### E2E Tests\n\n1. Determine Git state needed (commits, branches, tags)\n2. Create GitFixture setup\n3. Cover: UI presence, user interactions, navigation, error states\n4. Assertions: `expect(locator).toBeVisible()`, `.toContainText()`, `.toHaveCount()`\n\n## GitFixture Methods\n\n```typescript\nawait git.init()\nawait git.commit(message, fileName, content)\nawait git.branch(name)\nawait git.checkout(name, create?)\nawait git.tag(name, { message?, ref? })\nawait git.stash(message?)\nawait git.worktree(path, branch)\nawait git.addRemote(name, url)\nawait git.merge(branch, message?)\n```\n\n## Running Tests\n\n```bash\npnpm run test -- --grep \"FeatureName\"           # Unit\npnpm run test:e2e -- tests\u002Fe2e\u002Fspecs\u002Ffile.test.ts  # E2E\n```\n",{"name":5,"description":7},"main","92c2f40ebfad0c0aa3cc1faa89ffd6b23f9e8d1b","claude-code\u002Fclaude-code-local-gitlens-add-test","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill","https:\u002F\u002Fsd-skill.vercel.app","https:\u002F\u002Fgithub.com\u002Frealsudarshan","sudarshandhakal.com.np","Innvotative","2026-11-12 23:03:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add realsudarshan\u002FSD-skill --skill add-test",{"tool":39,"command":40},"bunx","bunx skills add realsudarshan\u002FSD-skill --skill add-test",{"tool":42,"command":43},"pnpm","pnpm dlx skills add realsudarshan\u002FSD-skill --skill add-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Fclaude-code\u002Fclaude-code-local-gitlens-add-test\u002FSKILL.md",true,[],[48,57,65,73,81,89],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":53,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CW5Y6EPMPMNDWE4EN2GXRX","winui-app","Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CW5RWFX7616ENEG573VFWG","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fvercel-deploy\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CW5M4VZHQPWG764X1W0S3B","security-best-practices","Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review\u002Freport, or secure-by-default coding help. Trigger only for supported languages (python, javascript\u002Ftypescript, go). Do not trigger for general code review, debugging, or non-security tasks.","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fsecurity-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fsecurity-best-practices\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CW5EBTWA7PQ54HYFT1YW39","playwright","Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fplaywright\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fplaywright\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CW4DA7SZ4D9JMR3P7VJVM0","openai-docs","Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains.","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CW3EHY7X60KB9SYEMRD3YR","netlify-deploy","Deploy web projects to Netlify using the Netlify CLI (`npx netlify`). Use when the user asks to deploy, host, publish, or link a site\u002Frepo on Netlify, including preview and production deploys.","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fnetlify-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frealsudarshan\u002FSD-skill\u002Fblob\u002Fmain\u002Freccomended\u002Fnetlify-deploy\u002FSKILL.md",[],[]]