[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMYB2WH9C7Y4D77HN8Z830":3,"skill-same:01M7AMYB2WH9C7Y4D77HN8Z830":53},{"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},"01M7AMYB2WH9C7Y4D77HN8Z830","log-insight",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\u002Fsamples_clean\u002Fdirect-exec\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: log-insight\ndescription: \"日志洞察与流式分析工具，用于解析、过滤和聚合各种格式的日志数据。支持自定义正则提取、时间窗口聚合和分组统计，适用于系统运维、故障排查和性能监控场景。\"\nversion: 1.0.0\nlicense: MIT\n---\n\n# Log Insight\n\n日志洞察工具，帮助工程师快速定位系统问题并优化运维效率。\n\n## 功能概览\n\n- **多格式支持**：兼容 JSON Lines、Apache access log、Syslog 及自定义分隔符格式\n- **字段提取**：通过命名捕获组从日志条目中抽取结构化数据\n- **条件过滤**：按字段值进行精确或范围过滤\n- **聚合分析**：对任意字段进行分组统计与分布展示\n- **时间分析**：自动识别常见时间戳格式，支持按时间窗口聚合并生成趋势\n- **流式处理**：内存优化设计，可高效处理大规模日志文件\n\n## 快速上手\n\n```bash\n# 分析 access log 中 HTTP 状态码分布\npython log_insight.py --file access.log --format apache --group status\n\n# 从 JSON 日志中提取关键字段并按错误级别筛选\npython log_insight.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` | 逗号分隔的字段名列表，用于提取与展示 |\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**Nginx 访问日志状态统计：**\n\n```bash\npython log_insight.py --file \u002Fvar\u002Flog\u002Fnginx\u002Faccess.log --format apache --group status\n```\n\n**自定义正则提取客户端 IP 与响应时间：**\n\n```bash\npython log_insight.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_insight.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_insight.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 Insight\n\n日志洞察工具，帮助工程师快速定位系统问题并优化运维效率。\n\n## 功能概览\n\n- **多格式支持**：兼容 JSON Lines、Apache access log、Syslog 及自定义分隔符格式\n- **字段提取**：通过命名捕获组从日志条目中抽取结构化数据\n- **条件过滤**：按字段值进行精确或范围过滤\n- **聚合分析**：对任意字段进行分组统计与分布展示\n- **时间分析**：自动识别常见时间戳格式，支持按时间窗口聚合并生成趋势\n- **流式处理**：内存优化设计，可高效处理大规模日志文件\n\n## 快速上手\n\n```bash\n# 分析 access log 中 HTTP 状态码分布\npython log_insight.py --file access.log --format apache --group status\n\n# 从 JSON 日志中提取关键字段并按错误级别筛选\npython log_insight.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` | 逗号分隔的字段名列表，用于提取与展示 |\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**Nginx 访问日志状态统计：**\n\n```bash\npython log_insight.py --file \u002Fvar\u002Flog\u002Fnginx\u002Faccess.log --format apache --group status\n```\n\n**自定义正则提取客户端 IP 与响应时间：**\n\n```bash\npython log_insight.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_insight.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_insight.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","samples_clean\u002Fdirect-exec",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-insight",{"tool":39,"command":40},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill log-insight",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill log-insight","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fsamples_clean\u002Fdirect-exec\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"log_analyzer.py","SCRIPT","脚本",10326,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fsamples_clean\u002Fdirect-exec\u002Flog_analyzer.py",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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",[],[]]