active_storage_validations: Skill for Claude Code

.cursor/skills/commit/SKILL.md

commit is a skill for Claude Code, Cursor from igorkasyanchuk/active_storage_validations. It costs 35 tokens per session (486 once invoked), scanned A, original, MIT.

A commit helper that stages selected changes and creates a Git commit following Conventional Commits, a shared format such as `fix: handle empty input`.

In plain words
What is it for?
It helps commit the current worktree while excluding unrelated files and common secret files such as `.env`.
Why use it?
It removes the need to inspect changes, choose files, and write a correctly formatted commit message by hand.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/.

This is igorkasyanchuk/active_storage_validations's own configuration. It tells Claude Code and Cursor how to work on active_storage_validations itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything active_storage_validations configures →

About the project

Active Storage Validations is a Ruby gem for adding validation rules to files attached through Rails Active Storage. Rails developers use it to check whether uploaded images, videos, audio files, PDFs, and other attachments meet requirements such as type, size, dimensions, duration, or quantity.

igorkasyanchuk/active_storage_validations · 1,190 stars · on GitHub · igorkasyanchuk.com

Reuse

Borrowing it

Nothing to install: this file belongs to igorkasyanchuk/active_storage_validations. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/igorkasyanchuk/active_storage_validations/master/.cursor/skills/commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/igorkasyanchuk/active_storage_validations

Made for: Claude Code, Cursor.

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 commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/igorkasyanchuk/active_storage_validations/commit.svg)](https://agentmods.dev/skills/igorkasyanchuk/active_storage_validations/commit)
Your own site
<a href="https://agentmods.dev/skills/igorkasyanchuk/active_storage_validations/commit"><img src="https://agentmods.dev/badge/skills/igorkasyanchuk/active_storage_validations/commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 486 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.00035 $0.00486
Opus 5 $0.00017 $0.00243
Sonnet 5 $0.00007 $0.00097
Haiku 4.5 $0.00003 $0.00049

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

Security

Grade A, and why

commit 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 2d 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.

.cursor/skills/commit/SKILL.md · 48 lines

What it actually says

Commit

Create a git commit now. Do not ask for confirmation unless there is nothing to commit or secrets are involved.

How the user invokes this

  • Slash: /commit in Agent chat
  • Invoke with slash /commit in the current Agent chat (do not start a new chat).
    • Cursor’s Agent input is a webview: keybindings cannot reliably type/submit into it (type goes to the editor instead). No Mac shortcut for auto-send /commit until Cursor exposes a prompt API that works from keybindings.

Steps

  1. In parallel: git status, git diff (staged + unstaged). Do not run git log or infer message style from history (see .cursor/rules/git.mdc).
  2. Decide what belongs in this commit from the conversation / current task. Exclude unrelated dirty files (e.g. leftover docs). Never stage secrets (.env, credentials.json, config/master.key).
  3. Stage the chosen paths with git add.
  4. Draft the subject from .cursor/rules/git.mdc (this file only — including the scope glossary):
    • type(scope): imperative description
    • Types: feat|fix|docs|style|refactor|test|chore|perf|build|ci
    • Imperative, lowercase start, ≤ 72 chars, no trailing punctuation
  5. Commit with HEREDOC (no --no-verify, no amend, no push, no git config):
git commit -m "$(cat <<'EOF'
type(scope): description

Optional body when the why is not obvious.

EOF
)"
  1. If a hook fails, fix and create a new commit (do not amend).
  2. Run git status and reply with the short hash + subject only.

Out of scope

  • Do not push unless the user explicitly asks in the same turn.
  • Do not commit when the worktree has no relevant changes — say so briefly.
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. 2d ago First seen · 48 lines · 35 tokens per session scan A 2c1d293f3de2

Subscribe to this mod's changes

commit is a skill published in the GitHub repository igorkasyanchuk/active_storage_validations (1,190 stars, last pushed 4d ago), licensed MIT. It adds 35 tokens to every session and 486 once invoked, about $0.0002 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-09-05.

Related

Other skills, from other repositories