[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETR4TKQ8BHGVED040Z588P":3,"skill-same:01M7ETR4TKQ8BHGVED040Z588P":67},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7ETR4TKQ8BHGVED040Z588P","trafilatura",null,"Use Trafilatura for web text discovery, downloading, extraction, metadata, CLI batch processing, deduplication, and structured corpus outputs.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: trafilatura\ndescription: \"Use Trafilatura for web text discovery, downloading, extraction,\n  metadata, CLI batch processing, deduplication, and structured corpus outputs.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Trafilatura Repo Skill\n\nUse this skill when a task involves Trafilatura, or when the task is about extracting clean text and metadata from HTML, preparing web-corpus data, discovering article URLs from feeds\u002Fsitemaps\u002Fcrawls, or using a Python\u002FCLI web-scraping tool that outputs TXT, Markdown, JSON, CSV, HTML, XML, or XML-TEI.\n\nTrafilatura is both a Python package and a command-line tool. It can fetch or accept HTML, isolate main text and metadata, preserve selected structure, process batches, deduplicate repeated text, and produce corpus-friendly outputs.\n\n## Before you start\n\n1. Install or verify the package:\n   ```bash\n   python -m pip install trafilatura\n   python - \u003C\u003C'PY'\n   import trafilatura\n   print(trafilatura.__version__)\n   print(trafilatura.extract('\u003Chtml>\u003Cbody>\u003Cp>Hello from Trafilatura.\u003C\u002Fp>\u003C\u002Fbody>\u003C\u002Fhtml>'))\n   PY\n   ```\n2. If optional features are requested, install the relevant extra instead of assuming it is present:\n   - `trafilatura[all]` for language detection, faster encoding\u002Fcompression\u002Fdate handling, SOCKS proxy support, and `pycurl`-based download fallback.\n   - `trafilatura[eval]` only for benchmark\u002Fevaluation comparisons; it is not needed for normal extraction.\n3. Run [scripts\u002Fcheck_trafilatura_environment.py](scripts\u002Fcheck_trafilatura_environment.py) for a no-network import, CLI, extraction, metadata, and deduplication smoke check.\n4. Read [references\u002Frepo-provenance.md](references\u002Frepo-provenance.md) when checking whether this skill matches a current checkout or before refreshing the skill.\n5. Read [references\u002Fpackage-overview.md](references\u002Fpackage-overview.md) for the shared capability map, output formats, install extras, and common constraints.\n6. Use [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for install\u002Fimport, CLI PATH, optional-extra, config, network, and routing failures that cross sub-skill boundaries.\n\n## Route by task\n\n| User task or signal | Read |\n| --- | --- |\n| In-memory Python extraction from HTML strings, bytes, `Response` objects, or LXML trees | [sub-skills\u002Fpython-extraction\u002FSKILL.md](sub-skills\u002Fpython-extraction\u002FSKILL.md) |\n| Choose `extract()`, `bare_extraction()`, `extract_metadata()`, `html2txt()`, `baseline()`, output formats, metadata, comments, tables, links, images, or `Extractor` options | [sub-skills\u002Fpython-extraction\u002FSKILL.md](sub-skills\u002Fpython-extraction\u002FSKILL.md) |\n| Use the `trafilatura` command, stdin, `-u\u002F--URL`, URL lists, local directories, output directories, backups, `--keep-dirs`, `--parallel`, or `--config-file` | [sub-skills\u002Fcli-batch-processing\u002FSKILL.md](sub-skills\u002Fcli-batch-processing\u002FSKILL.md) |\n| Build shell commands for TXT\u002FMarkdown\u002FJSON\u002FHTML\u002FXML\u002FXML-TEI output or CLI metadata\u002Fdedup\u002Fprecision\u002Frecall flags | [sub-skills\u002Fcli-batch-processing\u002FSKILL.md](sub-skills\u002Fcli-batch-processing\u002FSKILL.md) |\n| Download pages with `fetch_url()`\u002F`fetch_response()`, inspect `Response`, manage polite URL queues, or troubleshoot SSL\u002Fproxy\u002Ftimeouts | [sub-skills\u002Fdiscovery-downloads\u002FSKILL.md](sub-skills\u002Fdiscovery-downloads\u002FSKILL.md) |\n| Discover URLs from feeds, sitemaps, focused crawling, `--feed`, `--sitemap`, `--crawl`, `--explore`, `--probe`, `--archived`, `--url-filter`, or `--list` | [sub-skills\u002Fdiscovery-downloads\u002FSKILL.md](sub-skills\u002Fdiscovery-downloads\u002FSKILL.md) |\n| Build a corpus, choose JSON\u002FCSV\u002FXML\u002FXML-TEI, validate TEI\u002FXML, deduplicate boilerplate, compute Simhash\u002Ffingerprints, or understand evaluation benchmarks | [sub-skills\u002Fcorpus-quality\u002FSKILL.md](sub-skills\u002Fcorpus-quality\u002FSKILL.md) |\n\n## Common decisions\n\n- Use Python APIs when the workflow already has HTML in memory or needs downstream parsing and programmatic error handling.\n- Use the CLI when the workflow is a shell pipeline, local HTML directory conversion, URL-list batch, or reproducible command recipe.\n- Use discovery\u002Fdownload guidance before extraction when URLs must be found, filtered, throttled, or fetched politely.\n- Use corpus-quality guidance when many pages must be validated, deduplicated, fingerprinted, or converted into analysis-friendly structured outputs.\n- Treat live network access, large crawls, benchmark corpora, credentials, and optional extras as explicit runtime decisions. The bundled scripts are no-network checks.\n\n## Minimal Python extraction\n\n```python\nfrom trafilatura import extract\n\nhtml = \"\"\"\u003Chtml>\u003Cbody>\u003Carticle>\u003Ch1>Title\u003C\u002Fh1>\u003Cp>Main article text with enough content.\u003C\u002Fp>\u003C\u002Farticle>\u003C\u002Fbody>\u003C\u002Fhtml>\"\"\"\ntext = extract(html, output_format=\"txt\", include_comments=False)\nif text is None:\n    # See python-extraction troubleshooting for size thresholds, recall mode, and fallbacks.\n    raise RuntimeError(\"Trafilatura found no usable main text\")\n```\n\n## Minimal CLI extraction\n\n```bash\ntrafilatura --help\ncat page.html | trafilatura --markdown --with-metadata --no-comments\ntrafilatura --input-dir html-pages --output-dir extracted --json --parallel 2\n```\n\n## Scope boundaries\n\n- Trafilatura can help discover and crawl within documented limits, but it is not a full anti-bot bypass, browser automation, authentication, JavaScript rendering, or web-scale crawler system.\n- Optional language detection and some speed\u002Fdownload backends need optional extras; absence of those extras should be reported as a capability limit.\n- Benchmark\u002Fevaluation workflows are intentionally separate from ordinary extraction because they require extra packages and larger data.\n- Runtime guidance in this skill is self-contained and should not require reopening the source repository.\n","# Trafilatura Repo Skill\n\nUse this skill when a task involves Trafilatura, or when the task is about extracting clean text and metadata from HTML, preparing web-corpus data, discovering article URLs from feeds\u002Fsitemaps\u002Fcrawls, or using a Python\u002FCLI web-scraping tool that outputs TXT, Markdown, JSON, CSV, HTML, XML, or XML-TEI.\n\nTrafilatura is both a Python package and a command-line tool. It can fetch or accept HTML, isolate main text and metadata, preserve selected structure, process batches, deduplicate repeated text, and produce corpus-friendly outputs.\n\n## Before you start\n\n1. Install or verify the package:\n   ```bash\n   python -m pip install trafilatura\n   python - \u003C\u003C'PY'\n   import trafilatura\n   print(trafilatura.__version__)\n   print(trafilatura.extract('\u003Chtml>\u003Cbody>\u003Cp>Hello from Trafilatura.\u003C\u002Fp>\u003C\u002Fbody>\u003C\u002Fhtml>'))\n   PY\n   ```\n2. If optional features are requested, install the relevant extra instead of assuming it is present:\n   - `trafilatura[all]` for language detection, faster encoding\u002Fcompression\u002Fdate handling, SOCKS proxy support, and `pycurl`-based download fallback.\n   - `trafilatura[eval]` only for benchmark\u002Fevaluation comparisons; it is not needed for normal extraction.\n3. Run [scripts\u002Fcheck_trafilatura_environment.py](scripts\u002Fcheck_trafilatura_environment.py) for a no-network import, CLI, extraction, metadata, and deduplication smoke check.\n4. Read [references\u002Frepo-provenance.md](references\u002Frepo-provenance.md) when checking whether this skill matches a current checkout or before refreshing the skill.\n5. Read [references\u002Fpackage-overview.md](references\u002Fpackage-overview.md) for the shared capability map, output formats, install extras, and common constraints.\n6. Use [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for install\u002Fimport, CLI PATH, optional-extra, config, network, and routing failures that cross sub-skill boundaries.\n\n## Route by task\n\n| User task or signal | Read |\n| --- | --- |\n| In-memory Python extraction from HTML strings, bytes, `Response` objects, or LXML trees | [sub-skills\u002Fpython-extraction\u002FSKILL.md](sub-skills\u002Fpython-extraction\u002FSKILL.md) |\n| Choose `extract()`, `bare_extraction()`, `extract_metadata()`, `html2txt()`, `baseline()`, output formats, metadata, comments, tables, links, images, or `Extractor` options | [sub-skills\u002Fpython-extraction\u002FSKILL.md](sub-skills\u002Fpython-extraction\u002FSKILL.md) |\n| Use the `trafilatura` command, stdin, `-u\u002F--URL`, URL lists, local directories, output directories, backups, `--keep-dirs`, `--parallel`, or `--config-file` | [sub-skills\u002Fcli-batch-processing\u002FSKILL.md](sub-skills\u002Fcli-batch-processing\u002FSKILL.md) |\n| Build shell commands for TXT\u002FMarkdown\u002FJSON\u002FHTML\u002FXML\u002FXML-TEI output or CLI metadata\u002Fdedup\u002Fprecision\u002Frecall flags | [sub-skills\u002Fcli-batch-processing\u002FSKILL.md](sub-skills\u002Fcli-batch-processing\u002FSKILL.md) |\n| Download pages with `fetch_url()`\u002F`fetch_response()`, inspect `Response`, manage polite URL queues, or troubleshoot SSL\u002Fproxy\u002Ftimeouts | [sub-skills\u002Fdiscovery-downloads\u002FSKILL.md](sub-skills\u002Fdiscovery-downloads\u002FSKILL.md) |\n| Discover URLs from feeds, sitemaps, focused crawling, `--feed`, `--sitemap`, `--crawl`, `--explore`, `--probe`, `--archived`, `--url-filter`, or `--list` | [sub-skills\u002Fdiscovery-downloads\u002FSKILL.md](sub-skills\u002Fdiscovery-downloads\u002FSKILL.md) |\n| Build a corpus, choose JSON\u002FCSV\u002FXML\u002FXML-TEI, validate TEI\u002FXML, deduplicate boilerplate, compute Simhash\u002Ffingerprints, or understand evaluation benchmarks | [sub-skills\u002Fcorpus-quality\u002FSKILL.md](sub-skills\u002Fcorpus-quality\u002FSKILL.md) |\n\n## Common decisions\n\n- Use Python APIs when the workflow already has HTML in memory or needs downstream parsing and programmatic error handling.\n- Use the CLI when the workflow is a shell pipeline, local HTML directory conversion, URL-list batch, or reproducible command recipe.\n- Use discovery\u002Fdownload guidance before extraction when URLs must be found, filtered, throttled, or fetched politely.\n- Use corpus-quality guidance when many pages must be validated, deduplicated, fingerprinted, or converted into analysis-friendly structured outputs.\n- Treat live network access, large crawls, benchmark corpora, credentials, and optional extras as explicit runtime decisions. The bundled scripts are no-network checks.\n\n## Minimal Python extraction\n\n```python\nfrom trafilatura import extract\n\nhtml = \"\"\"\u003Chtml>\u003Cbody>\u003Carticle>\u003Ch1>Title\u003C\u002Fh1>\u003Cp>Main article text with enough content.\u003C\u002Fp>\u003C\u002Farticle>\u003C\u002Fbody>\u003C\u002Fhtml>\"\"\"\ntext = extract(html, output_format=\"txt\", include_comments=False)\nif text is None:\n    # See python-extraction troubleshooting for size thresholds, recall mode, and fallbacks.\n    raise RuntimeError(\"Trafilatura found no usable main text\")\n```\n\n## Minimal CLI extraction\n\n```bash\ntrafilatura --help\ncat page.html | trafilatura --markdown --with-metadata --no-comments\ntrafilatura --input-dir html-pages --output-dir extracted --json --parallel 2\n```\n\n## Scope boundaries\n\n- Trafilatura can help discover and crawl within documented limits, but it is not a full anti-bot bypass, browser automation, authentication, JavaScript rendering, or web-scale crawler system.\n- Optional language detection and some speed\u002Fdownload backends need optional extras; absence of those extras should be reported as a capability limit.\n- Benchmark\u002Fevaluation workflows are intentionally separate from ordinary extraction because they require extra packages and larger data.\n- Runtime guidance in this skill is self-contained and should not require reopening the source repository.\n",{"name":5,"license":24,"metadata":25,"description":7,"disable-model-invocation":27},"Apache 2.0",{"disco-role":26},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Ftrafilatura",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill trafilatura",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill trafilatura",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill trafilatura","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002FSKILL.md",[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fpackage-overview.md","REFERENCE","参考文档",5281,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002Freferences\u002Fpackage-overview.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Frepo-provenance.md",3521,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002Freferences\u002Frepo-provenance.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Frepo-routing-metadata.json",404,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002Freferences\u002Frepo-routing-metadata.json",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ftroubleshooting.md",5316,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrafilatura\u002Freferences\u002Ftroubleshooting.md",[68,77,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":78,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":76},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":76},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":76},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":76},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":76},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]