snyk-ls: Skill for Cursor

.cursor/skills/commit/SKILL.md

commit is a skill for Cursor from snyk/snyk-ls. It costs 57 tokens per session (1,487 once invoked), scanned A, original, Apache-2.0.

A procedure for preparing and committing code changes after review and testing. It includes verification, pre-commit checks, required test suites, and the creation of an atomic commit, meaning one focused commit for one change.

In plain words
What is it for?
Use it when code is ready to commit. It reviews changes, fixes problems with TDD, runs the project's test suites, creates the commit, and optionally pushes it after asking first.
Why use it?
It reduces the risk of committing code that has unresolved problems or has not passed the project's required checks. It also makes commits easier to review and trace.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is snyk/snyk-ls's own configuration. It tells Cursor how to work on snyk-ls 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 snyk-ls configures →

Reuse

Borrowing it

Nothing to install: this file belongs to snyk/snyk-ls. 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/snyk/snyk-ls/main/.cursor/skills/commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/snyk/snyk-ls

Made for: 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/snyk/snyk-ls/commit/github.svg)](https://agentmods.dev/skills/snyk/snyk-ls/commit)
Your own site
<a href="https://agentmods.dev/skills/snyk/snyk-ls/commit"><img src="https://agentmods.dev/badge/skills/snyk/snyk-ls/commit/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 commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/snyk/snyk-ls/commit"><img src="https://agentmods.dev/badge/skills/snyk/snyk-ls/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,487 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 51
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00057 $0.01487
Opus 5.5 $0.00023 $0.00595
Sonnet 5.5 $0.00011 $0.00297
Haiku 4.5 $0.00006 $0.00149

Measured 1mo ago against content hash 49f132a51289, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 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.

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

How it starts

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

Commit Workflow

Prepare, verify, and commit code changes following project standards.

Workflow Overview

Verify → Fix Issues (TDD) → Pre-commit Checks → Commit → Tests → [Push]

Quick Start Checklist

Copy and track progress:

Commit Progress:
- [ ] Step 1: Run verification skill
- [ ] Step 2: Fix issues using TDD
- [ ] Step 3: Run pre-commit checks
- [ ] Step 4: Create atomic commit
- [ ] Step 5: Run ALL test suites (3 REQUIRED):
      - [ ] make test
      - [ ] INTEG_TESTS=1 make test
      - [ ] SMOKE_TESTS=1 make test
- [ ] Step 6: Push (optional, ask first)

CRITICAL: Step 5 has THREE mandatory test suites. Skipping any is FORBIDDEN.


Step 1: Run Verification Skill

Execute the verification skill to analyze code changes:

Verification Progress:
- [ ] Load project rules and standards
- [ ] Trace code paths for modified files
- [ ] Check for semantic changes
- [ ] Identify code smells
- [ ] Run security scans
- [ ] Review PR feedback (if PR exists)

Read and follow: .cursor/skills/verification/SKILL.md

Output: List of issues found, categorized by severity.


Step 2: Fix Issues Using TDD

For each issue identified by verification:

TDD Gate (MANDATORY)

Before ANY fix:

  • Write failing test first
  • Confirm test fails without fix
  • Implement minimal fix
  • Confirm test passes

Never skip TDD. Use implementation skill for complex fixes.

Issue Priority

  1. Security vulnerabilities - Fix immediately (except test data)
  2. Breaking changes - Confirm intentional, add tests
  3. Code smells - Fix immediately
  4. PR feedback - Address blockers first

Step 3: Pre-commit Checks

Run:

make format
make test
INTEG_TESTS=1 make test
SMOKE_TESTS=1 make test

Security Scans

Get absolute path first:

pwd

Then run:

  1. snyk_sca_scan with absolute project path
  2. snyk_code_scan with absolute project path

Fix any security issues (skip test data false positives).

Read the full file on GitHub · 261 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 · 261 lines · 57 tokens per session scan A 49f132a51289

Subscribe to this mod's changes

commit is a skill published in the GitHub repository snyk/snyk-ls (82 stars, last pushed yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 1,487 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-08-30.