A-Share DCF Valuation
DCF valuation modeling for A-share listed companies. Pass stock code to automatically fetch financial data, calculate WACC, run conservative/base/optimistic... Skill: A-Share DCF Valuation Owner: laigen Summary: DCF valuation modeling for A-share listed companies. Pass stock code to automatically fetch financial data, calculate WACC, run conservative/base/optimistic... Tags: a-share:1.0.0, capm:1.0.0, china:1.0.0, dcf:1.0.0, equity:1.0.0, fcff:1.0.0, financial-analysis:1.0.0, investment:1.0.0, latest:1.0.0, model:1.0.0, stock:1.0.0, valuation:1.0.0, wacc:1.0.0 Version histo
Rank
62
Safety
84
Downloads
1.3k
Updated
Oct 10, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.0release · observed Apr 21, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s174c3qf7rzby58ss8ght6wmyd83hx75:a-share-dcf-valuation- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-laigen-a-share-dcf-valuation/snapshot"
Documentation
CLAWHUB
13,117 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: a-share-dcf-valuation
description: DCF valuation modeling for A-share listed companies. Pass stock code to automatically fetch financial data, calculate WACC, run conservative/base/optimistic three-scenario DCF valuation, generate sensitivity analysis matrix, and output complete Markdown report (in Chinese). Applicable to any A-share listed company valuation analysis.
---
# A-share DCF Valuation Modeling
## Trigger Conditions
Use when user requests DCF (Discounted Cash Flow) valuation analysis for an A-share stock.
## Environment Requirements
### Required Environment Variables
| Variable | Description | How to Obtain |
|----------|-------------|---------------|
| `TUSHARE_TOKEN` | Tushare API token (mandatory) | Register at https://tushare.pro, get token from user center |
| `OPENCLAW_WORKSPACE` | Workspace root path (optional) | Defaults to `~/.openclaw/workspace` |
### Python Dependencies
| Package | Version | Purpose |
|---------|---------|--------|
| `tushare` | Latest | A-share financial data API |
| `pandas` | ≥1.0 | Data processing |
| `numpy` | ≥1.18 | Numerical calculations |
| `scipy` | ≥1.4 | Beta regression (stats module) |
### Setup Instructions
1. **Configure Tushare Token**:
```bash
# Add to ~/.bashrc or ~/.bash_profile
export TUSHARE_TOKEN="your_token_here"
source ~/.bashrc
```
2. **Install Python Dependencies**:
```bash
pip install tushare pandas numpy scipy
```
3. **Verify Setup**:
```bash
python3 -c "import tushare as ts; ts.set_token('$TUSHARE_TOKEN'); pro = ts.pro_api(); print(pro.stock_basic(ts_code='600519.SH'))"
```
### Troubleshooting
| Error | Cause | Solution |
|-------|-------|----------|
| `未设置 TUSHARE_TOKEN 环境变量` | Token not configured | Add export to shell profile |
| `Tushare API 获取失败` | Invalid token or network issue | Verify token, check network |
| `No module named 'tushare'` | Package not installed | `pip install tushare` |
| `Beta 回归数据不足` | Stock newly listed | Use industry default Beta |
## Quick Start
```
User input: "对 贵州茅台 600519 做 DCF 估值"
→ Run: python3 scripts/a_share_dcf.py 600519.SH
→ Report saved to: reports/dcf_贵州茅台_YYYY-MM-DD.md
```
## Valuation Methodology
**Method**: Two-stage FCFF (Free Cash Flow to Firm) discount model
**Formulas**:
- FCFF = Operating Cash Flow - Capital Expenditure
- WACC = We×Re + Wd×Rd×(1-T)
- Terminal Value = FCFF_n × (1+g) / (WACC - g)
- Equity Value = EV - Net Debt
- Per-share Value = Equity Value / Total Shares
**Three-Scenario Assumptions**:
| Scenario | WACC | Growth Rate | Perpetual Growth |
|----------|------|-------------|------------------|
| Conservative | WACC + 3% (min 14%) | 50% of 3-year avg | 2% |
| Base | Calculated WACC | 80% of 3-year avg | 3% |
| Optimistic | WACC - 3% (min 7%) | 100% of 3-year avg | 4% |
### Scenario Assumption Rationale
**Conservative Scenario**: Higher WACC reflects elevated risk premium; reduced growth rate accounts for potential downside from competition, regulation, or_meta.json
{
"ownerId": "kn7fw4bnhsaf250vztqhw0t6js81z2pe",
"slug": "a-share-dcf-valuation",
"version": "1.0.0",
"publishedAt": 1776759524346
}skill-card.md
## Description: DCF valuation modeling for A-share listed companies. Pass stock code to automatically fetch financial data, calculate WACC, run conservative/base/optimistic three-scenario DCF valuation, generate sensitivity analysis matrix, and output complete Markdown report (in Chinese). Applicable to any A-share listed company valuation analysis. This skill is ready for commercial/non-commercial use. ## Publisher: [laigen](https://clawhub.ai/user/laigen) ### License/Terms of Use: MIT-0 ## Use Case: External users and finance-oriented agent workflows use this skill to run DCF valuation analysis for A-share listed companies from a stock code. The skill fetches market and financial data, calculates WACC, evaluates conservative/base/optimistic cases, and produces a Chinese Markdown valuation report. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Credential handling needs review because the skill requires a Tushare token and the documented verification command expands the token into the command line. Mitigation: Use a temporary environment variable or secret manager, avoid putting the token in a global shell profile, and avoid commands that expose the token in process arguments. Risk: Dependency and execution practices need review before installation. Mitigation: Install in a dedicated virtual environment, review dependency sources, and pin versions before using the skill in a production workflow. Risk: The valuation result depends on Tushare data availability and model assumptions, and may be misleading if treated as investment advice. Mitigation: Use only intended A-share tickers, verify generated report paths and data freshness, and keep the report's financial disclaimer visible to users. ## Reference(s): - [Tushare](https://tushare.pro) - [ClawHub skill page](https://clawhub.ai/laigen/skills/a-share-dcf-valuation) ## Skill Output: **Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance] **Output Format:** [Chinese Markdown report with terminal progress text and report path] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires an A-share stock code and a Tushare token; writes a report under the workspace reports directory.] ## Skill Version(s): 1.0.0 (source: ClawHub release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/laigen/skills/a-share-dcf-valuation",
"sourceUrl": "https://clawhub.ai/laigen/skills/a-share-dcf-valuation",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T20:16:04.694Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-laigen-a-share-dcf-valuation/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-laigen-a-share-dcf-valuation/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T20:16:04.694Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceUrl": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T20:16:04.694Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceUrl": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-21T08:18:44.346Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-laigen-a-share-dcf-valuation/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-laigen-a-share-dcf-valuation/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "Initial release: Two-stage FCFF DCF model with dynamic WACC calculation, three-scenario valuation (conservative/base/optimistic), sensitivity analysis matrix, and comprehensive risk disclosure. Supports all A-share listed companies with automated financial data fetching via Tushare API.",
"href": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceUrl": "https://clawhub.ai/laigen/a-share-dcf-valuation",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-21T08:18:44.346Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
