[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76Z6RSDWYZARGG64CD9RS7E":3,"skill-same:01M76Z6RSDWYZARGG64CD9RS7E":59},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M76Z6RSDWYZARGG64CD9RS7E","anyskill",null,"AnySkill — your private skill cloud. Manage, sync, and dynamically load agent skills from a GitHub-backed repository. Search cloud skills by natural language, auto-load prompts on demand, upload and share custom skills, batch install skill bundles. Works with OpenClaw, Antigravity, Claude Code, and Cursor.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fanyskill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: anyskill\nversion: 2.0.0\ndescription: \"AnySkill — your private skill cloud. Manage, sync, and dynamically load agent skills from a GitHub-backed repository. Search cloud skills by natural language, auto-load prompts on demand, upload and share custom skills, batch install skill bundles. Works with OpenClaw, Antigravity, Claude Code, and Cursor.\"\nmetadata:\n  openclaw:\n    requires:\n      env:\n        - ANYSKILL_GITHUB_TOKEN\n      config:\n        - ~\u002F.anyskill\u002Fconfig.json\n      bins:\n        - git\n    primaryEnv: ANYSKILL_GITHUB_TOKEN\n    emoji: \"🧠\"\n    homepage: https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill\n---\n\n# AnySkill Bootstrapper\n\nYour local skills are incomplete. The user maintains all extended capabilities (Skills) in a cloud-based GitHub repository. You need to **dynamically load** your capabilities from the cloud.\n\n**Token scope required**: This skill requires a GitHub **Fine-grained PAT** scoped to a **single repository** (the user's private skill repo) with `Contents: Read and write` permission only. The token is used to: clone the private repo, fetch `index.json`, commit new\u002Fupdated skills, and push changes. A read-only token will work for loading\u002Fsearching skills but not for upload\u002Fsync operations.\n\n**Config files accessed**: `~\u002F.anyskill\u002Fconfig.json` (primary config) or `{project root}\u002F.anyskill.json` (legacy project-level config).\n\n---\n\n## Step Zero: Read or Initialize Configuration (Global Priority + Auto-Discovery)\n\n**Before performing any operation, you must search for the AnySkill configuration in the following priority chain. Once a valid configuration is found at any level, stop immediately and use it.**\n\n### Configuration Lookup Priority Chain\n\n1. **Global config** `~\u002F.anyskill\u002Fconfig.json` (machine-level, shared across projects and IDEs)\n2. **Project-level config** `{project root}\u002F.anyskill.json` (backward compatible with older versions)\n3. **None found** → Enter the initialization flow\n\n### Token Retrieval Priority (for private repo authentication)\n\nRegardless of which level the config is read from, the token retrieval priority is always:\n1. Check environment variable `ANYSKILL_GITHUB_TOKEN`\n2. Check the `token` field in the config file\n\nIf a token is obtained, include it in all HTTP requests as a header:\n```\nAuthorization: token {token}\n```\n\n### Case 1: Config Already Exists (returning user \u002F previously initialized device)\n\nThe user has previously initialized on this machine. **Skip all initialization** and directly verify the config:\n1. Read `repo` and `localPath` from the config.\n2. Construct key URLs:\n   - **Index URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002F{repo}\u002F{branch}\u002Findex.json`\n   - **Files base URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002F{repo}\u002F{branch}\u002Fskills\u002F`\n3. Verify that the `localPath` directory exists. If not, automatically re-clone:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002F{repo}.git {localPath}\n   ```\n   (The token is passed via the `Authorization` header or `GIT_ASKPASS` environment, not embedded in the URL.)\n4. Attempt to fetch `index.json` to confirm connectivity.\n5. Inform the user:\n   > ✅ AnySkill configuration detected, connected to repository `{repo}`. Ready to use!\n6. **If current environment is OpenClaw**: Check if `TOOLS.md` already contains a `### AnySkill` section. If not, or if the skill list is outdated, execute the \"OpenClaw Exclusive: Write Workspace Config\" steps below to register\u002Fupdate the skill list.\n\nIf verification fails (network error or repo deleted), ask the user if they want to re-initialize.\n\n### Automatic Version Check (runs on every initialization)\n\n**After the config is verified (whether Case 1 or after initialization completes), perform a silent version check:**\n\n1. Fetch upstream version info:\n   ```\n   https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002Fversion.json\n   ```\n   File structure:\n   ```json\n   {\n     \"engine\": {\n       \"version\": \"x.y.z\",\n       \"changelog\": [\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\", \"change 2\"] },\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\"] }\n       ]\n     },\n     \"infra\": {\n       \"version\": \"x.y.z\",\n       \"files\": [\"generate-index.js\", \".github\u002Fworkflows\u002Fbuild-index.yml\"],\n       \"changelog\": [\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\"] }\n       ]\n     }\n   }\n   ```\n\n2. **Engine version check**:\n   - Read the `version` field from this file's (SKILL.md) frontmatter (currently `2.0.0`).\n   - Compare with remote `engine.version`.\n   - If remote version is **higher**, filter all changelog entries **above the local version** and display newest to oldest:\n     > 🔔 AnySkill engine update available v{remote} (current v{local})\n     >\n     > 📋 **Update history:**\n     > **v2.1.0** (2025-03-10)\n     > - New feature A\n     > - Improvement B\n     >\n     > **v2.0.0** (2025-03-04)\n     > - New feature C\n     >\n     > To update, run: `clawhub update anyskill`\n   - **Do not auto-overwrite SKILL.md.** Inform the user to update via ClawHub CLI which provides versioned, auditable updates.\n\n3. **Infrastructure version check**:\n   - Read the `.anyskill-infra-version` file from the user's private repo `{localPath}`. If it doesn't exist, treat as `0.0.0`.\n   - Compare with remote `infra.version`.\n   - If remote version is **higher**, similarly filter and display all new version changes:\n     > 🔔 Repository infrastructure update available v{remote} (current v{local})\n     >\n     > 📋 **Update history:**\n     > **v1.1.0** (2025-03-10)\n     > - Improved index generation\n     >\n     > Would you like to update?\n   - After user confirms, iterate over `infra.files` array, downloading each from upstream and overwriting in the user's `{localPath}`:\n     ```\n     https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002F{file}\n     ```\n   - Write version marker file `{localPath}\u002F.anyskill-infra-version` with the new version number.\n   - Execute git operations to commit changes:\n     ```bash\n     cd {localPath}\n     git add -A\n     git commit -m \"chore: update AnySkill infra to v{version}\"\n     git push origin {branch}\n     ```\n\n4. If both versions are up to date, **output nothing** — pass silently.\n\n5. If `version.json` fetch fails (network error), **silently skip** version check without affecting normal usage.\n\n> 💡 Version check is a lightweight operation (only fetches a small JSON), it won't slow down normal workflows.\n\n### Case 2: Config Not Found (new device \u002F first use)\n\n**Before asking the user any questions, first silently detect if a usable Token already exists:**\n1. Check if environment variable `ANYSKILL_GITHUB_TOKEN` exists.\n2. If it **exists** (meaning the user has previously configured AnySkill on this machine):\n   - **Do not ask the user for a Token**, directly jump to \"Path B: User only provided a Token\" auto-discovery flow below.\n   - The entire process should be silent to the user: AI auto-detects cloud repo → confirms mount → writes global config → ready.\n3. If it **does not exist**, then initiate the guided conversation (see below).\n\n#### Guided Conversation (only when Token cannot be silently obtained)\n\nGuide the user through initialization via natural language conversation. **The user should never need to run any terminal commands.**\n\n**Say something like this to the user:**\n\n>  👋 Welcome to AnySkill! Let me help you connect your private skill repository.\n>\n> Do you **already have** an AnySkill skill repository?\n>\n> ---\n>\n> **A) I have a repo** — Just provide your Token and repo name:\n> `github_pat_xxx username\u002Fmy-skills` (space-separated)\n>\n> ---\n>\n> **B) I don't have one yet** — Follow these steps (works on mobile too):\n>\n> **Step 1: Create a private skill repository**\n> Open 👉 [One-click create repo](https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill\u002Fgenerate)\n> - **Repository name**: enter `my-skills` (or any name you like)\n> - ⚠️ **Must select Private** (do not choose Public)\n> - Click **Create repository**\n>\n> **Step 2: Create a Token (a key for AI to access your repo)**\n> Open 👉 [Create Token](https:\u002F\u002Fgithub.com\u002Fsettings\u002Fpersonal-access-tokens\u002Fnew)\n> - **Token name**: enter `AnySkill`\n> - **Expiration**: pick a duration you're comfortable with\n> - **Repository access**: select **\"Only select repositories\"**\n>   → Search for and select your `my-skills` repo in the dropdown\n>   ⚠️ Note: if you chose \"Public Repositories\", the permissions panel below will NOT appear!\n> - After selecting a repo, a **Permissions** panel appears below\n>   → Expand **\"Repository permissions\"**\n>   → Scroll down to find **\"Contents\"** (near the top of the list)\n>   → Change it from \"No access\" to **\"Read and write\"**\n> - Leave all other permissions at \"No access\"\n> - Click **\"Generate token\"** at the bottom\n> - Copy the generated Token (starts with `github_pat_`)\n>\n> **Step 3: Send me your Token and repo name**\n> Format: `github_pat_xxx your-username\u002Fmy-skills`\n>\n> ---\n>\n> Send it over when you're ready! If you get stuck on any step, just ask.\n\n#### Handling User Response\n\n**Decision criteria**: Whether the user's response contains a repository address (format: `username\u002Frepo-name`).\n\n- **Contains repo address** → Follow \"Path A\"\n- **No repo address (Token only)** → Follow \"Path B\"\n\n---\n\n#### Path A: User provided both Token and repository address\n\nAfter the user provides a repo address and Token:\n1. Ask the user where they want to clone the repo locally (default suggestion: `\u002Ftmp\u002F{repo-name}`).\n2. **Securely store the Token** (depends on IDE environment):\n   - **OpenClaw**: Set environment variable `ANYSKILL_GITHUB_TOKEN` via the platform's standard env configuration.\n   - **Other IDEs (Antigravity\u002FClaude Code\u002FCursor)**: Write token to the config file.\n3. Execute clone:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F{repo}.git {localPath}\n```\n(Use `GIT_ASKPASS` or credential helper to authenticate, do not embed token in URL.)\n4. Create **global config file** `~\u002F.anyskill\u002Fconfig.json`:\n\n**OpenClaw version** (without token):\n```json\n{\n  \"repo\": \"user-provided-address\",\n  \"branch\": \"main\",\n  \"localPath\": \"\u002Ftmp\u002F{repo-name}\"\n}\n```\n\n**Other IDE version** (with token):\n```json\n{\n  \"repo\": \"user-provided-address\",\n  \"branch\": \"main\",\n  \"token\": \"github_pat_xxxxxxxxxxxx\",\n  \"localPath\": \"\u002Ftmp\u002F{repo-name}\"\n}\n```\n\n---\n\n#### Path B: User only provided a Token — Auto-Discovery Flow (⚠️ Core Path)\n\n> **This is the most common scenario.** The user only gave a Token without specifying a repo name.\n> **You must strictly follow these three steps. Never skip any step. Never directly create a new repo.**\n\n**Step 1: Get the user's GitHub username via Token**\n\nUse the GitHub API or command line to get user info:\n```bash\ncurl -s -H \"Authorization: token {token}\" https:\u002F\u002Fapi.github.com\u002Fuser\n```\nExtract the `login` field from the returned JSON — that's the username.\n\n**Step 2: Auto-search for existing AnySkill skill repositories under the username**\n\nCall the GitHub Repository Search API:\n```bash\ncurl -s -H \"Authorization: token {token}\" \"https:\u002F\u002Fapi.github.com\u002Fsearch\u002Frepositories?q=user:{login}+anyskill+in:name,description\"\n```\n\nFor **each candidate repo** in the results, try to read its `index.json`:\n`https:\u002F\u002Fraw.githubusercontent.com\u002F{login}\u002F{candidate-repo-name}\u002F{default-branch}\u002Findex.json`\nIf `index.json` can be read successfully, this repo is a genuine AnySkill skill repository.\n\n**Step 3: Branch based on detection results**\n\n- **✅ Existing skill repo detected**: Inform user and request confirmation:\n  > 👋 Welcome back! I detected an existing skill repository `{login}\u002F{repo-name}`. Mounting automatically...\n\n  Then auto-execute clone and config write (same as Path A steps 1-4), **without asking unnecessary questions**.\n\n- **❌ No skill repo detected** (confirmed as a brand new user):\n\n  Guide the user to create a repo first:\n  > I couldn't find a skill repository under your account. Please create one first:\n  >\n  > 👉 [One-click create skill repository](https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill\u002Fgenerate)\n  >\n  > Suggested name: `my-skills`, **make sure to check Private**.\n  > Once created, tell me the repo name and I'll finish the setup!\n\n  After the user provides the repo name, execute clone and config write (same as Path A steps 1-4).\n\n  > 💡 **Security tip**: After the repo is created, go back to your Token settings and change **Repository access** to **Only select repositories**, selecting only this repo for minimal permissions.\n\n#### Initialization Complete\n\nRegardless of which path was taken, inform the user upon completion:\n> ✅ AnySkill configuration complete!\n> 📦 Skill repository: `{repo}`\n> 📂 Local path: `{localPath}`\n> 🔧 Global config: `~\u002F.anyskill\u002Fconfig.json`\n> From now on, you can load, download, and publish skills from any project.\n\n#### OpenClaw Exclusive: Write Workspace Config (only in OpenClaw environments)\n\nIf the current environment is **OpenClaw** (detected by: `ANYSKILL_GITHUB_TOKEN` exists in `~\u002F.openclaw\u002F.env`, or user explicitly specified, or `~\u002F.openclaw\u002F` directory detected), perform these **two additional steps** after initialization:\n\n**Step 1: Append to `TOOLS.md`**\n\nFind the OpenClaw workspace `TOOLS.md` file (path: `~\u002F.openclaw-config\u002Fworkspace\u002FTOOLS.md` or `{OpenClaw project root}\u002F.openclaw-config\u002Fworkspace\u002FTOOLS.md`).\n\nFirst check if the file already contains a `### AnySkill` section. Then read `index.json` (local `{localPath}\u002Findex.json` or remote fetch) to get the current skill inventory.\n\nIf `### AnySkill` section **does not exist**, append at end of file; if it **already exists**, **replace the entire section** (ensure the skill list is up to date):\n\n```markdown\n\n### AnySkill\n\n- **Skill Repository**: `{repo}`\n- **Global Config**: `~\u002F.anyskill\u002Fconfig.json`\n- **Local Path**: `{localPath}`\n- **Skill Loading**: When you lack a skill, read the guide in `~\u002F.openclaw\u002Fskills\u002Fanyskill\u002FSKILL.md` to load from the cloud AnySkill repository on demand\n- **Operation**: All skill management (load, download, upload, list, delete) is triggered via natural language, no CLI needed\n\n#### Registered Cloud Skills\n\n| Skill Name | Description |\n|:---|:---|\n| `{name}` | {description} |\n| ... | ... |\n\n(This list is dynamically generated from `index.json`, auto-updated after every skill add\u002Fremove\u002Fupdate)\n```\n\n> 📌 **The \"Registered Cloud Skills\" table must be generated in real-time from `index.json`**, iterating all skill entries and filling in `name` and `description`. If `index.json` is empty or fetch fails, display \"No skills yet\".\n\n**Step 2: Append to `AGENTS.md`**\n\nFind the OpenClaw workspace `AGENTS.md` file (same directory as `TOOLS.md`).\n\nSearch for the `## Tools` section. At the **end** of that section (before the next `##` heading), check if AnySkill-related content already exists. If **not**, append:\n\n```markdown\n\n**🧠 AnySkill Cloud Skills**: When you need to perform specific tasks (frontend design, API integration, data scraping, etc.) but don't have the corresponding skill locally, first check the AnySkill guide in `~\u002F.openclaw\u002Fskills\u002Fanyskill\u002FSKILL.md` to load capabilities on demand from your cloud private skill repository.\n```\n\nIf AnySkill-related content already exists, skip this step.\n\n> ⚠️ **Do not modify any other content** in these two files. Only append or update the AnySkill section — never overwrite existing user configurations.\n\n#### OpenClaw Skill Registry Sync (General Rule)\n\n> 📌 **Any operation that changes the skill list** (Mode 4 upload, Mode 5 update, Mode 7 delete, Mode 9 Pack install) must, after completion, if the current environment is OpenClaw, **re-read the latest `index.json` and replace the entire `### AnySkill` section in `TOOLS.md`** using the format above, ensuring the \"Registered Cloud Skills\" table always stays in sync with the cloud.\n>\n> This sync operation should be performed after git push completes and a few seconds wait (because GitHub Actions needs to rebuild `index.json`), or directly read from local `{localPath}\u002Findex.json`.\n\nThen continue executing the user's original request.\n\n---\n\n## Mode 1: On-Demand Loading (default behavior, in-memory only)\n\nWhen the user issues a task and you determine that the local environment lacks specific execution details:\n\n1. Read AnySkill config via the priority chain (global `~\u002F.anyskill\u002Fconfig.json` → project-level `.anyskill.json`).\n2. Use your web reading tool to fetch `index.json` from the index URL (include auth header if token is available).\n3. Find the most matching entry based on each skill's `description` for the current task.\n4. For each file in the `files` array, read all files from the cloud into **memory** (do not save to local disk), then digest the `SKILL.md` specifications.\n5. Complete the user's original request based on the loaded specifications.\n\n> 💡 On-demand loading is lightweight and leaves no local files. Ideal for one-time use or trying out skills.\n\n---\n\n## Mode 2: On-Demand Download (specific skill to disk)\n\nWhen the user explicitly says **\"download XX skill\", \"pull XX to local\", \"install XX skill\"** or similar instructions targeting a **single skill**:\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json`, match the target skill by the name or description the user specified.\n3. **Detect the current AI IDE environment** and determine the download path (see path reference table below).\n4. Download each file from the skill's `files` array to the local IDE skill directory, **preserving the original directory structure**.\n5. Inform the user upon completion: Skill `{skill-name}` downloaded to `{path}`, N files total.\n\n---\n\n## Mode 3: Full Download to Local\n\nWhen the user explicitly says **\"download all skills\", \"pull skills to local\", \"sync cloud skills\"** or similar instructions, perform a full download.\n\n### Steps\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json` for the complete skill list.\n3. **Detect the current AI IDE environment** and determine the download path (see table below). If unable to detect automatically, **ask the user**.\n4. For each skill, iterate its `files` array, downloading each file and **preserving the original directory structure**.\n   - For example, if `files` contains `my-skill\u002Fscripts\u002Fhelper.py`, the download URL is `{files-base-url}my-skill\u002Fscripts\u002Fhelper.py`, and the local path is `{IDE-skill-directory}\u002Fmy-skill\u002Fscripts\u002Fhelper.py`.\n5. After completion, report the list of downloaded skills and file counts to the user.\n\n### IDE Download Path Reference\n\n| AI IDE | Download Path | Entry File |\n|:---|:---|:---|\n| **Antigravity** | `{project root}\u002F.agent\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n| **Claude Code** | `{project root}\u002F.claude\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n| **Cursor** | `{project root}\u002F.cursor\u002Frules\u002F{skill-name}\u002F` | `SKILL.md` |\n| **OpenClaw** | `~\u002F.openclaw\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n\n### IDE Auto-Detection Logic\n\n- If the current project has an `.agent\u002F` directory or you are Antigravity → Use **Antigravity** path\n- If the current project has a `.claude\u002F` directory or you are Claude Code → Use **Claude Code** path\n- If the current project has a `.cursor\u002F` directory or you are Cursor → Use **Cursor** path\n- If the user explicitly mentions OpenClaw → Use **OpenClaw** path\n- If unable to determine → **Ask the user**: \"Which IDE are you currently using? (Antigravity\u002FClaude Code\u002FCursor\u002FOpenClaw)\"\n\n---\n\n## Mode 4: Upload Skill to Cloud\n\nWhen the user explicitly says **\"upload skill\", \"upload this skill\", \"push skill to cloud\", \"push to repo\"** or similar instructions, execute the upload flow.\n\nRead `localPath` from the AnySkill config to operate in the local repository.\n\n### Upload Steps\n\n1. Confirm the skill content to upload with the user.\n2. **The skill folder name must use the user's original name exactly** — never translate or rename it. If the user provides a Chinese name (e.g., `前端设计`), use that; if English (e.g., `web-scraper`), use English.\n3. Create `SKILL.md` under `{localPath}\u002Fskills\u002F{user-specified-name}\u002F`.\n   - `SKILL.md` must include correct YAML frontmatter (`name` and `description`).\n   - If the user provides additional files (scripts, references, etc.), place them in the corresponding subdirectory.\n4. **Auto-provision infrastructure files** (may be missing on first upload):\n   - Check if `{localPath}\u002F.github\u002Fworkflows\u002Fbuild-index.yml` exists; if not, download from template repo: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002F.github\u002Fworkflows\u002Fbuild-index.yml`\n   - Check if `{localPath}\u002Fgenerate-index.js` exists; if not, download from template repo: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002Fgenerate-index.js`\n5. Execute git operations:\n   ```bash\n   cd {localPath}\n   git add -A\n   git commit -m \"feat: add skill {user-specified-name}\"\n   git push origin {branch}\n   ```\n5. Inform the user upon completion:\n   > ✅ Skill `{name}` has been uploaded to the cloud repository!\n   > GitHub Actions will automatically rebuild `index.json` in a few seconds, after which other projects can load this skill.\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Mode 5: Update a Specific Skill\n\nWhen the user explicitly says **\"update XX skill\", \"modify XX skill\", \"change XX\"** or similar instructions:\n\n1. Read `localPath` from AnySkill config via the priority chain.\n2. Confirm that `{localPath}\u002Fskills\u002F{name}\u002F` exists. If not, inform the user the skill doesn't exist and suggest using upload mode to create a new one.\n3. Read and display the existing `SKILL.md` content to the user, ask which parts need modification.\n4. Modify the corresponding files based on the user's description.\n5. Execute git operations:\n   ```bash\n   cd {localPath}\n   git add skills\u002F{name}\u002F\n   git commit -m \"fix: update skill {name}\"\n   git push origin {branch}\n   ```\n6. Inform the user upon completion:\n   > ✅ Skill `{name}` has been updated! GitHub Actions will automatically update the index.\n7. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Mode 6: List Cloud Skills\n\nWhen the user explicitly says **\"list skills\", \"what skills are there\", \"show cloud skills\", \"skill list\"** or similar instructions:\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json`.\n3. Display all skills in a table:\n\n| Skill Name | Description | File Count |\n|:---|:---|:---|\n| `{name}` | `{description}` | `{files.length}` |\n\n4. After display, ask the user if they want to load or download any skill.\n\n---\n\n## Mode 7: Delete a Specific Skill\n\nWhen the user explicitly says **\"delete XX skill\", \"remove XX skill\", \"remove XX from repo\"** or similar instructions:\n\n1. Read `localPath` from AnySkill config via the priority chain.\n2. Confirm that `{localPath}\u002Fskills\u002F{user-specified-name}\u002F` exists.\n3. **Must confirm with the user**:\n   > ⚠️ About to delete skill `{name}`. This will permanently remove the folder from the cloud repository. Confirm deletion?\n4. After user confirms, execute:\n   ```bash\n   cd {localPath}\n   git rm -rf skills\u002F{name}\u002F\n   git commit -m \"feat: remove skill {name}\"\n   git push origin {branch}\n   ```\n5. Inform the user upon completion:\n   > ✅ Skill `{name}` has been deleted from the cloud repository. GitHub Actions will automatically update the index.\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to remove the skill from the `TOOLS.md` skill list.\n\n---\n\n## Mode 8: Delete Entire Skill Repository (requires manual action)\n\nWhen the user explicitly says **\"delete the entire repo\", \"destroy skill space\", \"I don't want this repo anymore\"** or similar instructions:\n\n> ⛔ **This operation is extremely dangerous and irreversible. AI is strictly forbidden from executing it automatically.**\n\nYou may **only** provide guidance for the user to do it themselves:\n\n1. Inform the user:\n   > ⚠️ Deleting the entire repository is irreversible, and I cannot do it on your behalf. Please go to GitHub yourself:\n   >\n   > 1. Open `https:\u002F\u002Fgithub.com\u002F{repo}\u002Fsettings` (scroll to the bottom **Danger Zone**)\n   > 2. Click **Delete this repository**\n   > 3. Confirm by typing the repository name as prompted\n   >\n   > After deletion, manually remove the local global config `~\u002F.anyskill\u002Fconfig.json` (and project-level `.anyskill.json`, if any) and the `{localPath}` directory.\n\n2. **Strictly forbidden** to call GitHub API or any command to delete the repository.\n\n---\n\n## Mode 9: Install Skills from Packs\n\nWhen the user explicitly says **\"install from Packs\", \"what packs are available\", \"install XX pack\", \"browse packs\"** or similar instructions:\n\n**Packs repository URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002F`\n\n### Browse Available Packs\n\n1. Fetch `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002Findex.json` (public repo, no Token needed).\n2. Display all packs and their skills in a table:\n\n| Pack | Skill Name | Description |\n|:---|:---|:---|\n| `{category}` | `{skill.name}` | `{skill.description}` |\n\n### Install a Specific Pack\n\n1. Find all skills in the target pack from `index.json`.\n2. **Download each skill's files individually**, saving to the user's private repo at `{localPath}\u002Fskills\u002F{skill-name}\u002F`.\n   - File URL pattern: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002Fpacks\u002F{file-path}`\n3. **Error tolerance**: If a skill download fails, skip it and continue to the next one.\n4. After download completes, execute git operations to commit skills to the user's private repo:\n   ```bash\n   cd {localPath}\n   git add skills\u002F\n   git commit -m \"feat: install pack {category}\"\n   git push origin {branch}\n   ```\n5. Provide a **summary report**:\n   > ✅ Pack `{category}` installation complete!\n   > - Succeeded: {N} (skill-a, skill-b)\n   > - Failed: {M} (skill-x — reason: download failed)\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Code of Conduct\n\n* Never guess details — always rely on cloud-fetched \"injected capabilities\".\n* You may briefly report to the user: \"Loading [skill-name] from cloud skill repository...\"\n* If `index.json` has no matching skill, inform the user that the cloud repository currently lacks the corresponding capability.\n* If a network request fails, report to the user and suggest checking network connectivity or repository availability.\n* **Throughout the entire process, never ask the user to manually run terminal commands.** All file creation, downloading, and git operations are performed automatically by you.\n","# AnySkill Bootstrapper\n\nYour local skills are incomplete. The user maintains all extended capabilities (Skills) in a cloud-based GitHub repository. You need to **dynamically load** your capabilities from the cloud.\n\n**Token scope required**: This skill requires a GitHub **Fine-grained PAT** scoped to a **single repository** (the user's private skill repo) with `Contents: Read and write` permission only. The token is used to: clone the private repo, fetch `index.json`, commit new\u002Fupdated skills, and push changes. A read-only token will work for loading\u002Fsearching skills but not for upload\u002Fsync operations.\n\n**Config files accessed**: `~\u002F.anyskill\u002Fconfig.json` (primary config) or `{project root}\u002F.anyskill.json` (legacy project-level config).\n\n---\n\n## Step Zero: Read or Initialize Configuration (Global Priority + Auto-Discovery)\n\n**Before performing any operation, you must search for the AnySkill configuration in the following priority chain. Once a valid configuration is found at any level, stop immediately and use it.**\n\n### Configuration Lookup Priority Chain\n\n1. **Global config** `~\u002F.anyskill\u002Fconfig.json` (machine-level, shared across projects and IDEs)\n2. **Project-level config** `{project root}\u002F.anyskill.json` (backward compatible with older versions)\n3. **None found** → Enter the initialization flow\n\n### Token Retrieval Priority (for private repo authentication)\n\nRegardless of which level the config is read from, the token retrieval priority is always:\n1. Check environment variable `ANYSKILL_GITHUB_TOKEN`\n2. Check the `token` field in the config file\n\nIf a token is obtained, include it in all HTTP requests as a header:\n```\nAuthorization: token {token}\n```\n\n### Case 1: Config Already Exists (returning user \u002F previously initialized device)\n\nThe user has previously initialized on this machine. **Skip all initialization** and directly verify the config:\n1. Read `repo` and `localPath` from the config.\n2. Construct key URLs:\n   - **Index URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002F{repo}\u002F{branch}\u002Findex.json`\n   - **Files base URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002F{repo}\u002F{branch}\u002Fskills\u002F`\n3. Verify that the `localPath` directory exists. If not, automatically re-clone:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002F{repo}.git {localPath}\n   ```\n   (The token is passed via the `Authorization` header or `GIT_ASKPASS` environment, not embedded in the URL.)\n4. Attempt to fetch `index.json` to confirm connectivity.\n5. Inform the user:\n   > ✅ AnySkill configuration detected, connected to repository `{repo}`. Ready to use!\n6. **If current environment is OpenClaw**: Check if `TOOLS.md` already contains a `### AnySkill` section. If not, or if the skill list is outdated, execute the \"OpenClaw Exclusive: Write Workspace Config\" steps below to register\u002Fupdate the skill list.\n\nIf verification fails (network error or repo deleted), ask the user if they want to re-initialize.\n\n### Automatic Version Check (runs on every initialization)\n\n**After the config is verified (whether Case 1 or after initialization completes), perform a silent version check:**\n\n1. Fetch upstream version info:\n   ```\n   https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002Fversion.json\n   ```\n   File structure:\n   ```json\n   {\n     \"engine\": {\n       \"version\": \"x.y.z\",\n       \"changelog\": [\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\", \"change 2\"] },\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\"] }\n       ]\n     },\n     \"infra\": {\n       \"version\": \"x.y.z\",\n       \"files\": [\"generate-index.js\", \".github\u002Fworkflows\u002Fbuild-index.yml\"],\n       \"changelog\": [\n         { \"version\": \"x.y.z\", \"date\": \"YYYY-MM-DD\", \"changes\": [\"change 1\"] }\n       ]\n     }\n   }\n   ```\n\n2. **Engine version check**:\n   - Read the `version` field from this file's (SKILL.md) frontmatter (currently `2.0.0`).\n   - Compare with remote `engine.version`.\n   - If remote version is **higher**, filter all changelog entries **above the local version** and display newest to oldest:\n     > 🔔 AnySkill engine update available v{remote} (current v{local})\n     >\n     > 📋 **Update history:**\n     > **v2.1.0** (2025-03-10)\n     > - New feature A\n     > - Improvement B\n     >\n     > **v2.0.0** (2025-03-04)\n     > - New feature C\n     >\n     > To update, run: `clawhub update anyskill`\n   - **Do not auto-overwrite SKILL.md.** Inform the user to update via ClawHub CLI which provides versioned, auditable updates.\n\n3. **Infrastructure version check**:\n   - Read the `.anyskill-infra-version` file from the user's private repo `{localPath}`. If it doesn't exist, treat as `0.0.0`.\n   - Compare with remote `infra.version`.\n   - If remote version is **higher**, similarly filter and display all new version changes:\n     > 🔔 Repository infrastructure update available v{remote} (current v{local})\n     >\n     > 📋 **Update history:**\n     > **v1.1.0** (2025-03-10)\n     > - Improved index generation\n     >\n     > Would you like to update?\n   - After user confirms, iterate over `infra.files` array, downloading each from upstream and overwriting in the user's `{localPath}`:\n     ```\n     https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002F{file}\n     ```\n   - Write version marker file `{localPath}\u002F.anyskill-infra-version` with the new version number.\n   - Execute git operations to commit changes:\n     ```bash\n     cd {localPath}\n     git add -A\n     git commit -m \"chore: update AnySkill infra to v{version}\"\n     git push origin {branch}\n     ```\n\n4. If both versions are up to date, **output nothing** — pass silently.\n\n5. If `version.json` fetch fails (network error), **silently skip** version check without affecting normal usage.\n\n> 💡 Version check is a lightweight operation (only fetches a small JSON), it won't slow down normal workflows.\n\n### Case 2: Config Not Found (new device \u002F first use)\n\n**Before asking the user any questions, first silently detect if a usable Token already exists:**\n1. Check if environment variable `ANYSKILL_GITHUB_TOKEN` exists.\n2. If it **exists** (meaning the user has previously configured AnySkill on this machine):\n   - **Do not ask the user for a Token**, directly jump to \"Path B: User only provided a Token\" auto-discovery flow below.\n   - The entire process should be silent to the user: AI auto-detects cloud repo → confirms mount → writes global config → ready.\n3. If it **does not exist**, then initiate the guided conversation (see below).\n\n#### Guided Conversation (only when Token cannot be silently obtained)\n\nGuide the user through initialization via natural language conversation. **The user should never need to run any terminal commands.**\n\n**Say something like this to the user:**\n\n>  👋 Welcome to AnySkill! Let me help you connect your private skill repository.\n>\n> Do you **already have** an AnySkill skill repository?\n>\n> ---\n>\n> **A) I have a repo** — Just provide your Token and repo name:\n> `github_pat_xxx username\u002Fmy-skills` (space-separated)\n>\n> ---\n>\n> **B) I don't have one yet** — Follow these steps (works on mobile too):\n>\n> **Step 1: Create a private skill repository**\n> Open 👉 [One-click create repo](https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill\u002Fgenerate)\n> - **Repository name**: enter `my-skills` (or any name you like)\n> - ⚠️ **Must select Private** (do not choose Public)\n> - Click **Create repository**\n>\n> **Step 2: Create a Token (a key for AI to access your repo)**\n> Open 👉 [Create Token](https:\u002F\u002Fgithub.com\u002Fsettings\u002Fpersonal-access-tokens\u002Fnew)\n> - **Token name**: enter `AnySkill`\n> - **Expiration**: pick a duration you're comfortable with\n> - **Repository access**: select **\"Only select repositories\"**\n>   → Search for and select your `my-skills` repo in the dropdown\n>   ⚠️ Note: if you chose \"Public Repositories\", the permissions panel below will NOT appear!\n> - After selecting a repo, a **Permissions** panel appears below\n>   → Expand **\"Repository permissions\"**\n>   → Scroll down to find **\"Contents\"** (near the top of the list)\n>   → Change it from \"No access\" to **\"Read and write\"**\n> - Leave all other permissions at \"No access\"\n> - Click **\"Generate token\"** at the bottom\n> - Copy the generated Token (starts with `github_pat_`)\n>\n> **Step 3: Send me your Token and repo name**\n> Format: `github_pat_xxx your-username\u002Fmy-skills`\n>\n> ---\n>\n> Send it over when you're ready! If you get stuck on any step, just ask.\n\n#### Handling User Response\n\n**Decision criteria**: Whether the user's response contains a repository address (format: `username\u002Frepo-name`).\n\n- **Contains repo address** → Follow \"Path A\"\n- **No repo address (Token only)** → Follow \"Path B\"\n\n---\n\n#### Path A: User provided both Token and repository address\n\nAfter the user provides a repo address and Token:\n1. Ask the user where they want to clone the repo locally (default suggestion: `\u002Ftmp\u002F{repo-name}`).\n2. **Securely store the Token** (depends on IDE environment):\n   - **OpenClaw**: Set environment variable `ANYSKILL_GITHUB_TOKEN` via the platform's standard env configuration.\n   - **Other IDEs (Antigravity\u002FClaude Code\u002FCursor)**: Write token to the config file.\n3. Execute clone:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F{repo}.git {localPath}\n```\n(Use `GIT_ASKPASS` or credential helper to authenticate, do not embed token in URL.)\n4. Create **global config file** `~\u002F.anyskill\u002Fconfig.json`:\n\n**OpenClaw version** (without token):\n```json\n{\n  \"repo\": \"user-provided-address\",\n  \"branch\": \"main\",\n  \"localPath\": \"\u002Ftmp\u002F{repo-name}\"\n}\n```\n\n**Other IDE version** (with token):\n```json\n{\n  \"repo\": \"user-provided-address\",\n  \"branch\": \"main\",\n  \"token\": \"github_pat_xxxxxxxxxxxx\",\n  \"localPath\": \"\u002Ftmp\u002F{repo-name}\"\n}\n```\n\n---\n\n#### Path B: User only provided a Token — Auto-Discovery Flow (⚠️ Core Path)\n\n> **This is the most common scenario.** The user only gave a Token without specifying a repo name.\n> **You must strictly follow these three steps. Never skip any step. Never directly create a new repo.**\n\n**Step 1: Get the user's GitHub username via Token**\n\nUse the GitHub API or command line to get user info:\n```bash\ncurl -s -H \"Authorization: token {token}\" https:\u002F\u002Fapi.github.com\u002Fuser\n```\nExtract the `login` field from the returned JSON — that's the username.\n\n**Step 2: Auto-search for existing AnySkill skill repositories under the username**\n\nCall the GitHub Repository Search API:\n```bash\ncurl -s -H \"Authorization: token {token}\" \"https:\u002F\u002Fapi.github.com\u002Fsearch\u002Frepositories?q=user:{login}+anyskill+in:name,description\"\n```\n\nFor **each candidate repo** in the results, try to read its `index.json`:\n`https:\u002F\u002Fraw.githubusercontent.com\u002F{login}\u002F{candidate-repo-name}\u002F{default-branch}\u002Findex.json`\nIf `index.json` can be read successfully, this repo is a genuine AnySkill skill repository.\n\n**Step 3: Branch based on detection results**\n\n- **✅ Existing skill repo detected**: Inform user and request confirmation:\n  > 👋 Welcome back! I detected an existing skill repository `{login}\u002F{repo-name}`. Mounting automatically...\n\n  Then auto-execute clone and config write (same as Path A steps 1-4), **without asking unnecessary questions**.\n\n- **❌ No skill repo detected** (confirmed as a brand new user):\n\n  Guide the user to create a repo first:\n  > I couldn't find a skill repository under your account. Please create one first:\n  >\n  > 👉 [One-click create skill repository](https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill\u002Fgenerate)\n  >\n  > Suggested name: `my-skills`, **make sure to check Private**.\n  > Once created, tell me the repo name and I'll finish the setup!\n\n  After the user provides the repo name, execute clone and config write (same as Path A steps 1-4).\n\n  > 💡 **Security tip**: After the repo is created, go back to your Token settings and change **Repository access** to **Only select repositories**, selecting only this repo for minimal permissions.\n\n#### Initialization Complete\n\nRegardless of which path was taken, inform the user upon completion:\n> ✅ AnySkill configuration complete!\n> 📦 Skill repository: `{repo}`\n> 📂 Local path: `{localPath}`\n> 🔧 Global config: `~\u002F.anyskill\u002Fconfig.json`\n> From now on, you can load, download, and publish skills from any project.\n\n#### OpenClaw Exclusive: Write Workspace Config (only in OpenClaw environments)\n\nIf the current environment is **OpenClaw** (detected by: `ANYSKILL_GITHUB_TOKEN` exists in `~\u002F.openclaw\u002F.env`, or user explicitly specified, or `~\u002F.openclaw\u002F` directory detected), perform these **two additional steps** after initialization:\n\n**Step 1: Append to `TOOLS.md`**\n\nFind the OpenClaw workspace `TOOLS.md` file (path: `~\u002F.openclaw-config\u002Fworkspace\u002FTOOLS.md` or `{OpenClaw project root}\u002F.openclaw-config\u002Fworkspace\u002FTOOLS.md`).\n\nFirst check if the file already contains a `### AnySkill` section. Then read `index.json` (local `{localPath}\u002Findex.json` or remote fetch) to get the current skill inventory.\n\nIf `### AnySkill` section **does not exist**, append at end of file; if it **already exists**, **replace the entire section** (ensure the skill list is up to date):\n\n```markdown\n\n### AnySkill\n\n- **Skill Repository**: `{repo}`\n- **Global Config**: `~\u002F.anyskill\u002Fconfig.json`\n- **Local Path**: `{localPath}`\n- **Skill Loading**: When you lack a skill, read the guide in `~\u002F.openclaw\u002Fskills\u002Fanyskill\u002FSKILL.md` to load from the cloud AnySkill repository on demand\n- **Operation**: All skill management (load, download, upload, list, delete) is triggered via natural language, no CLI needed\n\n#### Registered Cloud Skills\n\n| Skill Name | Description |\n|:---|:---|\n| `{name}` | {description} |\n| ... | ... |\n\n(This list is dynamically generated from `index.json`, auto-updated after every skill add\u002Fremove\u002Fupdate)\n```\n\n> 📌 **The \"Registered Cloud Skills\" table must be generated in real-time from `index.json`**, iterating all skill entries and filling in `name` and `description`. If `index.json` is empty or fetch fails, display \"No skills yet\".\n\n**Step 2: Append to `AGENTS.md`**\n\nFind the OpenClaw workspace `AGENTS.md` file (same directory as `TOOLS.md`).\n\nSearch for the `## Tools` section. At the **end** of that section (before the next `##` heading), check if AnySkill-related content already exists. If **not**, append:\n\n```markdown\n\n**🧠 AnySkill Cloud Skills**: When you need to perform specific tasks (frontend design, API integration, data scraping, etc.) but don't have the corresponding skill locally, first check the AnySkill guide in `~\u002F.openclaw\u002Fskills\u002Fanyskill\u002FSKILL.md` to load capabilities on demand from your cloud private skill repository.\n```\n\nIf AnySkill-related content already exists, skip this step.\n\n> ⚠️ **Do not modify any other content** in these two files. Only append or update the AnySkill section — never overwrite existing user configurations.\n\n#### OpenClaw Skill Registry Sync (General Rule)\n\n> 📌 **Any operation that changes the skill list** (Mode 4 upload, Mode 5 update, Mode 7 delete, Mode 9 Pack install) must, after completion, if the current environment is OpenClaw, **re-read the latest `index.json` and replace the entire `### AnySkill` section in `TOOLS.md`** using the format above, ensuring the \"Registered Cloud Skills\" table always stays in sync with the cloud.\n>\n> This sync operation should be performed after git push completes and a few seconds wait (because GitHub Actions needs to rebuild `index.json`), or directly read from local `{localPath}\u002Findex.json`.\n\nThen continue executing the user's original request.\n\n---\n\n## Mode 1: On-Demand Loading (default behavior, in-memory only)\n\nWhen the user issues a task and you determine that the local environment lacks specific execution details:\n\n1. Read AnySkill config via the priority chain (global `~\u002F.anyskill\u002Fconfig.json` → project-level `.anyskill.json`).\n2. Use your web reading tool to fetch `index.json` from the index URL (include auth header if token is available).\n3. Find the most matching entry based on each skill's `description` for the current task.\n4. For each file in the `files` array, read all files from the cloud into **memory** (do not save to local disk), then digest the `SKILL.md` specifications.\n5. Complete the user's original request based on the loaded specifications.\n\n> 💡 On-demand loading is lightweight and leaves no local files. Ideal for one-time use or trying out skills.\n\n---\n\n## Mode 2: On-Demand Download (specific skill to disk)\n\nWhen the user explicitly says **\"download XX skill\", \"pull XX to local\", \"install XX skill\"** or similar instructions targeting a **single skill**:\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json`, match the target skill by the name or description the user specified.\n3. **Detect the current AI IDE environment** and determine the download path (see path reference table below).\n4. Download each file from the skill's `files` array to the local IDE skill directory, **preserving the original directory structure**.\n5. Inform the user upon completion: Skill `{skill-name}` downloaded to `{path}`, N files total.\n\n---\n\n## Mode 3: Full Download to Local\n\nWhen the user explicitly says **\"download all skills\", \"pull skills to local\", \"sync cloud skills\"** or similar instructions, perform a full download.\n\n### Steps\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json` for the complete skill list.\n3. **Detect the current AI IDE environment** and determine the download path (see table below). If unable to detect automatically, **ask the user**.\n4. For each skill, iterate its `files` array, downloading each file and **preserving the original directory structure**.\n   - For example, if `files` contains `my-skill\u002Fscripts\u002Fhelper.py`, the download URL is `{files-base-url}my-skill\u002Fscripts\u002Fhelper.py`, and the local path is `{IDE-skill-directory}\u002Fmy-skill\u002Fscripts\u002Fhelper.py`.\n5. After completion, report the list of downloaded skills and file counts to the user.\n\n### IDE Download Path Reference\n\n| AI IDE | Download Path | Entry File |\n|:---|:---|:---|\n| **Antigravity** | `{project root}\u002F.agent\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n| **Claude Code** | `{project root}\u002F.claude\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n| **Cursor** | `{project root}\u002F.cursor\u002Frules\u002F{skill-name}\u002F` | `SKILL.md` |\n| **OpenClaw** | `~\u002F.openclaw\u002Fskills\u002F{skill-name}\u002F` | `SKILL.md` |\n\n### IDE Auto-Detection Logic\n\n- If the current project has an `.agent\u002F` directory or you are Antigravity → Use **Antigravity** path\n- If the current project has a `.claude\u002F` directory or you are Claude Code → Use **Claude Code** path\n- If the current project has a `.cursor\u002F` directory or you are Cursor → Use **Cursor** path\n- If the user explicitly mentions OpenClaw → Use **OpenClaw** path\n- If unable to determine → **Ask the user**: \"Which IDE are you currently using? (Antigravity\u002FClaude Code\u002FCursor\u002FOpenClaw)\"\n\n---\n\n## Mode 4: Upload Skill to Cloud\n\nWhen the user explicitly says **\"upload skill\", \"upload this skill\", \"push skill to cloud\", \"push to repo\"** or similar instructions, execute the upload flow.\n\nRead `localPath` from the AnySkill config to operate in the local repository.\n\n### Upload Steps\n\n1. Confirm the skill content to upload with the user.\n2. **The skill folder name must use the user's original name exactly** — never translate or rename it. If the user provides a Chinese name (e.g., `前端设计`), use that; if English (e.g., `web-scraper`), use English.\n3. Create `SKILL.md` under `{localPath}\u002Fskills\u002F{user-specified-name}\u002F`.\n   - `SKILL.md` must include correct YAML frontmatter (`name` and `description`).\n   - If the user provides additional files (scripts, references, etc.), place them in the corresponding subdirectory.\n4. **Auto-provision infrastructure files** (may be missing on first upload):\n   - Check if `{localPath}\u002F.github\u002Fworkflows\u002Fbuild-index.yml` exists; if not, download from template repo: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002F.github\u002Fworkflows\u002Fbuild-index.yml`\n   - Check if `{localPath}\u002Fgenerate-index.js` exists; if not, download from template repo: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill\u002Fmain\u002Fgenerate-index.js`\n5. Execute git operations:\n   ```bash\n   cd {localPath}\n   git add -A\n   git commit -m \"feat: add skill {user-specified-name}\"\n   git push origin {branch}\n   ```\n5. Inform the user upon completion:\n   > ✅ Skill `{name}` has been uploaded to the cloud repository!\n   > GitHub Actions will automatically rebuild `index.json` in a few seconds, after which other projects can load this skill.\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Mode 5: Update a Specific Skill\n\nWhen the user explicitly says **\"update XX skill\", \"modify XX skill\", \"change XX\"** or similar instructions:\n\n1. Read `localPath` from AnySkill config via the priority chain.\n2. Confirm that `{localPath}\u002Fskills\u002F{name}\u002F` exists. If not, inform the user the skill doesn't exist and suggest using upload mode to create a new one.\n3. Read and display the existing `SKILL.md` content to the user, ask which parts need modification.\n4. Modify the corresponding files based on the user's description.\n5. Execute git operations:\n   ```bash\n   cd {localPath}\n   git add skills\u002F{name}\u002F\n   git commit -m \"fix: update skill {name}\"\n   git push origin {branch}\n   ```\n6. Inform the user upon completion:\n   > ✅ Skill `{name}` has been updated! GitHub Actions will automatically update the index.\n7. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Mode 6: List Cloud Skills\n\nWhen the user explicitly says **\"list skills\", \"what skills are there\", \"show cloud skills\", \"skill list\"** or similar instructions:\n\n1. Read AnySkill config via the priority chain.\n2. Fetch `index.json`.\n3. Display all skills in a table:\n\n| Skill Name | Description | File Count |\n|:---|:---|:---|\n| `{name}` | `{description}` | `{files.length}` |\n\n4. After display, ask the user if they want to load or download any skill.\n\n---\n\n## Mode 7: Delete a Specific Skill\n\nWhen the user explicitly says **\"delete XX skill\", \"remove XX skill\", \"remove XX from repo\"** or similar instructions:\n\n1. Read `localPath` from AnySkill config via the priority chain.\n2. Confirm that `{localPath}\u002Fskills\u002F{user-specified-name}\u002F` exists.\n3. **Must confirm with the user**:\n   > ⚠️ About to delete skill `{name}`. This will permanently remove the folder from the cloud repository. Confirm deletion?\n4. After user confirms, execute:\n   ```bash\n   cd {localPath}\n   git rm -rf skills\u002F{name}\u002F\n   git commit -m \"feat: remove skill {name}\"\n   git push origin {branch}\n   ```\n5. Inform the user upon completion:\n   > ✅ Skill `{name}` has been deleted from the cloud repository. GitHub Actions will automatically update the index.\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to remove the skill from the `TOOLS.md` skill list.\n\n---\n\n## Mode 8: Delete Entire Skill Repository (requires manual action)\n\nWhen the user explicitly says **\"delete the entire repo\", \"destroy skill space\", \"I don't want this repo anymore\"** or similar instructions:\n\n> ⛔ **This operation is extremely dangerous and irreversible. AI is strictly forbidden from executing it automatically.**\n\nYou may **only** provide guidance for the user to do it themselves:\n\n1. Inform the user:\n   > ⚠️ Deleting the entire repository is irreversible, and I cannot do it on your behalf. Please go to GitHub yourself:\n   >\n   > 1. Open `https:\u002F\u002Fgithub.com\u002F{repo}\u002Fsettings` (scroll to the bottom **Danger Zone**)\n   > 2. Click **Delete this repository**\n   > 3. Confirm by typing the repository name as prompted\n   >\n   > After deletion, manually remove the local global config `~\u002F.anyskill\u002Fconfig.json` (and project-level `.anyskill.json`, if any) and the `{localPath}` directory.\n\n2. **Strictly forbidden** to call GitHub API or any command to delete the repository.\n\n---\n\n## Mode 9: Install Skills from Packs\n\nWhen the user explicitly says **\"install from Packs\", \"what packs are available\", \"install XX pack\", \"browse packs\"** or similar instructions:\n\n**Packs repository URL**: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002F`\n\n### Browse Available Packs\n\n1. Fetch `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002Findex.json` (public repo, no Token needed).\n2. Display all packs and their skills in a table:\n\n| Pack | Skill Name | Description |\n|:---|:---|:---|\n| `{category}` | `{skill.name}` | `{skill.description}` |\n\n### Install a Specific Pack\n\n1. Find all skills in the target pack from `index.json`.\n2. **Download each skill's files individually**, saving to the user's private repo at `{localPath}\u002Fskills\u002F{skill-name}\u002F`.\n   - File URL pattern: `https:\u002F\u002Fraw.githubusercontent.com\u002Flanyijianke\u002FAnySkill-Packs\u002Fmain\u002Fpacks\u002F{file-path}`\n3. **Error tolerance**: If a skill download fails, skip it and continue to the next one.\n4. After download completes, execute git operations to commit skills to the user's private repo:\n   ```bash\n   cd {localPath}\n   git add skills\u002F\n   git commit -m \"feat: install pack {category}\"\n   git push origin {branch}\n   ```\n5. Provide a **summary report**:\n   > ✅ Pack `{category}` installation complete!\n   > - Succeeded: {N} (skill-a, skill-b)\n   > - Failed: {M} (skill-x — reason: download failed)\n6. **If current environment is OpenClaw**, execute \"OpenClaw Skill Registry Sync\" to update the skill list in `TOOLS.md`.\n\n---\n\n## Code of Conduct\n\n* Never guess details — always rely on cloud-fetched \"injected capabilities\".\n* You may briefly report to the user: \"Loading [skill-name] from cloud skill repository...\"\n* If `index.json` has no matching skill, inform the user that the cloud repository currently lacks the corresponding capability.\n* If a network request fails, report to the user and suggest checking network connectivity or repository availability.\n* **Throughout the entire process, never ask the user to manually run terminal commands.** All file creation, downloading, and git operations are performed automatically by you.\n",{"name":5,"version":24,"metadata":25,"description":7},"2.0.0",{"openclaw":26},{"emoji":27,"homepage":28,"requires":29,"primaryEnv":31},"🧠","https:\u002F\u002Fgithub.com\u002Flanyijianke\u002FAnySkill",{"env":30,"bins":32,"config":34},[31],"ANYSKILL_GITHUB_TOKEN",[33],"git",[35],"~\u002F.anyskill\u002Fconfig.json","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fanyskill",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anyskill",{"tool":51,"command":52},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anyskill",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anyskill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fanyskill\u002FSKILL.md",true,[],[60,68,75,82,89,96],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":67},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":67},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":67},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":67},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\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":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":67},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":67},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]