Skip to main content

/detect-product

Product reality extraction with evidence-backed features, monetization, and metrics.


What It Does

Extracts the "product reality" from the repository with evidence-backed detection. Supports light mode (default, 1 summary file with Tentative-confidence features) and full mode (--full, 7 detailed files with 3-layer evidence model).


Usage

/detect-product [repo] [--full]
ArgumentRequiredDescription
repoNoTarget repository (defaults to current)
--fullNoRun full analysis (7 detection steps, 7 output files). Default is light mode.

Light mode (default): Scans routes/screens and business logic/monetization, produces 1 summary file with feature inventory (Tentative confidence) and monetization summary.

Full mode (--full): Runs all steps including copy layer, instrumentation audit, feature flags, and constraint analysis. Produces 7 detailed output files with 3-layer evidence linking.


Output

Light Mode (default) — 1 file

FileContent
$JAAN_OUTPUTS_DIR/detect/product/summary{suffix}.mdFeature inventory (Tentative), monetization + entitlements, top-5 findings

Full Mode (--full) — 7 files

FileContent
$JAAN_OUTPUTS_DIR/detect/product/overview.mdProduct overview with feature summary
$JAAN_OUTPUTS_DIR/detect/product/features.mdFeature inventory with 3-layer evidence
$JAAN_OUTPUTS_DIR/detect/product/value-prop.mdValue proposition signals from copy
$JAAN_OUTPUTS_DIR/detect/product/monetization.mdMonetization model with evidence
$JAAN_OUTPUTS_DIR/detect/product/entitlements.mdEntitlement enforcement mapping
$JAAN_OUTPUTS_DIR/detect/product/metrics.mdInstrumentation reality (analytics, flags, events)
$JAAN_OUTPUTS_DIR/detect/product/constraints.mdTechnical/business constraints and risks

Multi-Platform Monorepo

Files use platform suffix: overview-{platform}.md, summary-{platform}.md, etc.


What It Scans

CategoryPatterns
Routes/screens**/pages/**/*.{tsx,jsx,vue}, **/app/**/page.{tsx,jsx}, React Router, API routes
Value propositionLanding pages, hero sections, taglines, CTA text
Pricing copy**/pricing.*, **/tiers.*, $X/month, tier names (free/starter/pro/enterprise)
Billing codeStripe (stripe.subscriptions, stripe.checkout), PayPal, custom billing gates
EntitlementscanAccess, hasFeature, user.plan, user.tier, middleware guards
Analytics SDKsGA4 (gtag), Mixpanel, Segment, PostHog, Amplitude, Plausible
Feature flagsUnleash, LaunchDarkly, Split.io, Flagsmith, custom FEATURE_/FF_ patterns
ConstraintsRate limiting, file size limits, user limits, trial/expiration, geo-restrictions, compliance (GDPR/CCPA/HIPAA)

Multi-Platform Support

  • Platform auto-detection: Detects web/, backend/, mobile/, etc. from folder structure
  • Evidence ID format:
    • Single-platform: E-PRD-NNN (e.g., E-PRD-001)
    • Multi-platform: E-PRD-{PLATFORM}-NNN (e.g., E-PRD-WEB-001, E-PRD-BACKEND-023)
  • Cross-platform feature linking: Use related_evidence field to link features spanning multiple platforms (e.g., web checkout UI → backend payment API)
  • Platform-specific features: Separate evidence per platform (e.g., mobile push notifications vs web in-app notifications)
  • Fully applicable: detect-product analyzes all platforms (no skip logic)

Key Points

  • 3-layer feature evidence: Surface + Copy + Code Path → confidence mapping:
    • All 3 layers → Confirmed; 2/3 → Firm; 1 layer + heuristics → Tentative; Inferred only → Uncertain
  • Monetization: distinguish "pricing copy" (what product claims) vs "enforcement" (what code enforces) — gates must be proven by code locations
  • Absence of evidence becomes an "absence" evidence item (not a claim without proof)
  • Instrumentation: event taxonomy consistency assessed (naming convention, property standardization, coverage gaps)
  • 4-level confidence: Confirmed / Firm / Tentative / Uncertain

Back to Detect Skills | Back to All Skills