Skip to content
Skills Library
Programming · Review & audit

self-verification

/self-verification

Guides the user through systematic pre-commit quality verification. ALWAYS trigger on "review my code", "check my work", "before commit", "self-review", "quality check", "am I ready to commit", "pre-commit review", "code quality", "verify my changes", "sanity check", "review before merge", "is this ready". Use before any commit, merge, or code review submission.

Licence
MIT
Last repository change
03.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
1
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Scripts: scripts/self-review.sh

What it does and when to use it

Guides the user through systematic pre-commit quality verification. ALWAYS trigger on "review my code", "check my work", "before commit", "self-review", "quality check", "am I ready to commit", "pre-commit review", "code quality", "verify my changes", "sanity check", "review before merge", "is this ready". Use before any commit, merge, or code review submission.

Triggers from the description

review my codecheck my workbefore commitself-reviewquality checkam I ready to commitpre-commit reviewcode quality
Original author description

Guides the user through systematic pre-commit quality verification. ALWAYS trigger on "review my code", "check my work", "before commit", "self-review", "quality check", "am I ready to commit", "pre-commit review", "code quality", "verify my changes", "sanity check", "review before merge", "is this ready". Use before any commit, merge, or code review submission.

How it works

  1. 1. Review Staged Changes
  2. 2. Completeness Check
  3. 3. Quality Check
  4. 4. Test Verification
  5. 5. Security Check
  6. 6. Documentation Check
  7. Fresh Eyes Techniques
  8. Common Self-Review Failures
  9. Script
  10. References
Original SKILL.md headings · 149 lines, 674 words
SKILL.md preview
---
name: self-verification
description: >-
  Guides the user through systematic pre-commit quality verification. ALWAYS
  trigger on "review my code", "check my work", "before commit", "self-review",
  "quality check", "am I ready to commit", "pre-commit review", "code quality",
  "verify my changes", "sanity check", "review before merge", "is this ready".
  Use before any commit, merge, or code review submission.
---
<!-- Last reviewed: 2026-03 -->

# Self-Verification

Run `scripts/self-review.sh` or execute these 6 steps manually before every commit.

---

## 1. Review Staged Changes

```bash
git diff --staged
```

- [ ] Would I approve this in code review?
- [ ] Does this change do ONE thing well?
- [ ] Is the change focused or sprawling?

## 2. Completeness Check

- [ ] Functionality does what was requested
- [ ] Edge cases handled or documented as out-of-scope
- [ ] All failure paths covered with clear error messages
- [ ] Key operations logged at appropriate level
- [ ] All inputs validated at boundaries
- [ ] Outputs properly encoded/sanitized

## 3. Quality Check

- [ ] No TODOs/FIXMEs/HACKs (resolve or file tickets)
- [ ] No debug code (print, console.log, breakpoint, pdb)
- [ ] No commented-out code (it's in git history)
- [ ] Variables/functions/classes are self-documenting
- [ ] Functions each do one thing well (< 50 lines ideal)
- [ ] No magic numbers (extract to named constants)
- [ ] Follows project style conventions

```bash
# Automated scan for debug artifacts
git diff --cached | grep -E "breakpoint|pdb|console\.log|debugger|TODO|FIXME|HACK"
```

## 4. Test Verification

- [ ] All tests pass
- [ ] Coverage >= 80% on new code
- [ ] Edge cases tested (not just happy path)
- [ ] Error paths tested
- [ ] Test names describe what they verify
- [ ] No flaky tests

```bash
# Python
pytest --cov=. --cov-report=term-missing --cov-fail-under=80

# JavaScript
npm test -- --coverage --coverageThreshold='{"global":{"lines":80}}'

# Go
go test -cover ./...
```

## 5. Security Check

- [ ] No secrets (API keys, passwords, tokens) in code
- [ ] No PII or credentials in logs
- [ ] All external inputs validated
- [ ] SQL params parameterized, HTML escaped, URLs encoded
- [ ] Protected endpoints enforce auth
- [ ] Code runs with minimum required permissions

```bash
# Scan for leaked secrets
git diff --cached | grep -iE "api[_-]?key|password|secret|token"

# Python security scan
bandit -r . -q

# JavaScript
npm audit
```

**Security questions to answer:**

| # | Question |
|---|----------|
| 1 | Who can call this? (Authentication) |
| 2 | Are they allowed to? (Authorization) |
| 3 | What if they send malicious input? (Validation) |
| 4 | What if they send huge input? (Resource limits) |
| 5 | Can they see data they shouldn't? (Data exposure) |
| 6 | Will we know if they try? (Audit logging) |

## 6. Documentation Check

- [ ] Public APIs/functions have docstrings
- [ ] Complex logic has comments explaining WHY
- [ ] Usage examples for complex APIs
- [ ] README updated if external behavior changed
- [ ] CHANGELOG updated for user-visible changes
- [ ] Migration guide if breaking changes exist

---

## Fresh Eyes Techniques

Use these to break the "see what you intended" bias:

1. **Time Gap** (10+ min) -- let your brain forget what you meant
2. **Context Switch** -- work on something else, then return
3. **Read Aloud** -- speaking forces slower processing
4. **Rubber Duck** -- explain code to an imaginary colleague
5. **Reverse Review** -- read diff from last line to first

See `references/fresh-eyes-techniques.md` for detailed guides.

---

## Common Self-Review Failures

| Failure | Symptom | Prevention |
|---------|---------|------------|
| "Works on My Machine" | Fails in CI/production | Test in clean environment |
| Missing Edge Cases | Breaks with unexpected input | Test null, empty, negative, huge |
| Unclear Intent | Can't explain without reading | Extract to well-named functions |
| Incomplete Error Handling | Crashes on first error | Identify all failure points |

See `references/self-review-failures.md` for detailed prevention strategies.

---

## Script

Run the interactive self-review protocol:

```bash
skills/self-verification/scripts/self-review.sh
# or
./scripts/self-review.sh && git commit -m "your message"
```

---

## References

- `references/fresh-eyes-techniques.md` -- detailed technique guides
- `references/self-review-failures.md` -- prevention strategies with examples
- `scripts/self-review.sh` -- interactive self-review script
Files in this package (4)
  • SKILL.md 4 KB
  • references/fresh-eyes-techniques.md 2 KB
  • references/self-review-failures.md 2 KB
  • scripts/self-review.sh 12 KB

Versions

The database has no other skills named self-verification.

Database snapshot: 13.11.2026 · package version e91068158f3a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pre-commit-quality-review
    Use when the user asks to commit, amend, or squash code, or requests a pre-commit structural quality review.
  • 100pre-commit-review
    Review staged and unstaged changes before committing. Use when asked for a pre-commit review, a code-quality review of the current diff, or when a solve workflow requests an independent review.
  • 95quality-pipeline
    Run pre-commit or pre-merge quality checks: tests, completeness scan (no stubs/TODOs/mocks), code review. Use when: "quality gate", "quality checks", "run tests before merge", "check for stubs", "scan for completeness", "is this ready to commit?", "pre-merge review", "品質檢查",…
  • 100pre-commit
    Full validation gate before committing — quality checks, tests, coverage, security scan, changelog, and companion review. Use right before a commit to verify code is ready. Trigger on "pre-commit", "validate before commit", "ready to commit", "run all checks".
  • 95quality-pipeline
    Run pre-commit or pre-merge quality checks: tests, completeness scan (no stubs/TODOs/mocks), code review. Use when: "quality gate", "quality checks", "run tests before merge", "check for stubs", "scan for completeness", "is this ready to commit?", "pre-merge review", "品質檢查",…
  • 100uw-code-review
    Pre-commit code quality review for Unity C# code. Checks against Rules, CODING_STANDARDS.md, NAMING_CONVENTIONS.md, and GDD Gherkin test coverage. Use when code has been written and tests are passing but before committing. Runs automatically at Step 8.5 of…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.