pn-ruby-scaffolding

pn-ruby-scaffolding is a skill for Cursor from perniemann/pnCore. It costs 49 tokens per session (1,217 once invoked), scanned A, original, MIT.

A starting structure for Ruby web APIs and routes using Rails API-only applications or Sinatra. Ruby is a programming language, and an API lets other programs communicate with your service.

In plain words
What is it for?
Use it to start a Ruby API, add a controller or route, or create a service object for domain logic.
Why use it?
It gives backend code consistent conventions for controllers, services, models, validation, errors, authentication, and API documentation.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to start a Ruby API, add a controller or route, or create a service object for domain logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-ruby-scaffolding
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 perniemann/pnCore --skill pn-ruby-scaffolding
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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 pn-ruby-scaffolding

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-ruby-scaffolding/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-ruby-scaffolding)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-ruby-scaffolding"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-ruby-scaffolding/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 pn-ruby-scaffolding

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-ruby-scaffolding"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-ruby-scaffolding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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.00049 $0.01217
Opus 5.5 $0.00020 $0.00487
Sonnet 5.5 $0.00010 $0.00243
Haiku 4.5 $0.00005 $0.00122

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

Security

Grade A, and why

pn-ruby-scaffolding 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 1mo 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.

packages/pn-core-mcp/content/skills/backend/pn-ruby-scaffolding/SKILL.md · 193 lines

How it starts

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

Ruby backend scaffolding

When to use

  • Starting a new Ruby API project (Rails --api or Sinatra).
  • Adding a new controller, route, or domain service.
  • Establishing service object and error handling patterns.

Rails API-only scaffold

# Create API-only Rails app
rails new my-api --api --database=postgresql
# Omit default Rails test framework only if you use an external test stack (see Rails docs)
cd my-api

# Gemfile essentials
bundle add rack-cors       # CORS
bundle add devise          # auth (optional)
bundle add kaminari        # pagination
bundle add rswag           # OpenAPI docs
bundle add standardrb --group development  # linting

Project structure

app/
  controllers/
    api/
      v1/
        users_controller.rb     # Thin: validate, call service, render
        application_controller.rb
  services/
    users/
      create_user.rb            # Plain Ruby: one public #call method
      find_user.rb
  serializers/
    user_serializer.rb          # Output shaping (blueprinter or JSONAPI)
  models/
    user.rb                     # ActiveRecord model: validations, scopes, associations
config/
  routes.rb

Controller scaffold

# app/controllers/api/v1/users_controller.rb
# frozen_string_literal: true

module Api
  module V1
    class UsersController < ApplicationController
      before_action :authenticate_user!
      before_action :set_user, only: [:show, :update, :destroy]

      def index
        users = User.active.page(params[:page]).per(params[:per_page] || 20)
        render json: { data: UserSerializer.render(users) }
      end

      def show
        render json: { data: UserSerializer.render(@user) }
      end

      def create
        result = Users::CreateUser.new(user_params, current_user).call
        if result.success?
          render json: { data: UserSerializer.render(result.user) }, status: :created
        else
          render json: { error: { code: "VALIDATION_FAILED", message: result.errors.full_messages.join(", ") } },
                 status: :unprocessable_entity
        end
      end

      private

      def set_user
        @user = User.find(params[:id])
      rescue ActiveRecord::RecordNotFound
        render json: { error: { code: "NOT_FOUND", message: "User not found" } }, status: :not_found
      end

      def user_params
        params.require(:user).permit(:email, :name, :role)
      end
    end
  end
end

Read the full file on GitHub · 193 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. 1mo ago First seen · 193 lines · 49 tokens per session scan A 95b8d186ad94

Subscribe to this mod's changes

pn-ruby-scaffolding is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 1,217 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

nestjs-patterns

NestJS architecture patterns for modules, controllers, providers, DTO validation, guards, interceptors, config, and production-grade TypeScript backends.

affaan-m/ECC · 33 tokens

azure-identity-ts

Authenticate to Azure services using Azure Identity library for JavaScript (@azure/identity). Use when configuring authentication with DefaultAzureCredential, managed identity, service principals, or interactive browser login.

microsoft/skills · 41 tokens

chat-sdk

Build multi-platform chat bots with Chat SDK (chat npm package). Use when developers want to (1) Build a Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, or WhatsApp bot, (2) Use Chat SDK to handle mentions, direct messages, subscribed threads, reactions, slash commands, cards, modals, files, or AI…

vercel-labs/open-agents · 191 tokens

python-backend

Production Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connection pool tuning. Python 3.11+ runtime concerns such as ExceptionGroup, cancellation semantics, and session rollback. Use when building async services, wiring…

yonatangross/orchestkit · 82 tokens

bun-runtime-expert

Expert guide for Bun 1.2+ JavaScript/TypeScript runtime — native Bun.sql Postgres client, Bun.s3 object storage, text lockfile, multi-core HTTP clusters, and bun:test / Panduan ahli runtime Bun 1.2+.

roedyrustam/vibes-plug · 57 tokens

js-backend-expert

Expert-level skill for Node.js 24+ (LTS), Bun 1.2+, and Deno 2.x backend development. Covers Express 5, Fastify 5, Hono v4, NestJS, Prisma 6, Drizzle ORM, WebSockets, BullMQ, OpenTelemetry, and microservices in English and Indonesian.

roedyrustam/vibes-plug · 77 tokens