Install
$ agentstack add skill-d-o-hub-rust-self-learning-memory-code-quality ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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.
- Author: d-o-hub
- Source: d-o-hub/rust-self-learning-memory
- License: MIT
- Homepage: https://d-o-hub.github.io/rust-self-learning-memory/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.