commit
This skill orchestrates the full commit workflow by running verification checks, fixing issues with test-driven development, executing pre-commit linting and…
Identity proven by GitHub's verified organisation badge (snyk)
- Agents
- Not labelled yet
- License
- Apache-2.0 (permissive)
- Pin
- b4b2713pinned Oct 9, 2026
- Context cost
- about 1,400 tokenswhen the skill loads
- GitHub stars
- 69on snyk/snyk-intellij-plugin
- Scripts
- None found
What it does
“Prepare and commit code changes with full verification, pre-commit checks, and tests. Runs verification skill, fixes issues using TDD, executes all test suites, and creates atomic commits. Use when ready to commit changes, before committing, or when asked to prepare a commit.”
Generated summary from the skill's own text
This skill orchestrates the full commit workflow by running verification checks, fixing issues with test-driven development, executing pre-commit linting and security scans, creating atomic commits with proper formatting, and running three mandatory test suites before optional push. It enforces project standards through a structured sequence of verification, remediation, and validation steps.
When to use it
- Before committing code changes to ensure quality standards
- When asked to prepare or finalize a commit
- After completing feature or bug fix work
- When verification identified issues requiring fixes
When not to
- For quick commits without verification
- When test suites cannot be executed
- If skipping TDD for fixes is acceptable
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add snyk/snyk-intellij-plugin --skill commitInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install snyk/snyk-intellij-plugin commit@b4b271338f6002b6c24cc9aa3152fec833da6cc4Installs the commit we checked (b4b2713).
Copy by hand
Download the folder at b4b2713 and put it in .claude/skills/commit for Claude Code and in .agents/skills/commit for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "commit" by Snyk. Source, pinned to commit b4b271338f6002b6c24cc9aa3152fec833da6cc4: https://github.com/snyk/snyk-intellij-plugin/tree/b4b271338f6002b6c24cc9aa3152fec833da6cc4/.cursor/skills/commit 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/commit/ for Claude Code and .agents/skills/commit/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/snyk/commit
SKILL.md at the pin
---
name: commit
description: Prepare and commit code changes with full verification, pre-commit checks, and tests. Runs verification skill, fixes issues using TDD, executes all test suites, and creates atomic commits. Use when ready to commit changes, before committing, or when asked to prepare a commit.
---
# 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):
- [ ] ./gradlew ktlintCheck spotlessApply
- [ ] ./gradlew koverXMLReport
- [ ] ./gradlew verifyPlugin
- [ ] 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:
```bash
./gradlew ktlintCheck spotlessApply
./gradlew koverXMLReport
./gradlew verifyPlugin
```
### Security Scans
Get absolute path first:
```bash
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).
---
## Step 4: Create Atomic Commit
### Pre-commit Verification
```
- [ ] Linting clean (./gradlew ktlintCheck spotlessApply)
- [ ] Security scans clean
- [ ] No implementation plan files staged
- [ ] Documentation updated (if needed)
```
### Commit Format
```
type(scope): description [XXX-XXXX]
Body explaining what and why.
```
**Types**: feat, fix, refactor, test, docs, chore, perf
**Extract issue ID from branch:**
```bash
git branch --show-current
```
### Staged Files Check
```bash
# Review what will be committed
git status
git diff --staged
```
**Never commit**:
- Implementation plan files (`*_implementation_plan/`)
- Secrets or credentials
- Generated diagram source (commit PNGs only if needed)
### Execute Commit
```bash
git add <files>
git commit -m "$(cat <<'EOF'
type(scope): description [XXX-XXXX]
Body explaining what and why.
EOF
)"
```
**NEVER use --no-verify. NEVER amend commits.**
---
## Step 5: Run All Test Suites (After Commit, Before Push)
**CRITICAL: ALL three test suites MUST be executed after commit but before push. Skipping ANY test suite is FORBIDDEN.**
### Execution Order
Run these commands IN ORDER and wait for each to complete:
```bash
./gradlew ktlintCheck spotlessApply
./gradlew koverXMLReport
./gradlew verifyPlugin
```
### Test Gate Enforcement
**Before proceeding to Step 6, verify:**
1. Did `./gradlew ktlintCheck spotlessApply` complete with all tests passing?
2. Did `./gradlew koverXMLReport` complete with all tests passing?
3. Did `./gradlew verifyPlugin` complete with all tests passing?
If ANY answer is "no" or "I didn't run it", STOP and run the missing tests.
### Test Failure Protocol
If tests fail:
1. **Do not proceed** to push
2. Identify root cause
3. Apply TDD fix (test first, then implementation)
4. Create new commit with fix
5. Re-run ALL test suites (not just the one that failed)
6. Continue only when ALL three test suites pass
---
## Step 6: Push (Optional)
### Mandatory Test Checklist
You MUST run each test suite and check it off. Do NOT proceed to push until ALL boxes are checked:
```
Test Suite Checklist (ALL REQUIRED):
- [ ] ./gradlew ktlintCheck spotlessApply
- [ ] ./gradlew koverXMLReport
- [ ] ./gradlew verifyPlugin
```
**Always ask before pushing.**
If approved:
```bash
git push --set-upstream origin $(git branch --show-current)
```
### After Push
Offer to:
1. Create draft PR (if none exists)
2. Update PR description (if PR exists)
3. Check snyk-pr-review-bot comments
4. Run `sleep` for 60s
5. Read and run verification skill
---
## Command Reference
| Task | Command |
| ------------------- |----------------------------------------------------|
| Format & lint | `./gradlew ktlintCheck spotlessApply` |
| Unit tests | `./gradlew test`
| Integration tests | `./gradlew verifyPlugin` |
| SCA scan | `snyk_sca_scan` with absolute path |
| Code scan | `snyk_code_scan` with absolute path |
| Current branch | `git branch --show-current` |
| Push | `git push --set-upstream origin $(git branch ...)` |
---
## Red Flags (STOP)
- [ ] Tests failing
- [ ] **Any test suite skipped**
- [ ] Security vulnerabilities unfixed
- [ ] Implementation plan files staged
- [ ] Unresolved PR blockers
- [ ] TDD not followed for fixes
- [ ] --no-verify being considered
From snyk/snyk-intellij-plugin at b4b2713, shown as plain text under its license: Apache-2.0 (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at b4b2713Files
- SKILL.md5.9 KB · 52d35bddc306
1 file, 5.9 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at b4b2713More from Snyk
algorithmic-art
This skill generates algorithmic art using p5.js by first creating a computational philosophy describing the generative aesthetic, then implementing it as an…
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.8K tokens · pinned 7 days ago
brand-guidelines
This skill applies Anthropic's official brand identity to artifacts by setting specific colors, typography, and design standards.
Claude Code, Codex, Cursor +4 · about 480 tokens · pinned 7 days ago
canary-project-skill
This is a test fixture skill used by the canary testing system to verify that the agent-scan inspect command properly detects project-scoped skills located in…
Claude Code, Codex, Cursor +4 · about 45 tokens · pinned 7 days ago
canvas-design
This skill helps agents create visual art and design work as PNG or PDF files by first developing a design philosophy or aesthetic movement, then expressing…
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 7 days ago
doc-coauthoring
This skill guides users through a structured three-stage workflow for co-authoring documentation, proposals, specs, and similar structured content.
Claude Code, Codex, Cursor +4 · about 3.8K tokens · pinned 7 days ago
docx
This skill enables the agent to create, edit, and analyze Word documents (.docx files) with support for tracked changes, comments, and formatting preservation.
Contains scripts
Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 7 days ago
Related in Coding workflow
planning
This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 7 days ago
progressive-building
This skill implements incremental workflow development for agents building or extending workflows.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 7 days ago
workflow-builder
Builds and edits n8n workflows using the TypeScript SDK.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 7 days ago
remotion-upgrade
This skill upgrades Remotion and its related packages to the latest stable version.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 7 days ago
remotion-upgrade
This skill upgrades Remotion and related packages across a project, automatically detecting the package manager and workspaces.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 7 days ago
final-release-review
Audits Python SDK release candidates or plans against the previous release, comparing diffs for regressions, API changes, and version compatibility.
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.4K tokens · pinned 7 days ago
Open roles at Snyk
1 open role on the jobs board
- Senior Product Security Engineer
United States - Boston Office | Canada - Ottawa Office (Remote)