Ruby engineering standards the agent follows — no negotiation.
Ruby/Rails backend with the house floor: secrets out of the bundle, parameterized ActiveRecord, strong params, server-side auth, IAM as a separate app and tests that carry the safety the compiler doesn't give.
$ schematize install rubyNon-negotiable floors
Never switched off "to go faster". Full list in the skill.
Ruby by fit + ADR
A sanctioned-list language, chosen by fit + ADR (prototyping, scripts, Rails product DX). Never a backend off the list nor without a fit ADR.
Secrets out of the bundle
Never in code, in the Gemfile or in a served asset, nor in the front's NEXT_PUBLIC_/VITE_. Only via Rails credentials / ENV / secret manager.
Parameterized ActiveRecord
No interpolated SQL; strong params against mass-assignment; SecureRandom for tokens; YAML.safe_load; no eval/send driven by input.
Server-side auth, separate IAM
tenant_id/role from the verified token (full JWT, no alg=none). Auth is a separate Ruby app at auth.<domain> — Devise alone is not the house IAM.
Tests carry the safety
Ruby's dynamism has no compiler; RSpec/Minitest + RBS/Sorbet catch NoMethodError/typos. A test is never silenced to pass CI.
Lean code + archive
Files ≤750 lines (flag >300 useful), one class per file, YARD docs, frozen_string_literal. MAP and archive generated every time.
Commands
Installed in .claude/commands/. Run /ruby-help anytime.
/ruby-helpLists every command./ruby-loadForce-loads the whole normative body and starts applying it./ruby-claudeCreates/updates (overwrites) the root CLAUDE.md with the current version of the skill./ruby-ccContext compact: writes context.md + checklist.md to the archive and runs /compact./ruby-handoffWrites the handoff without compacting — session end or task switch./ruby-qaPlan-first QA: plan, write the MD, ask for approval, then run./ruby-reviewDoD and anti-pattern gate on the diff: file >750 blocks, >300 useful flags, method without YARD, interpolated SQL, rand for a token, index./ruby-iamForces/audits/scaffolds the IAM (ID≠email, ≥2 factors, multi-tenant ReBAC, irreversible logout) as a separate Ruby app at auth.<domain>, or ports a legacy auth./ruby-index(Re)generates the micro-function index from the YARD doc-comments./ruby-opsAudits/scaffolds the <project>_ops (single interface): environment flow, parallel install (nproc), independence.For AI agents
Install with no human in the loop. Metadata in llms.txt.
- Run: git clone https://github.com/schematizeme/skill-ruby.git && ./skill-ruby/install.sh
- Or download: https://github.com/schematizeme/skill-ruby/releases/latest/download/skill-ruby.zip and unzip into .claude/skills/
- Copy assets/CLAUDE.md to the repo root (always-on rule).
- Confirm with /ruby-help.
การพูดคุย
กำลังโหลด…