用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jimmykane/quantified-self --skill code-quality命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Analyze one or more authorized Quantified Self activities through its read-only MCP tools. Use for individual workouts, activity summaries, canonical metrics, laps, MTB jumps, swim lengths, pace or power charts, breadcrumb traces, or finding activities near a place; use the training skill for aggregate trends across many activities.
Compare the user's authorized Quantified Self data across two or more health and fitness domains through its read-only MCP tools. Use for cross-domain questions such as sleep versus training, weight versus activity, or recovery trends that require combining measurements, Training metrics, sleep, activities, or routes; use the focused Quantified Self skills for single-domain requests or multiple independent summaries that do not need comparison.
Analyze the user's authorized Quantified Self sleep data through its read-only MCP tools. Use for sleep sessions, duration, stages, efficiency, naps, bedtime or wake-time patterns, HRV, sleep heart rate, blood oxygen, respiration, and sleep-oriented recovery trends; use the cross-domain Quantified Self skill when comparing sleep with training, measurements, or activities.
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-quality |
| description | Analyze code quality using ESLint and project-specific patterns |
Analyze and improve code quality for the quantified-self Angular application.
# Run linter
npm run lint
# Run linter with auto-fix
ng lint --fix
# Type check without emit
npx tsc --noEmit
# Build check (catches AOT issues)
npm run build
[ ] Components use OnPush change detection (preferred)
[ ] Services use inject() function (preferred) or constructor DI
[ ] Signals used for local component state (preferred)
[ ] NgModules structure maintained (standalone: false)
[ ] RxJS observables properly unsubscribed
[ ] Async pipe used in templates where possible
Per material-design-strict.md:
[ ] Using native Angular Material components
[ ] All colors use --mat-sys-* variables
[ ] Typography uses var(--mat-sys-*)
[ ] No custom utility classes for colors/borders/shadows
[ ] Dialogs use global qs-dialog-container class
[ ] Bailout-first / return-early patterns
[ ] No deep if/else nesting
[ ] SCSS used for component styling
[ ] Firebase modular SDK imports (@angular/fire/*)
[ ] BrowserCompatibilityService used for modern APIs
## Code Quality Report: [Component/Feature]
### Files Analyzed
- [list of files]
### Summary
| Category | Issues |
|----------|--------|
| Critical | X |
| High | X |
| Medium | X |
| Low | X |
### Findings
#### [Severity] Issue Title
- **File**: `path/to/file.ts:line`
- **Issue**: Description
- **Fix**: Recommended solution
### Recommendations
1. [Priority action items]
# Build with stats
ng build --stats-json
# Analyze (if using webpack-bundle-analyzer)
npx webpack-bundle-analyzer dist/browser/stats.json
| Issue | Detection | Fix |
|---|---|---|
| Large bundles | Build output size | Lazy load modules |
| Memory leaks | Repeated subscriptions | takeUntilDestroyed() |
| Slow change detection | Frequent re-renders | OnPush + Signals |
| N+1 Firestore queries | Multiple doc reads | Batch with collectionData |