본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트40k · #7314

optimize-simplicite-logs

하는 일

이 도구는 Simplicité 로그 파일을 정리합니다. 원시 텍스트 파일을 불필요한 정보를 덜어 낸 더 깔끔한 구조화된 형식(JSON)으로 바꿔, 분석을 쉽게 만듭니다.

사용하는 경우

  • ✓텍스트 형식의 큰 Simplicité 로그 파일이 있을 때.
  • ✓AI가 거대한 원시 로그 파일을 읽지 않도록 하고 싶을 때.
  • ✓로그에서 시간, 오류 수준, 메시지 같은 중요한 정보를 뽑아내고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/optimize-simplicite-logs/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/optimize-simplicite-logs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Simplicité 로그 파일을 시간(timestamp), 수준(level), 메시지(message)만 포함하는 정리된 JSON으로 바꿔 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 스크립트(Python 또는 PowerShell)를 사용해 로그 텍스트 파일을 읽습니다. 시간이나 메시지처럼 중요한 데이터만 골라 새 JSON 파일로 정리합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Optimize Simplicite Logs

This skill provides the capability to parse Simplicité logs from a raw .txt file, filter fields to reduce noise, and output the result as structured JSON. This is critical for optimizing AI context size (saving ~56% of tokens) and providing structured, predictable data for troubleshooting.

When to Use This Skill

Use this skill when you need to:

  • Analyze user-provided Simplicité log files in .txt format.
  • Avoid ingesting massive raw log files into your context window.
  • Extract structured fields (like timestamp, level, body) from verbose multi-line log output.

IMPORTANT: Instead of directly reading a raw .txt log file provided by the user using file read tools, you must use one of the log converter scripts (PowerShell or Python) to parse the file into a JSON format first, optionally extracting only the fields needed.

Prerequisites

  • Access to either the PowerShell script (/scripts/SimpliciteLog2Json.ps1) or the Python script (/scripts/simplicite-log2json.py).

Core Capabilities

1. Context Optimization

Reduces the tokens consumed by large Simplicité logs by extracting only relevant log fields (e.g. body, timestamp, level) and discarding non-relevant structural log data (like app, endpoint, contextPath).

2. Multi-line Support

Properly captures stack traces and multiline errors inside the body field of the JSON structure, which a simple text search might miss.

3. Stdout Support

If no output path is provided for the JSON file (e.g. omitting --output or -Output), the parsed JSON will be printed directly to stdout, allowing you to pipe the output to other tools.

Output Summary

After processing, the tool prints a summary to stderr (or console):

Processed: 123 entries, Skipped: 2 entries

Usage Examples

Example 1: Python Version (Recommended)

Convert a log file to JSON, keeping only the most important fields:

python /absolute/path/to/skills/optimize-simplicite-logs/scripts/simplicite-log2json.py <input.txt> --include timestamp,level,body --output <output.json>

Example 2: PowerShell Version

/python /absolute/path/to/skills/optimize-simplicite-logs/scripts/SimpliciteLog2Json.ps1 -InputPath "<input.txt>" -Output "<output.json>" -Include "body,timestamp,level"

After generating the <output.json>, you can safely read the resulting file to perform your analysis.

Guidelines

  1. Always Convert First: Never directly read .txt log files from Simplicité using standard text reading tools. Always convert them to JSON using the available scripts.
  2. Filter Fields: Use --include (Python) or -Include (PowerShell) to restrict fields to what is absolutely necessary to diagnose the issue (usually timestamp,level,body).
  3. Available Fields: The fields you can filter include: timestamp, app, level, endpoint, contextPath, event, user, class, function, rowId, body.

Common Patterns

Pattern: Fast Contextual Troubleshooting

# 1. Run the script to generate a minified JSON output in the current directory
python /absolute/path/to/skills/optimize-simplicite-logs/scripts/simplicite-log2json.py logs.txt --include timestamp,level,body --output logs_minified.json

# 2. Then read logs_minified.json to understand the context.

Limitations

  • The parser depends on a fixed regex pattern that matches the standard Simplicité log output. If the log format has been heavily customized, parsing might fail or degrade.
자주 묻는 질문

원시 로그 텍스트 파일을 AI에 그대로 주면 안 되나요?

원시 로그 파일은 매우 클 수 있고, AI에게 필요 없는 정보도 많이 들어 있습니다. 그러면 AI가 처리할 수 있는 양(토큰)을 너무 많이 쓰고 분석이 어려워집니다.

어떤 중요한 정보를 뽑아낼 수 있나요?

'timestamp'(시간), 'level'(오류나 정보 수준), 'body'(로그의 주요 메시지) 같은 필드를 뽑아낼 수 있습니다.

로그 항목이 여러 줄에 걸치면 어떻게 되나요?

도구는 이런 여러 줄 항목을 하나의 JSON 기록으로 합칠 수 있어, 자세한 오류 정보가 빠지지 않습니다.

상세 정보

작성자의 원본 설명

capability to parse Simplicité logs from a raw `.txt` file, filter fields to reduce noise, and output the result as structured JSON.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7314
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬