Skip to content
Back to skills

Vfs

ASecurity

> Token-efficient code discovery using AST-extracted function signatures.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 26, 2026
developmentjavascripttypescriptpythonrustgojavarubyphpswiftkotlin

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned October 26, 2026

npx -y skills add nhan03bit/ultrathink --skill vfs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vfs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vfs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nhan03bit-vfs/badge)](https://www.skillsdirectory.com/skills/nhan03bit-vfs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# VFS — Virtual Function Signatures

> Token-efficient code discovery using AST-extracted function signatures.

## When to Use

- Exploring unfamiliar codebases or large files
- Understanding module APIs without reading implementation details
- Mapping project structure and exports
- Pre-reading before targeted file reads (Read tool)
- Reducing token usage on code exploration by 60-98%

## Core Concept

VFS extracts **exported function, class, and interface signatures** from source files using AST/tree-sitter parsing. Bodies are stripped — you get the shape of code without the implementation.

## Usage

### CLI
```bash
# Single file — get all exported signatures
vfs src/memory.ts

# Directory — recursive scan of all supported files
vfs src/

# Specific language filter
vfs --lang typescript src/
```

### MCP Server
Configured in `.mcp.json`. Available as tool calls in Claude Code.

## Supported Languages

TypeScript, JavaScript, Python, Go, Rust, Java, C/C++, Ruby, PHP, Swift, Kotlin, Scala, Dart (13 languages).

## Workflow Pattern

### Explore-Then-Read (recommended)
1. `vfs <directory>` — Get structural overview (signatures only)
2. Identify the specific functions/classes you need
3. `Read <file>` with line offsets — Read only the relevant sections

### Compare-APIs
1. `vfs src/old-module.ts` — Get old API surface
2. `vfs src/new-module.ts` — Get new API surface
3. Compare signatures for breaking changes

### Dependency Mapping
1. `vfs src/` — Get all exports across the project
2. Identify which modules export what
3. Trace import chains without reading full files

## Token Savings

| File Size | Full Read | VFS | Savings |
|-----------|-----------|-----|---------|
| 100 lines | ~2K tokens | ~200 tokens | 90% |
| 500 lines | ~10K tokens | ~500 tokens | 95% |
| 1000+ lines | ~20K tokens | ~800 tokens | 96% |

## Integration Notes

- Binary at `~/go/bin/vfs`
- MCP config in project `.mcp.json`
- Works on any file tree — no project config needed
- Output is plain text, one signature per line with file:line prefix

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.