App Files And APIs

App Files And APIs is a skill for Claude Code, Codex from binary16labs/prime-silo. It costs 26 tokens per session (1,781 once invoked), scanned A, a copy of App Files And APIs, MIT.

A reference for using the frontend’s authenticated file, user, and Git-history APIs.

In plain words
What is it for?
Listing, reading, writing, copying, moving, deleting, and inspecting files; downloading folders; viewing or reverting Git history; checking the current user; and calling backend endpoints.
Why use it?
It helps browser code access project data through the approved permission-aware interface instead of guessing endpoint names or calling files directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Listing, reading, writing, copying, moving, deleting, and inspecting files; downloading folders; viewing or reverting Git history; checking the current user; and calling backend endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/binary16labs/prime-silo/app-files-apis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add binary16labs/prime-silo --skill app-files-apis
Clone the repo
git clone --depth 1 https://github.com/binary16labs/prime-silo

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for App Files And APIs

README.md
[![agentmods](https://agentmods.dev/badge/skills/binary16labs/prime-silo/app-files-apis/github.svg)](https://agentmods.dev/skills/binary16labs/prime-silo/app-files-apis)
Your own site
<a href="https://agentmods.dev/skills/binary16labs/prime-silo/app-files-apis"><img src="https://agentmods.dev/badge/skills/binary16labs/prime-silo/app-files-apis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for App Files And APIs

Your own site · 80×15
<a href="https://agentmods.dev/skills/binary16labs/prime-silo/app-files-apis"><img src="https://agentmods.dev/badge/skills/binary16labs/prime-silo/app-files-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,781 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.01781
Opus 5.5 $0.00010 $0.00712
Sonnet 5.5 $0.00005 $0.00356
Haiku 4.5 $0.00003 $0.00178

Measured 3mo ago against content hash 836bdabf722e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

App Files And APIs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to App Files And APIs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

app/L0/_all/mod/_core/skillset/ext/skills/development/app-files-apis/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use this skill when frontend code needs to read or write app files, inspect the current user, discover files by pattern, or call backend endpoints from the browser.

Core Frontend API Surface

The shared frontend runtime exposes authenticated backend helpers through space.api.

Current wrapped helpers include:

  • await space.api.fileList(pathOrOptions, recursive?)
  • await space.api.fileRead(pathOrFiles, encoding?)
  • await space.api.fileWrite(pathOrFiles, content?, encoding?)
  • await space.api.fileDelete(pathOrPaths)
  • await space.api.fileCopy(pathOrEntries, toPath?)
  • await space.api.fileMove(pathOrEntries, toPath?)
  • await space.api.fileInfo(pathOrOptions)
  • space.api.folderDownloadUrl(pathOrOptions)
  • await space.api.gitHistoryList(pathOrOptions, limit?)
  • await space.api.gitHistoryDiff(pathOrOptions, commitHash?, filePath?)
  • await space.api.gitHistoryPreview(pathOrOptions, commitHash?, operation?, filePath?)
  • await space.api.gitHistoryRollback(pathOrOptions, commitHash?)
  • await space.api.gitHistoryRevert(pathOrOptions, commitHash?)
  • await space.api.userSelfInfo()
  • await space.api.call("endpoint_name", { method, query, body, headers, signal })

fileRead(...) accepts one logical path, one { path, encoding? } entry, or a files batch. The frontend wrapper now coalesces same-tick reads into one /api/file_read request and re-slices the returned files back to each caller, retrying individually when a combined batch fails so shorthand paths and optional missing-file reads still behave like standalone calls. Explicit batching is still best when you already have the file list, but small independent reads no longer fan out 1:1 by default.

fileWrite(...) still supports the simple replacement form fileWrite(path, content, encoding?), but object-form writes also support incremental updates: { path, content, operation: "append" }, { path, content, operation: "prepend" }, or { path, content, operation: "insert", line | before | after }. Insert writes accept exactly one anchor, use the first literal before or after match, treat line as a 1-based insertion point, and require utf8. Batch writes may set those fields per entry or once at the top level as defaults. Prefer these incremental write modes when you only need to add or place text instead of rereading and rewriting the whole file.

Use space.api.folderDownloadUrl(...) when the browser should trigger a regular authenticated folder download without buffering the ZIP file into frontend memory first.

When a UI needs user-visible download failure feedback without fetching the archive blob into memory, preflight the request with space.api.fileInfo(...) for files or space.api.call("folder_download", { method: "HEAD", query: { path } }) for folders before starting the browser download.

fileList(...) accepts { access: "write" } or { writableOnly: true } when discovery must be limited to writable paths. Use { gitRepositories: true, access: "write" } or space.api.call("file_paths", { method: "POST", body: { patterns: ["**/.git/"], gitRepositories: true, access: "write" } }) to discover writable local-history owner roots; the server returns paths such as L1/team/ and L2/alice/, not .git metadata.

gitHistoryList(...), gitHistoryDiff(...), gitHistoryPreview(...), gitHistoryRollback(...), and gitHistoryRevert(...) are available only when the backend runtime has CUSTOMWARE_GIT_HISTORY=true. They operate on writable owner roots such as ~, L2/<user>/, or L1/<group>/; list supports limit, offset, and fileFilter, preview returns affected files and optional operation-specific patches for travel or revert, diff reads one commit-file patch, rollback requires write permission and preserves ignored L2 auth files plus forward-travel refs, and revert creates a new inverse commit. The first-party #/time_travel page defaults to the authenticated user's ~ history and can switch to write-accessible L1 or L2 history roots through the repository picker.

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 85 lines · 26 tokens per session scan A 836bdabf722e

Subscribe to this mod's changes

App Files And APIs is a skill published in the GitHub repository binary16labs/prime-silo (5 stars, last pushed 8d ago), licensed MIT. It adds 26 tokens to every session and 1,781 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to App Files And APIs, differing in 0 lines, and is treated as a copy.

Related

App Files And APIs compared with skills from other repositories

App Files And APIs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
App Files And APIsbinary16labs/prime-siloSkill58d agoMITA26Claude Code, Codex
xhmoabualruz/fulcrumSkill62mo agoMITA49Claude Code
a2a-mcp-consumptionoaslananka/a2ameshSkill21mo agoApache-2.0A30Claude Code, OpenCode
a2a-protocolJPeetz/agent-skillsSkill21yesterdaynoneA48Claude Code, Codex
omni-webhooksdiegosouzapw/OmniRouteSkill91kyesterdayMITA37Claude Code, Codex
mcp-server-buildingandrooAGI/starnetSkill2.0kyesterdayMITA44Claude Code, Codex
workflow-ai-codingw8123/EnterpriseAgentFrameworkSkill1.1kyesterdayMITA85Claude Code, Codex