[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5B6SKSQKA6NMFPM502QCD":3,"skill-same:01M6C5B6SKSQKA6NMFPM502QCD":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":15,"repositoryHtmlUrl":63,"repositoryHomepageUrl":17,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":17,"updatedAt":66,"install":67,"resources":80},"01M6C5B6SKSQKA6NMFPM502QCD","sarif-parsing","SARIF 扫描结果解析处理","Parses and processes SARIF files from static analysis tools like CodeQL, Semgrep, or other scanners. Triggers on \"parse sarif\", \"read scan results\", \"aggregate findings\", \"deduplicate alerts\", or \"process sarif output\". Handles filtering, deduplication, format conversion, and CI\u002FCD integration of SARIF data. Does NOT run scans — use the Semgrep or CodeQL skills for that.","解析并处理来自 CodeQL、Semgrep 或其他扫描器等静态分析工具的 SARIF 文件。触发词包括“解析 sarif”、“读取扫描结果”、“聚合发现项”、“告警去重”或“处理 sarif 输出”。负责 SARIF 数据的过滤、去重、格式转换和 CI\u002FCD 集成。不执行扫描——扫描请使用 Semgrep 或 CodeQL 技能。","CoralShades\u002Facm-ai","CoralShades","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F220297585?v=4","01M6C5211QSJHZ8HXSDDWCR507","Coral Shades AI Agency","01M6C52161FNQDRQ0FRR8DAA9D",0,"MIT",null,"https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsarif-parsing\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"parsing","sarif parsing","Bash","run","use","process","filtering","results","read","grep","format","deduplicate","static analysis","analysis","semgrep","deduplication","data","codeql","ci","integration","2026-11-10 10:12:30",false,"---\nname: sarif-parsing\ndescription: >-\n  Parses and processes SARIF files from static analysis tools like CodeQL, Semgrep, or other\n  scanners. Triggers on \"parse sarif\", \"read scan results\", \"aggregate findings\", \"deduplicate\n  alerts\", or \"process sarif output\". Handles filtering, deduplication, format conversion, and\n  CI\u002FCD integration of SARIF data. Does NOT run scans — use the Semgrep or CodeQL skills for that.\nallowed-tools:\n  - Bash\n  - Read\n  - Glob\n  - Grep\n---\n\n# SARIF Parsing Best Practices\n\nYou are a SARIF parsing expert. Your role is to help users effectively read, analyze, and process SARIF files from static analysis tools.\n\n## When to Use\n\nUse this skill when:\n- Reading or interpreting static analysis scan results in SARIF format\n- Aggregating findings from multiple security tools\n- Deduplicating or filtering security alerts\n- Extracting specific vulnerabilities from SARIF files\n- Integrating SARIF data into CI\u002FCD pipelines\n- Converting SARIF output to other formats\n\n## When NOT to Use\n\nDo NOT use this skill for:\n- Running static analysis scans (use CodeQL or Semgrep skills instead)\n- Writing CodeQL or Semgrep rules (use their respective skills)\n- Analyzing source code directly (SARIF is for processing existing scan results)\n- Triaging findings without SARIF input (use variant-analysis or audit skills)\n\n## SARIF Structure Overview\n\nSARIF 2.1.0 is the current OASIS standard. Every SARIF file has this hierarchical structure:\n\n```\nsarifLog\n├── version: \"2.1.0\"\n├── $schema: (optional, enables IDE validation)\n└── runs[] (array of analysis runs)\n    ├── tool\n    │   ├── driver\n    │   │   ├── name (required)\n    │   │   ├── version\n    │   │   └── rules[] (rule definitions)\n    │   └── extensions[] (plugins)\n    ├── results[] (findings)\n    │   ├── ruleId\n    │   ├── level (error\u002Fwarning\u002Fnote)\n    │   ├── message.text\n    │   ├── locations[]\n    │   │   └── physicalLocation\n    │   │       ├── artifactLocation.uri\n    │   │       └── region (startLine, startColumn, etc.)\n    │   ├── fingerprints{}\n    │   └── partialFingerprints{}\n    └── artifacts[] (scanned files metadata)\n```\n\n### Why Fingerprinting Matters\n\nWithout stable fingerprints, you can't track findings across runs:\n\n- **Baseline comparison**: \"Is this a new finding or did we see it before?\"\n- **Regression detection**: \"Did this PR introduce new vulnerabilities?\"\n- **Suppression**: \"Ignore this known false positive in future runs\"\n\nTools report different paths (`\u002Fpath\u002Fto\u002Fproject\u002F` vs `\u002Fgithub\u002Fworkspace\u002F`), so path-based matching fails. Fingerprints hash the *content* (code snippet, rule ID, relative location) to create stable identifiers regardless of environment.\n\n## Tool Selection Guide\n\n| Use Case | Tool | Installation |\n|----------|------|--------------|\n| Quick CLI queries | jq | `brew install jq` \u002F `apt install jq` |\n| Python scripting (simple) | pysarif | `pip install pysarif` |\n| Python scripting (advanced) | sarif-tools | `pip install sarif-tools` |\n| .NET applications | SARIF SDK | NuGet package |\n| JavaScript\u002FNode.js | sarif-js | npm package |\n| Go applications | garif | `go get github.com\u002Fchavacava\u002Fgarif` |\n| Validation | SARIF Validator | sarifweb.azurewebsites.net |\n\n## Strategy 1: Quick Analysis with jq\n\nFor rapid exploration and one-off queries:\n\n```bash\n# Pretty print the file\njq '.' results.sarif\n\n# Count total findings\njq '[.runs[].results[]] | length' results.sarif\n\n# List all rule IDs triggered\njq '[.runs[].results[].ruleId] | unique' results.sarif\n\n# Extract errors only\njq '.runs[].results[] | select(.level == \"error\")' results.sarif\n\n# Get findings with file locations\njq '.runs[].results[] | {\n  rule: .ruleId,\n  message: .message.text,\n  file: .locations[0].physicalLocation.artifactLocation.uri,\n  line: .locations[0].physicalLocation.region.startLine\n}' results.sarif\n\n# Filter by severity and get count per rule\njq '[.runs[].results[] | select(.level == \"error\")] | group_by(.ruleId) | map({rule: .[0].ruleId, count: length})' results.sarif\n\n# Extract findings for a specific file\njq --arg file \"src\u002Fauth.py\" '.runs[].results[] | select(.locations[].physicalLocation.artifactLocation.uri | contains($file))' results.sarif\n```\n\n## Strategy 2: Python with pysarif\n\nFor programmatic access with full object model:\n\n```python\nfrom pysarif import load_from_file, save_to_file\n\n# Load SARIF file\nsarif = load_from_file(\"results.sarif\")\n\n# Iterate through runs and results\nfor run in sarif.runs:\n    tool_name = run.tool.driver.name\n    print(f\"Tool: {tool_name}\")\n\n    for result in run.results:\n        print(f\"  [{result.level}] {result.rule_id}: {result.message.text}\")\n\n        if result.locations:\n            loc = result.locations[0].physical_location\n            if loc and loc.artifact_location:\n                print(f\"    File: {loc.artifact_location.uri}\")\n                if loc.region:\n                    print(f\"    Line: {loc.region.start_line}\")\n\n# Save modified SARIF\nsave_to_file(sarif, \"modified.sarif\")\n```\n\n## Strategy 3: Python with sarif-tools\n\nFor aggregation, reporting, and CI\u002FCD integration:\n\n```python\nfrom sarif import loader\n\n# Load single file\nsarif_data = loader.load_sarif_file(\"results.sarif\")\n\n# Or load multiple files\nsarif_set = loader.load_sarif_files([\"tool1.sarif\", \"tool2.sarif\"])\n\n# Get summary report\nreport = sarif_data.get_report()\n\n# Get histogram by severity\nerrors = report.get_issue_type_histogram_for_severity(\"error\")\nwarnings = report.get_issue_type_histogram_for_severity(\"warning\")\n\n# Filter results\nhigh_severity = [r for r in sarif_data.get_results()\n                 if r.get(\"level\") == \"error\"]\n```\n\n**sarif-tools CLI commands:**\n\n```bash\n# Summary of findings\nsarif summary results.sarif\n\n# List all results with details\nsarif ls results.sarif\n\n# Get results by severity\nsarif ls --level error results.sarif\n\n# Diff two SARIF files (find new\u002Ffixed issues)\nsarif diff baseline.sarif current.sarif\n\n# Convert to other formats\nsarif csv results.sarif > results.csv\nsarif html results.sarif > report.html\n```\n\n## Strategy 4: Aggregating Multiple SARIF Files\n\nWhen combining results from multiple tools:\n\n```python\nimport json\nfrom pathlib import Path\n\ndef aggregate_sarif_files(sarif_paths: list[str]) -> dict:\n    \"\"\"Combine multiple SARIF files into one.\"\"\"\n    aggregated = {\n        \"version\": \"2.1.0\",\n        \"$schema\": \"https:\u002F\u002Fjson.schemastore.org\u002Fsarif-2.1.0.json\",\n        \"runs\": []\n    }\n\n    for path in sarif_paths:\n        with open(path) as f:\n            sarif = json.load(f)\n            aggregated[\"runs\"].extend(sarif.get(\"runs\", []))\n\n    return aggregated\n\ndef deduplicate_results(sarif: dict) -> dict:\n    \"\"\"Remove duplicate findings based on fingerprints.\"\"\"\n    seen_fingerprints = set()\n\n    for run in sarif[\"runs\"]:\n        unique_results = []\n        for result in run.get(\"results\", []):\n            # Use partialFingerprints or create key from location\n            fp = None\n            if result.get(\"partialFingerprints\"):\n                fp = tuple(sorted(result[\"partialFingerprints\"].items()))\n            elif result.get(\"fingerprints\"):\n                fp = tuple(sorted(result[\"fingerprints\"].items()))\n            else:\n                # Fallback: create fingerprint from rule + location\n                loc = result.get(\"locations\", [{}])[0]\n                phys = loc.get(\"physicalLocation\", {})\n                fp = (\n                    result.get(\"ruleId\"),\n                    phys.get(\"artifactLocation\", {}).get(\"uri\"),\n                    phys.get(\"region\", {}).get(\"startLine\")\n                )\n\n            if fp not in seen_fingerprints:\n                seen_fingerprints.add(fp)\n                unique_results.append(result)\n\n        run[\"results\"] = unique_results\n\n    return sarif\n```\n\n## Strategy 5: Extracting Actionable Data\n\n```python\nimport json\nfrom dataclasses import dataclass\nfrom typing import Optional\n\n@dataclass\nclass Finding:\n    rule_id: str\n    level: str\n    message: str\n    file_path: Optional[str]\n    start_line: Optional[int]\n    end_line: Optional[int]\n    fingerprint: Optional[str]\n\ndef extract_findings(sarif_path: str) -> list[Finding]:\n    \"\"\"Extract structured findings from SARIF file.\"\"\"\n    with open(sarif_path) as f:\n        sarif = json.load(f)\n\n    findings = []\n    for run in sarif.get(\"runs\", []):\n        for result in run.get(\"results\", []):\n            loc = result.get(\"locations\", [{}])[0]\n            phys = loc.get(\"physicalLocation\", {})\n            region = phys.get(\"region\", {})\n\n            findings.append(Finding(\n                rule_id=result.get(\"ruleId\", \"unknown\"),\n                level=result.get(\"level\", \"warning\"),\n                message=result.get(\"message\", {}).get(\"text\", \"\"),\n                file_path=phys.get(\"artifactLocation\", {}).get(\"uri\"),\n                start_line=region.get(\"startLine\"),\n                end_line=region.get(\"endLine\"),\n                fingerprint=next(iter(result.get(\"partialFingerprints\", {}).values()), None)\n            ))\n\n    return findings\n\n# Filter and prioritize\ndef prioritize_findings(findings: list[Finding]) -> list[Finding]:\n    \"\"\"Sort findings by severity.\"\"\"\n    severity_order = {\"error\": 0, \"warning\": 1, \"note\": 2, \"none\": 3}\n    return sorted(findings, key=lambda f: severity_order.get(f.level, 99))\n```\n\n## Common Pitfalls and Solutions\n\n### 1. Path Normalization Issues\n\nDifferent tools report paths differently (absolute, relative, URI-encoded):\n\n```python\nfrom urllib.parse import unquote\nfrom pathlib import Path\n\ndef normalize_path(uri: str, base_path: str = \"\") -> str:\n    \"\"\"Normalize SARIF artifact URI to consistent path.\"\"\"\n    # Remove file:\u002F\u002F prefix if present\n    if uri.startswith(\"file:\u002F\u002F\"):\n        uri = uri[7:]\n\n    # URL decode\n    uri = unquote(uri)\n\n    # Handle relative paths\n    if not Path(uri).is_absolute() and base_path:\n        uri = str(Path(base_path) \u002F uri)\n\n    # Normalize separators\n    return str(Path(uri))\n```\n\n### 2. Fingerprint Mismatch Across Runs\n\nFingerprints may not match if:\n- File paths differ between environments\n- Tool versions changed fingerprinting algorithm\n- Code was reformatted (changing line numbers)\n\n**Solution:** Use multiple fingerprint strategies:\n\n```python\ndef compute_stable_fingerprint(result: dict, file_content: str = None) -> str:\n    \"\"\"Compute environment-independent fingerprint.\"\"\"\n    import hashlib\n\n    components = [\n        result.get(\"ruleId\", \"\"),\n        result.get(\"message\", {}).get(\"text\", \"\")[:100],  # First 100 chars\n    ]\n\n    # Add code snippet if available\n    if file_content and result.get(\"locations\"):\n        region = result[\"locations\"][0].get(\"physicalLocation\", {}).get(\"region\", {})\n        if region.get(\"startLine\"):\n            lines = file_content.split(\"\\n\")\n            line_idx = region[\"startLine\"] - 1\n            if 0 \u003C= line_idx \u003C len(lines):\n                # Normalize whitespace\n                components.append(lines[line_idx].strip())\n\n    return hashlib.sha256(\"\".join(components).encode()).hexdigest()[:16]\n```\n\n### 3. Missing or Incomplete Data\n\nSARIF allows many optional fields. Always use defensive access:\n\n```python\ndef safe_get_location(result: dict) -> tuple[str, int]:\n    \"\"\"Safely extract file and line from result.\"\"\"\n    try:\n        loc = result.get(\"locations\", [{}])[0]\n        phys = loc.get(\"physicalLocation\", {})\n        file_path = phys.get(\"artifactLocation\", {}).get(\"uri\", \"unknown\")\n        line = phys.get(\"region\", {}).get(\"startLine\", 0)\n        return file_path, line\n    except (IndexError, KeyError, TypeError):\n        return \"unknown\", 0\n```\n\n### 4. Large File Performance\n\nFor very large SARIF files (100MB+):\n\n```python\nimport ijson  # pip install ijson\n\ndef stream_results(sarif_path: str):\n    \"\"\"Stream results without loading entire file.\"\"\"\n    with open(sarif_path, \"rb\") as f:\n        # Stream through results arrays\n        for result in ijson.items(f, \"runs.item.results.item\"):\n            yield result\n```\n\n### 5. Schema Validation\n\nValidate before processing to catch malformed files:\n\n```bash\n# Using ajv-cli\nnpm install -g ajv-cli\najv validate -s sarif-schema-2.1.0.json -d results.sarif\n\n# Using Python jsonschema\npip install jsonschema\n```\n\n```python\nfrom jsonschema import validate, ValidationError\nimport json\n\ndef validate_sarif(sarif_path: str, schema_path: str) -> bool:\n    \"\"\"Validate SARIF file against schema.\"\"\"\n    with open(sarif_path) as f:\n        sarif = json.load(f)\n    with open(schema_path) as f:\n        schema = json.load(f)\n\n    try:\n        validate(sarif, schema)\n        return True\n    except ValidationError as e:\n        print(f\"Validation error: {e.message}\")\n        return False\n```\n\n## CI\u002FCD Integration Patterns\n\n### GitHub Actions\n\n```yaml\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: results.sarif\n\n- name: Check for high severity\n  run: |\n    HIGH_COUNT=$(jq '[.runs[].results[] | select(.level == \"error\")] | length' results.sarif)\n    if [ \"$HIGH_COUNT\" -gt 0 ]; then\n      echo \"Found $HIGH_COUNT high severity issues\"\n      exit 1\n    fi\n```\n\n### Fail on New Issues\n\n```python\nfrom sarif import loader\n\ndef check_for_regressions(baseline: str, current: str) -> int:\n    \"\"\"Return count of new issues not in baseline.\"\"\"\n    baseline_data = loader.load_sarif_file(baseline)\n    current_data = loader.load_sarif_file(current)\n\n    baseline_fps = {get_fingerprint(r) for r in baseline_data.get_results()}\n    new_issues = [r for r in current_data.get_results()\n                  if get_fingerprint(r) not in baseline_fps]\n\n    return len(new_issues)\n```\n\n## Key Principles\n\n1. **Validate first**: Check SARIF structure before processing\n2. **Handle optionals**: Many fields are optional; use defensive access\n3. **Normalize paths**: Tools report paths differently; normalize early\n4. **Fingerprint wisely**: Combine multiple strategies for stable deduplication\n5. **Stream large files**: Use ijson or similar for 100MB+ files\n6. **Aggregate thoughtfully**: Preserve tool metadata when combining files\n\n## Skill Resources\n\nFor ready-to-use query templates, see [{baseDir}\u002Fresources\u002Fjq-queries.md]({baseDir}\u002Fresources\u002Fjq-queries.md):\n- 40+ jq queries for common SARIF operations\n- Severity filtering, rule extraction, aggregation patterns\n\nFor Python utilities, see [{baseDir}\u002Fresources\u002Fsarif_helpers.py]({baseDir}\u002Fresources\u002Fsarif_helpers.py):\n- `normalize_path()` - Handle tool-specific path formats\n- `compute_fingerprint()` - Stable fingerprinting ignoring paths\n- `deduplicate_results()` - Remove duplicates across runs\n\n## Reference Links\n\n- [OASIS SARIF 2.1.0 Specification](https:\u002F\u002Fdocs.oasis-open.org\u002Fsarif\u002Fsarif\u002Fv2.1.0\u002Fsarif-v2.1.0.html)\n- [Microsoft SARIF Tutorials](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-tutorials)\n- [SARIF SDK (.NET)](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-sdk)\n- [sarif-tools (Python)](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-tools)\n- [pysarif (Python)](https:\u002F\u002Fgithub.com\u002FKjeld-P\u002Fpysarif)\n- [GitHub SARIF Support](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcode-security\u002Fcode-scanning\u002Fintegrating-with-code-scanning\u002Fsarif-support-for-code-scanning)\n- [SARIF Validator](https:\u002F\u002Fsarifweb.azurewebsites.net\u002F)\n","# SARIF Parsing Best Practices\n\nYou are a SARIF parsing expert. Your role is to help users effectively read, analyze, and process SARIF files from static analysis tools.\n\n## When to Use\n\nUse this skill when:\n- Reading or interpreting static analysis scan results in SARIF format\n- Aggregating findings from multiple security tools\n- Deduplicating or filtering security alerts\n- Extracting specific vulnerabilities from SARIF files\n- Integrating SARIF data into CI\u002FCD pipelines\n- Converting SARIF output to other formats\n\n## When NOT to Use\n\nDo NOT use this skill for:\n- Running static analysis scans (use CodeQL or Semgrep skills instead)\n- Writing CodeQL or Semgrep rules (use their respective skills)\n- Analyzing source code directly (SARIF is for processing existing scan results)\n- Triaging findings without SARIF input (use variant-analysis or audit skills)\n\n## SARIF Structure Overview\n\nSARIF 2.1.0 is the current OASIS standard. Every SARIF file has this hierarchical structure:\n\n```\nsarifLog\n├── version: \"2.1.0\"\n├── $schema: (optional, enables IDE validation)\n└── runs[] (array of analysis runs)\n    ├── tool\n    │   ├── driver\n    │   │   ├── name (required)\n    │   │   ├── version\n    │   │   └── rules[] (rule definitions)\n    │   └── extensions[] (plugins)\n    ├── results[] (findings)\n    │   ├── ruleId\n    │   ├── level (error\u002Fwarning\u002Fnote)\n    │   ├── message.text\n    │   ├── locations[]\n    │   │   └── physicalLocation\n    │   │       ├── artifactLocation.uri\n    │   │       └── region (startLine, startColumn, etc.)\n    │   ├── fingerprints{}\n    │   └── partialFingerprints{}\n    └── artifacts[] (scanned files metadata)\n```\n\n### Why Fingerprinting Matters\n\nWithout stable fingerprints, you can't track findings across runs:\n\n- **Baseline comparison**: \"Is this a new finding or did we see it before?\"\n- **Regression detection**: \"Did this PR introduce new vulnerabilities?\"\n- **Suppression**: \"Ignore this known false positive in future runs\"\n\nTools report different paths (`\u002Fpath\u002Fto\u002Fproject\u002F` vs `\u002Fgithub\u002Fworkspace\u002F`), so path-based matching fails. Fingerprints hash the *content* (code snippet, rule ID, relative location) to create stable identifiers regardless of environment.\n\n## Tool Selection Guide\n\n| Use Case | Tool | Installation |\n|----------|------|--------------|\n| Quick CLI queries | jq | `brew install jq` \u002F `apt install jq` |\n| Python scripting (simple) | pysarif | `pip install pysarif` |\n| Python scripting (advanced) | sarif-tools | `pip install sarif-tools` |\n| .NET applications | SARIF SDK | NuGet package |\n| JavaScript\u002FNode.js | sarif-js | npm package |\n| Go applications | garif | `go get github.com\u002Fchavacava\u002Fgarif` |\n| Validation | SARIF Validator | sarifweb.azurewebsites.net |\n\n## Strategy 1: Quick Analysis with jq\n\nFor rapid exploration and one-off queries:\n\n```bash\n# Pretty print the file\njq '.' results.sarif\n\n# Count total findings\njq '[.runs[].results[]] | length' results.sarif\n\n# List all rule IDs triggered\njq '[.runs[].results[].ruleId] | unique' results.sarif\n\n# Extract errors only\njq '.runs[].results[] | select(.level == \"error\")' results.sarif\n\n# Get findings with file locations\njq '.runs[].results[] | {\n  rule: .ruleId,\n  message: .message.text,\n  file: .locations[0].physicalLocation.artifactLocation.uri,\n  line: .locations[0].physicalLocation.region.startLine\n}' results.sarif\n\n# Filter by severity and get count per rule\njq '[.runs[].results[] | select(.level == \"error\")] | group_by(.ruleId) | map({rule: .[0].ruleId, count: length})' results.sarif\n\n# Extract findings for a specific file\njq --arg file \"src\u002Fauth.py\" '.runs[].results[] | select(.locations[].physicalLocation.artifactLocation.uri | contains($file))' results.sarif\n```\n\n## Strategy 2: Python with pysarif\n\nFor programmatic access with full object model:\n\n```python\nfrom pysarif import load_from_file, save_to_file\n\n# Load SARIF file\nsarif = load_from_file(\"results.sarif\")\n\n# Iterate through runs and results\nfor run in sarif.runs:\n    tool_name = run.tool.driver.name\n    print(f\"Tool: {tool_name}\")\n\n    for result in run.results:\n        print(f\"  [{result.level}] {result.rule_id}: {result.message.text}\")\n\n        if result.locations:\n            loc = result.locations[0].physical_location\n            if loc and loc.artifact_location:\n                print(f\"    File: {loc.artifact_location.uri}\")\n                if loc.region:\n                    print(f\"    Line: {loc.region.start_line}\")\n\n# Save modified SARIF\nsave_to_file(sarif, \"modified.sarif\")\n```\n\n## Strategy 3: Python with sarif-tools\n\nFor aggregation, reporting, and CI\u002FCD integration:\n\n```python\nfrom sarif import loader\n\n# Load single file\nsarif_data = loader.load_sarif_file(\"results.sarif\")\n\n# Or load multiple files\nsarif_set = loader.load_sarif_files([\"tool1.sarif\", \"tool2.sarif\"])\n\n# Get summary report\nreport = sarif_data.get_report()\n\n# Get histogram by severity\nerrors = report.get_issue_type_histogram_for_severity(\"error\")\nwarnings = report.get_issue_type_histogram_for_severity(\"warning\")\n\n# Filter results\nhigh_severity = [r for r in sarif_data.get_results()\n                 if r.get(\"level\") == \"error\"]\n```\n\n**sarif-tools CLI commands:**\n\n```bash\n# Summary of findings\nsarif summary results.sarif\n\n# List all results with details\nsarif ls results.sarif\n\n# Get results by severity\nsarif ls --level error results.sarif\n\n# Diff two SARIF files (find new\u002Ffixed issues)\nsarif diff baseline.sarif current.sarif\n\n# Convert to other formats\nsarif csv results.sarif > results.csv\nsarif html results.sarif > report.html\n```\n\n## Strategy 4: Aggregating Multiple SARIF Files\n\nWhen combining results from multiple tools:\n\n```python\nimport json\nfrom pathlib import Path\n\ndef aggregate_sarif_files(sarif_paths: list[str]) -> dict:\n    \"\"\"Combine multiple SARIF files into one.\"\"\"\n    aggregated = {\n        \"version\": \"2.1.0\",\n        \"$schema\": \"https:\u002F\u002Fjson.schemastore.org\u002Fsarif-2.1.0.json\",\n        \"runs\": []\n    }\n\n    for path in sarif_paths:\n        with open(path) as f:\n            sarif = json.load(f)\n            aggregated[\"runs\"].extend(sarif.get(\"runs\", []))\n\n    return aggregated\n\ndef deduplicate_results(sarif: dict) -> dict:\n    \"\"\"Remove duplicate findings based on fingerprints.\"\"\"\n    seen_fingerprints = set()\n\n    for run in sarif[\"runs\"]:\n        unique_results = []\n        for result in run.get(\"results\", []):\n            # Use partialFingerprints or create key from location\n            fp = None\n            if result.get(\"partialFingerprints\"):\n                fp = tuple(sorted(result[\"partialFingerprints\"].items()))\n            elif result.get(\"fingerprints\"):\n                fp = tuple(sorted(result[\"fingerprints\"].items()))\n            else:\n                # Fallback: create fingerprint from rule + location\n                loc = result.get(\"locations\", [{}])[0]\n                phys = loc.get(\"physicalLocation\", {})\n                fp = (\n                    result.get(\"ruleId\"),\n                    phys.get(\"artifactLocation\", {}).get(\"uri\"),\n                    phys.get(\"region\", {}).get(\"startLine\")\n                )\n\n            if fp not in seen_fingerprints:\n                seen_fingerprints.add(fp)\n                unique_results.append(result)\n\n        run[\"results\"] = unique_results\n\n    return sarif\n```\n\n## Strategy 5: Extracting Actionable Data\n\n```python\nimport json\nfrom dataclasses import dataclass\nfrom typing import Optional\n\n@dataclass\nclass Finding:\n    rule_id: str\n    level: str\n    message: str\n    file_path: Optional[str]\n    start_line: Optional[int]\n    end_line: Optional[int]\n    fingerprint: Optional[str]\n\ndef extract_findings(sarif_path: str) -> list[Finding]:\n    \"\"\"Extract structured findings from SARIF file.\"\"\"\n    with open(sarif_path) as f:\n        sarif = json.load(f)\n\n    findings = []\n    for run in sarif.get(\"runs\", []):\n        for result in run.get(\"results\", []):\n            loc = result.get(\"locations\", [{}])[0]\n            phys = loc.get(\"physicalLocation\", {})\n            region = phys.get(\"region\", {})\n\n            findings.append(Finding(\n                rule_id=result.get(\"ruleId\", \"unknown\"),\n                level=result.get(\"level\", \"warning\"),\n                message=result.get(\"message\", {}).get(\"text\", \"\"),\n                file_path=phys.get(\"artifactLocation\", {}).get(\"uri\"),\n                start_line=region.get(\"startLine\"),\n                end_line=region.get(\"endLine\"),\n                fingerprint=next(iter(result.get(\"partialFingerprints\", {}).values()), None)\n            ))\n\n    return findings\n\n# Filter and prioritize\ndef prioritize_findings(findings: list[Finding]) -> list[Finding]:\n    \"\"\"Sort findings by severity.\"\"\"\n    severity_order = {\"error\": 0, \"warning\": 1, \"note\": 2, \"none\": 3}\n    return sorted(findings, key=lambda f: severity_order.get(f.level, 99))\n```\n\n## Common Pitfalls and Solutions\n\n### 1. Path Normalization Issues\n\nDifferent tools report paths differently (absolute, relative, URI-encoded):\n\n```python\nfrom urllib.parse import unquote\nfrom pathlib import Path\n\ndef normalize_path(uri: str, base_path: str = \"\") -> str:\n    \"\"\"Normalize SARIF artifact URI to consistent path.\"\"\"\n    # Remove file:\u002F\u002F prefix if present\n    if uri.startswith(\"file:\u002F\u002F\"):\n        uri = uri[7:]\n\n    # URL decode\n    uri = unquote(uri)\n\n    # Handle relative paths\n    if not Path(uri).is_absolute() and base_path:\n        uri = str(Path(base_path) \u002F uri)\n\n    # Normalize separators\n    return str(Path(uri))\n```\n\n### 2. Fingerprint Mismatch Across Runs\n\nFingerprints may not match if:\n- File paths differ between environments\n- Tool versions changed fingerprinting algorithm\n- Code was reformatted (changing line numbers)\n\n**Solution:** Use multiple fingerprint strategies:\n\n```python\ndef compute_stable_fingerprint(result: dict, file_content: str = None) -> str:\n    \"\"\"Compute environment-independent fingerprint.\"\"\"\n    import hashlib\n\n    components = [\n        result.get(\"ruleId\", \"\"),\n        result.get(\"message\", {}).get(\"text\", \"\")[:100],  # First 100 chars\n    ]\n\n    # Add code snippet if available\n    if file_content and result.get(\"locations\"):\n        region = result[\"locations\"][0].get(\"physicalLocation\", {}).get(\"region\", {})\n        if region.get(\"startLine\"):\n            lines = file_content.split(\"\\n\")\n            line_idx = region[\"startLine\"] - 1\n            if 0 \u003C= line_idx \u003C len(lines):\n                # Normalize whitespace\n                components.append(lines[line_idx].strip())\n\n    return hashlib.sha256(\"\".join(components).encode()).hexdigest()[:16]\n```\n\n### 3. Missing or Incomplete Data\n\nSARIF allows many optional fields. Always use defensive access:\n\n```python\ndef safe_get_location(result: dict) -> tuple[str, int]:\n    \"\"\"Safely extract file and line from result.\"\"\"\n    try:\n        loc = result.get(\"locations\", [{}])[0]\n        phys = loc.get(\"physicalLocation\", {})\n        file_path = phys.get(\"artifactLocation\", {}).get(\"uri\", \"unknown\")\n        line = phys.get(\"region\", {}).get(\"startLine\", 0)\n        return file_path, line\n    except (IndexError, KeyError, TypeError):\n        return \"unknown\", 0\n```\n\n### 4. Large File Performance\n\nFor very large SARIF files (100MB+):\n\n```python\nimport ijson  # pip install ijson\n\ndef stream_results(sarif_path: str):\n    \"\"\"Stream results without loading entire file.\"\"\"\n    with open(sarif_path, \"rb\") as f:\n        # Stream through results arrays\n        for result in ijson.items(f, \"runs.item.results.item\"):\n            yield result\n```\n\n### 5. Schema Validation\n\nValidate before processing to catch malformed files:\n\n```bash\n# Using ajv-cli\nnpm install -g ajv-cli\najv validate -s sarif-schema-2.1.0.json -d results.sarif\n\n# Using Python jsonschema\npip install jsonschema\n```\n\n```python\nfrom jsonschema import validate, ValidationError\nimport json\n\ndef validate_sarif(sarif_path: str, schema_path: str) -> bool:\n    \"\"\"Validate SARIF file against schema.\"\"\"\n    with open(sarif_path) as f:\n        sarif = json.load(f)\n    with open(schema_path) as f:\n        schema = json.load(f)\n\n    try:\n        validate(sarif, schema)\n        return True\n    except ValidationError as e:\n        print(f\"Validation error: {e.message}\")\n        return False\n```\n\n## CI\u002FCD Integration Patterns\n\n### GitHub Actions\n\n```yaml\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: results.sarif\n\n- name: Check for high severity\n  run: |\n    HIGH_COUNT=$(jq '[.runs[].results[] | select(.level == \"error\")] | length' results.sarif)\n    if [ \"$HIGH_COUNT\" -gt 0 ]; then\n      echo \"Found $HIGH_COUNT high severity issues\"\n      exit 1\n    fi\n```\n\n### Fail on New Issues\n\n```python\nfrom sarif import loader\n\ndef check_for_regressions(baseline: str, current: str) -> int:\n    \"\"\"Return count of new issues not in baseline.\"\"\"\n    baseline_data = loader.load_sarif_file(baseline)\n    current_data = loader.load_sarif_file(current)\n\n    baseline_fps = {get_fingerprint(r) for r in baseline_data.get_results()}\n    new_issues = [r for r in current_data.get_results()\n                  if get_fingerprint(r) not in baseline_fps]\n\n    return len(new_issues)\n```\n\n## Key Principles\n\n1. **Validate first**: Check SARIF structure before processing\n2. **Handle optionals**: Many fields are optional; use defensive access\n3. **Normalize paths**: Tools report paths differently; normalize early\n4. **Fingerprint wisely**: Combine multiple strategies for stable deduplication\n5. **Stream large files**: Use ijson or similar for 100MB+ files\n6. **Aggregate thoughtfully**: Preserve tool metadata when combining files\n\n## Skill Resources\n\nFor ready-to-use query templates, see [{baseDir}\u002Fresources\u002Fjq-queries.md]({baseDir}\u002Fresources\u002Fjq-queries.md):\n- 40+ jq queries for common SARIF operations\n- Severity filtering, rule extraction, aggregation patterns\n\nFor Python utilities, see [{baseDir}\u002Fresources\u002Fsarif_helpers.py]({baseDir}\u002Fresources\u002Fsarif_helpers.py):\n- `normalize_path()` - Handle tool-specific path formats\n- `compute_fingerprint()` - Stable fingerprinting ignoring paths\n- `deduplicate_results()` - Remove duplicates across runs\n\n## Reference Links\n\n- [OASIS SARIF 2.1.0 Specification](https:\u002F\u002Fdocs.oasis-open.org\u002Fsarif\u002Fsarif\u002Fv2.1.0\u002Fsarif-v2.1.0.html)\n- [Microsoft SARIF Tutorials](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-tutorials)\n- [SARIF SDK (.NET)](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-sdk)\n- [sarif-tools (Python)](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsarif-tools)\n- [pysarif (Python)](https:\u002F\u002Fgithub.com\u002FKjeld-P\u002Fpysarif)\n- [GitHub SARIF Support](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcode-security\u002Fcode-scanning\u002Fintegrating-with-code-scanning\u002Fsarif-support-for-code-scanning)\n- [SARIF Validator](https:\u002F\u002Fsarifweb.azurewebsites.net\u002F)\n",{"name":5,"description":7,"allowed-tools":56},[33,57,58,59],"Read","Glob","Grep","main","1ca81b0a7de199942400f965edd4d7544077ac5d",".agents\u002Fskills\u002Fsarif-parsing","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai","https:\u002F\u002Fgithub.com\u002FCoralShades","coralshades.com.au","2026-04-18 00:45:07",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add CoralShades\u002Facm-ai --skill sarif-parsing",{"tool":73,"command":74},"bunx","bunx skills add CoralShades\u002Facm-ai --skill sarif-parsing",{"tool":76,"command":77},"pnpm","pnpm dlx skills add CoralShades\u002Facm-ai --skill sarif-parsing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsarif-parsing\u002FSKILL.md",true,[81,87,91,95,99,103,107],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fbdn-internals-and-tuning.md","REFERENCE","参考文档",9639,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fmicrobenchmarking\u002Freferences\u002Fbdn-internals-and-tuning.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fcomparison-strategies.md",8702,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fmicrobenchmarking\u002Freferences\u002Fcomparison-strategies.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fdiagnosers-and-exporters.md",6548,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fmicrobenchmarking\u002Freferences\u002Fdiagnosers-and-exporters.md",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fproject-setup-and-running.md",9441,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fmicrobenchmarking\u002Freferences\u002Fproject-setup-and-running.md",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fwriting-benchmarks.md",12292,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fmicrobenchmarking\u002Freferences\u002Fwriting-benchmarks.md",{"path":104,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":105,"sourceHtmlUrl":106},"resources\u002Fjq-queries.md",5267,"https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsarif-parsing\u002Fresources\u002Fjq-queries.md",{"path":108,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":111,"sourceHtmlUrl":112},"resources\u002Fsarif_helpers.py","SCRIPT","脚本",10183,"https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsarif-parsing\u002Fresources\u002Fsarif_helpers.py",[114,140,160,182,203,217],{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":128,"publishedAt":51},"01M6C63HKXA890HHV47WBAX0TB","uncodixfy","前端界面去 AI 化设计","Prevents generic AI\u002FCodex UI patterns when generating frontend code. Use this skill whenever generating HTML, CSS, React, Vue, Svelte, or any frontend UI code to enforce clean, human-designed aesthetics inspired by Linear, Raycast, Stripe, and GitHub instead of typical AI-generated UI.","在生成前端代码时避免出现千篇一律的 AI\u002FCodex UI 模式。每当生成 HTML、CSS、React、Vue、Svelte 或任何前端 UI 代码时使用本技能，以强制采用受 Linear、Raycast、Stripe 和 GitHub 启发的简洁、人工设计的美学，而非典型的 AI 生成界面。","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Funcodixfy\u002FSKILL.md",[122,125],{"categoryNo":123,"categoryName":124,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[116,129,130,131,132,133,134,135,136,137,138,35,139],"github","frontend","css","codex","react","code","linear","ui","vue","generated","html",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":146,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":155,"publishedAt":51},"01M6C63FJ2GEBBGZ5XSMV40KXB","runpodctl","Runpod GPU 工作负载管理","Runpod CLI to manage your GPU workloads.","使用 Runpod CLI 管理你的 GPU 工作负载。","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Frunpodctl\u002FSKILL.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRYS21JX3JFDVCQ5GG4TFK","AI 平台资源管理",{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[142,156,157,158,159,33],"macos","cli","linux","gpu",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":172,"publishedAt":51},"01M6C63DPAV46TFVQ01SFYPJ7X","langgraph-persistence","LangGraph 状态持久化","INVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer scoping. Covers checkpointers, thread_id, time travel, Store, and subgraph persistence modes.","当你的 LangGraph 需要持久化状态、记住对话、回溯历史，或配置子图检查点（checkpointer）作用域时请调用本技能。涵盖检查点、thread_id、时间旅行、Store 与子图持久化模式。","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Flanggraph-persistence\u002FSKILL.md",[168,169],{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":170,"categoryName":171,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[173,174,175,176,177,178,179,180,181],"langgraph persistence","langgraph","persistence","travel","history","scoping","remember","state","configure",{"skillNo":183,"name":184,"nameZh":185,"description":186,"descriptionZh":187,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":192,"publishedAt":51},"01M6C63BNS9CQEBTB8RNSSBFPA","langgraph-human-in-the-loop","LangGraph 人机协作开发","INVOKE THIS SKILL when implementing human-in-the-loop patterns, pausing for approval, or handling errors in LangGraph. Covers interrupt(), Command(resume=...), approval\u002Fvalidation workflows, and the 4-tier error handling strategy.","实现人机协作（human-in-the-loop）模式、暂停等待审批，或处理 LangGraph 中的错误时请调用本技能。涵盖 interrupt()、Command(resume=...)、审批\u002F验证工作流以及 4 层错误处理策略。","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Flanggraph-human-in-the-loop\u002FSKILL.md",[190,191],{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":170,"categoryName":171,"taxonomyType":28,"taxonomyTypeDesc":29},[193,194,174,195,196,197,198,199,200,201,202],"langgraph human in the loop","loop","workflows","error handling","validation","human-in-the-loop","command","strategy","approval","resume",{"skillNo":204,"name":205,"nameZh":206,"description":207,"descriptionZh":208,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":209,"categories":210,"keywords":213,"publishedAt":51},"01M6C639GVYZFX3NFPV5FBDR4F","langgraph-fundamentals","LangGraph 开发基础","INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling.","编写任何 LangGraph 代码时请调用本技能。涵盖 StateGraph、状态模式（state schemas）、节点、边、Command、Send、invoke、流式处理与错误处理。","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Flanggraph-fundamentals\u002FSKILL.md",[211,212],{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":170,"categoryName":171,"taxonomyType":28,"taxonomyTypeDesc":29},[214,174,196,180,215,216,199,134],"langgraph fundamentals","streaming","writing",{"skillNo":218,"name":219,"nameZh":220,"description":221,"descriptionZh":222,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":223,"categories":224,"keywords":229,"publishedAt":51},"01M6C6375N34YX2GZ3SD3R7XR2","langchain-rag","LangChain RAG开发","INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embeddings (OpenAI), and vector stores (Chroma, FAISS, Pinecone).","在构建任何检索增强生成（RAG）系统时调用本技能。涵盖文档加载器、RecursiveCharacterTextSplitter、embeddings（OpenAI）以及向量存储（Chroma、FAISS、Pinecone）。","https:\u002F\u002Fgithub.com\u002FCoralShades\u002Facm-ai\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Flangchain-rag\u002FSKILL.md",[225,226],{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":227,"categoryName":228,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8215FRMSQKF7VRNXVQ0MP","RAG 检索增强开发",[230,231,232,233,234,235,236,237,238,239],"rag","langchain rag","langchain","embeddings","vector","openai","chroma","faiss","vector stores","system"]