Skip to main content
skill GitHub Copilot official · GitHub

optimize-simplicite-logs — GitHub Copilot skill: install

Parses raw Simplicite .txt logs, filters fields, and writes structured JSON. Useful when log noise makes troubleshooting harder.

Install into GitHub Copilot · Skills CLI (Vercel) All methods and platforms ↓
npx skills add github/awesome-copilot --skill optimize-simplicite-logs
Open on GitHub

What optimize-simplicite-logs does

The skill parses Simplicite logs from a raw .txt file and writes structured JSON with selected fields such as timestamp, level, and body. Multiline errors and stack traces stay inside body. Without an output path, the JSON goes to stdout.

Run a converter before reading the source log. The package provides /scripts/simplicite-log2json.py and /scripts/SimpliciteLog2Json.ps1; use --include or -Include to select fields. The converter also prints a processing summary to stderr.

Install it when your project uses standard Simplicite logs and the agent should inspect a smaller JSON result. Check the output first if the log format has been heavily customized, because parsing depends on a fixed regex pattern.

What it helps with

  • parse a Simplicite .txt log
  • keep only timestamp, level, and body
  • preserve multiline errors in JSON
  • pipe parsed output to another tool

Example prompts for the agent

  • Convert `logs.txt` to JSON, keep `timestamp,level,body`, and save it as `logs_minified.json`.
  • Run `/scripts/simplicite-log2json.py` on `input.txt` with the `timestamp,level,body` filter.
  • Check whether this parser matches my Simplicite logs and explain the conversion result.

How to install optimize-simplicite-logs

1Skills CLI (Vercel)

npx skills add github/awesome-copilot --skill optimize-simplicite-logs

2GitHub CLI

gh skill install github/awesome-copilot optimize-simplicite-logs

3Manually: put the files in place

.github/skills/optimize-simplicite-logs/SKILL.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

bigquery-migration-sql-translator official google Translates SQL queries, DDL schemas, and procedures from Oracle, Snowflake, or Redshift to BigQuery GoogleSQL via BQMS. Fits database migration tasks. Claude Code Gemini CLI CX Codex 45installs clinical-research claude-code-skills Plan a prospective clinical study by selecting endpoints, estimating sample size, and checking feasibility before a phase-gate review. Claude Code 156installs research-ops-skills claude-code-skills Orchestrator skill for scoping clinical trials, tracking R&D budgets, calculating TAM, and synthesizing user interviews inside a forked context. Claude Code 130installs xlsx official anthropics Creates, reads, edits, and converts spreadsheet files. Use it when the requested deliverable is an Excel workbook or another tabular file. Claude Code Claude.ai 187,223installs google-agents-cli-observability official Google This skill guides you through tracing and monitoring AI agents, including ADK agents. Use it when you need to inspect agent execution or monitor a deployed agent. Claude Code CX Codex Cursor +1 509,900installs caveman-evidence-review JuliusBrussee A read-only skill reviews Caveman Cloud evidence on LLM spend, traces, and routing. Use it to see where a project’s model budget goes. Claude Code CX Codex Cursor +1 103,500installs migration JuliusBrussee Enforces reversible, compatibility-safe transitions for schema, data, and API updates. Useful whenever data loss or rollout downtime is unacceptable. Claude Code CX Codex Cursor +1 102,900installs performance-optimization addyosmani An agent skill that measures before it changes code: Core Web Vitals budgets, N+1 queries, missing indexes and slow endpoints. Claude Code CX Codex Cursor +1 64,500installs

Questions about optimize-simplicite-logs

How do I install optimize-simplicite-logs in GitHub Copilot?

Run npx skills add github/awesome-copilot --skill optimize-simplicite-logs, gh skill install github/awesome-copilot optimize-simplicite-logs, or place it at .github/skills/optimize-simplicite-logs/SKILL.md.

What does optimize-simplicite-logs do?

It converts raw Simplicite .txt logs into structured JSON and keeps only the fields you select. This removes log noise before agent analysis.

What does the skill need to run?

It needs access to /scripts/simplicite-log2json.py or /scripts/SimpliciteLog2Json.ps1. The parser targets the standard Simplicite log format.

Source text

SKILL.md · MIT
---
name: optimize-simplicite-logs
description: capability to parse Simplicité logs from a raw `.txt` file, filter fields to reduce noise, and output the result as structured JSON.
---

# 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:
```sh
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
```powershell
/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
```sh
# 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.

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor