npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

skulksense

v0.2.2

Published

Fast local AI pre-commit review using Ollama — zero API costs, complete code privacy

Readme

SculkSense

Fast, local AI pre-commit review using Ollama. Zero API costs. Your code never leaves your machine.

Features

  • Free forever — no cloud APIs required
  • Fast — typical reviews under 2 seconds
  • Local only — staged diffs reviewed via Ollama on localhost
  • Non-blocking — skips review when Ollama is unavailable
  • Custom rules — project-specific instructions or markdown rules file
  • Husky-ready — one-command setup
  • Pause anytimeskulksense stop skips reviews and stops Ollama without uninstalling

Requirements

  • Node.js 20+
  • Git
  • Ollama (optional but recommended)

Install

npm install --save-dev skulksense

For personal use on team repos, you can install globally instead:

npm install -g skulksense

The Husky hook uses the local package when present, otherwise falls back to skulksense on your PATH.

Quick Start

npx skulksense init

This will:

  • Ask for optional custom review rules (inline or markdown file)
  • Detect your Git repository
  • Install/configure Husky if needed
  • Create .husky/pre-commit
  • Create skulksense.config.json
  • Verify Ollama and the configured model

Then commit as usual:

git add .
git commit -m "feat: add user service"

CLI Commands

| Command | Description | |---------|-------------| | skulksense init | Initialize in the current repo | | skulksense review | Run review manually on staged changes | | skulksense doctor | Check Git, Husky, Ollama, config, model | | skulksense log | View recent review logs | | skulksense listen | Watch logs in real time during commits | | skulksense stop | Pause reviews for this repo and stop Ollama | | skulksense start | Resume pre-commit reviews for this repo | | skulksense version | Show package version | | skulksense --help | Show help |

Viewing logs

Every review writes to your user directory (not the project root):

~/.skulksense/logs/<project-id>/review.log

Each Git project gets its own log file based on its path.

Terminal 1 — watch logs live while you work:

npx skulksense listen

Terminal 2 — commit as usual:

git commit -m "feat: add feature"

View past logs:

npx skulksense log
npx skulksense log --lines 100
npx skulksense log --all

Example log lines:

[2026-07-12T00:14:01.234Z] REVIEW_START trigger=commit project=/path/to/your/repo
[2026-07-12T00:14:02.102Z] REVIEW_PASS duration=868ms model=qwen2.5-coder:1.5b

Configuration

Create skulksense.config.json in your project root:

{
  "model": "qwen2.5-coder:1.5b",
  "timeout": 5000,
  "minChangedLines": 5,
  "maxDiffChars": 4000,
  "ignore": [
    "*.md",
    "*.png",
    "*.jpg",
    "*.svg",
    "*.lock",
    "package-lock.json",
    "pnpm-lock.yaml",
    "yarn.lock",
    "dist/**",
    "build/**"
  ]
}

Custom review rules

During skulksense init, you can add project-specific rules:

  1. Inline instructions — stored in customInstructions in config
  2. Markdown rules file — path stored as rulesFile (default: .skulksense-rules.md)

Example config with custom rules:

{
  "model": "qwen2.5-coder:1.5b",
  "timeout": 10000,
  "minChangedLines": 5,
  "maxDiffChars": 4000,
  "rulesFile": ".skulksense-rules.md",
  "customInstructions": "Reject commits that add hardcoded API URLs."
}

Example .skulksense-rules.md:

# SkulkSense Review Rules

- Never commit `fetch` calls without error handling
- React hooks must follow the rules of hooks
- Do not add new `any` types in TypeScript files

Custom rules are merged with built-in checks during every review.

Pausing SkulkSense

To temporarily disable pre-commit reviews in the current repo only (without uninstalling or leaving the project):

npx skulksense stop

This will:

  • Create .skulksense/disabled so the Husky hook exits immediately
  • Stop any running Ollama process
  • Leave config, hooks, and logs in place

Commits behave as if SkulkSense were not installed. Resume anytime:

npx skulksense start

What It Checks

SculkSense only fails commits for high-confidence issues:

  • Missing await
  • Null/undefined access
  • Secrets/API keys
  • debugger statements
  • console.log left in code
  • SQL injection
  • XSS
  • Obvious logic bugs

It ignores formatting, naming, refactoring, architecture, and suggestions.

Skip Conditions

Review is skipped (commit proceeds) when:

  • Ollama is not installed or not running
  • No staged changes
  • Only ignored files changed
  • Diff is below minChangedLines
  • AI times out or returns a malformed response

Development

git clone https://github.com/adminALEX/SculkSense.git
cd SculkSense
npm install
npm run build
npm test

License

MIT — see LICENSE.

Contributing

See CONTRIBUTING.md.