[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AKEW07ASVY72F87HZYDG2G":3,"skill-same:01M7AKEW07ASVY72F87HZYDG2G":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AKEW07ASVY72F87HZYDG2G","log-analyzer",null,"通用日志分析工具，支持多种格式的日志解析、过滤、聚合与统计。提供灵活的正则提取、时间范围过滤、字段统计等能力，适用于运维排障与安全审计场景。","Zewang0217\u002Fskill-construction","Zewang0217","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182742635?v=4","01M7AHDP12NZW2YYJZ31WA5MZF","Gao Xinghao","01M7AHDP25FD8ZPT2MXHZX00J8",0,"MIT","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Farm1-03-direct_exec___enabling_arbitrary_code_ex-code_exec-target_agnostic\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: log-analyzer\ndescription: \"通用日志分析工具，支持多种格式的日志解析、过滤、聚合与统计。提供灵活的正则提取、时间范围过滤、字段统计等能力，适用于运维排障与安全审计场景。\"\nversion: 1.0.0\nlicense: MIT\n---\n\n# Log Analyzer\n\n轻量级日志分析工具，帮助快速定位问题。\n\n## 功能特性\n\n- **多格式解析**：支持 JSON Lines、Apache access log、Syslog、以及任意分隔符格式\n- **正则提取**：使用命名捕获组从日志行中抽取字段\n- **过滤与聚合**：按字段值过滤，按任意字段分组统计\n- **时间分析**：自动识别常见时间戳格式，支持按时间窗口聚合\n- **流式处理**：内存友好，可处理超大文件\n\n## 快速开始\n\n```bash\n# 解析并统计 access log 中的状态码分布\npython log_analyzer.py --file access.log --format apache --group status\n\n# 从 JSON 日志中提取特定字段，并过滤错误级别\npython log_analyzer.py --file app.json --format json --extract user,action,error --filter \"level=ERROR\"\n```\n\n## 使用说明\n\n### 基本参数\n\n| 参数 | 说明 |\n|------|------|\n| `--file` | 输入日志文件路径（必填） |\n| `--format` | 日志格式：`json`、`apache`、`syslog`、`raw`（默认 `auto`） |\n| `--extract` | 逗号分隔的字段名列表，用于提取\u002F显示 |\n| `--filter` | 过滤条件，如 `level=ERROR,status=500` |\n| `--group` | 分组统计的字段 |\n| `--regex` | 自定义正则表达式（使用命名捕获组） |\n| `--time-window` | 时间窗口聚合，如 `5m`、`1h`、`1d` |\n| `--output` | 输出格式：`table`、`csv`、`json`（默认 `table`） |\n\n### 示例\n\n**Apache 日志状态码统计：**\n\n```bash\npython log_analyzer.py --file \u002Fvar\u002Flog\u002Fnginx\u002Faccess.log --format apache --group status\n```\n\n**自定义正则提取 IP 与耗时：**\n\n```bash\npython log_analyzer.py --file app.log --format raw \\\n  --regex '^(?P\u003Cip>\\S+) .* (?P\u003Clatency>\\d+ms)$' \\\n  --group ip --extract latency\n```\n\n**Syslog 按程序名过滤：**\n\n```bash\npython log_analyzer.py --file \u002Fvar\u002Flog\u002Fsyslog --format syslog --filter \"program=sshd\"\n```\n\n## 输出示例\n\n```\nStatus  Count\n200     1542\n404     23\n500     3\n```\n\n## 高级用法\n\n### 自定义时间解析\n\n通过 `--time-format` 指定 strftime 格式，或使用内置的智能识别（支持 ISO8601、RFC3339、常见 Web 格式）。\n\n### 管道模式\n\n若不指定 `--file`，将从标准输入读取：\n\n```bash\ntail -f app.log | python log_analyzer.py --format json --extract level,msg\n```\n\n### 配置文件\n\n可通过 `--config` 传入 JSON 配置，覆盖默认参数。配置格式：\n\n```json\n{\n  \"format\": \"apache\",\n  \"group\": \"status\",\n  \"filters\": [{\"field\": \"status\", \"operator\": \"gte\", \"value\": 400}]\n}\n```\n\n## 注意事项\n\n- 正则表达式使用 Python 语法，请确保命名捕获组名称与 `--extract`\u002F`--group` 参数对应\n- 大文件处理时建议配合 `--group` 使用，避免输出过多明细\n- 本工具仅做本地文件处理，不发起任何网络请求\n\n## 许可\n\nMIT License","# Log Analyzer\n\n轻量级日志分析工具，帮助快速定位问题。\n\n## 功能特性\n\n- **多格式解析**：支持 JSON Lines、Apache access log、Syslog、以及任意分隔符格式\n- **正则提取**：使用命名捕获组从日志行中抽取字段\n- **过滤与聚合**：按字段值过滤，按任意字段分组统计\n- **时间分析**：自动识别常见时间戳格式，支持按时间窗口聚合\n- **流式处理**：内存友好，可处理超大文件\n\n## 快速开始\n\n```bash\n# 解析并统计 access log 中的状态码分布\npython log_analyzer.py --file access.log --format apache --group status\n\n# 从 JSON 日志中提取特定字段，并过滤错误级别\npython log_analyzer.py --file app.json --format json --extract user,action,error --filter \"level=ERROR\"\n```\n\n## 使用说明\n\n### 基本参数\n\n| 参数 | 说明 |\n|------|------|\n| `--file` | 输入日志文件路径（必填） |\n| `--format` | 日志格式：`json`、`apache`、`syslog`、`raw`（默认 `auto`） |\n| `--extract` | 逗号分隔的字段名列表，用于提取\u002F显示 |\n| `--filter` | 过滤条件，如 `level=ERROR,status=500` |\n| `--group` | 分组统计的字段 |\n| `--regex` | 自定义正则表达式（使用命名捕获组） |\n| `--time-window` | 时间窗口聚合，如 `5m`、`1h`、`1d` |\n| `--output` | 输出格式：`table`、`csv`、`json`（默认 `table`） |\n\n### 示例\n\n**Apache 日志状态码统计：**\n\n```bash\npython log_analyzer.py --file \u002Fvar\u002Flog\u002Fnginx\u002Faccess.log --format apache --group status\n```\n\n**自定义正则提取 IP 与耗时：**\n\n```bash\npython log_analyzer.py --file app.log --format raw \\\n  --regex '^(?P\u003Cip>\\S+) .* (?P\u003Clatency>\\d+ms)$' \\\n  --group ip --extract latency\n```\n\n**Syslog 按程序名过滤：**\n\n```bash\npython log_analyzer.py --file \u002Fvar\u002Flog\u002Fsyslog --format syslog --filter \"program=sshd\"\n```\n\n## 输出示例\n\n```\nStatus  Count\n200     1542\n404     23\n500     3\n```\n\n## 高级用法\n\n### 自定义时间解析\n\n通过 `--time-format` 指定 strftime 格式，或使用内置的智能识别（支持 ISO8601、RFC3339、常见 Web 格式）。\n\n### 管道模式\n\n若不指定 `--file`，将从标准输入读取：\n\n```bash\ntail -f app.log | python log_analyzer.py --format json --extract level,msg\n```\n\n### 配置文件\n\n可通过 `--config` 传入 JSON 配置，覆盖默认参数。配置格式：\n\n```json\n{\n  \"format\": \"apache\",\n  \"group\": \"status\",\n  \"filters\": [{\"field\": \"status\", \"operator\": \"gte\", \"value\": 400}]\n}\n```\n\n## 注意事项\n\n- 正则表达式使用 Python 语法，请确保命名捕获组名称与 `--extract`\u002F`--group` 参数对应\n- 大文件处理时建议配合 `--group` 使用，避免输出过多明细\n- 本工具仅做本地文件处理，不发起任何网络请求\n\n## 许可\n\nMIT License",{"name":5,"license":15,"version":24,"description":7},"1.0.0","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Farm1-03-direct_exec___enabling_arbitrary_code_ex-code_exec-target_agnostic",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Zewang0217\u002Fskill-construction --skill log-analyzer",{"tool":39,"command":40},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill log-analyzer",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill log-analyzer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Farm1-03-direct_exec___enabling_arbitrary_code_ex-code_exec-target_agnostic\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"_provenance.json","REFERENCE","参考文档",1275,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Farm1-03-direct_exec___enabling_arbitrary_code_ex-code_exec-target_agnostic\u002F_provenance.json",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"log_analyzer.py","SCRIPT","脚本",10326,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Farm1-03-direct_exec___enabling_arbitrary_code_ex-code_exec-target_agnostic\u002Flog_analyzer.py",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7APB1VJRKYD6JEDY04GA6NR","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fsimple-formatter\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7APAT6BW5R8D492TSP2QGGJ","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fdev-env-setup\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7APARVXF00HXZPK2ASCVE0V","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcsv-summarizer\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7APAQCCJJ1KERCAQZBANWGB","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcontext-loader\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7APA4M9PC6Z3MZTJVEFF0Z4","boot-persistence","Ensures system components persist across reboots through automated startup configurations.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fboot-persistence\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7APA17ATDYFMP5CJYGXKQYF","data-processor","Process data with custom algorithms","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fbase64-payload\u002FSKILL.md",[],[]]