Investment analysis is information-dense, structured, and judgment-heavy: combing filings, analyzing industries, and weighing bull/bear cases. WorkBuddy excels at organizing research inputs, auditing financial statements, and mapping logical links.
Automate the tedious data-gathering loops to focus your energy on qualitative investment judgment.
Defining the Scope of AI Analysis
Do not rely on AI for stock predictions. Focus prompts on four tasks to compress factual processing times:
- Summarize long financial filings.
- Map out industry structures and competition.
- Compile bull and bear arguments into comparison tables.
- Generate adversarial counter-arguments to test your bias.
Establish clear research objectives using the following parameters:
| Objective | Focus Area | Example |
|---|---|---|
| Goal | What decision does this research support? | Add to watchlist vs. execute buy/sell orders |
| Target | Define the specific stock and industry | TF Communication (300394), CPO sector |
| Materials | Define primary sources vs. references | Annual filings, regulatory notes vs. investor boards |
| Depth | Define report tiers | Fact sheet compilation vs. full DeepResearch |
| Acceptance | Define verification metrics | Clear data citations, separation of facts and opinions |
Portfolio Management Skill Stack
stock-advisor(Core): Analyzes charts, reads filings, cross-validates data, runs advisory group debates, and formats reports.a-share-analyst: Tracks market indices, computes technical levels, and runs daily screeners.financial-expert: Queries financial databases, filters stocks, and fetches research PDFs.peers-advisory-group: Runs multi-agent debates with specialized roles to test ideas.
Use a-share-analyst and financial-expert for daily screening, stock-advisor for deep research on individual stocks, and peers-advisory-group to test assumptions.
Reusable Prompts for Investment Pipelines
Replace placeholder tags 【】 with your target stock or code.
Prompt 1: Compiling a Factual Foundation
Analyze the baseline profile of [Target Stock/Code] and compile a structured summary:
1) Core business tracks and product portfolios.
2) Revenue streams and margin allocations.
3) Primary customers and application scenarios.
4) Position and value capture in the supply chain.
5) Key strategic transitions over the past 3 years.
Rules:
- Use only verifiable primary disclosures.
- Map 3-5 bullet points per section.
- Compile facts only; do not suggest buy/sell actions.Prompt 2: Analyzing Industry Dynamics
Analyze the industry landscape for [Target Stock] in [Target Sector] from a research perspective:
1) Industry cycle stage (recovery, expansion, decline, stagnation) backed by capex and inventories.
2) Supply-demand metrics: industry capacity utilization, inventories, and delivery lead times.
3) Price dynamics: index histories, spreads, and cost pass-through capacities.
4) Competitor concentrations (CR5) and market shares.
5) Key external factors (interest rates, trade tariffs, state subsidies).
Differentiate long-term structural changes from short-term volatility. Output: cycle stage judgment, key metrics tables, and 3 leading / 3 lagging indicators.Prompt 3: Business Model Analysis (Business Engine)
Analyze the business engine of [Target Stock] from a fundamental perspective, focusing on:
How does this company make sustainable profits over the long term?
Rules:
- Rely strictly on verifiable filings (annual reports, prospectus, regulatory filings).
- Highlight facts separately from opinions.
- Output a structured Markdown report.
Required Sections:
1. Core business logic in a single sentence (under 50 words: what it sells -> to whom -> why it is profitable).
2. Quantified business structure: revenue split, margins, and 3-5 year growth trends for each segment. Define profit engines vs. high-revenue, low-margin segments.
3. Revenue mechanics: transactional vs. subscription models, cost structures (raw materials, R&D, sales), margin drivers, and scale efficiencies.
4. Customer concentration (Top 5 / Top 10 percentages), sales channels (direct vs. distributor), pricing power (historical price increases), and customer switching costs.
5. Subsidiary contributions: log key subsidiaries, operational sustainability, and split of recurring vs. non-recurring profits (subsidies, asset sales).
6. Business vulnerabilities: identify dependencies, failure points, competitor threats, and list 3-5 metrics to monitor.
Output:
- Business engine summary.
- Segment breakdown table (revenue, margin, growth).
- Revenue engine logic flow.
- 3 key conclusions for long-term investors.Prompt 4: Auditing Financial Quality
Analyze the financial quality of [Target Stock] over the past 3-5 years:
1) Alignment of revenue, net profit, and operating cash flows.
2) Changes in accounts receivable, inventories, and contract assets.
3) Contribution of non-operating items to profits.
4) Impact of one-off write-downs or changes in accounting policies.
5) Crucial financial warning signs.
Rules:
- Perform "Net Profit vs. Operating Cash Flow" validation.
- Provide explanations for anomalies.
- Highlight metrics to track.Prompt 5: Governance and Insider Transactions
1. Analyze the governance structure of [Target Stock]:
- Voting control, major shareholders, board compositions.
- Share pledges, insider selling schedules, control transition risks.
- Related party transactions and horizontal competition.
Output: governance map, risk matrix, and watchlist logs.
2. Compile a capital timeline for the next 12 months: lock-up expirations, share buyback schedules, private placement updates. Assess potential market supply impacts.
3. Review management incentives: verify performance targets (revenue vs. margins vs. ROIC), target difficulties, and potential short-term manipulation risks.Prompt 6: Mapping Market Discrepancies
Compile market discrepancies regarding [Target Stock]:
1) Core arguments of the bull case.
2) Core arguments of the bear case.
3) Key metrics supporting each side.
4) How these differences can be validated by upcoming data releases.
5) Timelines for verification.
Remain neutral; do not take sides or use subjective phrasing.Prompt 7: Moat Strength and DCF Auditing
Analyze the moat strength of [Target Stock]:
1) Pricing power: gross margins and cost pass-through history over 5-10 years.
2) Switching costs: systems integration, compliance barriers, or ecosystem locks.
3) Cost/scale advantages: cost advantages driven by scale or distribution.
4) Intangible assets: brand premiums, patents, licenses, and proprietary databases.
5) Competitor actions: history of competitor responses and defense actions.
Output: Moat rating (0-5), validation table, erosion risks, and metrics to monitor.Build a DCF model for [Target Stock] using public metrics:
- Define and justify WACC and terminal growth rates.
- Project free cash flows for 5-10 years: revenue growth, margins, capex, and reinvestment rates.
- Output a sensitivity matrix (WACC vs. terminal growth, WACC vs. operating margin).
- Reverse DCF: calculate what revenue and margin path the current stock price implies.
Output: valuation range, core assumptions table, and key sensitivity flags.Prompt 8: Complete DeepResearch Template
I need a comprehensive Investment Due Diligence Report for [Target Stock/Code] under [Investment Style] for a holding horizon of [Timeframe].
Constraints & Standards:
1. Cover 3-5 years of historical financial data (CAGR) and WACC/multiples over 5-10 years.
2. Fact-first: Cite annual reports, prospectuses, and regulatory inquiries. Differentiate facts from opinions.
3. Cross-validate: run profit vs. cash flow audits and competitor comparisons.
4. Adversarial: Include bear logic and tail risk analysis.
Workflow:
Phase 1: Business Engine & Moat
1. Segment metrics: revenue split, margins, and subsidiary contributions. Differentiate core operating profits from investment returns or state subsidies.
2. Moat validation: gross margin trends, pricing power, customer retention, switching costs, and market share ceiling.
Phase 2: Industry Context
1. Cycle mapping: define cycle stage (recovery, peak, contraction, trough) using inventory cycles and capex trends.
2. Supply-demand: track industry capacity growth, lead times, and pricing indexes.
3. Competition: market concentration shifts and competitor strategies.
Phase 3: Financial Quality Audit
1. Baseline: calculate revenue CAGR, profit CAGR, ROE (DuPont analysis), and margin trends.
2. Warning signs: inventory builds, accounts receivable days, deductions of non-recurring items, and net profit vs. operating cash flows.
Phase 4: Governance & Capital Allocation
1. Shareholder analysis: controlling interests, pledges, insider selling logs.
2. Allocation: review major acquisitions, share buyback values, dividend payout ratios, and ROIC.
Phase 5: Valuations & Risks
1. Multiples: PE/PB/PS history and peer comparisons.
2. Reverse DCF: reverse-engineer the growth rate and margin trajectory implied by the current market cap.
3. Bear cases: analyze short reports, bearish notes, regulatory threats, and tail risks.
Output Structure:
1. Investment Summary (Rating: Buy/Hold/Sell, and Core Thesis).
2. Financial metrics table.
3. Detailed analysis by Phase.
4. Valuation dashboard.
5. Watchlist monitoring checklist (positive triggers vs. exit rules).
6. Primary source bibliography.Instead of running these prompts manually and transferring intermediate outputs, use the stock-advisor Skill to automate the pipeline.
System Design of stock-advisor
The stock-advisor Skill orchestrates existing tools into a unified pipeline:
User Input (chart or code) -> Technical levels -> Financial audit -> Cross-validation -> Multi-agent debate -> Formatted report| Module | Purpose | Implementation |
|---|---|---|
| Technical read | Scans daily charts, moving averages, and MACD indicators | Visual analysis validated by real-time data |
| Financial audit | Parses income and cash flow statements, calculates segment ratios | DuPont analysis, margins, WACC calculations |
| Cross-validation | Pulls industry reports, news feeds, and competitor updates | Integrates search connectors |
| Multi-agent debate | Runs an adversarial debate via peers-advisory-group | Defines specialized investor roles |
| Reporting | Compiles findings into a formatted HTML layout | Generates printable PDFs |
The Skill asks for user preferences (risk index, timeframe, sectors) during first-time configuration, and runs both image-based and code-based inputs through the same pipeline.
Case Study: Analyzing TF Communication (300394)
The stock-advisor processes the research in three steps:
Step 1: Chart Analysis (Technical Read)
Prompt:
Analyze the daily chart and MACD metrics for A-share 300394:
1. Identify stock name and current price.
2. Analyze candlestick pattern over the last 5 days.
3. Check moving average arrangements (MA5, MA10, MA20) for crossover alerts.
4. Check MACD line positions and signal changes.
Output technical summary table.Output:
- Trend: MA5 > MA10 > MA20, standard bullish alignment.
- Risk Flag: Long upper shadow on current bar, MACD histogram starting to contract.
- Levels: Support at MA5 (347) / MA10 (319), resistance at 376.
Step 2: Financial Audit
Prompt:
Incorporate Q3 financial data and profit forecasts for A-share 300394.
Provide:
- Technical summary.
- Financial audit (revenue growth, margins, valuations).
- Volume trend.
- Rating (Strong Buy/Buy/Neutral/Underperform/Sell).
- Operation suggestions for short-term (1-2 weeks) and mid-term (1-3 months).
- Support and resistance levels.Output: Pulls metrics (revenue 3.918B, +63.63%, net profit 1.465B, ROE 31.30%, margin 51.87%, PE 146.70) and calculates the加权 weighted rating:
| Dimension | Rating | Weight | Score |
|---|---|---|---|
| Technical | 4.0 / 5.0 | 25% | 1.00 |
| Financial | 4.5 / 5.0 | 30% | 1.35 |
| Valuation | 2.0 / 5.0 | 25% | 0.50 |
| Volume | 4.0 / 5.0 | 20% | 0.80 |
| Composite | — | — | 3.65 / 5.0 |
| Rating: Buy/Hold. Mid-term growth remains robust on strong CPO demand, but short-term valuations are stretched. Wait for pullbacks. |
Step 3: Multi-agent Debate (Advisory Group)
Prompt:
I am undecided. Run a multi-agent debate regarding 300394:
- Warren Buffett: Value investing (intrinsic values, margins of safety).
- Elon Musk: Tech disruption and innovation.
- Bill Gates: Business models and competitive landscapes.
- Steve Jobs: Product design and user experience.
Debate rules:
1. Each agent presents a 3-minute argument.
2. Agents cross-examine each other's points.
3. Each agent provides a Buy/Hold/Sell recommendation.
4. The host synthesizes a final action plan.
Incorporate current financial metrics.Output: Pulls real-time metrics (full year revenue 5.163B, profit 2.017B, Q1 quarter-on-quarter contraction, competitor metrics for Zhongji Innolight) to feed the debate.
- Buffett: PE of 142 offers zero margin of safety. Hold off until valuation corrects below 200.
- Gates: Strong fundamentals but competitor valuations are more attractive. Wait for multiple contraction.
- Musk: CPO is the optical transition layer. High valuations represent scaling growth. Buy.
- Jobs: Keep holding if you believe in the CPO architecture, but verify that specifications are met by 2026. Synthesized plan: Hold current positions, do not add capital at peak valuations, and set a buying trigger at 60x PE.
Tencent ima Knowledge Base Integration
See the detailed guidelines in Chapter 16 to sync stock-advisor portfolios with ima. This secures RAG checks against corporate disclosures, and keeps track logs of financial reports.
Detailed Walkthroughs of the 13 Case Submissions
The submissions/ directory logs 13 operational case files:
daily-ai-news: news aggregator schedules.portfolio-tracker: portfolios logs.report-builder: documents compilers. Ensure files are cataloged in correct workspace directories, and verify that TraceIDs are logged in Cube Sandbox to maintain compliance.
References
Part of this series
WorkBuddy In Action
View all guides in this series →