Industry Chain Map
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_053d27d0/industry-chain-map.
About this skill
Problem
IO-table work often stalls on sector granularity, matrix algebra, graph path search, and plotting. @user_053d27d0/industry-chain-map targets a 15-sector structure aggregated from the Chinese NBS 42-sector table for 2020, and exposes upstream/downstream dependency, key sector detection, supply-chain path tracing, multipliers, import reliance, clustering, and shock simulation as a Python API.
How It Works
IOTablewraps the intermediate flow matrixZ, direct consumption matrixA,Leontiefinverse, andGhoshinverse, with total output, value added rates, and final demand.upstream_dependency()anddownstream_influence()compute backward/forward linkage to identify sectors that pull upstream suppliers or support downstream demand.key_sectors()ranks sectors by linkage strength;supply_chain_path()uses BFS to trace the shortest transmission path between two sectors with intermediate flows and coefficients.value_multiplier()measures the output pull of a one-unit final demand increase;impact_analysis()simulates a sector shock usingΔX = (I-A)^(-1) * ΔF.import_dependency()estimates import reliance from intermediate input share and HHI concentration;structural_holes()uses betweenness centrality to find bridge sectors;cluster_sectors()groups sectors by IO similarity.- Results are returned as
pandas.DataFrame, with color mappings inconfig/sectors.yamlfor external plotting inmatplotlib,plotly, orECharts.
Boundaries
Best for static, script-based analysis of China's industrial structure and supply-chain risk. It is not a replacement for import-level detail, employment estimates, time-series analysis, or a GUI app. The data are embedded 2020 approximations at a fixed 15-sector level; load_io_table(year=...) is only a label, and changing years requires replacing matrices in io_table.py. Domestic and imported intermediate inputs are not separated, so import reliance is a proxy estimate.
Use Cases
- Analysts rank sectors by backward/forward linkages.
- Consultants identify key hub sectors in an industry chain.
- Researchers simulate output shocks from a sector slowdown.
- Supply managers trace sector paths with intermediate flows.
Best For
- Industry researchers aggregating NBS sectors to compute linkages.
- Policy analysts testing sector-shock impact on total output.
- Supply managers tracing shortest sector transmission paths.
- Data engineers feeding DataFrame results into Python charts.
Related Skills
Aggregates monthly broker top picks via the Wind Alice Agent to analyze consensus heat, industry themes, and stock-specific recommendation logic.
Analyzes call content for fraud scripts, assesses risk, and generates a structured Anti-Fraud Guardian report.
Generates a self-contained HTML daily A-share snapshot from Tencent market data and authoritative news, focusing on objective recap rather than forecasts.
Turns competing patent claims into structured analysis: element decomposition, scope interpretation, equivalence prediction, and prosecution history limitations.