cli-cytoscnpy
CytoScnPy CLI
Code metrics analysis tool for Python projects. Calculates LOC, complexity, Halstead metrics, and maintainability.
Commands
# Raw metrics (LOC, LLOC, SLOC, Comments, Blank)
cytoscnpy raw [OPTIONS] <PATH>
# Cyclomatic Complexity
cytoscnpy cc [OPTIONS] <PATH>
# Halstead Metrics
cytoscnpy hal [OPTIONS] <PATH>
# Maintainability Index
cytoscnpy mi [OPTIONS] <PATH>
# Full project statistics report
cytoscnpy stats [OPTIONS] <PATH>
# Per-file metrics table
cytoscnpy table [OPTIONS] <PATH>
# MCP server for LLM integration
cytoscnpy mcp-server
# Initialize config (.cytoscnpy.toml)
cytoscnpy init
Quality Gates
Use strict flags to fail CI when thresholds are exceeded (exit code 1):
cytoscnpy raw --max-loc 500 --max-complexity 15 <PATH>
Configuration
Create .cytoscnpy.toml in project root, or add [tool.cytoscnpy] to pyproject.toml.
cytoscnpy init # scaffolds config file
MCP Server
Starts an MCP server for LLM integration. Requires the standalone CLI build (not the Python package).
cytoscnpy mcp-server
Reference
See references/cli-reference.md for full option details.
More from jr2804/prompts
python-ultimate
>-
33output-quality
Detect and eliminate generic, low-quality "AI slop" patterns in natural language, code, and design. Use when REVIEWING existing content (text, code, or visual designs) for quality issues, cleaning up generic patterns, or establishing quality standards. Focuses on pattern detection—not content creation.
8coding-discipline
Language-agnostic behavioral guidelines to reduce common LLM coding mistakes. Use for ANY coding task (all languages) to avoid overcomplication, make surgical changes, surface assumptions before coding, and define verifiable success criteria. Applies behavioral rigor—separate from language-specific technical standards.
8cli-vstash
Local document memory with semantic search for AI-assisted workflows. Use when managing project documentation, codebases, or research papers that need persistent memory across sessions. Triggers on: vstash add/search/ask commands, document ingestion, semantic search, RAG pipelines, local knowledge bases, or configuring vstash for personal projects.
5mcp-vstash
MCP server integration for vstash document memory. Use when configuring Claude Desktop or other MCP-compatible AI assistants with persistent document memory, setting up vstash MCP tools for semantic search and Q&A, or integrating vstash with AI assistant workflows via Model Context Protocol.
5code-deduplication
Pre-write workflow to prevent semantic code duplication. Use BEFORE creating new utility functions, shared modules, or helper code to verify equivalent capabilities don't already exist in the codebase. Requires maintaining CODE_INDEX.md as a capability index organized by purpose (not file location).
4