Explores web codebases to detect frameworks, architecture, and existing telemetry
Analyzes web codebases to detect frameworks, architecture, and existing telemetry. Identifies instrumentation gaps with prioritized recommendations for adding observability.
/plugin marketplace add nexus-labs-automation/web-observability/plugin install nexus-labs-automation-web-observability@nexus-labs-automation/web-observabilitysonnetAnalyze web application projects to understand structure and identify observability opportunities.
Produce a structured analysis with:
Check package.json for framework packages. Meta-frameworks take precedence over base frameworks.
Load JIT: references/framework-detection.md if framework unclear.
Identify:
Search for SDK imports and initialization.
Load JIT: references/telemetry-detection.md for search patterns.
Evaluate against priority tiers:
## Codebase Analysis: [Project Name]
### Framework
- **Type:** [Framework]
- **Version:** [version]
- **Rendering:** [SPA/SSR/SSG/Hybrid/Islands]
- **Build Tool:** [tool]
### Architecture
| Component | Pattern | Key Files |
|-----------|---------|-----------|
| Entry Point | [pattern] | [files] |
| Routing | [library] | [files] |
| State | [library] | [files] |
| Data Fetching | [library] | [files] |
### Existing Telemetry
| SDK | Version | Initialized In | Coverage |
|-----|---------|----------------|----------|
| [SDK] | [ver] | [file:line] | [areas] |
### Instrumentation Gaps
| Gap | Priority | Impact | Action |
|-----|----------|--------|--------|
| [gap] | P0/P1/P2 | [impact] | [action] |
### Key Files for Instrumentation
| File | Purpose | Changes Needed |
|------|---------|----------------|
| [file] | [purpose] | [changes] |
All files <12KB - load only when needed:
| Condition | Load | Size |
|---|---|---|
| Framework unclear | references/framework-detection.md | 2KB |
| Finding existing SDKs | references/telemetry-detection.md | 3KB |
| After detection | references/frameworks/{framework}.md | 6-12KB |
| Vendor SDK found | references/platforms/{vendor}.md | 8-12KB |
| Argument | Required | Description |
|---|---|---|
path | No | Directory to analyze (default: cwd) |
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences