Agent skill

Analyze Log Files

by r3bl-org in r3bl-org/r3bl-open-core

Analyze log files by stripping ANSI escape sequences first. An agent skill from r3bl-org/r3bl-open-core.

Apache-2.0Auto-check: notesDevelopment

Install Analyze Log Files

skills CLI
$ npx skills add r3bl-org/r3bl-open-core --skill analyze-log-files -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install r3bl-org/r3bl-open-core analyze-log-files --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/r3bl-org/r3bl-open-core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/analyze-log-files .claude/skills/analyze-log-files && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
analyze-log-files
GitHub stars
485
Token cost
~632 tokens
SKILL.md length
264 words
Files
1
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyze log files by stripping ANSI escape sequences first. An agent skill from r3bl-org/r3bl-open-core.

  • Works in 3 steps: Strip ANSI Escape Sequences → Analyze the Clean Log → Report Findings
  • Asked to process
  • SKILL.md covers When to Use, Why This Matters, Instructions and Common Log File Locations, plus 4 more sections
  • Calls apt-get and brew

What it does

Analyze Log Files is an agent skill from r3bl-org/r3bl-open-core. Analyze log files by stripping ANSI escape sequences first. Use when asked to process, handle, read, or analyze log files that may contain terminal escape codes.

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: TUI framework and developer productivity apps in Rust 🦀. The licence is Apache-2.0.

When your agent uses it

  • Asked to process
  • Analyze log files that may contain terminal escape codes

Example prompts

  • “/analyze-log-files”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Strip ANSI Escape Sequences
  2. Analyze the Clean Log
  3. Report Findings

What it can do on your machine

Read from SKILL.md and the folder at commit 89db352. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • apt-get
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Analyze Log Files loads about 632 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 264 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~632

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:79
    sudo apt-get install ansifilter

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from r3bl-org/r3bl-open-core at commit 89db352, republished under its Apache-2.0 licence (© r3bl-org). 264 words, ~632 tokens.

Download SKILL.mdSave it as .claude/skills/analyze-log-files/SKILL.md (or your agent's skills folder).
name
analyze-log-files
description
Analyze log files by stripping ANSI escape sequences first. Use when asked to process, handle, read, or analyze log files that may contain terminal escape codes.

Analyze Log Files

When to Use

  • When user asks to "analyze /tmp/r3bl_tui/log.txt", "read the log file", "process logs", "check the logs"
  • When dealing with any .log or log-related files that may contain ANSI escape sequences
  • When terminal output has been captured to a file and needs analysis
  • When log files appear garbled or contain escape sequence artifacts

Why This Matters

Log files captured from terminal sessions often contain ANSI escape sequences for:

  • Colors (e.g., \x1b[31m for red)
  • Cursor movements
  • Text formatting (bold, underline)
  • Screen clearing commands

These sequences make logs difficult to:

  1. Read in plain text editors
  2. Search with grep/ripgrep
  3. Process with text analysis tools
  4. Analyze accurately by LLMs

Instructions

Step 1: Strip ANSI Escape Sequences

Before analyzing any log file, first strip the ANSI sequences using ansifilter:

bash
ansifilter -i /tmp/r3bl_tui/log.txt -o /tmp/clean_log.txt

For other log file names, adjust accordingly:

bash
ansifilter -i <input_file> -o /tmp/clean_log.txt
Step 2: Analyze the Clean Log

Read and analyze /tmp/clean_log.txt instead of the original file:

bash
# Use the Read tool on /tmp/clean_log.txt
Step 3: Report Findings

When reporting findings to the user:

  • Reference line numbers from the clean log
  • Quote relevant sections
  • Summarize errors, warnings, or patterns found

Common Log File Locations

  • /tmp/r3bl_tui/log.txt - General purpose log in project root
  • target/ - Cargo build logs
  • /tmp/*.log - Temporary logs

Example Workflow

User: "Can you analyze /tmp/r3bl_tui/log.txt and tell me what's wrong?"

  1. Run: ansifilter -i /tmp/r3bl_tui/log.txt -o /tmp/clean_log.txt
  2. Read: /tmp/clean_log.txt
  3. Analyze the content for errors, warnings, patterns
  4. Report findings to user

Troubleshooting

If ansifilter is not installed:

bash
# Ubuntu/Debian
sudo apt-get install ansifilter

# macOS
brew install ansifilter

# Or run bootstrap.sh to install all dependencies
./bootstrap.sh
  • check-code-quality - For checking Rust code quality (may generate logs)
  • analyze-performance - For performance analysis (generates flamegraph data)
  • /analyze-logs - Explicitly invokes this skill

© r3bl-org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/analyze-log-files of r3bl-org/r3bl-open-core.

Open the folder on GitHubat commit 89db352

Compare with similar skills

Analyze Log Files next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Analyze Log Files compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analyze Log Files this skillr3bl-org/r3bl-open-core485—~632Automated safety check: NotesApache-2.0
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from r3bl-org/r3bl-open-core

All 25 skills in this repo
  • Analyze Performance

    r3bl-org/r3bl-open-core

    Establish performance baselines and detect regressions using flamegraph analysis.

    485 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Check Bounds Safety

    r3bl-org/r3bl-open-core

    Apply type-safe bounds checking patterns using VPIndex/VPLength types instead of usize.

    485 GitHub stars~4.1k tokensUpdated yesterday
    Auto-check passed
  • Release Crate

    r3bl-org/r3bl-open-core

    Publish a crate release to crates.io with changelog, standalone release notes, git tag, and GitHub release.

    485 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Organize Modules

    r3bl-org/r3bl-open-core

    Apply private modules with public re-exports (barrel export) pattern for clean API design.

    485 GitHub stars~5.8k tokensUpdated yesterday
    Auto-check passed
  • Check Code Quality

    r3bl-org/r3bl-open-core

    Run comprehensive Rust code quality checks including compilation, linting, documentation, and tests.

    485 GitHub stars~3.8k tokensUpdated yesterday
    Auto-check passed
  • Check Test Coverage

    r3bl-org/r3bl-open-core

    Audit and verify test coverage for a specific file or module, ensuring all custom logic branches, state transitions, and boundary conditions are covered while strictly eliminating dependency test…

    485 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Analyze Log Files

What does Analyze Log Files do?

Analyze log files by stripping ANSI escape sequences first. An agent skill from r3bl-org/r3bl-open-core. Analyze Log Files is an agent skill from r3bl-org/r3bl-open-core. Analyze log files by stripping ANSI escape sequences first.

When should I use Analyze Log Files?

Analyze Log Files fits situations like: asked to process; analyze log files that may contain terminal escape codes.

How do I install Analyze Log Files in Claude Code?

Run `npx skills add r3bl-org/r3bl-open-core --skill analyze-log-files -a claude-code`. Or copy the skill folder (.agents/skills/analyze-log-files in r3bl-org/r3bl-open-core) into .claude/skills/analyze-log-files in your project. Claude Code loads it when a task matches its description.

How do I install Analyze Log Files in Codex?

Run `npx skills add r3bl-org/r3bl-open-core --skill analyze-log-files -a codex`. Or copy the skill folder (.agents/skills/analyze-log-files in r3bl-org/r3bl-open-core) into .agents/skills/analyze-log-files in your project. Codex loads it when a task matches its description.

Can I use Analyze Log Files in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add r3bl-org/r3bl-open-core --skill analyze-log-files -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analyze-log-files, .gemini/skills/analyze-log-files, .github/skills/analyze-log-files and .opencode/skills/analyze-log-files in your project.

What does Analyze Log Files need to run?

Going by SKILL.md and its folder, Analyze Log Files needs the command-line tools its instructions call (apt-get and brew).

Does Analyze Log Files access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Analyze Log Files safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Analyze Log Files use?

Analyze Log Files is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Analyze Log Files use?

About 632 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Analyze Log Files?

Skills that share tags, products or a category with Analyze Log Files: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analyze Log Files?

r3bl-org (a GitHub organization) maintains it in r3bl-org/r3bl-open-core, which has 485 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 9, 2026.

Source: r3bl-org/r3bl-open-core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.