Agent skill

Rar Format

by adamhathcock in adamhathcock/sharpcompress

Reference the RAR/RAR5 archive container format and UnRAR source behavior.

MITAuto-check passed

Install Rar Format

skills CLI
$ npx skills add adamhathcock/sharpcompress --skill rar-format -a claude-code

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

GitHub CLI
$ gh skill install adamhathcock/sharpcompress rar-format --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/adamhathcock/sharpcompress.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rar-format .claude/skills/rar-format && 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
rar-format
GitHub stars
2.6k
Token cost
~633 tokens
SKILL.md length
245 words
Files
2 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Reference the RAR/RAR5 archive container format and UnRAR source behavior.

  • Works in 5 steps: Identify which layer is involved:… → Open the relevant section in… → For header parsing changes, cross-check… → …
  • An AI agent needs to answer questions
  • SKILL.md covers Reference and Workflow
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rar Format is an agent skill from adamhathcock/sharpcompress. Reference the RAR/RAR5 archive container format and UnRAR source behavior. Use when an AI agent needs to answer questions or make code changes involving RAR signatures, RAR5 vint fields, block headers, file/service headers, extra records, solid archives, multivolume parts, encryption headers, recovery records, quick-open data, or SharpCompress Rar parsing and extraction behavior.

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/rar-format.md`).

It works with C++. The repository describes itself as: SharpCompress is a fully managed C library to deal with many compression types and formats. The licence is MIT.

When your agent uses it

  • An AI agent needs to answer questions
  • Make code changes involving RAR signatures
  • RAR5 vint fields
  • File/service headers

Example prompts

  • “/rar-format”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify which layer is involved: signature detection, RAR4 headers, RAR5 headers, vint parsing, block flags, extra records, file/service…
  2. Open the relevant section in references/rar-format.md and use the source-file pointers before changing code.
  3. For header parsing changes, cross-check sync and async implementations: MarkHeader.cs, RarHeader.cs, RarHeaderFactory.cs, FileHeader.cs…
  4. For extraction changes, verify split and solid archive behavior with RarArchive, RarReader, RarStream, and the unpacker files under…
  5. For support claims, keep unsupported or partial features explicit: RAR writing, pre-RAR4 archives, complete service-header semantics…

What it can do on your machine

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

    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

Rar Format loads about 633 tokens when it runs, and up to ~5.5k if it reads all its reference files. Until then it costs about 98 tokens; SKILL.md has 245 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~633
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.5k

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 adamhathcock/sharpcompress at commit eab8154, republished under its MIT licence (© adamhathcock). 245 words, ~633 tokens.

Download SKILL.mdSave it as .claude/skills/rar-format/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
rar-format
description
Reference the RAR/RAR5 archive container format and UnRAR source behavior. Use when an AI agent needs to answer questions or make code changes involving RAR signatures, RAR5 vint fields, block headers, file/service headers, extra records, solid archives, multivolume parts, encryption headers, recovery records, quick-open data, or SharpCompress Rar parsing and extraction behavior.

Rar Format

Use this skill for RAR container-format work. It provides a local, SharpCompress-oriented reference for RAR 5.0 archive blocks, older RAR header compatibility, UnRAR source behavior, and current SharpCompress Rar implementation boundaries.

Reference

  • Read references/rar-format.md when the task depends on RAR binary layout, RAR4 vs RAR5 signatures, RAR5 vint encoding, block/header flags, file and service header fields, extra records, encrypted headers, solid archives, split volumes, redirection records, or current SharpCompress Rar support boundaries.
  • Treat the reference as an implementation guide, not a standards replacement. It summarizes reference/RAR 5.0 archive format.htm and selected files under reference/unrar/, especially headers5.hpp, headers.hpp, arcread.cpp, rawread.*, crypt*.cpp, qopen.*, volume.*, recvol*.cpp, unpack*.cpp, and blake2sp.*.
  • Prefer the SharpCompress support matrix in the reference over generic RAR assumptions when changing code. RAR is a read-only format in SharpCompress, and metadata/service-header support is intentionally partial.

Workflow

  1. Identify which layer is involved: signature detection, RAR4 headers, RAR5 headers, vint parsing, block flags, extra records, file/service metadata, encrypted headers, multivolume handling, decompression, reader/archive API behavior, or tests.
  2. Open the relevant section in references/rar-format.md and use the source-file pointers before changing code.
  3. For header parsing changes, cross-check sync and async implementations: MarkHeader.cs, RarHeader.cs, RarHeaderFactory.cs, FileHeader.cs, Flags.cs, and their async counterparts.
  4. For extraction changes, verify split and solid archive behavior with RarArchive, RarReader, RarStream, and the unpacker files under src/SharpCompress/Compressors/Rar/.
  5. For support claims, keep unsupported or partial features explicit: RAR writing, pre-RAR4 archives, complete service-header semantics, quick-open use, recovery reconstruction, and encryption/version constraints.

© adamhathcock, MIT. 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 (references) in .agents/skills/rar-format of adamhathcock/sharpcompress.

  • SKILL.md
  • references/rar-format.md

Open the folder on GitHubat commit eab8154

Compare with similar skills

Rar Format 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.

Rar Format compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rar Format this skilladamhathcock/sharpcompress2.6k—~633Automated safety check: PassMIT
Paddle BuildPaddlePaddle/Paddle24k—~1kAutomated safety check: PassApache-2.0
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
ONNX Runtime Shape Inference Safety Auditmicrosoft/onnxruntime22k—~3.3kAutomated safety check: PassMIT
Code Audit3stoneBrother/code-audit8921 repos~2.7kAutomated safety check: PassNone
Leetcuda Tex To Readthedocsxlite-dev/LeetCUDA12k—~902Automated safety check: PassGPL-3.0

Similar skills

  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Official

    Finds and fixes out-of-range output writes in ONNX Runtime operator shape-inference functions where a getNumOutputs guard admits too few outputs.

    22k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Code Audit

    3stoneBrother/code-audit

    Professional code security audit skill covering 55+ vulnerability types.

    892 GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Leetcuda Tex To Readthedocs

    xlite-dev/LeetCUDA

    LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收…

    12k GitHub stars~902 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed

More from adamhathcock/sharpcompress

  • Tar Format

    adamhathcock/sharpcompress

    Reference the Tar/USTAR/PAX/GNU tar archive container format.

    2.6k GitHub stars~499 tokensUpdated yesterday
    Auto-check passed
  • Xz Lzma Format

    adamhathcock/sharpcompress

    Reference the XZ container format and LZMA/LZMA2 decoder behavior.

    2.6k GitHub stars~513 tokensUpdated yesterday
    Auto-check passed
  • Zip Format

    adamhathcock/sharpcompress

    Reference the ZIP/ZIP64/PKWARE APPNOTE archive container format.

    2.6k GitHub stars~613 tokensUpdated yesterday
    Auto-check passed
  • Sevenzip Format

    adamhathcock/sharpcompress

    Reference the 7z/7zip archive container format. An agent skill from adamhathcock/sharpcompress.

    2.6k GitHub stars~422 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Rar Format

What does Rar Format do?

Reference the RAR/RAR5 archive container format and UnRAR source behavior. Rar Format is an agent skill from adamhathcock/sharpcompress. Reference the RAR/RAR5 archive container format and UnRAR source behavior.

When should I use Rar Format?

Rar Format fits situations like: an AI agent needs to answer questions; make code changes involving RAR signatures; RAR5 vint fields; file/service headers.

How do I install Rar Format in Claude Code?

Run `npx skills add adamhathcock/sharpcompress --skill rar-format -a claude-code`. Or copy the skill folder (.agents/skills/rar-format in adamhathcock/sharpcompress) into .claude/skills/rar-format in your project. Claude Code loads it when a task matches its description.

How do I install Rar Format in Codex?

Run `npx skills add adamhathcock/sharpcompress --skill rar-format -a codex`. Or copy the skill folder (.agents/skills/rar-format in adamhathcock/sharpcompress) into .agents/skills/rar-format in your project. Codex loads it when a task matches its description.

Can I use Rar Format 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 adamhathcock/sharpcompress --skill rar-format -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rar-format, .gemini/skills/rar-format, .github/skills/rar-format and .opencode/skills/rar-format in your project.

What does Rar Format need to run?

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

Does Rar Format 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 Rar Format 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 Rar Format use?

Rar Format is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rar Format use?

About 633 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. Its references folder adds about 4.8k tokens, read only when the agent opens those files.

What are the alternatives to Rar Format?

Skills that share tags, products or a category with Rar Format: Paddle Build (PaddlePaddle/Paddle, 24k stars), Fory Release (apache/fory, 4.6k stars), ONNX Runtime Shape Inference Safety Audit (microsoft/onnxruntime, 22k stars) and Code Audit (3stoneBrother/code-audit, 892 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rar Format?

adamhathcock (a GitHub user) maintains it in adamhathcock/sharpcompress, which has 2,589 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 9, 2026.

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