CLAUDE.md
AGENTS.md/CLAUDE.mdCLAUDE.md
Quality
62/100
Scores the file, not the repository.Length
1,378 words
57 headings · 0 code blocksRepository
0
— · pushed 14 days agoLast changed
3 days ago
First indexed 3 days ago.1# CLAUDE.md23# OutputLens Agent Operating Manual45Version: 1.067This document provides context, rules, architecture guidance, product philosophy, UX standards, and implementation constraints for AI agents working on OutputLens.89Read this file before making any code, product, UX, architecture, copywriting, database, or business logic decisions.1011---1213# Product Overview1415OutputLens is an institutional-grade risk intelligence platform.1617The platform helps investors understand uncertainty before entering trades.1819OutputLens does not attempt to predict markets.2021OutputLens does not provide investment advice.2223OutputLens does not generate buy or sell signals.2425OutputLens quantifies potential outcomes and presents them through probability distributions, risk metrics, scenario analysis, and AI-assisted explanations.2627The central product experience is analysis.2829Everything else exists to support, enhance, monitor, or explain analysis.3031---3233# Core Mission3435Help investors think like risk managers.3637Most retail platforms encourage prediction.3839OutputLens encourages probability-based decision making.4041Every feature should improve one or more of:4243- Risk understanding44- Decision quality45- Probability awareness46- Portfolio awareness47- Uncertainty management4849If a proposed feature does not improve one of these areas, reconsider whether it belongs in the product.5051---5253# Core Philosophy5455## Probability Over Prediction5657OutputLens answers:5859"What could happen?"6061OutputLens does not answer:6263"What will happen?"6465Never present outputs as forecasts.6667Never imply certainty.6869Never imply future price direction.7071---7273## Risk Before Return7475Risk information should always appear before upside information.7677Priority order:78791. Risk Score802. VaR813. Expected Shortfall824. Tail Risk835. Regime846. Scenario Outcomes857. Potential Upside8687---8889## Explain Complexity Simply9091Sophisticated quantitative outputs should be translated into plain English.9293Users should not need a finance degree to understand results.9495Complexity belongs in calculations, not explanations.9697---9899## Institutional Tone100101OutputLens should feel:102103- Professional104- Analytical105- Calm106- Quantitative107- Objective108109Avoid:110111- Hype112- Social trading language113- Meme investing114- Gambling terminology115- Emotional copy116117Think:118119- Bloomberg Terminal120- FactSet121- BlackRock Aladdin122- Institutional research reports123124Not:125126- Robinhood127- Crypto casinos128- Social trading apps129130---131132# Product Structure133134OutputLens consists of the following major product areas.135136---137138## Dashboard139140Purpose:141142Provide a high-level overview of portfolio health.143144Primary Components:145146- Portfolio Risk Score147- Portfolio VaR148- Expected Drawdown149- Market Regime150- Risk Alerts151- Analysis Usage152- AI Insights153- Watchlist154- Market Snapshot155156Dashboard Question:157158"What requires attention today?"159160---161162## Analysis Workspace163164Core product.165166Users enter:167168- Asset169- Direction170- Position Size171- Time Horizon172173Output:174175- Simulation Results176- Risk Metrics177- Scenario Analysis178- Regime Analysis179- Distribution Analysis180- AI Commentary181182The Analysis Workspace is the highest-priority feature in the entire platform.183184Protect this workflow.185186---187188## Analysis History189190Stores previous analyses.191192Purpose:193194Track risk evolution over time.195196Must support:197198- Historical comparison199- Performance tracking200- Distribution review201202---203204## Portfolio Analysis205206Portfolio-level aggregation of:207208- Risk209- Exposure210- Correlation211- Concentration212- Scenario sensitivity213214---215216## Morning Briefing217218Daily summary of:219220- Risk changes221- Regime changes222- Portfolio health223- Important observations224225Morning Briefing is not a news feed.226227---228229## Risk Journal230231Historical archive of:232233- Analyses234- Decisions235- Risk observations236237---238239## Risk Pulse240241Live monitoring layer.242243Tracks:244245- Risk score changes246- Regime shifts247- Tail risk changes248249Purpose:250251Detect deteriorating conditions.252253---254255## Regime Monitor256257Tracks market state transitions.258259Purpose:260261Identify changing market environments.262263---264265## Risk Alerts266267User-defined monitoring system.268269Triggers when:270271- Risk exceeds thresholds272- Regime changes occur273- Correlation spikes emerge274275---276277## Scenario Builder278279Allows users to create stress scenarios.280281Scenarios are stress tests.282283Scenarios are not predictions.284285---286287## Stress Test Workspace288289Runs positions against:290291- Bull environments292- Base environments293- Bear environments294- Custom shock events295296---297298## VaR Calculator299300Calculates:301302- Parametric VaR303- Historical VaR304- Monte Carlo VaR305306---307308## Correlation Scanner309310Identifies:311312- Hidden concentration risk313- Portfolio overlap314- Diversification quality315316---317318## Market Heatmap319320Provides broad market context.321322Purpose:323324Context only.325326Not a signal engine.327328---329330## Position Sizer331332Provides risk-based sizing calculations.333334Purpose:335336Risk management.337338Not trade recommendations.339340---341342## Earnings Risk343344Evaluates historical earnings-event volatility.345346Purpose:347348Understand event risk.349350---351352## Volatility Analysis353354Evaluates:355356- Historical volatility357- Regime volatility358- Relative volatility359360---361362## Drawdown Analysis363364Evaluates:365366- Historical drawdowns367- Recovery periods368- Underwater duration369370---371372# Analysis Pipeline373374All analysis follows the same lifecycle.3753761. User submits analysis.3772. Market data retrieved.3783. Risk engine processes inputs.3794. Simulations generated.3805. Distribution constructed.3816. Risk metrics calculated.3827. Regime evaluated.3838. Scenarios generated.3849. AI commentary generated.38510. Results persisted.38611. Dashboard updated.387388No workflow should bypass this pipeline.389390---391392# Risk Metrics393394## Win Probability395396Percentage of simulated paths ending positive.397398Not a prediction.399400Not a guarantee.401402---403404## Value at Risk (VaR)405406Estimated maximum expected loss within a specified confidence interval.407408Examples:409410- VaR 90411- VaR 95412- VaR 99413414---415416## Expected Shortfall417418Average loss beyond the VaR threshold.419420Represents severe downside exposure.421422---423424## Tail Risk425426Probability of extreme negative outcomes.427428Higher tail risk requires greater caution.429430---431432## Risk Score433434Composite indicator.435436Used for ranking and monitoring.437438Must never be described as expected return.439440---441442## Regime443444Current market condition classification.445446Examples:447448- Bullish449- Bearish450- Transitional451- Elevated Volatility452453Regimes are probabilities.454455Not forecasts.456457---458459# AI Commentary Rules460461AI commentary exists to explain.462463AI commentary does not calculate.464465The risk engine is the source of truth.466467---468469## Allowed470471AI may:472473- Explain risk metrics474- Explain distributions475- Explain scenarios476- Explain volatility477- Explain regime conditions478- Summarise portfolio risk479- Highlight changes480481---482483## Forbidden484485AI must never:486487- Predict future prices488- Recommend trades489- Recommend buying490- Recommend selling491- Recommend leverage492- Provide financial advice493- Guarantee outcomes494495---496497## Bad Examples498499"AMZN will likely rise."500501"This stock should outperform."502503"Buy this position."504505"Target price is $250."506507---508509## Good Examples510511"Downside risk remains elevated."512513"The distribution suggests wider uncertainty."514515"Tail exposure has increased."516517"The current regime implies increased volatility."518519---520521# Subscription Tiers522523## Free524525Includes:526527- 3 analyses per month528- Limited simulation access529- Basic risk metrics530- 7-day history531- US market support532533---534535## Starter536537Includes:538539- Expanded analysis limits540- AI commentary541- Regime Monitor542- Earnings Risk543- Drawdown Analysis544- Volatility Analysis545- Position Sizer546547---548549## Pro550551Includes:552553- Correlation Scanner554- Risk Alerts555- Portfolio Analytics556- Unlimited History557- Export Features558559---560561## Trader562563Includes:564565- API Access566- Advanced Monitoring567- Larger Portfolio Limits568- Priority Processing569570---571572# Engineering Rules573574## Business Logic575576Never place business logic inside React components.577578Use:579580- Services581- Hooks582- Utility layers583- Backend functions584585---586587## Source of Truth588589Risk calculations are authoritative.590591AI commentary is secondary.592593Visualisations are derived.594595---596597## Determinism598599Prefer deterministic outputs whenever possible.600601Avoid hidden behaviour.602603Avoid unexplained scores.604605---606607## Data Handling608609Cache market data.610611Reduce redundant API requests.612613Prioritise performance and consistency.614615---616617## Security618619Never expose:620621- Internal model parameters622- API secrets623- Proprietary calculations624- Internal confidence thresholds625626---627628# UX Rules629630Always communicate:631632- Probability633- Risk634- Uncertainty635- Distribution636637Avoid:638639- Certainty640- Forecasting641- Target prices642- Trading signals643644---645646# Design Principles647648OutputLens should feel:649650- Institutional651- Premium652- Quantitative653- Professional654655Design should be:656657- Information dense658- Data focused659- Low distraction660- Dark-theme friendly661662Avoid:663664- Excessive animation665- Gamification666- Celebration effects667- Social features668669---670671# Future Feature Evaluation672673Before building a feature ask:6746751. Does it improve risk understanding?6762. Does it improve decision quality?6773. Does it increase probability awareness?6784. Does it align with probability-first thinking?6795. Does it avoid prediction-based behaviour?680681If any answer is no, reconsider the feature.682683---684685# Agent Decision Framework686687When uncertain:688689Choose the option that:690691- Improves risk visibility692- Improves explainability693- Improves decision support694- Reduces ambiguity695- Preserves institutional credibility696697Never choose the option that:698699- Increases speculation700- Encourages gambling behaviour701- Prioritises excitement over accuracy702- Mimics retail trading apps703704---705706# Internal Motto707708The market is not a prediction problem.709710It is a probability distribution.711712Everything in OutputLens should reinforce that idea.713
Also in userVatsal/outputlens
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| userVatsal/outputlensAGENTS.md/AGENTS.md · 0 | AGENTS.md | styleuido-notagent-behaviour | 55/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today | |
| lollipopkit/flutter_server_boxCLAUDE.md · 8.3k | CLAUDE.md | buildteststylearch+2 | 98/100 | 3 days ago |
