[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73FPM5DFG9QNGYWHBXC2TTA":3,"skill-same:01M73FPM5DFG9QNGYWHBXC2TTA":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M73FPM5DFG9QNGYWHBXC2TTA","script-lifecycle-manager",null,"Manages the creation, versioning, deprecation, and maintenance of automation scripts across the workspace and templates. Use when: creating new scripts, updating script versions, deprecating scripts, or managing script dependencies in SCRIPTS.md.","5throck\u002Fai-workspace-standards","5throck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10958964?v=4","01M73BFEH0V0VS483TW4JD49JW","01M73BFEJ5VQZJHJSFTVPAZGDM",25,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-safety\u002F.claude\u002Fskills\u002Fscript-lifecycle-manager\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: script-lifecycle-manager\nstatus: active\nscope: co-safety\ndescription: >\n  Manages the creation, versioning, deprecation, and maintenance of automation scripts\n  across the workspace and templates. Use when: creating new scripts, updating script versions,\n  deprecating scripts, or managing script dependencies in SCRIPTS.md.\nowner: pm\nversion: 1.2.0\nlast_reviewed: 2026-05-30\nmetadata:\n  type: process\n  triggers:\n    - create script\n    - update script\n    - deprecate script\n    - script lifecycle\n    - manage scripts\n---\n\naudit_exception: safety-os-skill-structure — Safety OS skills use the legal_basis-gated SSOT skill format (validated by scripts\u002Fskill-lifecycle-audit.ts and scripts\u002Fvalidate-skills.ts), not the generic template 5-section\u002F7-frontmatter schema\n\n## Overview\n\nThis skill provides a systematic approach to managing the lifecycle of automation scripts (`scripts\u002F*.sh`, `scripts\u002F*.ps1`, `scripts\u002F*.ts`) in accordance with `docs\u002Fcontext.md` (Lifecycle Management rules). It ensures scripts are properly registered in `SCRIPTS.md`, have strict version bumps, handle dependencies, and follow deprecation protocols (90-day notice).\n\n## When to Use This Skill\n\n**Create New Script:**\n- Trigger: \"Create a new script for X\"\n- Action: Generate `.ts` or paired `.sh\u002F.ps1` files, add execution permissions, and register in `SCRIPTS.md` as `active` version `1.0.0`.\n\n**Update Existing Script:**\n- Trigger: \"Update the build script\"\n- Action: Modify the script, bump the version in `SCRIPTS.md`, and update `README.md` via `generate-scripts-readme.ts`.\n\n**Deprecate Script:**\n- Trigger: \"Deprecate the old sync script\"\n- Action: Set `status: deprecated` and `removal-date` (current date + 90 days) in `SCRIPTS.md`.\n\n## Lifecycle Management Rules\n\n1. **Ownership Layers**:\n   - L0 (SSOT): `scripts\u002F` (workspace root). All development and registry (`SCRIPTS.md`) live here.\n   - L1 (Template snapshot): `templates\u002Fcommon\u002Fscripts\u002F`. Publish explicitly: `bun scripts\u002Fpublish-to-template.ts`.\n   - L2 (Project): `\u003Cproject>\u002Fscripts\u002F`. Snapshot of L1 at `new-project` creation time.\n   - Never edit L1 directly; edit L0 and publish.\n2. **State Management**:\n   - `active`: In production use, bump version on change.\n   - `deprecated`: Scheduled for removal, requires `removal-date`.\n   - `experimental`: Unstable, not auto-propagated.\n3. **Dependency Tracking**:\n   - Must explicitly list dependencies in the `depends_on` column of `SCRIPTS.md`.\n4. **Encoding & Compatibility**:\n   - All `.ps1` files must include UTF-8 encoding safeguard: `$OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8;`\n   - This assignment must be placed **after** the `param()` block. PowerShell rejects any executable statement before `param()` with `UnexpectedAttribute`, aborting the entire script.\n5. **PS5.1 Error Propagation**:\n   - When a `.ps1` script invokes another script with the `&` operator, `ErrorActionPreference=Stop` is inherited by the child. Git writes informational output to stderr even on success, which triggers `NativeCommandError` under `Stop`. All `git` calls (`clone`, `pull`, `add`, `commit`, `rev-parse`, etc.) must use:\n     ```powershell\n     try { git \u003Ccommand> 2>&1 | Out-Null } catch { }\n     ```\n\n## Step-by-Step Execution\n\n### Step 1: Script Implementation\nImplement the requested logic in the appropriate script file. If adding a new script, ensure both `.sh` and `.ps1` pairs are created (or use `.ts` for cross-platform). Apply the UTF-8 safeguard to `.ps1` files.\n\n### Step 2: Update Registry\nUpdate the `scripts\u002FSCRIPTS.md` registry (L0 SSOT) with the new version, status, and any dependencies. After making changes, run `bun scripts\u002Fpublish-to-template.ts` to propagate to L1.\n\n### Step 3: Auto-generate Documentation\nRun the `generate-scripts-readme.ts` script to ensure `README.md` is synchronized with `SCRIPTS.md`.\n\n### Step 4: Verification\nRun `bun scripts\u002Fverify-scripts.ts` (if available) to ensure dependencies are valid and no circular dependencies exist.\n","audit_exception: safety-os-skill-structure — Safety OS skills use the legal_basis-gated SSOT skill format (validated by scripts\u002Fskill-lifecycle-audit.ts and scripts\u002Fvalidate-skills.ts), not the generic template 5-section\u002F7-frontmatter schema\n\n## Overview\n\nThis skill provides a systematic approach to managing the lifecycle of automation scripts (`scripts\u002F*.sh`, `scripts\u002F*.ps1`, `scripts\u002F*.ts`) in accordance with `docs\u002Fcontext.md` (Lifecycle Management rules). It ensures scripts are properly registered in `SCRIPTS.md`, have strict version bumps, handle dependencies, and follow deprecation protocols (90-day notice).\n\n## When to Use This Skill\n\n**Create New Script:**\n- Trigger: \"Create a new script for X\"\n- Action: Generate `.ts` or paired `.sh\u002F.ps1` files, add execution permissions, and register in `SCRIPTS.md` as `active` version `1.0.0`.\n\n**Update Existing Script:**\n- Trigger: \"Update the build script\"\n- Action: Modify the script, bump the version in `SCRIPTS.md`, and update `README.md` via `generate-scripts-readme.ts`.\n\n**Deprecate Script:**\n- Trigger: \"Deprecate the old sync script\"\n- Action: Set `status: deprecated` and `removal-date` (current date + 90 days) in `SCRIPTS.md`.\n\n## Lifecycle Management Rules\n\n1. **Ownership Layers**:\n   - L0 (SSOT): `scripts\u002F` (workspace root). All development and registry (`SCRIPTS.md`) live here.\n   - L1 (Template snapshot): `templates\u002Fcommon\u002Fscripts\u002F`. Publish explicitly: `bun scripts\u002Fpublish-to-template.ts`.\n   - L2 (Project): `\u003Cproject>\u002Fscripts\u002F`. Snapshot of L1 at `new-project` creation time.\n   - Never edit L1 directly; edit L0 and publish.\n2. **State Management**:\n   - `active`: In production use, bump version on change.\n   - `deprecated`: Scheduled for removal, requires `removal-date`.\n   - `experimental`: Unstable, not auto-propagated.\n3. **Dependency Tracking**:\n   - Must explicitly list dependencies in the `depends_on` column of `SCRIPTS.md`.\n4. **Encoding & Compatibility**:\n   - All `.ps1` files must include UTF-8 encoding safeguard: `$OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8;`\n   - This assignment must be placed **after** the `param()` block. PowerShell rejects any executable statement before `param()` with `UnexpectedAttribute`, aborting the entire script.\n5. **PS5.1 Error Propagation**:\n   - When a `.ps1` script invokes another script with the `&` operator, `ErrorActionPreference=Stop` is inherited by the child. Git writes informational output to stderr even on success, which triggers `NativeCommandError` under `Stop`. All `git` calls (`clone`, `pull`, `add`, `commit`, `rev-parse`, etc.) must use:\n     ```powershell\n     try { git \u003Ccommand> 2>&1 | Out-Null } catch { }\n     ```\n\n## Step-by-Step Execution\n\n### Step 1: Script Implementation\nImplement the requested logic in the appropriate script file. If adding a new script, ensure both `.sh` and `.ps1` pairs are created (or use `.ts` for cross-platform). Apply the UTF-8 safeguard to `.ps1` files.\n\n### Step 2: Update Registry\nUpdate the `scripts\u002FSCRIPTS.md` registry (L0 SSOT) with the new version, status, and any dependencies. After making changes, run `bun scripts\u002Fpublish-to-template.ts` to propagate to L1.\n\n### Step 3: Auto-generate Documentation\nRun the `generate-scripts-readme.ts` script to ensure `README.md` is synchronized with `SCRIPTS.md`.\n\n### Step 4: Verification\nRun `bun scripts\u002Fverify-scripts.ts` (if available) to ensure dependencies are valid and no circular dependencies exist.\n",{"name":5,"owner":23,"scope":24,"status":25,"version":26,"metadata":27,"description":35,"last_reviewed":36},"pm","co-safety","active","1.2.0",{"type":28,"triggers":29},"process",[30,31,32,33,34],"create script","update script","deprecate script","script lifecycle","manage scripts","Manages the creation, versioning, deprecation, and maintenance of automation scripts across the workspace and templates. Use when: creating new scripts, updating script versions, deprecating scripts, or managing script dependencies in SCRIPTS.md.\n",1780099200000,"main","1162ccc568cf90c01b3886d6143cbfd851a37883","templates\u002Fco-safety\u002F.claude\u002Fskills\u002Fscript-lifecycle-manager",9,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards","https:\u002F\u002Fgithub.com\u002F5throck","Experienced in digital transformation, enterprise IT, startup acceleration, and business strategy. Focused on building practical systems that connect technolo","2026-11-14 21:22:34",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add 5throck\u002Fai-workspace-standards --skill script-lifecycle-manager",{"tool":51,"command":52},"bunx","bunx skills add 5throck\u002Fai-workspace-standards --skill script-lifecycle-manager",{"tool":54,"command":55},"pnpm","pnpm dlx skills add 5throck\u002Fai-workspace-standards --skill script-lifecycle-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-safety\u002F.claude\u002Fskills\u002Fscript-lifecycle-manager\u002FSKILL.md",true,[],[60,68,73,78,83,88],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":67},"01M7BBJDYHJMGTJYSC37JVWY8S","i18n-layout","Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL\u002Fbidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF\u002FBOM issues surface.","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":69,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":67},"01M7BBJ9XHAAS1AVGKZZ841VBZ","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.hermes\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":74,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":67},"01M7BBJ5C3X8TKFKG5R9P9P49W","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.gemini\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":79,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":67},"01M7BBJ1B52X0QMJ2QVBMPJB37","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.codex\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":84,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":67},"01M7BBHX91BW2Q2R276MRX5AW3","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.claude\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":89,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":67},"01M7BBHQWGXPSFRWN1PRC2NMMV","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.agents\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[]]