A skill your agent uses when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review

Apache-2.0Auto-check passedDevelopment

Install Viewing Files

skills CLI
$ npx skills add SebastienDegodez/copilot-instructions --skill viewing-files -a claude-code

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

GitHub CLI
$ gh skill install SebastienDegodez/copilot-instructions viewing-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/SebastienDegodez/copilot-instructions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/minimal-context-tools/skills/viewing-files .claude/skills/viewing-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
viewing-files
GitHub stars
198
Token cost
~1k tokens
SKILL.md length
402 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review

  • Viewing source files
  • SKILL.md covers When to Use bat vs cat, Default Strategy, Key Options and Detailed Reference, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Documentation with syntax highlighting

What it does

Viewing Files is an agent skill from SebastienDegodez/copilot-instructions. Use when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/bat-guide.md`).

It sits in Development, covering Plain language and style rules. It works with Git. The repository describes itself as: A comprehensive codebase of best practices, coding rules, and workflow automation for AI-assisted development with GitHub Copilot. Includes DDD, Clean Architecture, testing… The licence is Apache-2.0.

When your agent uses it

  • Viewing source files
  • Documentation with syntax highlighting
  • Previewing files with Git integration
  • Enhanced readability would improve code review

Example prompts

  • “/viewing-files”

What it can do on your machine

Read from SKILL.md and the folder at commit 0f0dccf. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    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

Viewing Files loads about 1k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 402 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
~1k

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 passed

The automated check found no risky patterns in SKILL.md.

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 SebastienDegodez/copilot-instructions at commit 0f0dccf, republished under its Apache-2.0 licence (© SebastienDegodez). 402 words, ~1,013 tokens.

Download SKILL.mdSave it as .claude/skills/viewing-files/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
viewing-files
description
Use when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review

bat: Enhanced File Viewer with Syntax Highlighting

Always invoke viewing-files skill for enhanced file viewing - do not execute bash commands directly.

Use bat as a modern replacement for cat with beautiful syntax highlighting, Git integration, and smart features.

When to Use bat vs cat

Use bat when:

  • Viewing source code or structured text files
  • Syntax highlighting improves readability
  • Need Git integration or line numbers
  • Working with files >50 lines where highlighting helps
  • Previewing changes from other tools

Use cat when:

  • Very small files (<10 lines)
  • Non-text/binary files
  • Simple concatenation without formatting
  • When highlighting would add noise
  • Performance-critical operations on many tiny files

Common workflow: Any skill → viewing-files skill (preview enhanced output)

Default Strategy

Invoke viewing-files skill for enhanced file viewing with syntax highlighting. Use when viewing source files, documentation, or when syntax highlighting improves readability.

Common workflow: Any discovery skill → viewing-files skill (preview enhanced output).

Key Options

Display Control
  • -n/--number line numbers only
  • -p/--plain plain output (no decorations)
  • -A/--show-all show non-printable characters
  • --line-range START:END view specific lines
  • --wrap never disable line wrapping
  • --tabs N set tab width to N spaces
Language & Themes
  • -l/--language LANG force language detection
  • --list-languages show supported languages
  • --list-themes show available themes
  • --theme NAME set color theme (default: Monokai Extended)
  • --theme-dark/--theme-light auto-switch themes based on terminal
  • BAT_THEME environment variable for default theme
Output Styling
  • --style COMPONENTS control output (numbers,changes,header,grid,snip)
  • --decorations auto|never|always control decorations
  • --color always|never|auto control coloring
Paging
  • --paging auto|never|always control paging behavior
  • --pager COMMAND set custom pager
  • BAT_PAGER environment variable
Show full SKILL.md (158 more words)Show less

Detailed Reference

For comprehensive usage patterns, integration examples, advanced features, and troubleshooting, load bat guide when needing:

  • Git integration workflows
  • Output styling and customization details
  • Theme configuration and options
  • Performance optimization tips
  • Shell integration examples

The guide includes:

  • Core usage patterns and language control
  • Git integration workflows
  • Output styling and customization
  • Integration with other tools (fzf, git, ripgrep)
  • Advanced features and configuration
  • Performance tips and troubleshooting

Skill Combinations

For Discovery Phase
  • finding-files → fuzzy-selecting → viewing-files: Find files, select interactively, view with syntax highlighting
  • searching-text → fuzzy-selecting → viewing-files: Search content, select matches, view with highlighting
  • querying-json/querying-yaml → fuzzy-selecting → viewing-files: Extract data, select entries, view formatted output
For Analysis Phase
  • analyzing-code-structure → viewing-files: Preview structural changes with syntax highlighting
  • replacing-text → viewing-files: Preview find-and-replace results before committing
  • extracting-code-structure → viewing-files: View extracted code structure with formatting
For Output Preview
  • analyzing-code → viewing-files: View code statistics with formatted output
  • searching-text → viewing-files: Preview matched files with context highlighting
  • querying-json/querying-yaml → viewing-files: View extracted structured data with syntax formatting
Integration Examples
bash
# Interactive file viewer
fd --type file | fzf --preview="bat --color=always --style=numbers {}" --bind="enter:execute(bat {})"

© SebastienDegodez, 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

SKILL.md and 1 other file in plugins/minimal-context-tools/skills/viewing-files of SebastienDegodez/copilot-instructions.

  • SKILL.md
  • reference/bat-guide.md

Open the folder on GitHubat commit 0f0dccf

Compare with similar skills

Viewing 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.

Viewing Files compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Viewing Files this skillSebastienDegodez/copilot-instructions198—~1kAutomated safety check: PassApache-2.0
Jgrepkeltokhy/jgrep136—~1.1kAutomated safety check: PassMIT
ReviewSethGammon/Citadel923—~2.1kAutomated safety check: PassMIT
Git Teacher Savefivetaku/gptaku-plugins-codex128—~777Automated safety check: NotesMIT
Cap Feature Building WorkflowCapSoftware/Cap23k—~2.5kAutomated safety check: WarnCustom licence
Style Checkernoumena-labs/Sipp121—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Jgrep

    keltokhy/jgrep

    Filter text, records, code functions, or complete diff hunks by a plain-English description using Jev.

    136 GitHub stars~1.1k tokensUpdated 11 days ago
    DevelopmentAuto-check passed
  • Review

    SethGammon/Citadel

    5-pass structured code review — correctness, security, performance, readability, consistency

    923 GitHub stars~2.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Teacher Save

    fivetaku/gptaku-plugins-codex

    Commits changed files to Git, explained in plain language for non-developers.

    128 GitHub stars~777 tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Builds a Cap feature in an isolated Git worktree with disposable dev resources, verification, a recorded demo and a neutral pull request, started with /building.

    23k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check: warnings
  • Style Checker

    noumena-labs/Sipp

    Enforces this monorepo's coding style rules by inspecting git diffs, reading .agents/skills/style-checker/references/styleguidance.md, fixing style violations, and reporting the result.

    121 GitHub stars~1.4k tokensUpdated 20 days ago
    DevelopmentAuto-check passed
  • Code Refiner

    Mathews-Tom/armory

    Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.

    328 GitHub stars~3.1k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from SebastienDegodez/copilot-instructions

All 19 skills in this repo
  • Setup Husky Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when configuring Git hooks in .NET projects before team commits occur, to enforce commit message standards and code formatting automatically

    198 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Clean Architecture Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD…

    198 GitHub stars~5.1k tokensUpdated 3 days ago
    Auto-check passed
  • Outside In TDD

    SebastienDegodez/copilot-instructions

    A skill your agent uses when writing tests from the outside-in, defining behavior before code, or any feature where tests should start from observable business behavior and let internal design emerge

    198 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Creating Dotnet MCP Servers

    SebastienDegodez/copilot-instructions

    A skill your agent uses when building Model Context Protocol (MCP) servers in .NET, configuring tools, transports (SSE/stdio), JSON serialization for AOT, or testing MCP endpoints

    198 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Generate Microcks Openapi Samples

    SebastienDegodez/copilot-instructions

    A skill your agent uses when creating OpenAPI mock examples for Microcks, setting up request/response routing with dispatchers, or mapping request fields to mock responses

    198 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Analyzing Code

    SebastienDegodez/copilot-instructions

    A skill your agent uses when understanding project composition by language, measuring code change impact, or generating code statistics for CI/CD metrics

    198 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Viewing Files

What does Viewing Files do?

A skill your agent uses when viewing source files or documentation with syntax highlighting, previewing files with Git integration, or when enhanced readability would improve code review. Viewing Files is an agent skill from SebastienDegodez/copilot-instructions.

When should I use Viewing Files?

Viewing Files fits situations like: viewing source files; documentation with syntax highlighting; previewing files with Git integration; enhanced readability would improve code review.

How do I install Viewing Files in Claude Code?

Run `npx skills add SebastienDegodez/copilot-instructions --skill viewing-files -a claude-code`. Or copy the skill folder (plugins/minimal-context-tools/skills/viewing-files in SebastienDegodez/copilot-instructions) into .claude/skills/viewing-files in your project. Claude Code loads it when a task matches its description.

How do I install Viewing Files in Codex?

Run `npx skills add SebastienDegodez/copilot-instructions --skill viewing-files -a codex`. Or copy the skill folder (plugins/minimal-context-tools/skills/viewing-files in SebastienDegodez/copilot-instructions) into .agents/skills/viewing-files in your project. Codex loads it when a task matches its description.

Can I use Viewing 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 SebastienDegodez/copilot-instructions --skill viewing-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/viewing-files, .gemini/skills/viewing-files, .github/skills/viewing-files and .opencode/skills/viewing-files in your project.

What does Viewing Files need to run?

SKILL.md names no scripts, command-line tools or credentials: Viewing Files is instructions for the agent only.

Does Viewing 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 Viewing Files safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Viewing Files use?

Viewing 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 Viewing Files use?

About 1k tokens (SKILL.md is roughly 4.1k 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 Viewing Files?

Skills that share tags, products or a category with Viewing Files: Jgrep (keltokhy/jgrep, 136 stars), Review (SethGammon/Citadel, 923 stars), Git Teacher Save (fivetaku/gptaku-plugins-codex, 128 stars) and Cap Feature Building Workflow (CapSoftware/Cap, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Viewing Files?

SebastienDegodez (a GitHub user) maintains it in SebastienDegodez/copilot-instructions, which has 198 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.

Source: SebastienDegodez/copilot-instructions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.