[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7590MCQGM9RT6CGZP0KF6JY":3,"skill-same:01M7590MCQGM9RT6CGZP0KF6JY":58},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7590MCQGM9RT6CGZP0KF6JY","ag-harness-sync",null,"Use this skill to sync and manage agent harness versions. Supports pulling updates from the remote kit repo (ag-update logic) and publishing local improvements to the remote kit repo (ag-publish logic).","ngxccc\u002Fagent-skills-kit","ngxccc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163379246?v=4","01M758XVG64QK26AGK0WKB26TB","Ngoc Tran","01M758XVHB8J6MHV0YTBVDBXCA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-harness-sync\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ag-harness-sync\ndescription: Use this skill to sync and manage agent harness versions. Supports pulling updates from the remote kit repo (ag-update logic) and publishing local improvements to the remote kit repo (ag-publish logic).\ntrigger_keywords: harness, sync\nlayer: helper\n---\n\n# Harness Sync & Version Management (ag-harness-sync)\n\nUse this skill to sync the agent harness layer. It supports two flows:\n\n1. **Pulling Updates (Update Flow):** For users to update their local project's harness from the remote kit repository.\n2. **Publishing Improvements (Publish Flow):** For maintainers to publish local harness changes back to the remote kit repository.\n\n## When to Apply\n\n- When pulling latest harness improvements into your project.\n- When publishing your local changes to the shared remote kit repo.\n\n## How to Use\n\n### Workflow 1: Pulling Updates (Update Flow)\n\nFollow these steps exactly. Do NOT skip the dry-run or confirmation step.\n\n#### Step 1: Check Worktree Status\n\nRun `git status --porcelain` in the project root.\n\n- If output is non-empty: **warn** the user that they have uncommitted changes and suggest `git stash` or committing first. **Do not block** -- continue after warning.\n- If output is empty: proceed silently.\n\n#### Step 2: Read Current Version\n\nRead the file `.ag-version` in the project root.\n\n- If it exists: store its contents as `currentVersion` (a semver string like `2.0.4`).\n- If it does not exist: set `currentVersion` to `\"0.0.0\"` (treat as first update).\n\n#### Step 3: Clone Remote Repository\n\n```bash\nTMPDIR=\"\u002Ftmp\u002Fag-update-$(date +%s)\"\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit.git \"$TMPDIR\"\n```\n\nIf the clone fails (network error, auth error, repo not found):\n\n- Print the error message.\n- Clean up the temp directory if it was partially created.\n- **Stop.** Do not proceed.\n\n#### Step 4: Resolve Remote Manifest\n\nRun the resolver script from the cloned repo:\n\n```bash\nnode \"$TMPDIR\u002Fresolve-manifest.mjs\" --root \"$TMPDIR\" --json\n```\n\nParse the JSON output to extract:\n\n- `files` (string[]) -- resolved managed file paths\n- `merge` (string[]) -- files where user customizations are preserved (not overwritten)\n- `copyIfMissing` (string[]) -- files only installed if they don't already exist locally\n- `strip` (string[]) -- files needing content stripping (informational)\n- `symlinks` (object) -- symlink path -> target mappings\n\nExtract the remote version from the manifest:\n\n```bash\nnode -e \"console.log(JSON.parse(require('fs').readFileSync('$TMPDIR\u002Fag-manifest.json','utf8')).version)\"\n```\n\n#### Step 5: Compare Versions\n\nCompare the remote manifest `version` against `currentVersion`.\n\n- If they are equal: report **\"Already up to date (vX.Y.Z)\"** and clean up `$TMPDIR`. **Stop.**\n- If remote is newer (or currentVersion is `0.0.0`): continue to diff.\n\n#### Step 6: Read Local Snapshot and Compute Diff\n\nRead `.ag-installed-files` from the project root. If missing, build a synthetic snapshot. Compute additions, removals, modifications, merge files, and copy-if-missing files.\n\n#### Step 7: Check Symlinks\n\nVerify symlink mappings match expectation.\n\n#### Step 8: Print Dry-Run Summary\n\nPrint a dry-run summary with all additions, removals, modifications, merge files, and symlink statuses.\n\n#### Step 9: Wait for Confirmation\n\n**STOP HERE.** Tell the user:\n\n> \"This is a dry-run summary. Type **apply** to proceed with the update, or **abort** to cancel. The temp clone will be cleaned up either way.\"\n\nDo NOT proceed until the user explicitly says \"apply\" (or a clear affirmative).\n\n#### Step 10: Apply Changes\n\nOn user confirmation, apply additions, modifications, removals, and symlinks. Write the resolved files to `.ag-installed-files` and version to `.ag-version`. Clean up `$TMPDIR`.\n\n#### Step 11: Print Applied Changes Summary\n\nPrint a summary showing how many files were modified, added, removed, or symlinks fixed.\n\n---\n\n### Workflow 2: Publishing Improvements (Publish Flow)\n\nThis is the **maintainer** counterpart to Workflow 1.\n\n- Local checkout of the kit repo required.\n- `.ag-publish-config` file in the current repo root (JSON `{ \"kitRepoPath\": \"\u002Fpath\u002Fto\u002Fagent-skills-kit\" }`).\n\n#### Step 1: Load Configuration\n\nRead `.ag-publish-config`. Ask user if missing, verify path exists and kit worktree is clean.\n\n#### Step 2: Read Manifest\n\nRead `ag-manifest.json` from the kit repo checkout to extract the current `version`.\n\n#### Step 3: Resolve Both File Sets\n\nRun the resolver script against the **kit repo** and the **dev repo** to resolve their managed files.\n\n#### Step 4: Compute Diff\n\nCompare resolved file sets to compute new, removed, modified, and merge files.\n\n#### Step 5: Print Diff Summary\n\nPrint a summary table of changes.\n\n#### Step 6: STOP -- Confirm Publish\n\n**STOP** and ask the user to confirm, choose version bump type (**patch**, **minor**, or **major**), and optionally provide release notes.\n\n#### Step 7: Apply Changes\n\nCopy modified\u002Fnew files, delete removed files, and apply **CLAUDE.md and AGENTS.md stripping** to remove project-specific details. Update `ag-manifest.json` version.\n\n#### Step 8: Leak Detection\n\nVerify no project-specific content leaked into the kit repo by scanning the text surfaces for brand names and absolute paths.\n\n#### Step 9: Commit and Tag\n\nCommit and tag the release in the kit repo:\n\n```bash\ncd \u003CkitRepoPath>\ngit add -A\ngit commit -m \"Release vX.Y.Z\"\ngit tag vX.Y.Z\n```\n\n#### Step 10: Push\n\nPush commits and tags to the remote repository.\n\n#### Step 11: Create GitHub Release\n\nCreate a GitHub release using the `gh` tool.\n\n#### Step 12: Print Summary\n\nPrint publish summary containing the new version, files changed, remote repository URL, tag, and release link.\n\n---\n\n## References\n\n- [ag-update Reference Document](references\u002Fag-update.md)\n- [ag-publish Reference Document](references\u002Fag-publish.md)\n","# Harness Sync & Version Management (ag-harness-sync)\n\nUse this skill to sync the agent harness layer. It supports two flows:\n\n1. **Pulling Updates (Update Flow):** For users to update their local project's harness from the remote kit repository.\n2. **Publishing Improvements (Publish Flow):** For maintainers to publish local harness changes back to the remote kit repository.\n\n## When to Apply\n\n- When pulling latest harness improvements into your project.\n- When publishing your local changes to the shared remote kit repo.\n\n## How to Use\n\n### Workflow 1: Pulling Updates (Update Flow)\n\nFollow these steps exactly. Do NOT skip the dry-run or confirmation step.\n\n#### Step 1: Check Worktree Status\n\nRun `git status --porcelain` in the project root.\n\n- If output is non-empty: **warn** the user that they have uncommitted changes and suggest `git stash` or committing first. **Do not block** -- continue after warning.\n- If output is empty: proceed silently.\n\n#### Step 2: Read Current Version\n\nRead the file `.ag-version` in the project root.\n\n- If it exists: store its contents as `currentVersion` (a semver string like `2.0.4`).\n- If it does not exist: set `currentVersion` to `\"0.0.0\"` (treat as first update).\n\n#### Step 3: Clone Remote Repository\n\n```bash\nTMPDIR=\"\u002Ftmp\u002Fag-update-$(date +%s)\"\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit.git \"$TMPDIR\"\n```\n\nIf the clone fails (network error, auth error, repo not found):\n\n- Print the error message.\n- Clean up the temp directory if it was partially created.\n- **Stop.** Do not proceed.\n\n#### Step 4: Resolve Remote Manifest\n\nRun the resolver script from the cloned repo:\n\n```bash\nnode \"$TMPDIR\u002Fresolve-manifest.mjs\" --root \"$TMPDIR\" --json\n```\n\nParse the JSON output to extract:\n\n- `files` (string[]) -- resolved managed file paths\n- `merge` (string[]) -- files where user customizations are preserved (not overwritten)\n- `copyIfMissing` (string[]) -- files only installed if they don't already exist locally\n- `strip` (string[]) -- files needing content stripping (informational)\n- `symlinks` (object) -- symlink path -> target mappings\n\nExtract the remote version from the manifest:\n\n```bash\nnode -e \"console.log(JSON.parse(require('fs').readFileSync('$TMPDIR\u002Fag-manifest.json','utf8')).version)\"\n```\n\n#### Step 5: Compare Versions\n\nCompare the remote manifest `version` against `currentVersion`.\n\n- If they are equal: report **\"Already up to date (vX.Y.Z)\"** and clean up `$TMPDIR`. **Stop.**\n- If remote is newer (or currentVersion is `0.0.0`): continue to diff.\n\n#### Step 6: Read Local Snapshot and Compute Diff\n\nRead `.ag-installed-files` from the project root. If missing, build a synthetic snapshot. Compute additions, removals, modifications, merge files, and copy-if-missing files.\n\n#### Step 7: Check Symlinks\n\nVerify symlink mappings match expectation.\n\n#### Step 8: Print Dry-Run Summary\n\nPrint a dry-run summary with all additions, removals, modifications, merge files, and symlink statuses.\n\n#### Step 9: Wait for Confirmation\n\n**STOP HERE.** Tell the user:\n\n> \"This is a dry-run summary. Type **apply** to proceed with the update, or **abort** to cancel. The temp clone will be cleaned up either way.\"\n\nDo NOT proceed until the user explicitly says \"apply\" (or a clear affirmative).\n\n#### Step 10: Apply Changes\n\nOn user confirmation, apply additions, modifications, removals, and symlinks. Write the resolved files to `.ag-installed-files` and version to `.ag-version`. Clean up `$TMPDIR`.\n\n#### Step 11: Print Applied Changes Summary\n\nPrint a summary showing how many files were modified, added, removed, or symlinks fixed.\n\n---\n\n### Workflow 2: Publishing Improvements (Publish Flow)\n\nThis is the **maintainer** counterpart to Workflow 1.\n\n- Local checkout of the kit repo required.\n- `.ag-publish-config` file in the current repo root (JSON `{ \"kitRepoPath\": \"\u002Fpath\u002Fto\u002Fagent-skills-kit\" }`).\n\n#### Step 1: Load Configuration\n\nRead `.ag-publish-config`. Ask user if missing, verify path exists and kit worktree is clean.\n\n#### Step 2: Read Manifest\n\nRead `ag-manifest.json` from the kit repo checkout to extract the current `version`.\n\n#### Step 3: Resolve Both File Sets\n\nRun the resolver script against the **kit repo** and the **dev repo** to resolve their managed files.\n\n#### Step 4: Compute Diff\n\nCompare resolved file sets to compute new, removed, modified, and merge files.\n\n#### Step 5: Print Diff Summary\n\nPrint a summary table of changes.\n\n#### Step 6: STOP -- Confirm Publish\n\n**STOP** and ask the user to confirm, choose version bump type (**patch**, **minor**, or **major**), and optionally provide release notes.\n\n#### Step 7: Apply Changes\n\nCopy modified\u002Fnew files, delete removed files, and apply **CLAUDE.md and AGENTS.md stripping** to remove project-specific details. Update `ag-manifest.json` version.\n\n#### Step 8: Leak Detection\n\nVerify no project-specific content leaked into the kit repo by scanning the text surfaces for brand names and absolute paths.\n\n#### Step 9: Commit and Tag\n\nCommit and tag the release in the kit repo:\n\n```bash\ncd \u003CkitRepoPath>\ngit add -A\ngit commit -m \"Release vX.Y.Z\"\ngit tag vX.Y.Z\n```\n\n#### Step 10: Push\n\nPush commits and tags to the remote repository.\n\n#### Step 11: Create GitHub Release\n\nCreate a GitHub release using the `gh` tool.\n\n#### Step 12: Print Summary\n\nPrint publish summary containing the new version, files changed, remote repository URL, tag, and release link.\n\n---\n\n## References\n\n- [ag-update Reference Document](references\u002Fag-update.md)\n- [ag-publish Reference Document](references\u002Fag-publish.md)\n",{"name":5,"layer":24,"description":7,"trigger_keywords":25},"helper","harness, sync","main","1ef0dcd00fe806a8dc4e0b7173b9db967c3ab274",".claude\u002Fskills\u002Fag-harness-sync","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit","https:\u002F\u002Fgithub.com\u002Fngxccc","https:\u002F\u002Fngxccc.github.io","Make it work, make it right, make it fast.","2026-08-02 20:59:07",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ngxccc\u002Fagent-skills-kit --skill ag-harness-sync",{"tool":40,"command":41},"bunx","bunx skills add ngxccc\u002Fagent-skills-kit --skill ag-harness-sync",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ngxccc\u002Fagent-skills-kit --skill ag-harness-sync","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-harness-sync\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fag-publish.md","REFERENCE","参考文档",9058,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-harness-sync\u002Freferences\u002Fag-publish.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fag-update.md",10063,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-harness-sync\u002Freferences\u002Fag-update.md",[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M76W3C8X6Q5DS0364KQT7W7A","zustand","Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzustand\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M76W39FJGES309VAH7SFWA9Y","zod","Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzod\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":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M76W36HTYA4BR5FKCWMX1RFR","upstash-ratelimit","Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fupstash-ratelimit\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M76W32H4PS01WFRS7FNPK2G1","ui-design","UI\u002FUX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fui-design\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M76W2YAP6RK8N0EVWFG54VD7","typescript","TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to \"optimize TypeScript performance\", \"speed up tsc compilation\", \"configure tsconfig.json\", \"fix type errors\", \"improve async patterns\", or encounters TS errors (TS2322, TS2339, \"is not assignable to\"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76W2RMAZNNJQ2HECH3X6ZSH","typescript-refactor","TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React\u002FTSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-refactor\u002FSKILL.md",[],[]]