@v587d/capital-generation 2.7.2 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +7 -6
  3. package/THIRD_PARTY_NOTICES.md +65 -26
  4. package/capital-config/client.js +2 -2
  5. package/capital-config/package.json +1 -1
  6. package/capital-watchlist/package.json +1 -1
  7. package/chart-ui/package.json +1 -1
  8. package/lib/web-retriever/local-fetch.d.ts +1 -1
  9. package/lib/web-retriever/local-fetch.js +1 -1
  10. package/lib/web-retriever/wind-client.d.ts +1 -1
  11. package/lib/web-retriever/wind-client.js +1 -1
  12. package/package.json +2 -1
  13. package/selected-skills/InvestSkill/UPSTREAM.md +9 -0
  14. package/selected-skills/catalog.js +177 -0
  15. package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
  16. package/selected-skills/investment-skills/UPSTREAM.md +2 -1
  17. package/selected-skills/peter-lynch-skill/UPSTREAM.md +4 -3
  18. package/selected-skills/trading-skills/LICENSE +21 -0
  19. package/selected-skills/trading-skills/UPSTREAM.md +111 -0
  20. package/selected-skills/trading-skills/skills/catalyst-map/SKILL.md +119 -0
  21. package/selected-skills/trading-skills/skills/catalyst-map/references/catalyst-framework.md +68 -0
  22. package/selected-skills/trading-skills/skills/earnings-preview/SKILL.md +124 -0
  23. package/selected-skills/trading-skills/skills/earnings-preview/references/data-providers.md +26 -0
  24. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/fmp.md +49 -0
  25. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/polygon.md +45 -0
  26. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/tradingeconomics.md +49 -0
  27. package/selected-skills/trading-skills/skills/earnings-preview/references/relevance-ranking.md +24 -0
  28. package/selected-skills/trading-skills/skills/earnings-trade-prep/SKILL.md +134 -0
  29. package/selected-skills/trading-skills/skills/earnings-trade-prep/references/workflow-framework.md +65 -0
  30. package/selected-skills/trading-skills/skills/evidence-gap-check/SKILL.md +120 -0
  31. package/selected-skills/trading-skills/skills/evidence-gap-check/references/gap-framework.md +66 -0
  32. package/selected-skills/trading-skills/skills/execution-plan-check/SKILL.md +121 -0
  33. package/selected-skills/trading-skills/skills/execution-plan-check/references/execution-checklist.md +70 -0
  34. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/SKILL.md +120 -0
  35. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/calculation-helpers.md +16 -0
  36. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/pattern-framework.md +74 -0
  37. package/selected-skills/trading-skills/skills/macro-event-analysis/SKILL.md +122 -0
  38. package/selected-skills/trading-skills/skills/macro-event-analysis/references/data-providers.md +23 -0
  39. package/selected-skills/trading-skills/skills/macro-event-analysis/references/interpretation-guide.md +22 -0
  40. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/fmp.md +28 -0
  41. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/tradingeconomics.md +40 -0
  42. package/selected-skills/trading-skills/skills/market-regime-analysis/SKILL.md +117 -0
  43. package/selected-skills/trading-skills/skills/market-regime-analysis/references/data-providers.md +26 -0
  44. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/fmp.md +46 -0
  45. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/polygon.md +36 -0
  46. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/tradingeconomics.md +46 -0
  47. package/selected-skills/trading-skills/skills/market-regime-analysis/references/regime-framework.md +23 -0
  48. package/selected-skills/trading-skills/skills/portfolio-concentration/SKILL.md +119 -0
  49. package/selected-skills/trading-skills/skills/portfolio-concentration/references/concentration-framework.md +72 -0
  50. package/selected-skills/trading-skills/skills/portfolio-risk-review/SKILL.md +126 -0
  51. package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md +57 -0
  52. package/selected-skills/trading-skills/skills/position-management/SKILL.md +120 -0
  53. package/selected-skills/trading-skills/skills/position-management/references/management-framework.md +70 -0
  54. package/selected-skills/trading-skills/skills/position-sizing/SKILL.md +83 -0
  55. package/selected-skills/trading-skills/skills/position-sizing/assets/trade-plan-template.md +15 -0
  56. package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md +13 -0
  57. package/selected-skills/trading-skills/skills/position-sizing/references/methodology.md +28 -0
  58. package/selected-skills/trading-skills/skills/post-trade-debrief/SKILL.md +99 -0
  59. package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md +51 -0
  60. package/selected-skills/trading-skills/skills/post-trade-review/SKILL.md +82 -0
  61. package/selected-skills/trading-skills/skills/post-trade-review/references/review-rubric.md +34 -0
  62. package/selected-skills/trading-skills/skills/pre-trade-check/SKILL.md +136 -0
  63. package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md +61 -0
  64. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/SKILL.md +81 -0
  65. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/calculation-helpers.md +14 -0
  66. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/failure-modes.md +9 -0
  67. package/selected-skills/trading-skills/skills/thesis-validation/SKILL.md +123 -0
  68. package/selected-skills/trading-skills/skills/thesis-validation/references/thesis-checklist.md +56 -0
  69. package/selected-skills/trading-skills/skills/watchlist-review/SKILL.md +119 -0
  70. package/selected-skills/trading-skills/skills/watchlist-review/references/review-framework.md +57 -0
  71. package/selected-skills/InvestSkill/ADDING-NEW-SKILLS.md +0 -546
  72. package/selected-skills/InvestSkill/CHANGELOG.md +0 -373
  73. package/selected-skills/InvestSkill/CI-CD-GUIDE.md +0 -432
  74. package/selected-skills/InvestSkill/CLAUDE.md +0 -148
  75. package/selected-skills/InvestSkill/CONTRIBUTING.md +0 -291
  76. package/selected-skills/InvestSkill/DEPLOYMENTS.md +0 -321
  77. package/selected-skills/InvestSkill/FAQ.md +0 -509
  78. package/selected-skills/InvestSkill/GEMINI.md +0 -419
  79. package/selected-skills/InvestSkill/PLATFORM-COMPATIBILITY.md +0 -529
  80. package/selected-skills/InvestSkill/README-claude-code.md +0 -435
  81. package/selected-skills/InvestSkill/README-cursor.md +0 -475
  82. package/selected-skills/InvestSkill/README-gemini.md +0 -532
  83. package/selected-skills/InvestSkill/README-ollama.md +0 -106
  84. package/selected-skills/InvestSkill/README-zh-TW.md +0 -461
  85. package/selected-skills/InvestSkill/README.md +0 -311
  86. package/selected-skills/InvestSkill/RELEASE-QUICK-REFERENCE.md +0 -230
  87. package/selected-skills/InvestSkill/RELEASE_NOTES.md +0 -121
  88. package/selected-skills/InvestSkill/SECURITY.md +0 -232
  89. package/selected-skills/InvestSkill/TODO.md +0 -28
  90. package/selected-skills/InvestSkill/package.json +0 -64
  91. package/selected-skills/InvestSkill/plugins/us-stock-analysis/README.md +0 -119
  92. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  93. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/skill_request.md +0 -28
  94. package/selected-skills/china-stock-research-skills/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  95. package/selected-skills/china-stock-research-skills/CHANGELOG.md +0 -59
  96. package/selected-skills/china-stock-research-skills/CONTRIBUTING.md +0 -121
  97. package/selected-skills/china-stock-research-skills/GITHUB_PUBLISHING.md +0 -259
  98. package/selected-skills/china-stock-research-skills/INSTALL.md +0 -151
  99. package/selected-skills/china-stock-research-skills/PUBLISH_CHECKLIST.md +0 -165
  100. package/selected-skills/china-stock-research-skills/README.en.md +0 -209
  101. package/selected-skills/china-stock-research-skills/README.md +0 -209
  102. package/selected-skills/china-stock-research-skills/RELEASE_ASSETS.md +0 -222
  103. package/selected-skills/china-stock-research-skills/ROADMAP.md +0 -45
  104. package/selected-skills/china-stock-research-skills/SKILLS.md +0 -85
  105. package/selected-skills/china-stock-research-skills/examples/full-report-flow.md +0 -20
  106. package/selected-skills/china-stock-research-skills/examples/module-select-cases.md +0 -26
  107. package/selected-skills/china-stock-research-skills/examples/quickstart-prompts.md +0 -25
  108. package/selected-skills/investment-skills/.github/workflows/validate.yml +0 -25
  109. package/selected-skills/investment-skills/.tbd/config.yml +0 -107
  110. package/selected-skills/investment-skills/README.md +0 -253
  111. package/selected-skills/investment-skills/docs/development.md +0 -37
  112. package/selected-skills/investment-skills/docs/roadmap.md +0 -25
  113. package/selected-skills/peter-lynch-skill/README.md +0 -305
@@ -1,305 +0,0 @@
1
- # Peter Lynch Skill
2
-
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](LICENSE)
4
- [![Agent Skills](https://img.shields.io/badge/Agent%20Skills-Open%20Standard-111827?style=flat-square)](https://agentskills.io/home)
5
-
6
- An [Agent Skills](https://agentskills.io/home) open-standard skill for Peter
7
- Lynch-style public company research. Give it a ticker or company name, choose a
8
- quick screen or a deep dive, and it guides a compatible AI agent through current
9
- web research, source verification, and a cited markdown report.
10
-
11
- This repository is a skill package, not a web application. It has no Django
12
- server, database, frontend build, bundled data fetcher or project-specific API keys. The skill relies on the host
13
- agent's web search and page-fetch tools.
14
-
15
- ## About Peter Lynch
16
-
17
- Peter Lynch ran the **Fidelity Magellan Fund** from 1977 to 1990, delivering an
18
- average annual return of 29.2%, beating the S&P 500 index — making it one of the
19
- best-performing mutual funds in history.
20
-
21
- His investment philosophy is grounded in a simple but powerful idea: ordinary
22
- investors have a real edge when they pay attention to the world around them.
23
-
24
- - **Invest in what you understand** — focus on businesses whose products,
25
- services, and revenue model you can clearly explain.
26
- - **Focus on fundamentals** — prioritize earnings growth, financial health, and
27
- business quality over short-term market movements or predictions.
28
- - **Growth at a reasonable price (GARP)** — seek companies that combine solid
29
- growth with sensible valuation.
30
- - **Think long-term** — durable business performance matters far more than
31
- short-term market noise.
32
- - **Use your individual advantage** — everyday observations can help you spot
33
- great investments before Wall Street does.
34
-
35
- > *"The person that turns over the most rocks wins the game."* — Peter Lynch
36
-
37
- He is best known for the books: **Learn to Earn**, **One Up on Wall Street**,
38
- and **Beating the Street**.
39
-
40
- <br />
41
-
42
- <table align="center">
43
- <tr>
44
- <td align="center" width="220">
45
- <img src="https://raw.githubusercontent.com/DjNero11/fundamentalio/refs/heads/main/fundamentalio/static/img/LearnToEarn.jpg" width="180" alt="Peter Lynch portrait" /><br />
46
- <sub><b>Peter Lynch</b></sub><br />
47
- </td>
48
- <td align="center" width="160">
49
- <img src="https://raw.githubusercontent.com/DjNero11/fundamentalio/refs/heads/main/fundamentalio/static/img/once_up.jpg" width="130" alt="One Up on Wall Street" /><br />
50
- <sub><b>One Up on Wall Street</b></sub><br />
51
- </td>
52
- <td align="center" width="160">
53
- <img src="https://raw.githubusercontent.com/DjNero11/fundamentalio/refs/heads/main/fundamentalio/static/img/beating_the_street.jpg" width="130" alt="Beating the Street" /><br />
54
- <sub><b>Beating the Street</b></sub><br />
55
- </td>
56
- </tr>
57
- </table>
58
-
59
- <br />
60
-
61
- I created this project to see whether AI agents could generate stock research
62
- reports inspired by **Peter Lynch's** investing philosophy. After a few months
63
- of analyzing his books and iterating on the methodology/prompt engineering, it started
64
- producing surprisingly useful reports.
65
-
66
- ## What It Does
67
-
68
- The skill supports two research workflows:
69
-
70
- | Workflow | Purpose | Evidence base | Output |
71
- |---|---|---|---|
72
- | Quick Research | Decide whether a company deserves deeper research | Reputable financial-data aggregators | Up to 450 words with a `SKIP`, `WATCHLIST`, or `DEEP RESEARCH` decision |
73
- | Deep Research | Produce full due diligence | Annual reports, filings, official company materials, live market data, and targeted external sources | Up to 3000 words with an attractiveness score out of 10 |
74
-
75
- Both workflows are designed around evidence discipline:
76
-
77
- - Use the smallest reliable source set that can support the conclusion.
78
- - Date time-sensitive market data.
79
- - Cite every web-derived factual claim with a linked `source:` line.
80
- - Do not invent missing financial data.
81
- - Do not expose research scratchwork in the final report unless the user asks for it.
82
-
83
- ## Quick Research
84
-
85
- Quick Research is a triage workflow. It answers one practical question:
86
-
87
- > Is this company worth spending 2-5 hours researching in detail?
88
-
89
- The quick workflow intentionally avoids annual reports, full filings, SEC detail
90
- pages, company quarterly reports, and long investor-relations documents. It uses
91
- reputable aggregator pages for identity, business description, financial trends,
92
- cash flow, balance sheet risk, valuation, and recent trend checks.
93
-
94
- Default evidence budget:
95
-
96
- - 1-3 aggregator sources
97
- - 2-3 searches
98
- - 2-3 page fetches
99
-
100
- The report follows the quick methodology in
101
- [references/quick/methodology.md](references/quick/methodology.md) and ends with
102
- one of these decisions:
103
-
104
- - `SKIP`
105
- - `WATCHLIST`
106
- - `DEEP RESEARCH`
107
-
108
- ## Deep Research
109
-
110
- Deep Research is a full due-diligence workflow. It starts with official sources
111
- and treats the latest annual report, 10-K, 20-F, or equivalent full-year filing
112
- as the factual base whenever available.
113
-
114
- The deep workflow then fills methodology gaps with targeted external sources for
115
- items such as live valuation, ownership, insider activity, peer context,
116
- industry structure, recession resilience, recent updates, and material legal or
117
- regulatory risks.
118
-
119
- Default evidence budget:
120
-
121
- - 7-10 sources
122
- - 8-12 searches
123
- - 10-16 page or document fetches
124
-
125
- The report follows the deep methodology in
126
- [references/deep/methodology.md](references/deep/methodology.md) and ends with
127
- an attractiveness score:
128
-
129
- ```text
130
- Attractiveness score: X / 10
131
- ```
132
-
133
- ## How To Use
134
-
135
- Install the folder in any AI tool that supports the Agent Skills format, then
136
- ask for research by ticker or company name.
137
-
138
- Example prompts:
139
-
140
- ```text
141
- Quick research MSFT
142
- ```
143
-
144
- ```text
145
- Do a quick screen of ASML.AS
146
- ```
147
-
148
- ```text
149
- Do a deep research on IBM company
150
- ```
151
-
152
- ```text
153
- Full analysis of Nintendo, Japan listing
154
- ```
155
-
156
- If the request is ambiguous, the skill asks whether you want quick screening or
157
- deep due diligence. If only a brand, ambiguous company name, or ambiguous ticker
158
- is provided, the skill resolves the traded entity before analysis.
159
-
160
- Useful optional hints:
161
-
162
- - ticker
163
- - exchange
164
- - country
165
- - primary listing
166
- - company name if the ticker is ambiguous
167
-
168
- Do not provide API keys or annual report PDFs. The skill is designed to find the
169
- needed public sources through the host agent's browsing tools.
170
-
171
- ## Installation
172
-
173
- Installation is client-specific. Agent Skills are supported by multiple AI tools
174
- and agentic clients; use the official
175
- [Client Showcase](https://agentskills.io/clients) to find instructions for your
176
- tool.
177
-
178
- Make sure that all .md files are included when you install the skill.
179
-
180
- ## Repository Structure
181
-
182
- ```text
183
- .
184
- |-- SKILL.md
185
- |-- references
186
- | |-- disclaimer.md
187
- | |-- filing-rules.md
188
- | |-- quick
189
- | | |-- methodology.md
190
- | | |-- system-prompt.md
191
- | | `-- web-research.md
192
- | `-- deep
193
- | |-- methodology.md
194
- | |-- system-prompt.md
195
- | `-- web-research.md
196
- |-- LICENSE
197
- `-- README.md
198
- ```
199
-
200
- ## How The Files Work Together
201
-
202
- The skill is intentionally split into a small entrypoint and focused reference
203
- files. A compatible agent first sees only the metadata in [SKILL.md](SKILL.md).
204
- When a stock-research request matches the description, the agent reads the full
205
- skill instructions, chooses Quick or Deep Research, then loads only the
206
- workflow-specific reference files it needs.
207
-
208
- The normal flow is:
209
-
210
- 1. [SKILL.md](SKILL.md) routes the request and sets the operating rules.
211
- 2. A workflow-specific `web-research.md` file tells the agent what sources to
212
- gather and when to stop.
213
- 3. A workflow-specific `methodology.md` file defines the analytical checklist.
214
- 4. A workflow-specific `system-prompt.md` file constrains the final report
215
- format, citations, and language.
216
- 5. [references/disclaimer.md](references/disclaimer.md) is appended after the
217
- report body.
218
-
219
- ## File Guide
220
-
221
- | File | What it does | Edit this when... |
222
- |---|---|---|
223
- | [SKILL.md](SKILL.md) | Main entrypoint. Defines the skill metadata, routing rules, required inputs, research checklist, citation standard, and failure handling. | You want to change when the skill triggers, how it chooses Quick vs Deep, or the top-level operating rules. |
224
- | [references/quick/web-research.md](references/quick/web-research.md) | Source-gathering playbook for fast screening. Sets the aggregator-only rule, search budget, extraction targets, triggered evidence checks, and internal brief template. | Quick reports gather too much, too little, or the wrong kind of evidence. |
225
- | [references/quick/methodology.md](references/quick/methodology.md) | Analytical framework for Quick Research. Defines understandability, diagnostic profile, fatal flaws, category checks, bonus points, and the final `SKIP` / `WATCHLIST` / `DEEP RESEARCH` decision. | You want to tune the screening philosophy or change what counts as a pass/fail signal. |
226
- | [references/quick/system-prompt.md](references/quick/system-prompt.md) | Output constraints for Quick Research. Controls word limit, markdown style, citation placement, plain-language rules, and cross-statement validation. | Quick reports are too verbose, too vague, poorly cited, or formatted inconsistently. |
227
- | [references/deep/web-research.md](references/deep/web-research.md) | Source-gathering playbook for due diligence. Defines annual-report discovery, official-source priority, external gap-fills, live market-data rules, and the deep research brief. | You think deep reports miss important source categories, over-browse, or fail to ground analysis in filings and official materials. |
228
- | [references/deep/methodology.md](references/deep/methodology.md) | Full due-diligence framework. Covers business model, track record, balance sheet, cash flow, growth drivers, competition, valuation, triggered modules, and final score. | You want to expand or refine the investment analysis itself. |
229
- | [references/deep/system-prompt.md](references/deep/system-prompt.md) | Output constraints for Deep Research. Controls report length, source priority, markdown format, citation placement, simple language, and validation rules. | You think that deep reports need a different structure, tone, citation discipline, or final-report behavior. |
230
- | [references/filing-rules.md](references/filing-rules.md) | Special handling for regulator data, XBRL, accounting basis, ADRs, secondary listings, and banks, insurers, REITs, and other specialized financial companies. | When you notice the skill to struggle with filing data, non-US listings, or financial companies. |
231
-
232
- ## Customizing The Skill
233
-
234
- For most changes, edit the smallest file that owns the behavior:
235
-
236
- - Triggering or routing: [SKILL.md](SKILL.md)
237
- - Research source selection: the relevant `web-research.md`
238
- - Investment logic: the relevant `methodology.md`
239
- - Final report style: the relevant `system-prompt.md`
240
- - Legal language: [references/disclaimer.md](references/disclaimer.md)
241
-
242
- That separation keeps the skill easier to tune. You can make Quick Research
243
- stricter without touching Deep Research, or change Deep report formatting without
244
- changing the source-gathering rules.
245
-
246
- ## Methodology
247
-
248
- The research framework is inspired by the investment principles popularized in
249
- Peter Lynch's books, especially the emphasis on understandable businesses,
250
- earnings growth, financial strength, valuation discipline, and knowing what kind
251
- of business you are analyzing.
252
-
253
- The skill does not force every company into a single label. Instead, it builds a
254
- diagnostic profile across traits such as:
255
-
256
- - cyclicality
257
- - turnaround status
258
- - growth profile
259
- - business maturity
260
- - asset angle
261
- - dominant analytical lenses
262
-
263
- That profile determines which checks matter most. A cyclical company, a
264
- turnaround, a fast grower, a stalwart-like compounder, and an asset play should
265
- not be judged by the same shortcut.
266
-
267
- ## Citation Standard
268
-
269
- Final reports use claim-level citations. Source lines are placed directly below
270
- the claim they support:
271
-
272
- ```md
273
- - Revenue grew from $10.0 billion in FY2022 to $12.0 billion in FY2024.
274
- source: [Annual Report (FY2024)](https://example.com/annual-report)
275
- ```
276
-
277
- The skill should not cite a source that is absent from the internal Source
278
- Ledger, and it should not include a factual claim unless it can trace that claim
279
- to a linked source.
280
-
281
- ## Disclaimer
282
-
283
- This project is independent and is not affiliated with, endorsed by, sponsored
284
- by, or associated with Peter Lynch, Fidelity Investments, or any related
285
- organization.
286
-
287
- Reports generated with this skill are AI-generated and may contain errors or
288
- inaccuracies. They are provided for educational and informational purposes only
289
- and do not constitute financial, investment, tax, accounting, or legal advice.
290
- Always verify information independently before making investment decisions.
291
-
292
- The skill tends to perform poorly on companies that have recently gone public.
293
-
294
- ## License
295
-
296
- Distributed under the **MIT License** — see [`LICENSE`](LICENSE) for details.
297
-
298
- ---
299
-
300
- <p align="center">
301
- <sub>
302
- Created by <a href="https://www.linkedin.com/in/szymon-nycz/">Szymon Nycz</a>
303
- · Inspired by Peter Lynch's philosophy
304
- </sub>
305
- </p>