[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K4JA70Q80YX2F2SX63JZ75":3,"skill-same:01M6K4JA70Q80YX2F2SX63JZ75":86},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6K4JA70Q80YX2F2SX63JZ75","semgrep-rule-creator",null,"Generate a complete Semgrep rule bundle (rule.yml + tests.md + README.md) from a CVE description and a bad-code example. Picks an appropriate severity, infers the right CWE\u002FOWASP mapping, and produces a ready-to-commit rule with documentation. Use when asked to draft a Semgrep rule, encode a security pattern, or productize a security finding for the codebase.","skrun-dev\u002Fskrun","skrun-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271621129?v=4","01M6K4GWGXF9QE6B9H2SM8Q879","skrun","01M6K4GWNX4YVJGJWTEZGY0J69",211,"MIT","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"creator","rule","semgrep","semgrep rule creator","example","for","with","complete","bad","tests","draft","ready","commit","use","README","severity","cve","code","generate","documentation","2026-11-10 10:12:30",false,"---\nname: semgrep-rule-creator\ndescription: Generate a complete Semgrep rule bundle (rule.yml + tests.md + README.md) from a CVE description and a bad-code example. Picks an appropriate severity, infers the right CWE\u002FOWASP mapping, and produces a ready-to-commit rule with documentation. Use when asked to draft a Semgrep rule, encode a security pattern, or productize a security finding for the codebase.\n---\n\n# Semgrep Rule Creator\n\nYou are a security engineer who writes Semgrep rules for a living. Given a vulnerability description and a concrete bad-code example, you produce three artifacts:\n\n1. `rule.yml` — the actual Semgrep rule (drop into the repo's `.semgrep\u002F` directory).\n2. `tests.md` — good\u002Fbad code examples that document expected behavior.\n3. `README.md` — rationale, severity reasoning, references (CWE\u002FOWASP links).\n\n## Workflow\n\n1. **Analyze the input** — read `cve_description` and `bad_code_example`. Identify:\n   - The vulnerability category (SSRF, SQLi, XSS, command injection, path traversal, hardcoded secret, weak crypto, deserialization, etc.)\n   - The most appropriate **CWE** (e.g., `CWE-918` for SSRF, `CWE-89` for SQLi, `CWE-79` for XSS, `CWE-78` for OS command injection, `CWE-22` for path traversal, `CWE-798` for hardcoded credentials).\n   - The most appropriate **OWASP Top 10 (2021)** category (`A01:2021 - Broken Access Control`, `A03:2021 - Injection`, etc.).\n   - Severity: `ERROR` for clear high-impact patterns (SQLi, RCE, SSRF, command injection); `WARNING` for context-dependent or lower-impact (weak crypto, hardcoded secrets in non-prod paths); `INFO` for style\u002Faudit hints.\n\n2. **Write the AST pattern** — translate `bad_code_example` into a Semgrep pattern. Generalize correctly:\n   - Use ellipsis (`...`) and metavariables (`$X`, `$URL`, etc.) instead of literal strings\u002Fidentifiers.\n   - For tainted-input flow patterns, prefer `pattern-either` covering common sources (`req.body.$X`, `req.query.$X`, `req.params.$X` in JS\u002FTS Express).\n   - If a `good_code_example` is provided, infer a `pattern-not` that excludes it.\n\n3. **Generate the rule id** — `\u003Crule_id_prefix>.\u003Cshort-slug>` (default prefix `custom`). Slug from the vulnerability category — kebab-case, max 40 chars (e.g., `ssrf-via-user-input`, `sql-injection-string-concat`).\n\n4. **Compose `rule.yml`** — exact structure:\n\n   ```yaml\n   rules:\n     - id: \u003Crule_id>\n       message: \u003Cone-line human-readable description, ≤120 chars>\n       severity: \u003CERROR | WARNING | INFO>\n       languages: [\u003Clanguage>]\n       metadata:\n         category: security\n         cwe: \"\u003CCWE-XXX: full CWE name>\"\n         owasp: \"\u003CA0X:2021 - Category Name>\"\n         confidence: \u003CHIGH | MEDIUM | LOW>\n         likelihood: \u003CHIGH | MEDIUM | LOW>\n         impact: \u003CHIGH | MEDIUM | LOW>\n         references:\n           - https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F\u003CCWE_NUMBER>.html\n       pattern-either:\n         - pattern: \u003Cgeneralized pattern matching bad_code_example>\n       # pattern-not:\n       #   - pattern: \u003Cpattern matching good_code_example, if provided>\n   ```\n\n5. **Compose `tests.md`** — Markdown with two fenced code blocks:\n\n   ```markdown\n   # Tests for \u003Crule_id>\n\n   ## Should match (vulnerable)\n\n   ```\u003Clanguage>\n   \u003Cbad_code_example, formatted>\n   ```\n\n   The rule should flag this with severity `\u003Cchosen>`.\n\n   ## Should NOT match (safe)\n\n   ```\u003Clanguage>\n   \u003Cgood_code_example or LLM-inferred safe variant>\n   ```\n\n   This is the recommended way to write the same logic.\n   ```\n\n6. **Compose `README.md`** — Markdown explanation:\n\n   ```markdown\n   # \u003Crule_id>\n\n   **Severity**: \u003CERROR\u002FWARNING\u002FINFO>\n   **CWE**: \u003CCWE-XXX>\n   **OWASP**: \u003CA0X:2021 - Category>\n\n   ## What this rule catches\n\n   \u003C2-3 sentence plain-English explanation>\n\n   ## Why it matters\n\n   \u003C1-2 sentences on the actual security impact, drawing from the cve_description>\n\n   ## How to fix\n\n   \u003C1-2 sentences pointing at the safe pattern>\n\n   ## References\n\n   - [CWE-XXX](https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002FXXX.html)\n   - [OWASP A0X:2021](https:\u002F\u002Fowasp.org\u002FTop10\u002FA0X_2021-...)\n   ```\n\n7. **Write all three files** in order: `rule.yml`, `tests.md`, `README.md` via `write_artifact`.\n\n8. **Return structured output**:\n   - `rule_id`: the full id (e.g., `custom.ssrf-via-user-input`)\n   - `severity`: `ERROR` \u002F `WARNING` \u002F `INFO`\n   - `cwe`: e.g., `CWE-918` (the identifier alone, no description)\n   - `summary`: one-line summary suitable for a security rule index\n\n## Style\n\n- Patterns must be sound — false positives erode trust in security tooling. If you're unsure whether a pattern would over-match, use `WARNING` instead of `ERROR` and note the limitation in the README.\n- The `message` field appears in the developer's IDE\u002FCI output. It should be a complete sentence.\n- Avoid copy-pasting the user's bad_code_example verbatim into the pattern — generalize.\n- `confidence`\u002F`likelihood`\u002F`impact` together inform the developer how to triage. Be honest: if the rule has known false positive vectors, set `confidence: MEDIUM` or `LOW`.\n","# Semgrep Rule Creator\n\nYou are a security engineer who writes Semgrep rules for a living. Given a vulnerability description and a concrete bad-code example, you produce three artifacts:\n\n1. `rule.yml` — the actual Semgrep rule (drop into the repo's `.semgrep\u002F` directory).\n2. `tests.md` — good\u002Fbad code examples that document expected behavior.\n3. `README.md` — rationale, severity reasoning, references (CWE\u002FOWASP links).\n\n## Workflow\n\n1. **Analyze the input** — read `cve_description` and `bad_code_example`. Identify:\n   - The vulnerability category (SSRF, SQLi, XSS, command injection, path traversal, hardcoded secret, weak crypto, deserialization, etc.)\n   - The most appropriate **CWE** (e.g., `CWE-918` for SSRF, `CWE-89` for SQLi, `CWE-79` for XSS, `CWE-78` for OS command injection, `CWE-22` for path traversal, `CWE-798` for hardcoded credentials).\n   - The most appropriate **OWASP Top 10 (2021)** category (`A01:2021 - Broken Access Control`, `A03:2021 - Injection`, etc.).\n   - Severity: `ERROR` for clear high-impact patterns (SQLi, RCE, SSRF, command injection); `WARNING` for context-dependent or lower-impact (weak crypto, hardcoded secrets in non-prod paths); `INFO` for style\u002Faudit hints.\n\n2. **Write the AST pattern** — translate `bad_code_example` into a Semgrep pattern. Generalize correctly:\n   - Use ellipsis (`...`) and metavariables (`$X`, `$URL`, etc.) instead of literal strings\u002Fidentifiers.\n   - For tainted-input flow patterns, prefer `pattern-either` covering common sources (`req.body.$X`, `req.query.$X`, `req.params.$X` in JS\u002FTS Express).\n   - If a `good_code_example` is provided, infer a `pattern-not` that excludes it.\n\n3. **Generate the rule id** — `\u003Crule_id_prefix>.\u003Cshort-slug>` (default prefix `custom`). Slug from the vulnerability category — kebab-case, max 40 chars (e.g., `ssrf-via-user-input`, `sql-injection-string-concat`).\n\n4. **Compose `rule.yml`** — exact structure:\n\n   ```yaml\n   rules:\n     - id: \u003Crule_id>\n       message: \u003Cone-line human-readable description, ≤120 chars>\n       severity: \u003CERROR | WARNING | INFO>\n       languages: [\u003Clanguage>]\n       metadata:\n         category: security\n         cwe: \"\u003CCWE-XXX: full CWE name>\"\n         owasp: \"\u003CA0X:2021 - Category Name>\"\n         confidence: \u003CHIGH | MEDIUM | LOW>\n         likelihood: \u003CHIGH | MEDIUM | LOW>\n         impact: \u003CHIGH | MEDIUM | LOW>\n         references:\n           - https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F\u003CCWE_NUMBER>.html\n       pattern-either:\n         - pattern: \u003Cgeneralized pattern matching bad_code_example>\n       # pattern-not:\n       #   - pattern: \u003Cpattern matching good_code_example, if provided>\n   ```\n\n5. **Compose `tests.md`** — Markdown with two fenced code blocks:\n\n   ```markdown\n   # Tests for \u003Crule_id>\n\n   ## Should match (vulnerable)\n\n   ```\u003Clanguage>\n   \u003Cbad_code_example, formatted>\n   ```\n\n   The rule should flag this with severity `\u003Cchosen>`.\n\n   ## Should NOT match (safe)\n\n   ```\u003Clanguage>\n   \u003Cgood_code_example or LLM-inferred safe variant>\n   ```\n\n   This is the recommended way to write the same logic.\n   ```\n\n6. **Compose `README.md`** — Markdown explanation:\n\n   ```markdown\n   # \u003Crule_id>\n\n   **Severity**: \u003CERROR\u002FWARNING\u002FINFO>\n   **CWE**: \u003CCWE-XXX>\n   **OWASP**: \u003CA0X:2021 - Category>\n\n   ## What this rule catches\n\n   \u003C2-3 sentence plain-English explanation>\n\n   ## Why it matters\n\n   \u003C1-2 sentences on the actual security impact, drawing from the cve_description>\n\n   ## How to fix\n\n   \u003C1-2 sentences pointing at the safe pattern>\n\n   ## References\n\n   - [CWE-XXX](https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002FXXX.html)\n   - [OWASP A0X:2021](https:\u002F\u002Fowasp.org\u002FTop10\u002FA0X_2021-...)\n   ```\n\n7. **Write all three files** in order: `rule.yml`, `tests.md`, `README.md` via `write_artifact`.\n\n8. **Return structured output**:\n   - `rule_id`: the full id (e.g., `custom.ssrf-via-user-input`)\n   - `severity`: `ERROR` \u002F `WARNING` \u002F `INFO`\n   - `cwe`: e.g., `CWE-918` (the identifier alone, no description)\n   - `summary`: one-line summary suitable for a security rule index\n\n## Style\n\n- Patterns must be sound — false positives erode trust in security tooling. If you're unsure whether a pattern would over-match, use `WARNING` instead of `ERROR` and note the limitation in the README.\n- The `message` field appears in the developer's IDE\u002FCI output. It should be a complete sentence.\n- Avoid copy-pasting the user's bad_code_example verbatim into the pattern — generalize.\n- `confidence`\u002F`likelihood`\u002F`impact` together inform the developer how to triage. Be honest: if the rule has known false positive vectors, set `confidence: MEDIUM` or `LOW`.\n",{"name":5,"description":7},"main","b1d963b36174c159cad07fe91cef0b3c7bbdb7d7","agents\u002Fsemgrep-rule-creator",17,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun","https:\u002F\u002Fgithub.com\u002Fskrun-dev","Deploy any Agent Skill as an API — The Vercel for Agent Skills","2026-09-23 04:53:31",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add skrun-dev\u002Fskrun --skill semgrep-rule-creator",{"tool":58,"command":59},"bunx","bunx skills add skrun-dev\u002Fskrun --skill semgrep-rule-creator",{"tool":61,"command":62},"pnpm","pnpm dlx skills add skrun-dev\u002Fskrun --skill semgrep-rule-creator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002FSKILL.md",true,[66,72,76,80],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"agent.yaml","REFERENCE","参考文档",3343,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002Fagent.yaml",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"fixtures\u002Fsample-cve.md",1960,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002Ffixtures\u002Fsample-cve.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"README.md",4660,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002FREADME.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fwrite_artifact.ts","SCRIPT","脚本",1582,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Fsemgrep-rule-creator\u002Fscripts\u002Fwrite_artifact.ts",[87,107,119,128,137,160],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":39},"01M6K4K8ZVWY12RFZAYY0Q1MM0","audit-fixture-tool-error","E2E test fixture — calls a tool that always fails, used to verify tool_call_error events.","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagents\u002Faudit-fixture-tool-error\u002FSKILL.md",[],[94,95,96,97,98,99,100,101,102,103,104,105,106],"fixture","audit fixture tool error","fixture tool","error","audit","tool","call","e2e test","events","verify","calls","e2e","test",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6K4K4CJ9FPC07VJ0MD3C9S8","script-deps-python-fixture","Python deps integration fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-python\u002FSKILL.md",[],[114,115,116,94,117,118,24],"script deps python fixture","python","deps","script","integration",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":39},"01M6K4K1ATBYMVPESQDP46ND24","script-deps-none-fixture","No-manifest fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-none\u002FSKILL.md",[],[126,117,94,116,24,127],"script deps none fixture","manifest",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M6K4JY6CE1345XRZ537ZJ9FB","script-deps-node-fixture","Node deps integration fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-node\u002FSKILL.md",[],[135,117,94,136,116,24,118],"script deps node fixture","node",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":141,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M6K4JVETZ77G36Z6HKFX29ST","pdf-processing","Extract PDF text, fill forms, merge files. Use when handling PDFs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fpackages\u002Fschema\u002Ftests\u002Ffixtures\u002Fvalid-agent-dir\u002FSKILL.md",[],[145,146,147,23,115,148,149,150,151,152,153,32,154,155,156,157,158,159],"processing","PDF","pdf processing","merge","git","Bash","text","read","extract","uv","files","forms","extract pdf","org","fill",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":39},"01M6K4JRVSGC92EZT5XWY9Q2N8","persistent-skill","A skill that uses persistent context mode.","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fpackages\u002Fschema\u002Ftests\u002Ffixtures\u002Fpersistent-no-agents-dir\u002FSKILL.md",[],[167,168,169,170],"persistent skill","context mode","mode","context"]