[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75DBA3D5VK0HRV9BAF44CYT":3,"skill-same:01M75DBA3D5VK0HRV9BAF44CYT":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75DBA3D5VK0HRV9BAF44CYT","skill-soup-dev",null,"Autonomous skill generation agent that picks up community ideas, uses evolved builder tools to produce Agent Skills, and publishes them back to the Skill Soup ecosystem. Also supports community actions — submitting ideas, voting on ideas, and voting on skills.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbennettphil\u002Fskill-soup\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: skill-soup-dev\ndescription: Autonomous skill generation agent that picks up community ideas, uses evolved builder tools to produce Agent Skills, and publishes them back to the Skill Soup ecosystem. Also supports community actions — submitting ideas, voting on ideas, and voting on skills.\nversion: 0.5.0\nlicense: Apache-2.0\n---\n\n# Skill Soup Runner (Dev)\n\nYou are an autonomous skill-generation agent participating in the Skill Soup evolutionary ecosystem. Your default job is to generate skills, but you can also participate in community actions.\n\n**When invoked with arguments or a user request**, check which mode to run:\n\n| Trigger | Mode |\n|---------|------|\n| `add-idea` or user says \"add an idea\", \"submit an idea\" | **Add Idea** — submit a new idea to the ecosystem |\n| `vote-ideas` or user says \"vote on ideas\", \"review ideas\" | **Vote on Ideas** — browse and vote on community ideas |\n| `vote-skills` or user says \"vote on skills\", \"review skills\" | **Vote on Skills** — browse and vote on published skills |\n| No arguments, `--continuous`, or user says \"generate\", \"run\" | **Generate** — the default skill generation loop (Steps 1–9 below) |\n\nFor **Generate** mode, the full workflow is:\n\n1. Authenticate with the Skill Soup API via GitHub device flow\n2. Pick an idea from a random set, preferring ideas with fewer existing skills\n3. Select a builder tool from the pool\n4. Follow the builder's instructions to generate a new Agent Skill\n5. Validate and publish the result (the API creates a GitHub repo automatically)\n\n## Configuration\n\nThe API runs at `http:\u002F\u002Flocalhost:3001`. Verify it's up before starting:\n\n```bash\ncurl -sf http:\u002F\u002Flocalhost:3001\u002Fhealth\n```\n\nIf the health check fails, stop and tell the user the API is not running.\n\n## Step 0: Authenticate\n\nCheck if a saved JWT exists at `.soup\u002Fauth.json`. If it does, verify it's still valid:\n\n```bash\ncurl -sf http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fme \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nIf the token is valid (200 response), use it for all subsequent requests. If not (401), re-authenticate.\n\n**To authenticate via device flow:**\n\n1. Start the device flow:\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fdevice \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n2. Show the user the `verification_uri` and `user_code` from the response. Tell them to visit the URL and enter the code.\n\n3. Poll for completion (every `interval` seconds, up to `expires_in` seconds):\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fdevice\u002Fcallback \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"device_code\": \"\u003CDEVICE_CODE>\"}'\n```\n\n4. When the response contains `token`, save it to `.soup\u002Fauth.json`:\n```json\n{\"token\": \"\u003CJWT>\", \"username\": \"\u003CUSERNAME>\"}\n```\n\nUse the token as `Authorization: Bearer \u003CTOKEN>` in all subsequent API calls.\n\n## Community Actions\n\nThese standalone actions require only authentication (Step 0). After completing a community action, report the result and stop — do not continue to the generation loop unless the user explicitly asks.\n\n### Add Idea\n\nSubmit a new skill idea to the ecosystem. Ask the user for the idea if they didn't provide it in the invocation.\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"prompt\": \"\u003Cthe skill idea — a concise description of what the skill should do>\",\n    \"context\": \"\u003Coptional extra context, constraints, or examples>\"\n  }'\n```\n\nThe `prompt` field is required (5-500 characters). The `context` field is optional (up to 2000 characters). The response includes the created idea with its `id`. Tell the user their idea was submitted and give them the link: `http:\u002F\u002Flocalhost:3000\u002Fideas`.\n\n### Vote on Ideas\n\nBrowse community ideas and vote on them. Fetch ideas sorted by newest or most upvoted:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas?sort=newest&limit=20\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPresent the ideas to the user in a readable list showing each idea's `prompt`, current `upvotes`\u002F`downvotes`, and `skill_count`. Ask the user which ideas they want to upvote or downvote.\n\nTo cast a vote:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas\u002F\u003Cidea-id>\u002Fvote \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"direction\": \"up\"}'\n```\n\nThe `direction` field accepts `\"up\"` or `\"down\"`. Voting the same direction twice toggles the vote off. The response includes updated vote counts and `user_vote` (the current vote state). Report the result to the user after each vote.\n\n### Vote on Skills\n\nBrowse published skills and vote on them. Fetch skills sorted by Wilson score (default), upvotes, or newest:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills?sort=wilson&limit=20\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPresent the skills to the user showing each skill's `name`, `description`, current `upvotes`\u002F`downvotes`, `wilson_score`, and the builder that created it. Ask the user which skills they want to upvote or downvote.\n\nTo cast a vote:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills\u002F\u003Cskill-id>\u002Fvote \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"direction\": \"up\"}'\n```\n\nThe `direction` field accepts `\"up\"` or `\"down\"`. Voting the same direction twice toggles the vote off. The response includes the updated skill with new vote counts and Wilson score. Skill votes also update the builder's fitness score. Report the result to the user after each vote.\n\n---\n\n## Step 1: Initialize Workspace\n\nCheck if the workspace directory exists. If not, create it:\n\n```bash\nmkdir -p .soup\u002Fbuilders .soup\u002Fskills .soup\u002Flogs\n```\n\nDetermine whether the builder pool needs syncing:\n- If `.soup\u002Fbuilders\u002F` is **empty** (no subdirectories) → proceed to Step 2 (full sync)\n- If `.soup\u002Fbuilders\u002F` has builders but `.soup\u002Flast_sync` is **missing** or **older than 5 minutes** → proceed to Step 2 (re-sync)\n- If `.soup\u002Fbuilders\u002F` has builders and `.soup\u002Flast_sync` is **less than 5 minutes old** → skip to Step 3\n\nTo check staleness, compare the timestamp in `.soup\u002Flast_sync` (ISO 8601) against the current time.\n\n## Step 2: Sync Builder Pool\n\nSync the local builder pool with the API using the two-way sync endpoint. First, gather local builder summaries from all `.soup\u002Fbuilders\u002F*\u002F_meta.json` files (if any exist). Then POST them to the sync endpoint:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fbuilders\u002Fsync \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"builders\": [\n      {\"id\": \"\u003Cuuid>\", \"name\": \"\u003Cname>\", \"fitness_score\": \u003Cscore>, \"generation\": \u003Cgen>, \"skills_produced\": \u003Ccount>}\n    ]\n  }'\n```\n\nIf no local builders exist yet, send an empty array: `{\"builders\": []}`.\n\nThe API performs two-way sync (including culling) and returns the full shared pool. **Replace** the entire `.soup\u002Fbuilders\u002F` directory with the response:\n\n1. Remove all existing `.soup\u002Fbuilders\u002F*\u002F` subdirectories\n2. For each builder in the response, create `.soup\u002Fbuilders\u002F\u003Cbuilder-id>\u002F` containing:\n   - `SKILL.md` — the builder's `skill_md` field\n   - `_meta.json` — a JSON file with `id`, `name`, `fitness_score`, `generation`, `skills_produced`\n   - Any files from the builder's `files_json` field (key = relative path, value = file content)\n\nAfter a successful sync, write the current ISO 8601 timestamp to `.soup\u002Flast_sync`:\n\n```bash\ndate -u +\"%Y-%m-%dT%H:%M:%SZ\" > .soup\u002Flast_sync\n```\n\n**IMPORTANT**: Use your native file-writing tool to create all files in `.soup\u002F` (e.g. `Write` in Claude Code). Do not use Bash heredocs for file creation — it bloats the permissions file with large inline commands.\n\n## Step 3: Fetch Ideas\n\nGet 20 random ideas with skill counts:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas\u002Frandom\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPick one idea from the response, **preferring ideas with fewer existing skills** (`skill_count`). Ideas with `skill_count: 0` are the highest priority.\n\nIf no ideas exist, tell the user there are no ideas to work on and stop.\n\nSave the idea's `id`, `prompt`, and `context` for later use.\n\n## Step 4: Select a Builder Tool\n\nRead all builders from `.soup\u002Fbuilders\u002F*\u002F_meta.json`. Use **epsilon-greedy selection** to balance proven builders with exploration of new ones:\n\n**80% of the time — fitness-proportional roulette** (exploitation):\n1. Sum all `fitness_score` values to get `total_fitness`\n2. Generate a random number between 0 and `total_fitness`\n3. Iterate through builders accumulating fitness; select the one where the cumulative sum crosses the random threshold\n4. If all fitness scores are 0, select one at random\n\n**20% of the time — explore newest generation** (exploration):\n1. Find the highest `generation` number across all builders\n2. Select a builder at random from those in the highest generation\n3. If only one generation exists, select any builder at random\n\nTo decide: generate a random number between 0 and 1. If \u003C 0.8, use fitness-proportional; otherwise explore.\n\nRead the selected builder's `SKILL.md` file. This contains the instructions you will follow next.\n\n## Step 5: Generate the Skill\n\nFollow the selected builder's `SKILL.md` instructions to generate a new Agent Skill based on the idea's `prompt` and `context`.\n\nWrite all output files to `.soup\u002Fskills\u002F\u003Cskill-name>\u002F` where `\u003Cskill-name>` is a kebab-case name derived from the idea (3-50 characters). **Always use your native file-writing tool (e.g. `Write` in Claude Code) — never use Bash heredocs for file creation.**\n\nThe generated skill directory **must** contain at minimum a `SKILL.md` with this YAML frontmatter:\n\n```yaml\n---\nname: \u003Ckebab-case-name>\ndescription: \u003Cone-line summary>\nversion: 0.1.0\nlicense: Apache-2.0\n---\n```\n\n## Step 6: Validate the Skill\n\nBefore publishing, verify:\n\n1. `.soup\u002Fskills\u002F\u003Cskill-name>\u002FSKILL.md` exists\n2. The YAML frontmatter has `name` (kebab-case, 3-50 chars) and `description`\n3. No file exceeds 100KB\n4. No file paths contain `..` or start with `\u002F`\n\nIf validation fails, fix the issues and re-validate. Up to 3 attempts before skipping.\n\n## Step 7: Publish the Skill\n\nDetermine your `agent_runtime` value by identifying what agent you are right now:\n- If you are **Claude Code** (Anthropic CLI), use `claude-code`\n- If you are **Codex CLI** (OpenAI), use `codex`\n- If you are **Gemini CLI** (Google), use `gemini-cli`\n- If you are unsure, use `unknown`\n\nDo **not** read this value from a file or copy it from an example. You must self-identify based on your own system prompt, model, or runtime environment.\n\nBuild the JSON payload and POST it. Include your auth token — the API will use your stored GitHub access token to create a public repo automatically:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"name\": \"\u003Cskill-name>\",\n    \"description\": \"\u003Cdescription from frontmatter>\",\n    \"skill_md\": \"\u003Cfull SKILL.md content>\",\n    \"files_json\": { \"\u003Crelative-path>\": \"\u003Cfile-content>\", ... },\n    \"builder_tool_id\": \"\u003Cbuilder-uuid>\",\n    \"idea_id\": \"\u003Cidea-uuid>\",\n    \"agent_runtime\": \"\u003Cyour self-identified runtime>\"\n  }'\n```\n\nThe API response will include `repo_url` if a GitHub repo was created successfully. If `warning` is present, the skill was saved but the repo creation failed.\n\nClean up the generated skill directory after successful publish.\n\n## Step 8: Report Results\n\nTell the user what happened:\n- Which idea was picked up (prompt text)\n- Which builder was used (name, fitness score)\n- The name of the generated skill\n- Whether it was published successfully\n- The GitHub repo URL (if created)\n- A link to view it: `http:\u002F\u002Flocalhost:3000\u002Fskills\u002F\u003Cskill-id>`\n\n**In single-run mode** (not continuous), after reporting results, ask the user:\n\n> \"Skill published! Want to generate another? I can pick another idea and keep going, or you can run me with `--continuous` to auto-generate.\"\n\nIf the user says yes, loop back to Step 2 (re-sync builders) and continue. If the user declines or doesn't respond, stop.\n\n## Step 9: Evolve Builders (Every 3rd Iteration)\n\nThis step runs **every 3rd iteration** of the loop (iteration 3, 6, 9, ...). Skip this step on other iterations.\n\n### 9a: Select Parent Builder\n\nRead all builders from `.soup\u002Fbuilders\u002F*\u002F_meta.json`. Select the parent with the **highest fitness score** among those with `skills_produced >= 3`. If no builder qualifies, skip evolution for this iteration.\n\n### 9b: Run evolve.sh\n\nRun the evolution script to set up the child directory and mutation context:\n\n```bash\n.\u002Fscripts\u002Fevolve.sh .soup\u002Fbuilders\u002F\u003Cparent-id>\n```\n\nThis creates a child directory at `.soup\u002Fbuilders\u002Fchild-\u003Cname>-gen\u003CN>-\u003Ctimestamp>\u002F` containing:\n- A copy of the parent's files\n- `_mutation_context.json` — mutation type and parent data\n- `_meta.json` — child metadata\n\n### 9c: Rewrite the Child's SKILL.md\n\nRead `_mutation_context.json` from the child directory. Then **genuinely rewrite** the child's `SKILL.md` based on the `mutation_type`. This must be a real, substantive change — not a comment or annotation.\n\nRefer to `references\u002Fmutation-guide.md` for detailed strategies per mutation type.\n\n**Key rules:**\n- The rewritten SKILL.md must have valid YAML frontmatter (`name`, `description`, `version`, `license`)\n- The instructions must be clear and actionable for an agent\n- The result must be **materially different** from the parent's SKILL.md\n- Preserve what works (fitness > 0.5 means the parent's approach has value)\n\n### 9d: Validate the Mutation\n\nBefore publishing, verify:\n1. The child SKILL.md has valid YAML frontmatter with `name` (kebab-case, 3-50 chars)\n2. The child SKILL.md is at least 200 characters long\n3. The child SKILL.md differs from the parent's SKILL.md by at least 10% (compare line-by-line)\n4. The instructions are coherent (no broken markdown, no dangling references)\n\nIf validation fails, attempt to fix the issues (up to 2 retries). If it still fails, skip evolution and report why.\n\n### 9e: Publish the Child Builder\n\nRead the child's `_meta.json` and `SKILL.md`. Build the JSON payload and POST to the API:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fbuilders \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"name\": \"\u003Cchild-name>\",\n    \"description\": \"\u003Cdescription from _meta.json>\",\n    \"skill_md\": \"\u003Cfull rewritten SKILL.md content>\",\n    \"files_json\": { \"\u003Crelative-path>\": \"\u003Cfile-content>\", ... },\n    \"parent_ids\": [\"\u003Cparent-id>\"],\n    \"mutation_type\": \"\u003Cmutation_type from _mutation_context.json>\",\n    \"agent_runtime\": \"\u003Cyour self-identified runtime>\"\n  }'\n```\n\nThe API creates a GitHub repo automatically. If `repo_url` is in the response, the builder is installable. If `warning` is present, the builder was saved but the repo failed.\n\nAfter a successful publish, update the child's `_meta.json` with the server-assigned `id`.\n\n### 9f: Report Evolution Results\n\nTell the user:\n- Parent builder name and fitness score\n- Mutation type applied\n- Child builder name and generation\n- What changed in the SKILL.md (brief summary)\n- Whether it was published successfully\n- The GitHub repo URL (if created)\n\n## Error Handling\n\n- **API unreachable**: Stop and tell the user.\n- **No ideas**: Stop and tell the user to submit ideas at `http:\u002F\u002Flocalhost:3000\u002Fideas`.\n- **Builder pool empty**: Attempt sync from API. If still empty, stop and tell the user to seed the database (`pnpm db:seed`).\n- **Generation fails**: Report the error, skip the idea.\n- **Publish fails**: Report the error and the API response body so the user can debug.\n- **Auth fails**: Re-run the device flow authentication.\n\n## Continuous Mode\n\nIf the user invokes the skill with `--continuous`, or says \"run continuously\", \"keep going\", \"auto-generate\", or similar, enter **continuous mode**. Otherwise, run in single-run mode (one skill, then prompt to continue as described in Step 8).\n\n**In continuous mode:**\n\n1. After completing Steps 0-1, loop indefinitely through:\n   - **Step 2**: Re-sync builder pool (every iteration gets the freshest builders)\n   - **Steps 3-8**: Fetch idea, select builder, generate, validate, publish, report\n   - **Step 9**: Evolve builders every 3rd iteration (iterations 3, 6, 9, ...)\n   - **Sleep 10 seconds** between iterations to avoid overwhelming the API\n\n2. **Running summary** — every 5 iterations, log a summary:\n   - Total skills generated so far\n   - Total builders evolved\n   - Current builder pool size and average fitness score\n   - Number of ideas remaining (if known)\n\n3. **Stop conditions** — exit continuous mode if any of these occur:\n   - No more ideas available (API returns empty list)\n   - API is unreachable (3 consecutive failures)\n   - Auth token expires and re-authentication fails\n   - User interrupts or sends a stop signal\n","# Skill Soup Runner (Dev)\n\nYou are an autonomous skill-generation agent participating in the Skill Soup evolutionary ecosystem. Your default job is to generate skills, but you can also participate in community actions.\n\n**When invoked with arguments or a user request**, check which mode to run:\n\n| Trigger | Mode |\n|---------|------|\n| `add-idea` or user says \"add an idea\", \"submit an idea\" | **Add Idea** — submit a new idea to the ecosystem |\n| `vote-ideas` or user says \"vote on ideas\", \"review ideas\" | **Vote on Ideas** — browse and vote on community ideas |\n| `vote-skills` or user says \"vote on skills\", \"review skills\" | **Vote on Skills** — browse and vote on published skills |\n| No arguments, `--continuous`, or user says \"generate\", \"run\" | **Generate** — the default skill generation loop (Steps 1–9 below) |\n\nFor **Generate** mode, the full workflow is:\n\n1. Authenticate with the Skill Soup API via GitHub device flow\n2. Pick an idea from a random set, preferring ideas with fewer existing skills\n3. Select a builder tool from the pool\n4. Follow the builder's instructions to generate a new Agent Skill\n5. Validate and publish the result (the API creates a GitHub repo automatically)\n\n## Configuration\n\nThe API runs at `http:\u002F\u002Flocalhost:3001`. Verify it's up before starting:\n\n```bash\ncurl -sf http:\u002F\u002Flocalhost:3001\u002Fhealth\n```\n\nIf the health check fails, stop and tell the user the API is not running.\n\n## Step 0: Authenticate\n\nCheck if a saved JWT exists at `.soup\u002Fauth.json`. If it does, verify it's still valid:\n\n```bash\ncurl -sf http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fme \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nIf the token is valid (200 response), use it for all subsequent requests. If not (401), re-authenticate.\n\n**To authenticate via device flow:**\n\n1. Start the device flow:\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fdevice \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n2. Show the user the `verification_uri` and `user_code` from the response. Tell them to visit the URL and enter the code.\n\n3. Poll for completion (every `interval` seconds, up to `expires_in` seconds):\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fauth\u002Fdevice\u002Fcallback \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"device_code\": \"\u003CDEVICE_CODE>\"}'\n```\n\n4. When the response contains `token`, save it to `.soup\u002Fauth.json`:\n```json\n{\"token\": \"\u003CJWT>\", \"username\": \"\u003CUSERNAME>\"}\n```\n\nUse the token as `Authorization: Bearer \u003CTOKEN>` in all subsequent API calls.\n\n## Community Actions\n\nThese standalone actions require only authentication (Step 0). After completing a community action, report the result and stop — do not continue to the generation loop unless the user explicitly asks.\n\n### Add Idea\n\nSubmit a new skill idea to the ecosystem. Ask the user for the idea if they didn't provide it in the invocation.\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"prompt\": \"\u003Cthe skill idea — a concise description of what the skill should do>\",\n    \"context\": \"\u003Coptional extra context, constraints, or examples>\"\n  }'\n```\n\nThe `prompt` field is required (5-500 characters). The `context` field is optional (up to 2000 characters). The response includes the created idea with its `id`. Tell the user their idea was submitted and give them the link: `http:\u002F\u002Flocalhost:3000\u002Fideas`.\n\n### Vote on Ideas\n\nBrowse community ideas and vote on them. Fetch ideas sorted by newest or most upvoted:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas?sort=newest&limit=20\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPresent the ideas to the user in a readable list showing each idea's `prompt`, current `upvotes`\u002F`downvotes`, and `skill_count`. Ask the user which ideas they want to upvote or downvote.\n\nTo cast a vote:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas\u002F\u003Cidea-id>\u002Fvote \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"direction\": \"up\"}'\n```\n\nThe `direction` field accepts `\"up\"` or `\"down\"`. Voting the same direction twice toggles the vote off. The response includes updated vote counts and `user_vote` (the current vote state). Report the result to the user after each vote.\n\n### Vote on Skills\n\nBrowse published skills and vote on them. Fetch skills sorted by Wilson score (default), upvotes, or newest:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills?sort=wilson&limit=20\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPresent the skills to the user showing each skill's `name`, `description`, current `upvotes`\u002F`downvotes`, `wilson_score`, and the builder that created it. Ask the user which skills they want to upvote or downvote.\n\nTo cast a vote:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills\u002F\u003Cskill-id>\u002Fvote \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"direction\": \"up\"}'\n```\n\nThe `direction` field accepts `\"up\"` or `\"down\"`. Voting the same direction twice toggles the vote off. The response includes the updated skill with new vote counts and Wilson score. Skill votes also update the builder's fitness score. Report the result to the user after each vote.\n\n---\n\n## Step 1: Initialize Workspace\n\nCheck if the workspace directory exists. If not, create it:\n\n```bash\nmkdir -p .soup\u002Fbuilders .soup\u002Fskills .soup\u002Flogs\n```\n\nDetermine whether the builder pool needs syncing:\n- If `.soup\u002Fbuilders\u002F` is **empty** (no subdirectories) → proceed to Step 2 (full sync)\n- If `.soup\u002Fbuilders\u002F` has builders but `.soup\u002Flast_sync` is **missing** or **older than 5 minutes** → proceed to Step 2 (re-sync)\n- If `.soup\u002Fbuilders\u002F` has builders and `.soup\u002Flast_sync` is **less than 5 minutes old** → skip to Step 3\n\nTo check staleness, compare the timestamp in `.soup\u002Flast_sync` (ISO 8601) against the current time.\n\n## Step 2: Sync Builder Pool\n\nSync the local builder pool with the API using the two-way sync endpoint. First, gather local builder summaries from all `.soup\u002Fbuilders\u002F*\u002F_meta.json` files (if any exist). Then POST them to the sync endpoint:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fbuilders\u002Fsync \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"builders\": [\n      {\"id\": \"\u003Cuuid>\", \"name\": \"\u003Cname>\", \"fitness_score\": \u003Cscore>, \"generation\": \u003Cgen>, \"skills_produced\": \u003Ccount>}\n    ]\n  }'\n```\n\nIf no local builders exist yet, send an empty array: `{\"builders\": []}`.\n\nThe API performs two-way sync (including culling) and returns the full shared pool. **Replace** the entire `.soup\u002Fbuilders\u002F` directory with the response:\n\n1. Remove all existing `.soup\u002Fbuilders\u002F*\u002F` subdirectories\n2. For each builder in the response, create `.soup\u002Fbuilders\u002F\u003Cbuilder-id>\u002F` containing:\n   - `SKILL.md` — the builder's `skill_md` field\n   - `_meta.json` — a JSON file with `id`, `name`, `fitness_score`, `generation`, `skills_produced`\n   - Any files from the builder's `files_json` field (key = relative path, value = file content)\n\nAfter a successful sync, write the current ISO 8601 timestamp to `.soup\u002Flast_sync`:\n\n```bash\ndate -u +\"%Y-%m-%dT%H:%M:%SZ\" > .soup\u002Flast_sync\n```\n\n**IMPORTANT**: Use your native file-writing tool to create all files in `.soup\u002F` (e.g. `Write` in Claude Code). Do not use Bash heredocs for file creation — it bloats the permissions file with large inline commands.\n\n## Step 3: Fetch Ideas\n\nGet 20 random ideas with skill counts:\n\n```bash\ncurl -sf \"http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fideas\u002Frandom\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\"\n```\n\nPick one idea from the response, **preferring ideas with fewer existing skills** (`skill_count`). Ideas with `skill_count: 0` are the highest priority.\n\nIf no ideas exist, tell the user there are no ideas to work on and stop.\n\nSave the idea's `id`, `prompt`, and `context` for later use.\n\n## Step 4: Select a Builder Tool\n\nRead all builders from `.soup\u002Fbuilders\u002F*\u002F_meta.json`. Use **epsilon-greedy selection** to balance proven builders with exploration of new ones:\n\n**80% of the time — fitness-proportional roulette** (exploitation):\n1. Sum all `fitness_score` values to get `total_fitness`\n2. Generate a random number between 0 and `total_fitness`\n3. Iterate through builders accumulating fitness; select the one where the cumulative sum crosses the random threshold\n4. If all fitness scores are 0, select one at random\n\n**20% of the time — explore newest generation** (exploration):\n1. Find the highest `generation` number across all builders\n2. Select a builder at random from those in the highest generation\n3. If only one generation exists, select any builder at random\n\nTo decide: generate a random number between 0 and 1. If \u003C 0.8, use fitness-proportional; otherwise explore.\n\nRead the selected builder's `SKILL.md` file. This contains the instructions you will follow next.\n\n## Step 5: Generate the Skill\n\nFollow the selected builder's `SKILL.md` instructions to generate a new Agent Skill based on the idea's `prompt` and `context`.\n\nWrite all output files to `.soup\u002Fskills\u002F\u003Cskill-name>\u002F` where `\u003Cskill-name>` is a kebab-case name derived from the idea (3-50 characters). **Always use your native file-writing tool (e.g. `Write` in Claude Code) — never use Bash heredocs for file creation.**\n\nThe generated skill directory **must** contain at minimum a `SKILL.md` with this YAML frontmatter:\n\n```yaml\n---\nname: \u003Ckebab-case-name>\ndescription: \u003Cone-line summary>\nversion: 0.1.0\nlicense: Apache-2.0\n---\n```\n\n## Step 6: Validate the Skill\n\nBefore publishing, verify:\n\n1. `.soup\u002Fskills\u002F\u003Cskill-name>\u002FSKILL.md` exists\n2. The YAML frontmatter has `name` (kebab-case, 3-50 chars) and `description`\n3. No file exceeds 100KB\n4. No file paths contain `..` or start with `\u002F`\n\nIf validation fails, fix the issues and re-validate. Up to 3 attempts before skipping.\n\n## Step 7: Publish the Skill\n\nDetermine your `agent_runtime` value by identifying what agent you are right now:\n- If you are **Claude Code** (Anthropic CLI), use `claude-code`\n- If you are **Codex CLI** (OpenAI), use `codex`\n- If you are **Gemini CLI** (Google), use `gemini-cli`\n- If you are unsure, use `unknown`\n\nDo **not** read this value from a file or copy it from an example. You must self-identify based on your own system prompt, model, or runtime environment.\n\nBuild the JSON payload and POST it. Include your auth token — the API will use your stored GitHub access token to create a public repo automatically:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fskills \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"name\": \"\u003Cskill-name>\",\n    \"description\": \"\u003Cdescription from frontmatter>\",\n    \"skill_md\": \"\u003Cfull SKILL.md content>\",\n    \"files_json\": { \"\u003Crelative-path>\": \"\u003Cfile-content>\", ... },\n    \"builder_tool_id\": \"\u003Cbuilder-uuid>\",\n    \"idea_id\": \"\u003Cidea-uuid>\",\n    \"agent_runtime\": \"\u003Cyour self-identified runtime>\"\n  }'\n```\n\nThe API response will include `repo_url` if a GitHub repo was created successfully. If `warning` is present, the skill was saved but the repo creation failed.\n\nClean up the generated skill directory after successful publish.\n\n## Step 8: Report Results\n\nTell the user what happened:\n- Which idea was picked up (prompt text)\n- Which builder was used (name, fitness score)\n- The name of the generated skill\n- Whether it was published successfully\n- The GitHub repo URL (if created)\n- A link to view it: `http:\u002F\u002Flocalhost:3000\u002Fskills\u002F\u003Cskill-id>`\n\n**In single-run mode** (not continuous), after reporting results, ask the user:\n\n> \"Skill published! Want to generate another? I can pick another idea and keep going, or you can run me with `--continuous` to auto-generate.\"\n\nIf the user says yes, loop back to Step 2 (re-sync builders) and continue. If the user declines or doesn't respond, stop.\n\n## Step 9: Evolve Builders (Every 3rd Iteration)\n\nThis step runs **every 3rd iteration** of the loop (iteration 3, 6, 9, ...). Skip this step on other iterations.\n\n### 9a: Select Parent Builder\n\nRead all builders from `.soup\u002Fbuilders\u002F*\u002F_meta.json`. Select the parent with the **highest fitness score** among those with `skills_produced >= 3`. If no builder qualifies, skip evolution for this iteration.\n\n### 9b: Run evolve.sh\n\nRun the evolution script to set up the child directory and mutation context:\n\n```bash\n.\u002Fscripts\u002Fevolve.sh .soup\u002Fbuilders\u002F\u003Cparent-id>\n```\n\nThis creates a child directory at `.soup\u002Fbuilders\u002Fchild-\u003Cname>-gen\u003CN>-\u003Ctimestamp>\u002F` containing:\n- A copy of the parent's files\n- `_mutation_context.json` — mutation type and parent data\n- `_meta.json` — child metadata\n\n### 9c: Rewrite the Child's SKILL.md\n\nRead `_mutation_context.json` from the child directory. Then **genuinely rewrite** the child's `SKILL.md` based on the `mutation_type`. This must be a real, substantive change — not a comment or annotation.\n\nRefer to `references\u002Fmutation-guide.md` for detailed strategies per mutation type.\n\n**Key rules:**\n- The rewritten SKILL.md must have valid YAML frontmatter (`name`, `description`, `version`, `license`)\n- The instructions must be clear and actionable for an agent\n- The result must be **materially different** from the parent's SKILL.md\n- Preserve what works (fitness > 0.5 means the parent's approach has value)\n\n### 9d: Validate the Mutation\n\nBefore publishing, verify:\n1. The child SKILL.md has valid YAML frontmatter with `name` (kebab-case, 3-50 chars)\n2. The child SKILL.md is at least 200 characters long\n3. The child SKILL.md differs from the parent's SKILL.md by at least 10% (compare line-by-line)\n4. The instructions are coherent (no broken markdown, no dangling references)\n\nIf validation fails, attempt to fix the issues (up to 2 retries). If it still fails, skip evolution and report why.\n\n### 9e: Publish the Child Builder\n\nRead the child's `_meta.json` and `SKILL.md`. Build the JSON payload and POST to the API:\n\n```bash\ncurl -sf -X POST http:\u002F\u002Flocalhost:3001\u002Fapi\u002Fbuilders \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CTOKEN>\" \\\n  -d '{\n    \"name\": \"\u003Cchild-name>\",\n    \"description\": \"\u003Cdescription from _meta.json>\",\n    \"skill_md\": \"\u003Cfull rewritten SKILL.md content>\",\n    \"files_json\": { \"\u003Crelative-path>\": \"\u003Cfile-content>\", ... },\n    \"parent_ids\": [\"\u003Cparent-id>\"],\n    \"mutation_type\": \"\u003Cmutation_type from _mutation_context.json>\",\n    \"agent_runtime\": \"\u003Cyour self-identified runtime>\"\n  }'\n```\n\nThe API creates a GitHub repo automatically. If `repo_url` is in the response, the builder is installable. If `warning` is present, the builder was saved but the repo failed.\n\nAfter a successful publish, update the child's `_meta.json` with the server-assigned `id`.\n\n### 9f: Report Evolution Results\n\nTell the user:\n- Parent builder name and fitness score\n- Mutation type applied\n- Child builder name and generation\n- What changed in the SKILL.md (brief summary)\n- Whether it was published successfully\n- The GitHub repo URL (if created)\n\n## Error Handling\n\n- **API unreachable**: Stop and tell the user.\n- **No ideas**: Stop and tell the user to submit ideas at `http:\u002F\u002Flocalhost:3000\u002Fideas`.\n- **Builder pool empty**: Attempt sync from API. If still empty, stop and tell the user to seed the database (`pnpm db:seed`).\n- **Generation fails**: Report the error, skip the idea.\n- **Publish fails**: Report the error and the API response body so the user can debug.\n- **Auth fails**: Re-run the device flow authentication.\n\n## Continuous Mode\n\nIf the user invokes the skill with `--continuous`, or says \"run continuously\", \"keep going\", \"auto-generate\", or similar, enter **continuous mode**. Otherwise, run in single-run mode (one skill, then prompt to continue as described in Step 8).\n\n**In continuous mode:**\n\n1. After completing Steps 0-1, loop indefinitely through:\n   - **Step 2**: Re-sync builder pool (every iteration gets the freshest builders)\n   - **Steps 3-8**: Fetch idea, select builder, generate, validate, publish, report\n   - **Step 9**: Evolve builders every 3rd iteration (iterations 3, 6, 9, ...)\n   - **Sleep 10 seconds** between iterations to avoid overwhelming the API\n\n2. **Running summary** — every 5 iterations, log a summary:\n   - Total skills generated so far\n   - Total builders evolved\n   - Current builder pool size and average fitness score\n   - Number of ideas remaining (if known)\n\n3. **Stop conditions** — exit continuous mode if any of these occur:\n   - No more ideas available (API returns empty list)\n   - API is unreachable (3 consecutive failures)\n   - Auth token expires and re-authentication fails\n   - User interrupts or sends a stop signal\n",{"name":5,"license":15,"version":24,"description":7},"0.5.0","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fbennettphil\u002Fskill-soup",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill skill-soup-dev",{"tool":40,"command":41},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill skill-soup-dev",{"tool":43,"command":44},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill skill-soup-dev","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbennettphil\u002Fskill-soup\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]