Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents.

MITAuto-check passedBackend & APIs

Install File To Code

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill file-to-code -a claude-code

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace file-to-code --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/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/file-to-code .claude/skills/file-to-code && 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
file-to-code
GitHub stars
2.8k
Token cost
~1.6k tokens
SKILL.md length
741 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents.

  • Works in 4 steps: Point to the input file or paste its… → Specify the target language and… → Indicate the scope of what you want… → …
  • The user wants to convert a data file
  • SKILL.md covers Overview, Instructions, Output and Examples, plus 3 more sections
  • Calls pip

What it does

File To Code is an agent skill from jeremylongshore/tons-of-skills-marketplace. Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents. Use when the user wants to convert a data file or specification into working code. Trigger with phrases like "generate code from this CSV", "create an API from this schema", "build a parser for this file", or "turn this spec into code".

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code

It sits in Backend & APIs, covering CSV and tabular files, gRPC and Protobuf and PRD writing. It works with SQL, gRPC and TypeScript. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • The user wants to convert a data file
  • Specification into working code
  • With phrases like generate code from this CSV
  • Create an API from this schema

Example prompts

  • “generate code from this CSV”
  • “create an API from this schema”
  • “build a parser for this file”
  • “/file-to-code”

Requirements

  • Python 3
  • Node.js
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Bash(pip:*), Bash(node:*), Bash(python3:*), Glob, Grep

Workflow steps

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

  1. Point to the input file or paste its contents
  2. Specify the target language and framework (optional -- the skill will infer reasonable defaults)
  3. Indicate the scope of what you want generated
  4. Review the generated code. The skill creates files in your project directory following standard conventions (e.g., src/models/…

What it can do on your machine

Read from SKILL.md and the folder at commit 80f86df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)
    • Bash(pip:*)
    • Bash(node:*)
    • Bash(python3:*)
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • json-schema.org
    • spec.openapis.org
    • zod.dev

    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.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

File To Code loads about 1.6k tokens when it runs. Until then it costs about 99 tokens; SKILL.md has 741 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

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 jeremylongshore/tons-of-skills-marketplace at commit 80f86df, republished under its MIT licence (© jeremylongshore). 741 words, ~1,586 tokens.

Download SKILL.mdSave it as .claude/skills/file-to-code/SKILL.md (or your agent's skills folder).
name
file-to-code
description
Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents. Use when the user wants to convert a data file or specification into working code. Trigger with phrases like "generate code from this CSV", "create an API from this schema", "build a parser for this file", or "turn this spec into code".
allowed-tools
Read, Write, Edit, Bash(npm:*), Bash(pip:*), Bash(node:*), Bash(python3:*), Glob, Grep
compatibility
Designed for Claude Code
version
0.17.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
code-generation, requirements, automation, api-design

File to Code

Generate production-ready code from file specifications, data schemas, and requirements documents.

Overview

This skill reads structured input files -- CSV data, JSON schemas, SQL DDL statements, protobuf definitions, OpenAPI specs, or plain-text requirements -- and generates complete, production-ready code to process, serve, or transform that data. Instead of manually writing boilerplate models, validation logic, and CRUD endpoints, this skill analyzes the input structure and produces well-typed code with proper error handling, input validation, and test coverage.

The skill supports multiple output languages and frameworks. It infers types from data samples, respects constraints defined in schemas, and follows best practices for the target framework. When generating API endpoints, it includes request validation, error responses, and OpenAPI documentation. When generating data processing pipelines, it includes type coercion, null handling, and logging.

Instructions

  1. Point to the input file or paste its contents:

    • "Read data/users.csv and generate a REST API for it"
    • "Here's my JSON schema: { ... } -- generate TypeScript types and a validator"
    • "Create a data pipeline from schema.sql"
  2. Specify the target language and framework (optional -- the skill will infer reasonable defaults):

    • Language: TypeScript, Python, Go, Rust, Java
    • Framework: Express, FastAPI, Gin, Actix, Spring Boot
    • If unspecified, defaults to TypeScript with Express for APIs, or Python for data processing
  3. Indicate the scope of what you want generated:

    • "Just the types" -- generates type definitions and interfaces only
    • "Full CRUD API" -- generates routes, controllers, models, validation, and tests
    • "Parser only" -- generates a file reader/parser with error handling
    • "Everything" -- generates the full stack: types, API, tests, and documentation
  4. Review the generated code. The skill creates files in your project directory following standard conventions (e.g., src/models/, src/routes/, tests/). Inspect the output and request adjustments if needed.

Output

Depending on the input and requested scope, the skill generates:

  • Type Definitions: Interfaces, types, or structs matching the input schema with proper nullability and constraints.
  • Validation Logic: Input validation using libraries appropriate to the target framework (Zod for TypeScript, Pydantic for Python, etc.).
  • API Endpoints: RESTful routes with CRUD operations, request/response typing, error handling, and pagination support.
  • Data Processors: File readers, parsers, and transformation pipelines with type coercion and error recovery.
  • Test Suites: Unit tests covering happy paths, edge cases, and error conditions using the project's test framework.
  • OpenAPI Spec: Auto-generated API documentation in OpenAPI 3.0 format when generating API endpoints.

Examples

Example 1: CSV to REST API

User: "Read data/products.csv and generate a FastAPI app to serve this data."

The skill will:

  1. Read the CSV file and analyze column names, data types, and sample values.
  2. Generate a Pydantic model (Product) with fields inferred from the CSV headers.
  3. Create FastAPI routes: GET /products, GET /products/{id}, POST /products, PUT /products/{id}, DELETE /products/{id}.
  4. Add CSV ingestion logic to seed an SQLite database on startup.
  5. Generate pytest tests for each endpoint.
Show full SKILL.md (275 more words)Show less
Example 2: JSON Schema to TypeScript

User: "Here's my API response schema. Generate TypeScript types and a Zod validator."

The skill will:

  1. Parse the JSON Schema, resolving $ref references and nested objects.
  2. Generate TypeScript interfaces for each schema definition.
  3. Create corresponding Zod schemas that enforce the same constraints (required fields, string patterns, numeric ranges).
  4. Export a validate function that returns typed, validated data or a structured error.
Example 3: SQL DDL to Go Models

User: "Read migrations/001_create_tables.sql and generate Go structs with sqlc-compatible annotations."

The skill will:

  1. Parse CREATE TABLE statements to extract table names, columns, types, and constraints.
  2. Map SQL types to Go types (e.g., VARCHAR to string, TIMESTAMP to time.Time, BOOLEAN to bool).
  3. Generate Go struct definitions with db and json tags.
  4. Create a queries.sql file with standard CRUD queries for sqlc to process.

Error Handling

  • Unrecognized file format: Prompts the user to specify the format or provide a sample of the expected structure.
  • Ambiguous types: When column types cannot be inferred from data alone, asks the user to clarify (e.g., "Is status an enum or a free-text string?").
  • Missing dependencies: Lists required packages (e.g., pip install fastapi uvicorn) and offers to generate a requirements.txt or package.json.
  • Large files: For files with many columns or tables, generates code incrementally and confirms scope before proceeding.

Prerequisites

  • Input file accessible on disk (CSV, JSON Schema, SQL DDL, protobuf, or OpenAPI spec)
  • Target language runtime installed (Node.js, Python, Go, etc.)
  • Package manager available (npm or pip) for installing generated dependencies

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/.curated/file-to-code of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit 80f86df

Compare with similar skills

File To Code 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.

File To Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
File To Code this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.6kAutomated safety check: PassMIT
Go ReviewSpecterOps/skills704—~2.1kAutomated safety check: PassApache-2.0
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Regenerate Grpc StubsGetBindu/Bindu10k—~810Automated safety check: PassCustom licence
Openobserve APIfcakyon/claude-codex-settings1.2k—~4.1kAutomated safety check: PassApache-2.0
Databricksrocky-data/rocky304—~2kAutomated safety check: PassApache-2.0

Similar skills

  • Go Review

    SpecterOps/skills

    Performs security review of arbitrary Go packages, including libraries, frameworks, CLIs, HTTP and gRPC services, and backend applications.

    704 GitHub stars~2.1k tokensUpdated 16 days ago
    SecurityAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Regenerate Grpc Stubs

    GetBindu/Bindu

    Regenerate Python + TypeScript gRPC stubs after editing proto files.

    10k GitHub stars~810 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Openobserve API

    fcakyon/claude-codex-settings

    This skill should be used when user asks to "query OpenObserve", "create OpenObserve dashboard", "edit OpenObserve panel", "fetch OpenObserve logs", "run OpenObserve search", "list OpenObserve…

    1.2k GitHub stars~4.1k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Databricks

    rocky-data/rocky

    Databricks REST API and SQL reference for Rocky's warehouse adapter.

    304 GitHub stars~2k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Design Interviewer

    PrepLabsAI/InterviewMentor

    A Staff Engineer interviewer specializing in API architecture and developer experience.

    112 GitHub stars~2.6k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Questions about File To Code

What does File To Code do?

Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents. File To Code is an agent skill from jeremylongshore/tons-of-skills-marketplace. Generates production-ready code from file specifications such as CSV files, JSON schemas, SQL DDL, protobuf definitions, or requirements documents.

When should I use File To Code?

File To Code fits situations like: the user wants to convert a data file; specification into working code; with phrases like generate code from this CSV; create an API from this schema.

How do I install File To Code in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill file-to-code -a claude-code`. Or copy the skill folder (skills/.curated/file-to-code in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/file-to-code in your project. Claude Code loads it when a task matches its description.

How do I install File To Code in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill file-to-code -a codex`. Or copy the skill folder (skills/.curated/file-to-code in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/file-to-code in your project. Codex loads it when a task matches its description.

Can I use File To Code 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 jeremylongshore/tons-of-skills-marketplace --skill file-to-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/file-to-code, .gemini/skills/file-to-code, .github/skills/file-to-code and .opencode/skills/file-to-code in your project.

What does File To Code need to run?

Going by SKILL.md and its folder, File To Code needs the command-line tools its instructions call (pip). Our summary lists: Python 3; Node.js. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Bash(pip:*), Bash(node:*), Bash(python3:*), Glob, Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does File To Code access the network?

SKILL.md names 3 domains. As links in the text: json-schema.org, spec.openapis.org and zod.dev. This is read from the text; nothing was executed.

Is File To Code 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 File To Code use?

File To Code is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does File To Code use?

About 1.6k tokens (SKILL.md is roughly 6.3k 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 File To Code?

Skills that share tags, products or a category with File To Code: Go Review (SpecterOps/skills, 704 stars), Use Yaak (mountain-loop/yaak, 19k stars), Regenerate Grpc Stubs (GetBindu/Bindu, 10k stars) and Openobserve API (fcakyon/claude-codex-settings, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains File To Code?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,825 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 9, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.