script-read

Read and slice .cs script files by specified line ranges.

Updated Aug 26, 2025
One-click install
npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill script-read-infotechsrealm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-read
Source: https://github.com/infotechsrealm/PanicAtThePond/tree/main/.claude/skills/script-read
Command: npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill script-read-infotechsrealm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Streamlines the process of reading and accessing the content of .cs script files, providing efficient access to specific parts of the file.

Core Features & Use Cases

  • Read Script Content: Quickly retrieve the entire content or a specific slice of a .cs script file.
  • Selective Access: Offers a 1-based lineFrom/lineTo slice feature for partial reads.
  • Integration: Pair with 'script-update-or-create' for a comprehensive scripting workflow.

Quick Start

Retrieve the content of the script 'MyScript.cs' starting from line 5 to line 10 using the 'script-read' skill.

Frequently Asked Questions about script-read

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

FAQPage Schema
How do I read a specific range of lines from a C# script file?

To read a specific range of lines from a C# script file, you specify 1-based start and end line indices to retrieve a targeted code segment. The reader applies index clamping to safely return the requested slice without throwing out-of-range errors.

What is the best way to retrieve partial content from a .cs file for scripting?

Retrieving partial content from a .cs file is best handled by a file reader that supports selective line slicing. This allows scripting environments to quickly access specific code segments rather than loading the entire document into memory.

Can I use .NET file handling functions to get text from a C# script?

Yes, you can use .NET file handling functions to get text from a C# script by executing a dedicated script reading process. This supports both full file reads and partial slices for quick integration into your development workflow.

What happens if I specify out-of-range line indices when slicing a .cs file?

When you specify out-of-range line indices to slice a .cs file, the reading mechanism automatically applies clamping. This ensures the operation safely returns the available lines within the file boundaries instead of throwing an exception.

Does script-read work with other tools to update C# scripts?

Yes, script-read works effectively when paired with a script-update-or-create tool to form a comprehensive scripting workflow. This combination allows you to first retrieve and review existing .cs file content before making targeted modifications.