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.
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-checkerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/tensorcircuit/tensorcircuit-ng /tmp/tensorcircuit-ng && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tensorcircuit-ng/.agents/skills/sanity-checker ~/.gemini/antigravity-cli/skills/sanity-checkerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →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.
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.
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.
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.
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.
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.
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.
