skill_read: Read an instruction from a skill manifest

View source: R/skill_read.R

skill_readR Documentation

Read an instruction from a skill manifest

Description

Returns the exact UTF-8 file text after checking its recorded identity and fingerprint. Supporting resources receive the same checks as SKILL.md.

Usage

skill_read(manifest, id, resource = "SKILL.md")

Arguments

manifest

A skill_manifest() result for the current session.

id

Exact selected skill id, including its package or root namespace.

resource

Relative resource path within that skill, default SKILL.md.

Details

Only resources inventoried in this manifest are readable. Absolute paths, parent traversal, changed files, and symlink escapes are refused. Rebuild the manifest explicitly to accept changed source instructions. This reader does not execute scripts or grant tool permissions. Binary/NUL-containing files and files larger than 1 MiB are refused by this text interface.

Value

One character string, without a wrapper or whitespace normalization.

Examples

m <- skill_manifest(packages = character(), lib.loc = character())
nrow(m$entries)

saber documentation built on Nov. 10, 2026, 9:06 a.m.