[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RW5S8RJEXN72H5X0RGGXH":3,"skill-same:01M77RW5S8RJEXN72H5X0RGGXH":62},{"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":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M77RW5S8RJEXN72H5X0RGGXH","extension-to-functions-codebase",null,"Skill for converting an installed Firebase Extension (or extension source) into a standalone Cloud Functions for Firebase codebase or publishable npm package, including V1 to V2 trigger upgrades, lifecycle hooks, and declarative security","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fextension-to-functions-codebase\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Skill for converting an installed Firebase Extension (or extension source) into a standalone Cloud Functions for Firebase codebase or publishable npm package, including V1 to V2 trigger upgrades, lifecycle hooks, and declarative security\"\nmetadata: {\"category\":\"Serverless\"}\n---\n# Extension to Functions Codebase & npm Package Migration\n\n## Overview\n\nMigrates a Firebase Extension into either:\n\n1. **A local Cloud Functions codebase** (`functions\u002Fsrc\u002F` for app integration).\n1. **A publishable npm package** (reusable open-source package exporting V2\n   functions).\n\nLeverages native Cloud Functions features (declarative IAM, Parameterized\nConfig, SDK Lifecycle Hooks) and modernizes 1st Gen triggers to 2nd Gen using\nthe Destructuring Compatibility Shim.\n\n______________________________________________________________________\n\n## Target Migration Workflows\n\n- **Target A: Local Functions Codebase** (End-User App Integration)\n\n  - Output: Code under `functions\u002Fsrc\u002F`. Config in `.env`.\n  - Deployment: `firebase deploy --only functions`.\n\n- **Target B: Publishable npm Package \u002F Shareable Package**\n\n  - Output: Reusable npm package exporting V2 functions.\n  - Configuration: `package.json` specifying `exports` map,\n    `engines: { \"node\": \">=22\" }`, and\n    `peerDependencies: { \"firebase-functions\": \">=6.0.0\" }`.\n  - Usage: Consumers install package and re-export functions in `index.ts`\n    (`export * from \"\u003Cpackage-name>\"`).\n\n______________________________________________________________________\n\n## Core Rules & Constraints\n\n### 1. Declarative IAM & APIs (Zero-Local-Overhead)\n\nUse native SDK declarations instead of manual `gcloud` scripts or console\ninstructions:\n\n- Use `requiresRole(\"roles\u002F...\")` for required GCP IAM permissions.\n- Use `requiresAPI(\"service.googleapis.com\", \"Description\")` for Google APIs.\n\n### 2. Global Parameter Access Restriction\n\n- **Never call `.value()` at top-level module load scope.**\n- Initialize global SDK instances inside `onInit()` or lazy getters:\n  ```typescript\n  import { defineString } from \"firebase-functions\u002Fparams\";\n  import { onInit } from \"firebase-functions\u002Fv2\";\n\n  const dataset = defineString(\"DATASET_ID\");\n  let client: BigQuery;\n\n  onInit(() => {\n    client = new BigQuery({ datasetId: dataset.value() });\n  });\n  ```\n\n### 3. V2 Concurrency & Cost Parity\n\nV2 enables concurrency (up to 80 requests). To preserve V1 single-concurrency\npricing, set `cpu: \"gcf_gen1\"`.\n\n______________________________________________________________________\n\n## Step-by-Step Migration Execution\n\n### Step 1: Inventory Extension Resources\n\n1. **`extension.yaml`**:\n   - `params` → `defineString`, `defineInt`, `defineBoolean`, `defineSecret`.\n   - `apis` → `requiresAPI(...)`.\n   - `roles` → `requiresRole(...)`.\n   - `lifecycleEvents` → `afterFirstDeploy` & `afterRedeploy`.\n   - `resources` → Upgrade 1st Gen triggers to 2nd Gen (`onDocumentWritten`,\n     `onTaskDispatched`, `onRequest`).\n1. **Files & Scripts**: Preserve devDependencies, test framework (`jest`), and\n   test scripts.\n\n### Step 2: Configure `package.json`\n\n- Set `name: \"\u003Cpackage-name>\"`, `engines: { \"node\": \">=22\" }`.\n- Set `peerDependencies`:\n  ```json\n  \"peerDependencies\": {\n    \"firebase-admin\": \"^11.0.0 || ^12.0.0\",\n    \"firebase-functions\": \">=6.0.0\"\n  }\n  ```\n- Configure `exports` map targeting ESM\u002FCommonJS and TypeScript declarations\n  (`lib\u002Findex.js`, `lib\u002Findex.d.ts`).\n\n### Step 3: Upgrade Triggers from V1 to V2\n\n- Firestore: Use `onDocumentWritten` from `firebase-functions\u002Fv2\u002Ffirestore`.\n- Tasks: Use `onTaskDispatched` from `firebase-functions\u002Fv2\u002Ftasks`. Remove\n  `EXT_INSTANCE_ID` when enqueueing tasks.\n- HTTP: Use `onRequest` from `firebase-functions\u002Fv2\u002Fhttps`.\n- Apply Destructuring Compatibility Shim (`{ change, context }`,\n  `{ snapshot, context }`) where legacy 1st Gen handlers expect\n  `(change, context)`.\n\n### Step 4: Convert Lifecycle Events\n\nMap extension lifecycle events to SDK lifecycle hooks in `src\u002Findex.ts`:\n\n- `onInstall` → `afterFirstDeploy({ task: { function: \"initTask\" } })`\n- `onUpdate` \u002F `onConfigure` →\n  `afterRedeploy({ task: { function: \"setupTask\" } })`\n\n### Step 5: Package README & Export Instructions\n\nGenerate `README.md` containing:\n\n1. Installation instructions (`npm install`).\n1. Re-export snippet (`export * from \"\u003Cpackage-name>\"`).\n1. Parameterized Configuration `.env` reference table.\n1. What Changed (Extension vs Package) comparison table.\n\n_Reminder: NEVER execute `npm publish`._\n","# Extension to Functions Codebase & npm Package Migration\n\n## Overview\n\nMigrates a Firebase Extension into either:\n\n1. **A local Cloud Functions codebase** (`functions\u002Fsrc\u002F` for app integration).\n1. **A publishable npm package** (reusable open-source package exporting V2\n   functions).\n\nLeverages native Cloud Functions features (declarative IAM, Parameterized\nConfig, SDK Lifecycle Hooks) and modernizes 1st Gen triggers to 2nd Gen using\nthe Destructuring Compatibility Shim.\n\n______________________________________________________________________\n\n## Target Migration Workflows\n\n- **Target A: Local Functions Codebase** (End-User App Integration)\n\n  - Output: Code under `functions\u002Fsrc\u002F`. Config in `.env`.\n  - Deployment: `firebase deploy --only functions`.\n\n- **Target B: Publishable npm Package \u002F Shareable Package**\n\n  - Output: Reusable npm package exporting V2 functions.\n  - Configuration: `package.json` specifying `exports` map,\n    `engines: { \"node\": \">=22\" }`, and\n    `peerDependencies: { \"firebase-functions\": \">=6.0.0\" }`.\n  - Usage: Consumers install package and re-export functions in `index.ts`\n    (`export * from \"\u003Cpackage-name>\"`).\n\n______________________________________________________________________\n\n## Core Rules & Constraints\n\n### 1. Declarative IAM & APIs (Zero-Local-Overhead)\n\nUse native SDK declarations instead of manual `gcloud` scripts or console\ninstructions:\n\n- Use `requiresRole(\"roles\u002F...\")` for required GCP IAM permissions.\n- Use `requiresAPI(\"service.googleapis.com\", \"Description\")` for Google APIs.\n\n### 2. Global Parameter Access Restriction\n\n- **Never call `.value()` at top-level module load scope.**\n- Initialize global SDK instances inside `onInit()` or lazy getters:\n  ```typescript\n  import { defineString } from \"firebase-functions\u002Fparams\";\n  import { onInit } from \"firebase-functions\u002Fv2\";\n\n  const dataset = defineString(\"DATASET_ID\");\n  let client: BigQuery;\n\n  onInit(() => {\n    client = new BigQuery({ datasetId: dataset.value() });\n  });\n  ```\n\n### 3. V2 Concurrency & Cost Parity\n\nV2 enables concurrency (up to 80 requests). To preserve V1 single-concurrency\npricing, set `cpu: \"gcf_gen1\"`.\n\n______________________________________________________________________\n\n## Step-by-Step Migration Execution\n\n### Step 1: Inventory Extension Resources\n\n1. **`extension.yaml`**:\n   - `params` → `defineString`, `defineInt`, `defineBoolean`, `defineSecret`.\n   - `apis` → `requiresAPI(...)`.\n   - `roles` → `requiresRole(...)`.\n   - `lifecycleEvents` → `afterFirstDeploy` & `afterRedeploy`.\n   - `resources` → Upgrade 1st Gen triggers to 2nd Gen (`onDocumentWritten`,\n     `onTaskDispatched`, `onRequest`).\n1. **Files & Scripts**: Preserve devDependencies, test framework (`jest`), and\n   test scripts.\n\n### Step 2: Configure `package.json`\n\n- Set `name: \"\u003Cpackage-name>\"`, `engines: { \"node\": \">=22\" }`.\n- Set `peerDependencies`:\n  ```json\n  \"peerDependencies\": {\n    \"firebase-admin\": \"^11.0.0 || ^12.0.0\",\n    \"firebase-functions\": \">=6.0.0\"\n  }\n  ```\n- Configure `exports` map targeting ESM\u002FCommonJS and TypeScript declarations\n  (`lib\u002Findex.js`, `lib\u002Findex.d.ts`).\n\n### Step 3: Upgrade Triggers from V1 to V2\n\n- Firestore: Use `onDocumentWritten` from `firebase-functions\u002Fv2\u002Ffirestore`.\n- Tasks: Use `onTaskDispatched` from `firebase-functions\u002Fv2\u002Ftasks`. Remove\n  `EXT_INSTANCE_ID` when enqueueing tasks.\n- HTTP: Use `onRequest` from `firebase-functions\u002Fv2\u002Fhttps`.\n- Apply Destructuring Compatibility Shim (`{ change, context }`,\n  `{ snapshot, context }`) where legacy 1st Gen handlers expect\n  `(change, context)`.\n\n### Step 4: Convert Lifecycle Events\n\nMap extension lifecycle events to SDK lifecycle hooks in `src\u002Findex.ts`:\n\n- `onInstall` → `afterFirstDeploy({ task: { function: \"initTask\" } })`\n- `onUpdate` \u002F `onConfigure` →\n  `afterRedeploy({ task: { function: \"setupTask\" } })`\n\n### Step 5: Package README & Export Instructions\n\nGenerate `README.md` containing:\n\n1. Installation instructions (`npm install`).\n1. Re-export snippet (`export * from \"\u003Cpackage-name>\"`).\n1. Parameterized Configuration `.env` reference table.\n1. What Changed (Extension vs Package) comparison table.\n\n_Reminder: NEVER execute `npm publish`._\n",{"metadata":24,"description":7},{"category":25},"Serverless","main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fextension-to-functions-codebase",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill extension-to-functions-codebase",{"tool":40,"command":41},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill extension-to-functions-codebase",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill extension-to-functions-codebase","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fextension-to-functions-codebase\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fconfiguration-migration.md","REFERENCE","参考文档",6553,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fextension-to-functions-codebase\u002Freferences\u002Fconfiguration-migration.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fdestructuring-shim.md",4466,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fextension-to-functions-codebase\u002Freferences\u002Fdestructuring-shim.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fsignature-mapping.md",4350,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fextension-to-functions-codebase\u002Freferences\u002Fsignature-mapping.md",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]