read-temp-file

Read text files from the temp/ directory within a line limit.

43|21|Updated Jun 3, 2025
One-click install
npx skills add https://github.com/blockscout/mcp-server --skill read-temp-file
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: read-temp-file
Source: https://github.com/blockscout/mcp-server/tree/main/.gemini/skills/read-temp-file
Command: npx skills add https://github.com/blockscout/mcp-server --skill read-temp-file

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill provides a secure way to read files located in the project's temporary directory (temp/), which are typically excluded from version control and standard file reading tools.

Core Features & Use Cases

  • Secure Access: Safely read files within the temp/ directory without risking exposure of ignored or sensitive temporary data.
  • Bypass Git Ignore: Access files that would normally be inaccessible due to .gitignore rules.
  • Use Case: After a script generates a detailed error log in temp/logs/error.log, this skill can be used to read that log to understand the failure.

Quick Start

Use the run_shell_command tool to execute python3 .gemini/skills/read-temp-file/scripts/read_temp_file.py temp/my_generated_file.txt.

Frequently Asked Questions about read-temp-file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read files in the temp directory that are ignored by git?▼

To read git-ignored temp files, execute the Python script targeting the `temp/` directory. It bypasses `.gitignore` restrictions while ensuring the content is text-based and within specified line limits.

How can I access generated temporary logs and reports for analysis?▼

Access generated temporary logs by running the script against files like `temp/logs/error.log`. This allows you to retrieve temporary artifacts excluded from version control directly for failure analysis.

Does this method for reading temp files work with binary formats?▼

No, reading temp files with this script only works with text-based formats. The skill explicitly checks and ensures files are text-based before bypassing git-ignore restrictions to access the content.

Are there line limits when accessing ignored files in the temporary folder?▼

Yes, there are line limits when accessing ignored files in the temporary folder. The script ensures the file content remains within a specified line limit to safely retrieve temporary artifacts.

Why can't standard file reading tools access my temporary project artifacts?▼

Standard file reading tools cannot access temporary project artifacts because they are typically excluded by `.gitignore` rules. This script provides secure access by bypassing those standard git-ignore restrictions.