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

Code Quality

skill-d-o-hub-rust-self-learning-memory-code-quality · by d-o-hub

Maintain high code quality through formatting, linting, static analysis, and clean code principles. Use for rustfmt, clippy, cargo audit, code reviews, refactoring, and quality gates.

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

Install

$ agentstack add skill-d-o-hub-rust-self-learning-memory-code-quality

✓ 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 No
  • 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-d-o-hub-rust-self-learning-memory-code-quality)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo 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 Code Quality? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Code Quality

Unified skill for Rust code quality and clean code development.

Quick Commands

./scripts/code-quality.sh fmt                    # Format check
./scripts/code-quality.sh clippy --workspace     # Lint with clippy
./scripts/code-quality.sh audit                  # Security audit
./scripts/code-quality.sh check                  # Run all quality gates
./scripts/quality-gates.sh                       # Full gates (coverage 90%)

Quality Gates

| Check | Command | Target | |-------|---------|--------| | Format | ./scripts/code-quality.sh fmt | 100% compliant | | Lint | ./scripts/code-quality.sh clippy --workspace | Zero warnings | | Audit | cargo audit | No known vulnerabilities | | Coverage | cargo llvm-cov --html | >=90% | | Docs | cargo doc --no-deps | All public APIs |

Rust Quality Dimensions

| Dimension | Focus | |-----------|-------| | Structure | Files , ? operator (no unwrap) | | Async | spawn_blocking for CPU work, no blocking in async | | Testing | >=90% coverage, AAA pattern, cargo nextest + doctests | | Security | Parameterized SQL, env vars, no hardcoded secrets |

Clean Code Principles

SOLID: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, Dependency Inversion

DRY/KISS/YAGNI: Extract common code, simple solutions, build what's needed now

Anti-Patterns

| Bad | Fix | |-----|-----| | Excessive clone | Use borrowing or Arc | | Unnecessary unwrap | Use ? operator | | Deep nesting | Extract methods | | Large functions | Split (<50 LOC) | | Deadlocks | Release locks before .await | | .py/.sh in root | Move to scripts/ or delete if one-off |

Dependency Monitoring

cargo tree -d | grep -cE "^[a-z]"   # Count duplicates (target: <100)
cargo machete && cargo shear       # Find unused deps

Code Review Output Format

# Code Quality Report
Score: X/100 | Critical Issues: N | Warnings: M
- Structure: [Status] | Error Handling: [Status] | Testing: [Status]
1. [Issue] - File:line - Fix: [Recommendation]

References

quality-dimensions.md, ADR-036 (Dependency Deduplication), ADR-032 (Disk Space)

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.