@cubis/foundry 0.3.71 → 0.3.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -2
- package/dist/cli/core.js +9 -22
- package/dist/cli/core.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/core.ts +13 -22
- package/workflows/powers/accessibility/POWER.md +83 -94
- package/workflows/powers/accessibility/SKILL.md +82 -94
- package/workflows/powers/agent-design/POWER.md +201 -0
- package/workflows/powers/agent-design/SKILL.md +198 -0
- package/workflows/powers/agent-design/references/clarification-patterns.md +153 -0
- package/workflows/powers/agent-design/references/skill-testing.md +164 -0
- package/workflows/powers/agent-design/references/workflow-patterns.md +226 -0
- package/workflows/powers/agentic-eval/POWER.md +62 -0
- package/workflows/powers/agentic-eval/SKILL.md +59 -0
- package/workflows/powers/agentic-eval/references/rubric-and-regression-checklist.md +11 -0
- package/workflows/powers/api-designer/POWER.md +43 -71
- package/workflows/powers/api-designer/SKILL.md +43 -71
- package/workflows/powers/api-patterns/POWER.md +42 -56
- package/workflows/powers/api-patterns/SKILL.md +42 -57
- package/workflows/powers/architecture-designer/POWER.md +43 -60
- package/workflows/powers/architecture-designer/SKILL.md +43 -60
- package/workflows/powers/ask-questions-if-underspecified/POWER.md +51 -3
- package/workflows/powers/auth-architect/POWER.md +69 -0
- package/workflows/powers/auth-architect/SKILL.md +66 -0
- package/workflows/powers/auth-architect/references/session-token-policy-checklist.md +45 -0
- package/workflows/powers/behavioral-modes/POWER.md +100 -9
- package/workflows/powers/c-pro/POWER.md +105 -0
- package/workflows/powers/c-pro/SKILL.md +102 -0
- package/workflows/powers/c-pro/references/build-systems-and-toolchains.md +148 -0
- package/workflows/powers/c-pro/references/common-ub-and-portability.md +166 -0
- package/workflows/powers/c-pro/references/debugging-with-sanitizers.md +205 -0
- package/workflows/powers/c-pro/references/memory-safety-and-build-checklist.md +60 -0
- package/workflows/powers/c-pro/references/posix-and-platform-apis.md +244 -0
- package/workflows/powers/changelog-generator/POWER.md +127 -63
- package/workflows/powers/changelog-generator/SKILL.md +126 -63
- package/workflows/powers/ci-cd-pipelines/POWER.md +156 -0
- package/workflows/powers/ci-cd-pipelines/SKILL.md +153 -0
- package/workflows/powers/ci-cd-pipelines/references/github-actions-patterns.md +160 -0
- package/workflows/powers/ci-cd-pipelines/references/pipeline-security-checklist.md +57 -0
- package/workflows/powers/cli-developer/POWER.md +152 -95
- package/workflows/powers/cli-developer/SKILL.md +152 -95
- package/workflows/powers/cpp-pro/POWER.md +111 -0
- package/workflows/powers/cpp-pro/SKILL.md +108 -0
- package/workflows/powers/cpp-pro/references/concurrency-primitives.md +266 -0
- package/workflows/powers/cpp-pro/references/move-semantics-and-value-types.md +149 -0
- package/workflows/powers/cpp-pro/references/performance-and-profiling.md +191 -0
- package/workflows/powers/cpp-pro/references/raii-and-modern-cpp-checklist.md +87 -0
- package/workflows/powers/cpp-pro/references/template-and-concepts-patterns.md +205 -0
- package/workflows/powers/csharp-pro/POWER.md +47 -22
- package/workflows/powers/csharp-pro/SKILL.md +47 -22
- package/workflows/powers/dart-pro/POWER.md +68 -0
- package/workflows/powers/dart-pro/SKILL.md +65 -0
- package/workflows/powers/dart-pro/references/isolate-and-concurrency.md +180 -0
- package/workflows/powers/dart-pro/references/null-safety-and-async-patterns.md +133 -0
- package/workflows/powers/dart-pro/references/package-structure-and-linting.md +193 -0
- package/workflows/powers/dart-pro/references/sealed-records-patterns.md +173 -0
- package/workflows/powers/dart-pro/references/testing-and-mocking.md +235 -0
- package/workflows/powers/database-design/POWER.md +47 -33
- package/workflows/powers/database-design/SKILL.md +47 -33
- package/workflows/powers/database-optimizer/POWER.md +43 -64
- package/workflows/powers/database-optimizer/SKILL.md +43 -64
- package/workflows/powers/database-skills/POWER.md +59 -93
- package/workflows/powers/database-skills/SKILL.md +59 -93
- package/workflows/powers/debugging-strategies/POWER.md +69 -0
- package/workflows/powers/debugging-strategies/SKILL.md +66 -0
- package/workflows/powers/debugging-strategies/references/reproduce-isolate-verify-checklist.md +42 -0
- package/workflows/powers/deep-research/POWER.md +67 -0
- package/workflows/powers/deep-research/SKILL.md +64 -0
- package/workflows/powers/deep-research/references/multi-round-research-loop.md +80 -0
- package/workflows/powers/design-system-builder/POWER.md +130 -116
- package/workflows/powers/design-system-builder/SKILL.md +130 -116
- package/workflows/powers/devops-engineer/POWER.md +120 -57
- package/workflows/powers/devops-engineer/SKILL.md +120 -57
- package/workflows/powers/docker-kubernetes/POWER.md +94 -0
- package/workflows/powers/docker-kubernetes/SKILL.md +91 -0
- package/workflows/powers/docker-kubernetes/references/dockerfile-optimization-checklist.md +35 -0
- package/workflows/powers/docker-kubernetes/references/kubernetes-deployment-patterns.md +59 -0
- package/workflows/powers/documentation-templates/POWER.md +158 -127
- package/workflows/powers/documentation-templates/SKILL.md +158 -127
- package/workflows/powers/drizzle-expert/POWER.md +66 -0
- package/workflows/powers/drizzle-expert/SKILL.md +63 -0
- package/workflows/powers/drizzle-expert/references/runtime-pairing-matrix.md +16 -0
- package/workflows/powers/drizzle-expert/references/schema-and-migration-playbook.md +18 -0
- package/workflows/powers/error-ux-observability/POWER.md +144 -131
- package/workflows/powers/error-ux-observability/SKILL.md +143 -131
- package/workflows/powers/fastapi-expert/POWER.md +46 -60
- package/workflows/powers/fastapi-expert/SKILL.md +46 -60
- package/workflows/powers/firebase/POWER.md +65 -0
- package/workflows/powers/firebase/SKILL.md +62 -0
- package/workflows/powers/firebase/references/platform-routing.md +16 -0
- package/workflows/powers/firebase/references/rules-and-indexes-checklist.md +11 -0
- package/workflows/powers/flutter-design-system/POWER.md +63 -0
- package/workflows/powers/flutter-design-system/SKILL.md +60 -0
- package/workflows/powers/flutter-design-system/references/shared-widgets.md +29 -0
- package/workflows/powers/flutter-design-system/references/tokens-and-theme.md +34 -0
- package/workflows/powers/flutter-drift/POWER.md +65 -0
- package/workflows/powers/flutter-drift/SKILL.md +62 -0
- package/workflows/powers/flutter-drift/references/migrations.md +22 -0
- package/workflows/powers/flutter-drift/references/query-patterns.md +26 -0
- package/workflows/powers/flutter-feature/POWER.md +65 -0
- package/workflows/powers/flutter-feature/SKILL.md +62 -0
- package/workflows/powers/flutter-feature/references/architecture-rules.md +85 -0
- package/workflows/powers/flutter-feature/references/composite-provider.md +58 -0
- package/workflows/powers/flutter-feature/references/outbox-pattern.md +87 -0
- package/workflows/powers/flutter-feature/references/testing-patterns.md +218 -0
- package/workflows/powers/flutter-go-router/POWER.md +64 -0
- package/workflows/powers/flutter-go-router/SKILL.md +61 -0
- package/workflows/powers/flutter-go-router/references/guards-and-deeplinks.md +20 -0
- package/workflows/powers/flutter-go-router/references/typed-routes.md +27 -0
- package/workflows/powers/flutter-offline-sync/POWER.md +62 -0
- package/workflows/powers/flutter-offline-sync/SKILL.md +59 -0
- package/workflows/powers/flutter-offline-sync/references/outbox-full.md +44 -0
- package/workflows/powers/flutter-repository/POWER.md +64 -0
- package/workflows/powers/flutter-repository/SKILL.md +61 -0
- package/workflows/powers/flutter-repository/references/drift-patterns.md +21 -0
- package/workflows/powers/flutter-repository/references/retrofit-patterns.md +20 -0
- package/workflows/powers/flutter-riverpod/POWER.md +70 -0
- package/workflows/powers/flutter-riverpod/SKILL.md +67 -0
- package/workflows/powers/flutter-riverpod/references/async-and-mutations.md +19 -0
- package/workflows/powers/flutter-riverpod/references/async-lifecycle.md +19 -0
- package/workflows/powers/flutter-riverpod/references/provider-selection.md +20 -0
- package/workflows/powers/flutter-riverpod/references/testing.md +21 -0
- package/workflows/powers/flutter-riverpod/references/version-matrix.md +24 -0
- package/workflows/powers/flutter-state-machine/POWER.md +62 -0
- package/workflows/powers/flutter-state-machine/SKILL.md +59 -0
- package/workflows/powers/flutter-state-machine/references/app-state-contract.md +23 -0
- package/workflows/powers/flutter-state-machine/references/ui-rendering.md +14 -0
- package/workflows/powers/flutter-testing/POWER.md +64 -0
- package/workflows/powers/flutter-testing/SKILL.md +61 -0
- package/workflows/powers/flutter-testing/references/offline-sync-tests.md +16 -0
- package/workflows/powers/flutter-testing/references/test-layers.md +33 -0
- package/workflows/powers/frontend-code-review/POWER.md +137 -0
- package/workflows/powers/frontend-code-review/SKILL.md +134 -0
- package/workflows/powers/frontend-code-review/references/common-antipatterns.md +86 -0
- package/workflows/powers/frontend-code-review/references/performance-budgets.md +56 -0
- package/workflows/powers/frontend-code-review/references/review-checklists.md +47 -0
- package/workflows/powers/frontend-design/POWER.md +163 -362
- package/workflows/powers/frontend-design/SKILL.md +163 -362
- package/workflows/powers/game-development/POWER.md +57 -140
- package/workflows/powers/game-development/SKILL.md +57 -140
- package/workflows/powers/geo-fundamentals/POWER.md +64 -126
- package/workflows/powers/geo-fundamentals/SKILL.md +64 -127
- package/workflows/powers/git-workflow/POWER.md +135 -0
- package/workflows/powers/git-workflow/SKILL.md +132 -0
- package/workflows/powers/git-workflow/references/pr-review-checklist.md +63 -0
- package/workflows/powers/golang-pro/POWER.md +46 -35
- package/workflows/powers/golang-pro/SKILL.md +46 -35
- package/workflows/powers/graphql-architect/POWER.md +44 -62
- package/workflows/powers/graphql-architect/SKILL.md +44 -62
- package/workflows/powers/i18n-localization/POWER.md +118 -103
- package/workflows/powers/i18n-localization/SKILL.md +118 -103
- package/workflows/powers/java-pro/POWER.md +47 -22
- package/workflows/powers/java-pro/SKILL.md +47 -22
- package/workflows/powers/javascript-pro/POWER.md +47 -34
- package/workflows/powers/javascript-pro/SKILL.md +47 -34
- package/workflows/powers/kotlin-pro/POWER.md +46 -23
- package/workflows/powers/kotlin-pro/SKILL.md +46 -23
- package/workflows/powers/legacy-modernizer/POWER.md +43 -60
- package/workflows/powers/legacy-modernizer/SKILL.md +43 -60
- package/workflows/powers/mcp-builder/POWER.md +65 -0
- package/workflows/powers/mcp-builder/SKILL.md +62 -0
- package/workflows/powers/mcp-builder/references/testing-and-evals.md +17 -0
- package/workflows/powers/mcp-builder/references/transport-and-tool-design.md +17 -0
- package/workflows/powers/microservices-architect/POWER.md +43 -70
- package/workflows/powers/microservices-architect/SKILL.md +43 -70
- package/workflows/powers/mobile-design/POWER.md +110 -345
- package/workflows/powers/mobile-design/SKILL.md +110 -345
- package/workflows/powers/mongodb/POWER.md +67 -0
- package/workflows/powers/mongodb/SKILL.md +64 -0
- package/workflows/powers/mongodb/references/mongodb-checklist.md +20 -0
- package/workflows/powers/mysql/POWER.md +67 -0
- package/workflows/powers/mysql/SKILL.md +64 -0
- package/workflows/powers/mysql/references/mysql-checklist.md +20 -0
- package/workflows/powers/neki/POWER.md +67 -0
- package/workflows/powers/neki/SKILL.md +64 -0
- package/workflows/powers/neki/references/neki-checklist.md +18 -0
- package/workflows/powers/nestjs-expert/POWER.md +45 -91
- package/workflows/powers/nestjs-expert/SKILL.md +45 -91
- package/workflows/powers/nextjs-developer/POWER.md +51 -44
- package/workflows/powers/nextjs-developer/SKILL.md +51 -44
- package/workflows/powers/nodejs-best-practices/POWER.md +48 -29
- package/workflows/powers/nodejs-best-practices/SKILL.md +48 -29
- package/workflows/powers/observability/POWER.md +109 -0
- package/workflows/powers/observability/SKILL.md +106 -0
- package/workflows/powers/observability/references/alerting-and-slo-checklist.md +87 -0
- package/workflows/powers/observability/references/opentelemetry-setup-guide.md +121 -0
- package/workflows/powers/openai-docs/POWER.md +61 -0
- package/workflows/powers/openai-docs/SKILL.md +58 -0
- package/workflows/powers/openai-docs/references/official-source-playbook.md +10 -0
- package/workflows/powers/performance-profiling/POWER.md +61 -114
- package/workflows/powers/performance-profiling/SKILL.md +61 -114
- package/workflows/powers/php-pro/POWER.md +116 -0
- package/workflows/powers/php-pro/SKILL.md +113 -0
- package/workflows/powers/php-pro/references/architecture-and-di.md +239 -0
- package/workflows/powers/php-pro/references/modern-php-features.md +189 -0
- package/workflows/powers/php-pro/references/performance-and-deployment.md +197 -0
- package/workflows/powers/php-pro/references/php84-strict-typing-checklist.md +161 -0
- package/workflows/powers/php-pro/references/testing-and-static-analysis.md +235 -0
- package/workflows/powers/playwright-e2e/POWER.md +85 -0
- package/workflows/powers/playwright-e2e/SKILL.md +82 -0
- package/workflows/powers/playwright-e2e/references/locator-trace-flake-checklist.md +80 -0
- package/workflows/powers/postgres/POWER.md +67 -0
- package/workflows/powers/postgres/SKILL.md +64 -0
- package/workflows/powers/postgres/references/postgres-checklist.md +20 -0
- package/workflows/powers/prompt-engineer/POWER.md +47 -30
- package/workflows/powers/prompt-engineer/SKILL.md +47 -30
- package/workflows/powers/python-pro/POWER.md +47 -36
- package/workflows/powers/python-pro/SKILL.md +47 -36
- package/workflows/powers/react-best-practices/POWER.md +56 -33
- package/workflows/powers/react-best-practices/SKILL.md +56 -33
- package/workflows/powers/react-expert/POWER.md +47 -37
- package/workflows/powers/react-expert/SKILL.md +47 -37
- package/workflows/powers/redis/POWER.md +67 -0
- package/workflows/powers/redis/SKILL.md +64 -0
- package/workflows/powers/redis/references/redis-checklist.md +19 -0
- package/workflows/powers/ruby-pro/POWER.md +118 -0
- package/workflows/powers/ruby-pro/SKILL.md +115 -0
- package/workflows/powers/ruby-pro/references/modern-ruby-features.md +189 -0
- package/workflows/powers/ruby-pro/references/object-design-patterns.md +220 -0
- package/workflows/powers/ruby-pro/references/performance-and-profiling.md +224 -0
- package/workflows/powers/ruby-pro/references/ruby-concurrency-and-testing.md +190 -0
- package/workflows/powers/ruby-pro/references/testing-and-rspec.md +236 -0
- package/workflows/powers/rust-pro/POWER.md +45 -31
- package/workflows/powers/rust-pro/SKILL.md +45 -31
- package/workflows/powers/security-engineer/POWER.md +129 -0
- package/workflows/powers/security-engineer/SKILL.md +126 -0
- package/workflows/powers/seo-fundamentals/POWER.md +59 -102
- package/workflows/powers/seo-fundamentals/SKILL.md +59 -102
- package/workflows/powers/serverless-patterns/POWER.md +171 -0
- package/workflows/powers/serverless-patterns/SKILL.md +168 -0
- package/workflows/powers/skill-creator/POWER.md +90 -0
- package/workflows/powers/skill-creator/SKILL.md +87 -0
- package/workflows/powers/skill-creator/references/platform-formats.md +181 -0
- package/workflows/powers/skill-creator/references/schemas.md +430 -0
- package/workflows/powers/spec-miner/POWER.md +49 -57
- package/workflows/powers/spec-miner/SKILL.md +49 -57
- package/workflows/powers/sqlite/POWER.md +67 -0
- package/workflows/powers/sqlite/SKILL.md +64 -0
- package/workflows/powers/sqlite/references/sqlite-checklist.md +19 -0
- package/workflows/powers/sre-engineer/POWER.md +123 -64
- package/workflows/powers/sre-engineer/SKILL.md +123 -64
- package/workflows/powers/static-analysis/POWER.md +121 -77
- package/workflows/powers/static-analysis/SKILL.md +121 -77
- package/workflows/powers/stripe-best-practices/POWER.md +140 -17
- package/workflows/powers/stripe-best-practices/SKILL.md +139 -17
- package/workflows/powers/supabase/POWER.md +67 -0
- package/workflows/powers/supabase/SKILL.md +64 -0
- package/workflows/powers/supabase/references/supabase-checklist.md +19 -0
- package/workflows/powers/swift-pro/POWER.md +118 -0
- package/workflows/powers/swift-pro/SKILL.md +115 -0
- package/workflows/powers/swift-pro/references/concurrency-patterns.md +165 -0
- package/workflows/powers/swift-pro/references/protocol-and-generics.md +172 -0
- package/workflows/powers/swift-pro/references/sendable-and-isolation.md +116 -0
- package/workflows/powers/swift-pro/references/swift-concurrency-and-protocols.md +260 -0
- package/workflows/powers/swift-pro/references/testing-and-packages.md +192 -0
- package/workflows/powers/tailwind-patterns/POWER.md +71 -240
- package/workflows/powers/tailwind-patterns/SKILL.md +71 -240
- package/workflows/powers/testing-patterns/POWER.md +155 -10
- package/workflows/powers/testing-patterns/SKILL.md +155 -10
- package/workflows/powers/typescript-pro/POWER.md +47 -38
- package/workflows/powers/typescript-pro/SKILL.md +47 -38
- package/workflows/powers/vitess/POWER.md +67 -0
- package/workflows/powers/vitess/SKILL.md +64 -0
- package/workflows/powers/vitess/references/vitess-checklist.md +19 -0
- package/workflows/powers/vulnerability-scanner/POWER.md +146 -10
- package/workflows/powers/vulnerability-scanner/SKILL.md +146 -10
- package/workflows/powers/web-perf/POWER.md +43 -170
- package/workflows/powers/web-perf/SKILL.md +43 -170
- package/workflows/powers/webapp-testing/POWER.md +43 -164
- package/workflows/powers/webapp-testing/SKILL.md +43 -164
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +65 -42
- package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +8 -6
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +65 -41
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +8 -6
- package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +9 -8
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +1 -1
|
@@ -2,23 +2,159 @@
|
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
4
|
name: vulnerability-scanner
|
|
5
|
-
description:
|
|
5
|
+
description: Scan dependencies for CVEs, perform SAST/DAST analysis, manage security advisories, and implement automated vulnerability management workflows.
|
|
6
|
+
license: Apache-2.0
|
|
6
7
|
metadata:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
author: cubis-foundry
|
|
9
|
+
version: "3.0"
|
|
10
|
+
compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
# Vulnerability Scanner
|
|
13
14
|
|
|
14
|
-
##
|
|
15
|
+
## Purpose
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
Guide dependency scanning, static/dynamic application security testing, CVE management, and automated vulnerability remediation workflows.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
## When to Use
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
- Auditing project dependencies for known vulnerabilities
|
|
22
|
+
- Setting up automated security scanning in CI/CD
|
|
23
|
+
- Triaging and remediating CVEs in dependencies
|
|
24
|
+
- Implementing SAST (static) or DAST (dynamic) security testing
|
|
25
|
+
- Managing security advisories and disclosure
|
|
26
|
+
- Building a software bill of materials (SBOM)
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
## Instructions
|
|
29
|
+
|
|
30
|
+
### Step 1 — Scan Dependencies
|
|
31
|
+
|
|
32
|
+
**Tools by ecosystem**:
|
|
33
|
+
| Ecosystem | Tool | Command |
|
|
34
|
+
|-----------|------|---------|
|
|
35
|
+
| npm | `npm audit` | `npm audit --production` |
|
|
36
|
+
| Node.js | Socket.dev | GitHub App |
|
|
37
|
+
| Python | pip-audit, Safety | `pip-audit` |
|
|
38
|
+
| Go | govulncheck | `govulncheck ./...` |
|
|
39
|
+
| Rust | cargo-audit | `cargo audit` |
|
|
40
|
+
| Multi-lang | Snyk, Dependabot, Trivy | `snyk test`, `trivy fs .` |
|
|
41
|
+
|
|
42
|
+
**Scan levels**:
|
|
43
|
+
|
|
44
|
+
- **Direct dependencies**: what you explicitly installed
|
|
45
|
+
- **Transitive dependencies**: dependencies of your dependencies (most vulnerabilities hide here)
|
|
46
|
+
- **Dev dependencies**: lower risk but still scan (supply chain attacks)
|
|
47
|
+
|
|
48
|
+
### Step 2 — Triage Vulnerabilities
|
|
49
|
+
|
|
50
|
+
**Severity assessment** (CVSS + context):
|
|
51
|
+
|
|
52
|
+
| CVSS | Severity | Response Time |
|
|
53
|
+
| -------- | -------- | ------------------------------ |
|
|
54
|
+
| 9.0-10.0 | Critical | Fix within 24 hours |
|
|
55
|
+
| 7.0-8.9 | High | Fix within 1 week |
|
|
56
|
+
| 4.0-6.9 | Medium | Fix within 1 month |
|
|
57
|
+
| 0.1-3.9 | Low | Fix at next maintenance window |
|
|
58
|
+
|
|
59
|
+
**Context reduces severity**:
|
|
60
|
+
|
|
61
|
+
- Dev-only dependency? Lower priority (unless it affects build output)
|
|
62
|
+
- Vulnerability requires network access but the dep runs client-side only? Lower priority
|
|
63
|
+
- Vulnerable function isn't used in your code? Document and monitor
|
|
64
|
+
|
|
65
|
+
**Decision matrix**:
|
|
66
|
+
| Can Update? | Is Exploitable? | Action |
|
|
67
|
+
|-------------|-----------------|--------|
|
|
68
|
+
| Yes | Yes | Update immediately |
|
|
69
|
+
| Yes | No | Update at next opportunity |
|
|
70
|
+
| No (breaking) | Yes | Fork/patch, or find alternative |
|
|
71
|
+
| No | No | Document, monitor, revisit |
|
|
72
|
+
|
|
73
|
+
### Step 3 — Remediate
|
|
74
|
+
|
|
75
|
+
**Update strategies**:
|
|
76
|
+
|
|
77
|
+
1. **Direct update**: bump the vulnerable package (preferred)
|
|
78
|
+
2. **Override/resolution**: force transitive dependency version (npm overrides, yarn resolutions)
|
|
79
|
+
3. **Fork and patch**: fork the dep, apply security fix, use your fork
|
|
80
|
+
4. **Replace**: switch to an alternative package
|
|
81
|
+
5. **Mitigate**: add application-level controls (input validation, WAF rules) while working on a fix
|
|
82
|
+
|
|
83
|
+
**Testing after remediation**:
|
|
84
|
+
|
|
85
|
+
- Run full test suite
|
|
86
|
+
- Check for breaking changes in the updated dependency
|
|
87
|
+
- Verify the vulnerability is actually fixed (`npm audit` should show resolved)
|
|
88
|
+
- Deploy to staging before production
|
|
89
|
+
|
|
90
|
+
### Step 4 — Automate in CI/CD
|
|
91
|
+
|
|
92
|
+
**Pipeline integration**:
|
|
93
|
+
|
|
94
|
+
```yaml
|
|
95
|
+
# GitHub Actions example
|
|
96
|
+
security-scan:
|
|
97
|
+
runs-on: ubuntu-latest
|
|
98
|
+
steps:
|
|
99
|
+
- uses: actions/checkout@v4
|
|
100
|
+
- run: npm ci
|
|
101
|
+
- run: npm audit --production --audit-level=high
|
|
102
|
+
- name: Run Trivy
|
|
103
|
+
uses: aquasecurity/trivy-action@master
|
|
104
|
+
with:
|
|
105
|
+
scan-type: "fs"
|
|
106
|
+
severity: "HIGH,CRITICAL"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Policy**:
|
|
110
|
+
|
|
111
|
+
- Block PRs with critical/high vulnerabilities
|
|
112
|
+
- Auto-create tickets for medium vulnerabilities
|
|
113
|
+
- Dashboard for low-severity tracking
|
|
114
|
+
- Weekly automated dependency update PRs (Dependabot, Renovate)
|
|
115
|
+
|
|
116
|
+
### Step 5 — Generate SBOM
|
|
117
|
+
|
|
118
|
+
**Software Bill of Materials** — inventory of all components:
|
|
119
|
+
|
|
120
|
+
- Use CycloneDX or SPDX format
|
|
121
|
+
- Generate on every release
|
|
122
|
+
- Include in release artifacts
|
|
123
|
+
- Required for many compliance frameworks
|
|
124
|
+
|
|
125
|
+
**Command examples**:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# Node.js
|
|
129
|
+
npx @cyclonedx/cyclonedx-npm --output-file sbom.json
|
|
130
|
+
|
|
131
|
+
# Container
|
|
132
|
+
trivy image --format cyclonedx myapp:latest > sbom.json
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Output Format
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
## Scan Results
|
|
139
|
+
[vulnerability count by severity]
|
|
140
|
+
|
|
141
|
+
## Critical/High Findings
|
|
142
|
+
[CVE ID, package, severity, fix version, exploitability]
|
|
143
|
+
|
|
144
|
+
## Remediation Plan
|
|
145
|
+
[priority-ordered fixes with commands]
|
|
146
|
+
|
|
147
|
+
## CI Configuration
|
|
148
|
+
[automated scanning pipeline config]
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Examples
|
|
152
|
+
|
|
153
|
+
**User**: "Audit our project dependencies for security vulnerabilities"
|
|
154
|
+
|
|
155
|
+
**Response approach**: Run `npm audit` (or equivalent). List all vulnerabilities by severity. For each critical/high: explain the CVE, check if the vulnerable function is used, provide update command. Suggest adding to CI pipeline.
|
|
156
|
+
|
|
157
|
+
**User**: "We have a critical CVE in a transitive dependency we can't update"
|
|
158
|
+
|
|
159
|
+
**Response approach**: Check if the vulnerability is exploitable in context. Use npm overrides to force the patched version of the transitive dep. If not possible, check for alternative packages. Document the mitigation. Set up monitoring for a proper fix.
|
|
24
160
|
````
|
|
@@ -1,21 +1,157 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vulnerability-scanner
|
|
3
|
-
description:
|
|
3
|
+
description: Scan dependencies for CVEs, perform SAST/DAST analysis, manage security advisories, and implement automated vulnerability management workflows.
|
|
4
|
+
license: Apache-2.0
|
|
4
5
|
metadata:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
author: cubis-foundry
|
|
7
|
+
version: "3.0"
|
|
8
|
+
compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
|
|
8
9
|
---
|
|
9
10
|
|
|
10
11
|
# Vulnerability Scanner
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
+
## Purpose
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
Guide dependency scanning, static/dynamic application security testing, CVE management, and automated vulnerability remediation workflows.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
## When to Use
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
- Auditing project dependencies for known vulnerabilities
|
|
20
|
+
- Setting up automated security scanning in CI/CD
|
|
21
|
+
- Triaging and remediating CVEs in dependencies
|
|
22
|
+
- Implementing SAST (static) or DAST (dynamic) security testing
|
|
23
|
+
- Managing security advisories and disclosure
|
|
24
|
+
- Building a software bill of materials (SBOM)
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
## Instructions
|
|
27
|
+
|
|
28
|
+
### Step 1 — Scan Dependencies
|
|
29
|
+
|
|
30
|
+
**Tools by ecosystem**:
|
|
31
|
+
| Ecosystem | Tool | Command |
|
|
32
|
+
|-----------|------|---------|
|
|
33
|
+
| npm | `npm audit` | `npm audit --production` |
|
|
34
|
+
| Node.js | Socket.dev | GitHub App |
|
|
35
|
+
| Python | pip-audit, Safety | `pip-audit` |
|
|
36
|
+
| Go | govulncheck | `govulncheck ./...` |
|
|
37
|
+
| Rust | cargo-audit | `cargo audit` |
|
|
38
|
+
| Multi-lang | Snyk, Dependabot, Trivy | `snyk test`, `trivy fs .` |
|
|
39
|
+
|
|
40
|
+
**Scan levels**:
|
|
41
|
+
|
|
42
|
+
- **Direct dependencies**: what you explicitly installed
|
|
43
|
+
- **Transitive dependencies**: dependencies of your dependencies (most vulnerabilities hide here)
|
|
44
|
+
- **Dev dependencies**: lower risk but still scan (supply chain attacks)
|
|
45
|
+
|
|
46
|
+
### Step 2 — Triage Vulnerabilities
|
|
47
|
+
|
|
48
|
+
**Severity assessment** (CVSS + context):
|
|
49
|
+
|
|
50
|
+
| CVSS | Severity | Response Time |
|
|
51
|
+
| -------- | -------- | ------------------------------ |
|
|
52
|
+
| 9.0-10.0 | Critical | Fix within 24 hours |
|
|
53
|
+
| 7.0-8.9 | High | Fix within 1 week |
|
|
54
|
+
| 4.0-6.9 | Medium | Fix within 1 month |
|
|
55
|
+
| 0.1-3.9 | Low | Fix at next maintenance window |
|
|
56
|
+
|
|
57
|
+
**Context reduces severity**:
|
|
58
|
+
|
|
59
|
+
- Dev-only dependency? Lower priority (unless it affects build output)
|
|
60
|
+
- Vulnerability requires network access but the dep runs client-side only? Lower priority
|
|
61
|
+
- Vulnerable function isn't used in your code? Document and monitor
|
|
62
|
+
|
|
63
|
+
**Decision matrix**:
|
|
64
|
+
| Can Update? | Is Exploitable? | Action |
|
|
65
|
+
|-------------|-----------------|--------|
|
|
66
|
+
| Yes | Yes | Update immediately |
|
|
67
|
+
| Yes | No | Update at next opportunity |
|
|
68
|
+
| No (breaking) | Yes | Fork/patch, or find alternative |
|
|
69
|
+
| No | No | Document, monitor, revisit |
|
|
70
|
+
|
|
71
|
+
### Step 3 — Remediate
|
|
72
|
+
|
|
73
|
+
**Update strategies**:
|
|
74
|
+
|
|
75
|
+
1. **Direct update**: bump the vulnerable package (preferred)
|
|
76
|
+
2. **Override/resolution**: force transitive dependency version (npm overrides, yarn resolutions)
|
|
77
|
+
3. **Fork and patch**: fork the dep, apply security fix, use your fork
|
|
78
|
+
4. **Replace**: switch to an alternative package
|
|
79
|
+
5. **Mitigate**: add application-level controls (input validation, WAF rules) while working on a fix
|
|
80
|
+
|
|
81
|
+
**Testing after remediation**:
|
|
82
|
+
|
|
83
|
+
- Run full test suite
|
|
84
|
+
- Check for breaking changes in the updated dependency
|
|
85
|
+
- Verify the vulnerability is actually fixed (`npm audit` should show resolved)
|
|
86
|
+
- Deploy to staging before production
|
|
87
|
+
|
|
88
|
+
### Step 4 — Automate in CI/CD
|
|
89
|
+
|
|
90
|
+
**Pipeline integration**:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
# GitHub Actions example
|
|
94
|
+
security-scan:
|
|
95
|
+
runs-on: ubuntu-latest
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/checkout@v4
|
|
98
|
+
- run: npm ci
|
|
99
|
+
- run: npm audit --production --audit-level=high
|
|
100
|
+
- name: Run Trivy
|
|
101
|
+
uses: aquasecurity/trivy-action@master
|
|
102
|
+
with:
|
|
103
|
+
scan-type: "fs"
|
|
104
|
+
severity: "HIGH,CRITICAL"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Policy**:
|
|
108
|
+
|
|
109
|
+
- Block PRs with critical/high vulnerabilities
|
|
110
|
+
- Auto-create tickets for medium vulnerabilities
|
|
111
|
+
- Dashboard for low-severity tracking
|
|
112
|
+
- Weekly automated dependency update PRs (Dependabot, Renovate)
|
|
113
|
+
|
|
114
|
+
### Step 5 — Generate SBOM
|
|
115
|
+
|
|
116
|
+
**Software Bill of Materials** — inventory of all components:
|
|
117
|
+
|
|
118
|
+
- Use CycloneDX or SPDX format
|
|
119
|
+
- Generate on every release
|
|
120
|
+
- Include in release artifacts
|
|
121
|
+
- Required for many compliance frameworks
|
|
122
|
+
|
|
123
|
+
**Command examples**:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Node.js
|
|
127
|
+
npx @cyclonedx/cyclonedx-npm --output-file sbom.json
|
|
128
|
+
|
|
129
|
+
# Container
|
|
130
|
+
trivy image --format cyclonedx myapp:latest > sbom.json
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Output Format
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
## Scan Results
|
|
137
|
+
[vulnerability count by severity]
|
|
138
|
+
|
|
139
|
+
## Critical/High Findings
|
|
140
|
+
[CVE ID, package, severity, fix version, exploitability]
|
|
141
|
+
|
|
142
|
+
## Remediation Plan
|
|
143
|
+
[priority-ordered fixes with commands]
|
|
144
|
+
|
|
145
|
+
## CI Configuration
|
|
146
|
+
[automated scanning pipeline config]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Examples
|
|
150
|
+
|
|
151
|
+
**User**: "Audit our project dependencies for security vulnerabilities"
|
|
152
|
+
|
|
153
|
+
**Response approach**: Run `npm audit` (or equivalent). List all vulnerabilities by severity. For each critical/high: explain the CVE, check if the vulnerable function is used, provide update command. Suggest adding to CI pipeline.
|
|
154
|
+
|
|
155
|
+
**User**: "We have a critical CVE in a transitive dependency we can't update"
|
|
156
|
+
|
|
157
|
+
**Response approach**: Check if the vulnerability is exploitable in context. Use npm overrides to force the patched version of the transitive dep. If not possible, check for alternative packages. Document the mitigation. Set up monitoring for a proper fix.
|
|
@@ -2,195 +2,68 @@
|
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
4
|
name: web-perf
|
|
5
|
-
description:
|
|
5
|
+
description: "Use for measuring and improving web performance with Core Web Vitals, rendering-path analysis, bundle and network prioritization, and framework-aware delivery tradeoffs."
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
author: cubis-foundry
|
|
9
|
+
version: "3.0"
|
|
10
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
6
11
|
---
|
|
7
12
|
|
|
8
|
-
# Web
|
|
13
|
+
# Web Perf
|
|
9
14
|
|
|
10
|
-
|
|
15
|
+
## Purpose
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
Use for measuring and improving web performance with Core Web Vitals, rendering-path analysis, bundle and network prioritization, and framework-aware delivery tradeoffs.
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
## When to Use
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
- Auditing or improving Core Web Vitals and page-load behavior.
|
|
22
|
+
- Investigating slow rendering, hydration cost, bundle growth, or network waterfalls.
|
|
23
|
+
- Prioritizing frontend performance work by measured impact.
|
|
24
|
+
- Reviewing whether framework choices are helping or hurting delivery performance.
|
|
17
25
|
|
|
18
|
-
|
|
19
|
-
"chrome-devtools": {
|
|
20
|
-
"type": "local",
|
|
21
|
-
"command": ["npx", "-y", "chrome-devtools-mcp@latest"]
|
|
22
|
-
}
|
|
23
|
-
```
|
|
26
|
+
## Instructions
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
1. Measure first and identify the user-visible bottleneck.
|
|
29
|
+
2. Separate document, network, bundle, render, and interaction causes.
|
|
30
|
+
3. Fix the highest-impact path before touching low-value micro-optimizations.
|
|
31
|
+
4. Verify the tradeoff does not regress accessibility, caching, or maintainability.
|
|
32
|
+
5. Re-measure and report impact in concrete terms.
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
- **Verify before recommending**: Confirm something is unused before suggesting removal.
|
|
29
|
-
- **Quantify impact**: Use estimated savings from insights. Don't prioritize changes with 0ms impact.
|
|
30
|
-
- **Skip non-issues**: If render-blocking resources have 0ms estimated impact, note but don't recommend action.
|
|
31
|
-
- **Be specific**: Say "compress hero.png (450KB) to WebP" not "optimize images".
|
|
32
|
-
- **Prioritize ruthlessly**: A site with 200ms LCP and 0 CLS is already excellent—say so.
|
|
34
|
+
### Baseline standards
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
- Prioritize LCP, INP, and CLS with real bottleneck evidence.
|
|
37
|
+
- Keep critical resources discoverable and cacheable.
|
|
38
|
+
- Reduce hydration and JavaScript cost when server rendering can do the work.
|
|
39
|
+
- Treat bundle size, network order, and rendering behavior as one system.
|
|
40
|
+
- Prefer targeted fixes over generic “optimize everything” advice.
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|------|-----------|
|
|
38
|
-
| Load page | `navigate_page(url: "...")` |
|
|
39
|
-
| Start trace | `performance_start_trace(autoStop: true, reload: true)` |
|
|
40
|
-
| Analyze insight | `performance_analyze_insight(insightSetId: "...", insightName: "...")` |
|
|
41
|
-
| List requests | `list_network_requests(resourceTypes: ["Script", "Stylesheet", ...])` |
|
|
42
|
-
| Request details | `get_network_request(reqid: <id>)` |
|
|
43
|
-
| A11y snapshot | `take_snapshot(verbose: true)` |
|
|
42
|
+
### Constraints
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
- Avoid recommending changes with no measured impact.
|
|
45
|
+
- Avoid fixating on bundle size while ignoring render path or network ordering.
|
|
46
|
+
- Avoid using performance tooling output without codebase context.
|
|
47
|
+
- Avoid trading correctness or accessibility for tiny synthetic wins.
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
Audit Progress:
|
|
51
|
-
- [ ] Phase 1: Performance trace (navigate + record)
|
|
52
|
-
- [ ] Phase 2: Core Web Vitals analysis (includes CLS culprits)
|
|
53
|
-
- [ ] Phase 3: Network analysis
|
|
54
|
-
- [ ] Phase 4: Accessibility snapshot
|
|
55
|
-
- [ ] Phase 5: Codebase analysis (skip if third-party site)
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Phase 1: Performance Trace
|
|
59
|
-
|
|
60
|
-
1. Navigate to the target URL:
|
|
61
|
-
```
|
|
62
|
-
navigate_page(url: "<target-url>")
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
2. Start a performance trace with reload to capture cold-load metrics:
|
|
66
|
-
```
|
|
67
|
-
performance_start_trace(autoStop: true, reload: true)
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
3. Wait for trace completion, then retrieve results.
|
|
71
|
-
|
|
72
|
-
**Troubleshooting:**
|
|
73
|
-
- If trace returns empty or fails, verify the page loaded correctly with `navigate_page` first
|
|
74
|
-
- If insight names don't match, inspect the trace response to list available insights
|
|
75
|
-
|
|
76
|
-
### Phase 2: Core Web Vitals Analysis
|
|
77
|
-
|
|
78
|
-
Use `performance_analyze_insight` to extract key metrics.
|
|
79
|
-
|
|
80
|
-
**Note:** Insight names may vary across Chrome DevTools versions. If an insight name doesn't work, check the `insightSetId` from the trace response to discover available insights.
|
|
81
|
-
|
|
82
|
-
Common insight names:
|
|
83
|
-
|
|
84
|
-
| Metric | Insight Name | What to Look For |
|
|
85
|
-
|--------|--------------|------------------|
|
|
86
|
-
| LCP | `LCPBreakdown` | Time to largest contentful paint; breakdown of TTFB, resource load, render delay |
|
|
87
|
-
| CLS | `CLSCulprits` | Elements causing layout shifts (images without dimensions, injected content, font swaps) |
|
|
88
|
-
| Render Blocking | `RenderBlocking` | CSS/JS blocking first paint |
|
|
89
|
-
| Document Latency | `DocumentLatency` | Server response time issues |
|
|
90
|
-
| Network Dependencies | `NetworkRequestsDepGraph` | Request chains delaying critical resources |
|
|
91
|
-
|
|
92
|
-
Example:
|
|
93
|
-
```
|
|
94
|
-
performance_analyze_insight(insightSetId: "<id-from-trace>", insightName: "LCPBreakdown")
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Key thresholds (good/needs-improvement/poor):**
|
|
98
|
-
- TTFB: < 800ms / < 1.8s / > 1.8s
|
|
99
|
-
- FCP: < 1.8s / < 3s / > 3s
|
|
100
|
-
- LCP: < 2.5s / < 4s / > 4s
|
|
101
|
-
- INP: < 200ms / < 500ms / > 500ms
|
|
102
|
-
- TBT: < 200ms / < 600ms / > 600ms
|
|
103
|
-
- CLS: < 0.1 / < 0.25 / > 0.25
|
|
104
|
-
- Speed Index: < 3.4s / < 5.8s / > 5.8s
|
|
105
|
-
|
|
106
|
-
### Phase 3: Network Analysis
|
|
107
|
-
|
|
108
|
-
List all network requests to identify optimization opportunities:
|
|
109
|
-
```
|
|
110
|
-
list_network_requests(resourceTypes: ["Script", "Stylesheet", "Document", "Font", "Image"])
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Look for:**
|
|
114
|
-
|
|
115
|
-
1. **Render-blocking resources**: JS/CSS in `<head>` without `async`/`defer`/`media` attributes
|
|
116
|
-
2. **Network chains**: Resources discovered late because they depend on other resources loading first (e.g., CSS imports, JS-loaded fonts)
|
|
117
|
-
3. **Missing preloads**: Critical resources (fonts, hero images, key scripts) not preloaded
|
|
118
|
-
4. **Caching issues**: Missing or weak `Cache-Control`, `ETag`, or `Last-Modified` headers
|
|
119
|
-
5. **Large payloads**: Uncompressed or oversized JS/CSS bundles
|
|
120
|
-
6. **Unused preconnects**: If flagged, verify by checking if ANY requests went to that origin. If zero requests, it's definitively unused—recommend removal. If requests exist but loaded late, the preconnect may still be valuable.
|
|
121
|
-
|
|
122
|
-
For detailed request info:
|
|
123
|
-
```
|
|
124
|
-
get_network_request(reqid: <id>)
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Phase 4: Accessibility Snapshot
|
|
128
|
-
|
|
129
|
-
Take an accessibility tree snapshot:
|
|
130
|
-
```
|
|
131
|
-
take_snapshot(verbose: true)
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**Flag high-level gaps:**
|
|
135
|
-
- Missing or duplicate ARIA IDs
|
|
136
|
-
- Elements with poor contrast ratios (check against WCAG AA: 4.5:1 for normal text, 3:1 for large text)
|
|
137
|
-
- Focus traps or missing focus indicators
|
|
138
|
-
- Interactive elements without accessible names
|
|
139
|
-
|
|
140
|
-
## Phase 5: Codebase Analysis
|
|
141
|
-
|
|
142
|
-
**Skip if auditing a third-party site without codebase access.**
|
|
143
|
-
|
|
144
|
-
Analyze the codebase to understand where improvements can be made.
|
|
145
|
-
|
|
146
|
-
### Detect Framework & Bundler
|
|
147
|
-
|
|
148
|
-
Search for configuration files to identify the stack:
|
|
149
|
-
|
|
150
|
-
| Tool | Config Files |
|
|
151
|
-
|------|--------------|
|
|
152
|
-
| Webpack | `webpack.config.js`, `webpack.*.js` |
|
|
153
|
-
| Vite | `vite.config.js`, `vite.config.ts` |
|
|
154
|
-
| Rollup | `rollup.config.js`, `rollup.config.mjs` |
|
|
155
|
-
| esbuild | `esbuild.config.js`, build scripts with `esbuild` |
|
|
156
|
-
| Parcel | `.parcelrc`, `package.json` (parcel field) |
|
|
157
|
-
| Next.js | `next.config.js`, `next.config.mjs` |
|
|
158
|
-
| Nuxt | `nuxt.config.js`, `nuxt.config.ts` |
|
|
159
|
-
| SvelteKit | `svelte.config.js` |
|
|
160
|
-
| Astro | `astro.config.mjs` |
|
|
161
|
-
|
|
162
|
-
Also check `package.json` for framework dependencies and build scripts.
|
|
163
|
-
|
|
164
|
-
### Tree-Shaking & Dead Code
|
|
165
|
-
|
|
166
|
-
- **Webpack**: Check for `mode: 'production'`, `sideEffects` in package.json, `usedExports` optimization
|
|
167
|
-
- **Vite/Rollup**: Tree-shaking enabled by default; check for `treeshake` options
|
|
168
|
-
- **Look for**: Barrel files (`index.js` re-exports), large utility libraries imported wholesale (lodash, moment)
|
|
169
|
-
|
|
170
|
-
### Unused JS/CSS
|
|
49
|
+
## Output Format
|
|
171
50
|
|
|
172
|
-
|
|
173
|
-
- Look for PurgeCSS/UnCSS configuration (Tailwind's `content` config)
|
|
174
|
-
- Identify dynamic imports vs. eager loading
|
|
51
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
175
52
|
|
|
176
|
-
|
|
53
|
+
## References
|
|
177
54
|
|
|
178
|
-
|
|
179
|
-
- Look for `core-js` imports (often oversized)
|
|
180
|
-
- Check `browserslist` config for overly broad targeting
|
|
55
|
+
Load on demand. Do not preload all reference files.
|
|
181
56
|
|
|
182
|
-
|
|
57
|
+
| File | Load when |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| `references/core-web-vitals-triage.md` | You need a stronger playbook for CWV bottleneck isolation, bundle/network/render tradeoffs, and verification after a fix. |
|
|
183
60
|
|
|
184
|
-
|
|
185
|
-
- Look for gzip/brotli compression in build output or server config
|
|
186
|
-
- Check for source maps in production builds (should be external or disabled)
|
|
61
|
+
## Scripts
|
|
187
62
|
|
|
188
|
-
|
|
63
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
189
64
|
|
|
190
|
-
|
|
65
|
+
## Examples
|
|
191
66
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
3. **Recommendations** - Specific, actionable fixes with code snippets or config changes
|
|
195
|
-
4. **Codebase Findings** - Framework/bundler detected, optimization opportunities (omit if no codebase access)
|
|
67
|
+
- "Help me with web perf best practices in this project"
|
|
68
|
+
- "Review my web perf implementation for issues"
|
|
196
69
|
````
|