AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Cli Audit Code

skill-destynova2-cli-code-skills-cli-audit-code · by Destynova2

Audit code quality with weighted scoring across 12 dimensions (naming, complexity, module design, DRY, errors, security, tests, architecture). Detects named anti-patterns (Fowler/Mantyla taxonomy). Use when reviewing code quality, auditing clean code compliance, checking for code smells, or saying 'audit code', 'code quality', 'code review', 'tech debt'. Invoke with an optional file or directory…

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-destynova2-cli-code-skills-cli-audit-code

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-destynova2-cli-code-skills-cli-audit-code)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cli Audit Code? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

> Optimization: This skill uses on-demand loading. Heavy content lives in references/ and is loaded only when needed.

> Language rule: Skill instructions are written in English. When generating user-facing output, detect the project's primary language (from README, comments, docs, commit messages) and produce the report in that language. If the project is bilingual, ask the user which language to use before proceeding.

Audit Code — Code Quality Index (CQI)

> "Complexity is the single greatest enemy of reliability." — John Ousterhout

Core Principles

  1. Evidence-based — every finding needs a file:line reference. No vague "the code could be better"
  2. Proportional — a 200-line function matters more than a missing doc comment. Scale to project type
  3. Language-aware — detect the project language and apply its idiomatic patterns, not Java/C# defaults
  4. Named anti-patterns — use Fowler/Mantyla taxonomy names (Feature Envy, Shotgun Surgery) in findings
  5. Positive reinforcement — always highlight good practices found, not just violations
  6. Gotchas — read ../gotchas.md before producing output to avoid known mistakes

Input

$ARGUMENTS is the target to audit (file path, directory, or empty for whole src/).

  • If a specific file: audit that file deeply
  • If a directory: audit all source files in it
  • If empty: audit src/ broadly (sample 15-20 key files)

12-Dimension Framework

Score each dimension 0.0-1.0, then compute a weighted CQI. Read references/categories.md for detailed check lists per category.

| # | Category | Weight | Key question | |---|----------|--------|-------------| | C1 | Naming & Readability | 8% | Do names reveal intent? No magic numbers? | | C2 | Functions & Cognitive Complexity | 12% | 500 lines, many responsibilities) | /cli-audit-tangle | Topology analysis reveals optimal split points | | Hardcoded secrets or .env tracked in git (C9) | /cli-git-conventional --audit-markers | Check git history for leaked secrets | | Shell scripts in the project with quality issues | /cli-audit-shell | Deep bash-specific audit beyond C6 idioms | | Missing or stale documentation (C7 low) | /cli-forge-doc | Generate/update project docs | | Test quality issues (C8 low) | /cli-audit-test | Full test strategy audit | | CI/CD config present but not audited | /cli-forge-pipeline | Pipeline optimization | | Static perf anti-pattern detected (alloc in loop, O(n²), N+1) on a hot service | /cli-forge-perf | Confirm the dynamic cost and lock the fix with an A/B bench gate |

Rule: Recommend, don't auto-execute. Phrase as: "Consider running /cli-audit-tangle — 3 god modules detected that need topology analysis."

Reference Sources

  • Ousterhout — A Philosophy of Software Design | Martin — Clean Code | Fowler — Refactoring | Tornhill — Software Design X-Rays | Feathers — Working Effectively with Legacy Code
  • SonarQube Quality Model | SonarSource Cognitive Complexity | SQALE Method | CodeScene Code Health | Clippy lint categories
  • CodeAesthetic | ThePrimeagen | ArjanCodes | Software Engineering Radio | Tech Lead Journal

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.