asset-pipeline-propshaft

asset-pipeline-propshaft is a skill for Claude Code, Codex from sandeepmvl/rails-skills. It costs 137 tokens per session (2,036 once invoked), scanned A, original, MIT.

A guide to serving JavaScript, CSS, and other files in Rails 8 using Propshaft, Rails' asset pipeline. It explains when to add Importmap or separate JavaScript and CSS bundlers, and how to migrate from Sprockets.

In plain words
What is it for?
Use it when starting a Rails 8 app, choosing an asset setup, serving files through a CDN, or moving an existing app from Sprockets.
Why use it?
It clarifies which tool handles each asset job and prevents migration problems caused by relying on Sprockets features that Propshaft does not provide.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is "build:css": "tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css --minify".

Good fit Use it when starting a Rails 8 app, choosing an asset setup, serving files through a CDN, or moving an existing app from Sprockets.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sandeepmvl/rails-skills
agentmods
npx agentmods add skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft

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 asset-pipeline-propshaft

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft/github.svg)](https://agentmods.dev/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft)
Your own site
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft/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 asset-pipeline-propshaft

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/28-asset-pipeline-propshaft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,036 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 original No closer match found 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.00137 $0.02036
Opus 5 $0.00068 $0.01018
Sonnet 5 $0.00027 $0.00407
Haiku 4.5 $0.00014 $0.00204

Measured 12d ago against content hash 5129948f2104, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

asset-pipeline-propshaft 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 12d 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.

skills/28-asset-pipeline-propshaft/SKILL.md · 212 lines

How it starts

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

Asset Pipeline (Propshaft)

Rails 8 ships Propshaft. It does two things: maintain a load path for assets, and digest-stamp filenames for cache-busting. That's it. Sprockets did much more (preprocessing, transpilation, concatenation). Most of that moved to dedicated bundlers (esbuild, vite, sass).

The opinion

Greenfield Rails 8: Propshaft + Importmap (no Node) for simple apps. Propshaft + jsbundling-rails (esbuild) for richer apps. Propshaft + cssbundling-rails (Tailwind / Dart Sass) for Tailwind apps. Don't migrate an existing Sprockets app to Propshaft unless you audit for Sprockets-specific features (.scss.erb, manifest directives, asset processors) — those don't translate.

What Propshaft does NOT do

  • No preprocessing. No .scss.erb. No ERB inside CSS / JS.
  • No transpilation. No CoffeeScript, no Babel built-in.
  • No concatenation. No //= require directives. Bundle with esbuild / vite if you need.
  • No source maps. Bundlers handle.

What it does: serve app/assets/, stamp filenames with content digests, set Cache-Control headers.

Decision matrix — JS bundler

App Pick
Rails 8 monolith, server-rendered, minor JS Importmap-rails (no Node)
Mixed React/Vue islands jsbundling-rails + esbuild
Heavy SPA mixed in vite_ruby (HMR, TypeScript)
Legacy Webpacker Shakapacker (community fork) — migrate later

Decision matrix — CSS

App Pick
Tailwind CSS cssbundling-rails + Tailwind
Dart Sass cssbundling-rails + Dart Sass
Vanilla CSS Propshaft directly (no bundler)
Plain CSS via Sprockets (was sass-rails) Migrate to Dart Sass via cssbundling-rails

Core patterns

Pattern 1: Greenfield — Importmap + Propshaft

rails new myapp --asset-pipeline=propshaft --javascript=importmap
# config/importmap.rb
pin "application", preload: true
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
pin_all_from "app/javascript/controllers", under: "controllers"

Read the full file on GitHub · 212 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 212 lines · 137 tokens per session scan A 5129948f2104

Subscribe to this mod's changes

asset-pipeline-propshaft is a skill published in the GitHub repository sandeepmvl/rails-skills (21 stars, last pushed 3mo ago), licensed MIT. It adds 137 tokens to every session and 2,036 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

waitlist-page

A simple waitlist page for collecting email addresses from people interested in a new product or early-access release.

nexu-io/html-anything · 25 tokens

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…

wondelai/skills · 132 tokens