Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sanity-checker

Skill by tensorcircuit

Audits the TensorCircuit-NG codebase for technical debt, including imports, comments, dead code, DRY violations, exception handling, docstrings and test sufficiency. Aimed at developers maintaining that codebase.

  • Score 71
  • 96 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sanity-checker

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tensorcircuit/tensorcircuit-ng /tmp/tensorcircuit-ng && mkdir -p ~/.claude/skills && cp -r /tmp/tensorcircuit-ng/.agents/skills/sanity-checker ~/.claude/skills/sanity-checker

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sanity-checker in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

sanity-checker is an agent skill for the TensorCircuit-NG codebase. When activated, the assistant acts as a code quality auditor. It looks for issues with imports, comments, dead code, DRY violations, exception handling, magic numbers and secrets, docstrings, duplicated implementations, and test sufficiency. If no path is given, it scans the tensorcircuit/, tests/ and examples/ directories.

Written from the project's SKILL.md and checked against it.

What it can do

  • Report-first auditProduces a Sanity Check Report with location, issue and recommendation for each finding.
  • Import placementChecks that optional dependencies are imported inside the function scope where they are used.
  • Comment and docstring reviewFlags outdated, verbose or thinking-loudly comments and checks public API docstrings.
  • Dead code and DRY checksIdentifies unreachable code, copy-paste logic and duplicated implementations.
  • Exception handling reviewFlags overly broad except clauses and unnecessary defensive try...except blocks.
  • Secrets and magic numbersScans for hardcoded credentials and unnamed numerical constants.
  • Test sufficiency reviewEvaluates whether tests verify algorithmic correctness and numerical values, not just that code runs.
  • Post-approval refactoringAfter user approval, applies fixes, runs relevant tests, and checks with black and pylint.

What you need

  • Access to the TensorCircuit-NG repository

Try asking

  • Run a sanity check on the tensorcircuit/ directory and give me the report
  • Find broad exception handlers and unnecessary try...except blocks in examples/
  • Review tests/ for gaps in numerical correctness checks and manual equality checks

Good to know

  • Does not modify any files until the user reviews and explicitly approves the report
  • Post-approval refactoring is limited to approved changes

Security check

B
  • Allowed to use Bash, Write without limitsIn SKILL.md

Checked automatically: .agents/skills/sanity-checker/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashReadGrepGlobWrite

Alternatives to sanity-checker

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sanity-checker: common questions

What does the sanity-checker skill check for?

It checks imports, comments, dead code, DRY violations, exception handling, magic numbers and secrets, docstrings, duplicated implementations, and test sufficiency. It is described as covering the TensorCircuit-NG codebase.

Will sanity-checker change my files automatically?

No. The source says the skill must not modify any files until the user has reviewed and explicitly approved the report.

Which directories does the audit cover by default?

If no path is specified, the skill scans tensorcircuit/, tests/ and examples/. If a path is provided, the audit focuses there.

How do I install sanity-checker?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sanity-checker free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is sanity-checker safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (allowed to use bash, write without limits). Review the code before you install. How grades work.

What are alternatives to sanity-checker?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

sanity-checker Install

Add to stack

Loading.