analyze-code-quality
SolidRun all tests and linters, check for anti-patterns, generate a quality report
Code & Development 30 stars
1 forks Updated 1 months ago MIT
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
Analyze the overall quality of the source code by running all available checks and looking for known anti-patterns. Generate a comprehensive quality report.
## Process
### 1. Run automated checks
Run these commands and capture the results:
```bash
# Unit tests with coverage
npm test 2>&1
# Linter
npm run lint 2>&1
# TypeScript type checking
npm run typecheck 2>&1
# E2E tests (if server not already running)
npm run test:e2e 2>&1
# Smoke tests — run the BUILT dist/cli.js, so they catch ESM-bundle-only
# runtime failures the tsx-based e2e suite can't (e.g. a bundled CJS dep
# calling require()). Requires a prior `npm run build`.
npm run test:smoke 2>&1
```
### 2. Analyze test coverage — treat 100% as a floor, not a ceiling
Read the coverage output from step 1. Identify:
- Files with <50% line coverage (high risk)
- Files with 0% coverage (untested)
- Areas where unit tests exist but E2E tests don't (or vice versa)
**Then explicitly state the limit of what this number proves.** Line/branch coverage shows every *line ran* — it does **not** show that every *behavior* or every *sequence of behaviors* is *asserted*. A stateful module can sit at 100% line/branch/function/statement coverage and still ship basic bugs, because each individual operation was tested from a clean initial state while the *transitions between internal states* were never exercised. So do **not** treat a high coverage number as a stopping point: a module at 100% coverage is exactly where the behaviora...
Details
- Author
- brianwestphal
- Repository
- brianwestphal/glassbox
- Created
- 6 months ago
- Last Updated
- 1 months ago
- Language
- TypeScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
analyze-code
Code-level quality analysis. Use when asked to review code for smells, security issues, implementation quality, or test coverage.
0 Updated today
lgtm-hq Code & Development Listed
code-quality
Analyzes code quality, complexity, duplication, and architectural patterns. Use after implementing features, during code review, or when preparing for PR. Auto-invoke when user has completed significant code changes or asks to review code quality.
4 Updated 3 weeks ago
joris887