/tw-stock-etf-advisor:tw-stock-etf-advisorfrom Taiwan Stock & ETF Advisor
Taiwan AND US stock/ETF research, buy/sell decisions, and personal holdings tracking — two separate books, two separate reports. Use this whenever the user asks about Taiwan ETFs (especially 0050 元大台灣50 and 0052 富邦科技), wants to find common/overlapping holdings between ETFs, asks "which stock should I buy" with reasoning, wants an entry price and sell strategy (buy zone / 停利 / 停損), wants to record a trade they made, or asks to review their current holdings and get selling suggestions. Trigger even when the user only says things like "幫我看 0050 跟 0052 共同持股", "推薦我買哪一檔", "我買了 <股票> <股數> @<價>", "檢查我的持股", or "我現在該賣什麼" — they need this skill's exact data-sourcing and tracking workflow, not ad-hoc browsing. ALSO trigger for US stocks (美股): "should I buy NVDA / AAPL / TSLA", "美股推薦", "QQQ / SPY top holdings", "美股持股檢查", "我買了 NVDA 10 股" — any alphabetic ticker routes to the US book with the same rules. Always fetch live data with agent-browser or the documented JSON endpoints; never guess or derive prices. ALSO use this skill whenever the user wants to SEE or VISUALIZE a stock — "畫 K 線", "畫個 K 線圖", "把買賣點/進出場標在圖上", "show me the chart for 2330", "show me the chart for NVDA", "candlestick chart", "K-line", "視覺化我的持股", "畫出奇鋐的走勢", "畫 NVDA 的 K 線" — it generates a standalone Tokyo-Night candlestick chart (Action D) that marks WHY each buy/sell/hold happened (TW 紅漲綠跌; US 綠漲紅跌, market-aware).
Trending skills
7-day visitors to each skill page
Ships in Taiwan Stock & ETF Advisor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill reproduces a research-to-tracking workflow for Taiwan AND US equities. It has four actions. Figure out which one the user wants from their phrasing, then follow that section. The non-negotiable rules below apply to all of them.
Every Action carries a market dimension, derived from the ticker's shape and owned by
db.mjs marketForCode (Rule 8): numeric codes (2330, 00892) = 台股 (tw), alphabetic
tickers (NVDA, BRK.B) = 美股 (us). Never classify by hand or by memory — every script
emits market in its JSON; read it back.
stock_equity_twd: and stock_equity_usd: — read the matching
key and pass it as --equity; when the needed book's equity is absent, use 6p's
1R-terms clause, never substitute the other book's number through FX. screen.mjs
stamps sizing.equityCurrency so a book mix-up is auditable in every saved plan.positions.mjs theme-stop
hard-errors on a mixed-market theme. Group a US AI leg under a US theme, not the
TW AI 鏈.Eliot/Notes/<YYYY>/stock-holdings.md (台股) and
Eliot/Notes/<YYYY>/us-stock-holdings.md (美股, USD prices, same table format).
Action B routes the write by ticker shape; seed-from-obsidian.mjs seeds and
reconciles each ledger against its own market only.Fetch real data — never guess, never derive prices. Stock prices and ETF
weights change every day. A price computed from "holding value ÷ shares" is a
stale close, not a quote. Always pull the live number with agent-browser. We
learned this the hard way: a derived price was off by 6% the same morning.
For ETF holdings, prefer the fund company's official site over Yahoo. Yahoo
only shows the top 10 holdings and its "資料時間" can lag by weeks (we saw 4/1
data on 6/1). The 投信 (fund company) sites publish the full constituent list at
T+1. Use Yahoo only for live quotes, not for holdings. Exact URLs and
extraction recipes are in references/data-sources.md.
Always state the data-as-of date and surface staleness. Each figure carries its own timestamp (holdings vs. weights vs. price). If something looks old, say so rather than presenting it as current.
3a. Cross-source deviation — compare before trusting either number. When the
same figure at the same timestamp is available from two sources, compare them.
Prices/weights: >1% deviation → 標註 (show both values, use the primary's);
>5% deviation → 封鎖 (the figure enters NO gate/stop/sizing computation until
the primary is re-fetched and confirms which value is real). 0–100 indicators
(K/D/RSI): use absolute deviation (±3), not percentage — the existing histock
spot-check convention (Action A step 5 cites it as "per 3a").
Timing exemption: a live quote vs. the local DB's T-1 close is NOT a
conflict — different timestamps, not a disagreement. Apply a plausibility bound
instead: |live − last settled close| > 10% (Taiwan's 漲跌停 limit) is presumed a
fetch/parse error (wrong ticker, stale page) → re-fetch before analyzing, never
treat it as a real move. 美股 bound: 20% (deviate --market us) — the US has
no daily limit (LULD halts are intraday only) and real earnings gaps of 10–18%
happen; a 10% bound would flag genuine moves as fetch errors and stall Action C,
while 20% still catches wrong-ticker/stale-page errors.
"Verified" means re-fetched from the declared primary with value + timestamp
cited — never assert verification without a fetch.
Computed mechanically by rules.mjs deviate --a V1 --b V2 --kind price|weight| indicator|quote-vs-close (Rule 8) — read verdict/deltaPct/deltaAbs from its
JSON; never hand-compare percentages. If the command errors or the field is absent,
do not assert a deviation verdict.
Primary hierarchy, causes table, and a worked example are in
references/data-sources.md §交叉驗證. (Distinct from Rule 6q: 3a governs
conflicting data; 6q governs missing data.)
This is not professional investment advice. End every recommendation with a short risk/disclaimer line. Taiwan AI-theme stocks are volatile with deep pullbacks — remind the user to verify the latest price/financials and honor stops.
Persist to Obsidian by delegating to Eliot — and mirror the structured bits to
SQLite. This skill does the analysis and data fetching; the narrative vault writes
(analysis note, [[stock]] project log, holdings ledger) go through the Eliot skill
so they follow the user's templates and approval flow (references/obsidian-tracking.md).
Obsidian stays the source of truth for the "why". Separately, the structured data —
daily OHLC price history and decision markers (buy/sell/hold/watch/stop/target with a
one-line reason) — is mirrored into a local SQLite DB so it can be charted and queried
(Action D). The marker's reason is a short echo of the note, never a competing master copy;
the two must not diverge in intent. SQLite mechanics are in references/charting.md. The DB
path resolves env TW_STOCK_DB → Eliot/Profile.md stock_db_path: →
default C:\Users\lizard_liang\personal\stocks\stocks.db (point the override at OneDrive to sync).
Risk management — learned from 2026-06 post-mortem. The following rules exist because a prior analysis cycle produced structurally flawed recommendations that would have lost money even with perfect execution. They are non-negotiable. Audit trigger: if the user asks some form of 「所以每次結論都是不要進場嗎?」/ "is the conclusion always don't-enter?", treat it as a mandatory audit signal: re-check every candidate that failed R:R for stop-regime mismatch (6a-1) and TP1-based R:R (7d) before defending the conclusion. Also check whether the "wait" verdicts trace to an undeclared ATR-hot regime (6m — say so explicitly instead of serial R:R fails) or to a watchlist trigger that fired outside its validity band (6l — that is a trigger-authoring defect, own it as such).
6a. Stop loss is calculated from the buy zone, not the spot price — and its
width formula depends on the entry style (see 6a-1).
The stop loss must give adequate room below the entry the user is told to wait
for. Formula: stop_loss = buy_zone_bottom − max(2 × ATR14, buy_zone_bottom × 0.05).
ATR14 = the 14-day Average True Range, computed from the OHLC in the local DB
(TR = max(high−low, |high−prevClose|, |low−prevClose|), averaged over the last
14 sessions). This accommodates the stock's typical volatility instead of a fixed
−10%. This 2×ATR14 formula applies to Style-1 pullback entries ONLY. Style-2
breakout entries use the structural stop in 6a-1 — applying 2×ATR width to a
breakout inflates 1R and falsely fails R:R (the 2026-07-03 bug).
Why ATR14, not a single day's range (fixed 2026-07 — the paralysis bug): the old
rule used daily_range = 最高 − 最低 of the latest session. After a crash or on a
whipsaw day that single range spikes (we saw ±7.7% on 3037 on 7/1), so 2 × range
produced a stop ~20%+ below entry and every candidate's R:R "failed" → the gate never
said yes for two weeks. ATR14 smooths the outlier day and yields usable stops. If the
DB has < 14 sessions, fall back to the single-day range but flag it as provisional
and do NOT reject a candidate on R:R computed from a lone spike day — recompute once
ATR14 is available.
6a-1. Stop-width regime — match the stop to the entry style (fixed 2026-07-03).
| Entry style | Stop reference | Formula |
|---|---|---|
| Style-1 pullback | buy zone bottom (support level) | bottom − max(2×ATR14, bottom×5%) |
| Style-2 breakout | breakout pivot (base TOP / reclaimed prior high) | just under the pivot, honoring the 5% floor below entry — NOT 2×ATR, NOT the base low |
| Style-3 reversal (added 2026-07-08) | reversal-day low | just under the reversal-day low, honoring the 5% floor below entry — screen.mjs --style 3 --revlow L (hard-errors without it) |
| Style-3c delayed confirmation (added 2026-07-22) | confirmation-day low | min(confirmLow×0.99, bottom×0.95) — screen.mjs --style 3 --confirm (reads today's low from the DB; hard-errors when continuation.qualified is false). NOT the reversal-day low — after a strong day-2 it sits ~10%+ below entry, inflating 1R and recreating the paralysis (2454 2026-07-22: −12.3%) |
Why: a Style-2 entry is only valid while the breakout holds; if price falls back
below the pivot the thesis is dead — waiting out a 2×ATR-wide stop down to the
base low just donates the difference. On 2026-07-03, 2383's 2×ATR stop (−11%,
1R 685) made a real 2.8 R:R read as 1.3 → false "等回測". The structural stop
5,650 (−5.4%, 1R 320) was correct. The over-wide stop is the paralysis
mechanism itself. Enforced mechanically by scripts/screen.mjs: the --style
flag selects the formula, and a Style-2 run without --pivot hard-errors
instead of silently falling back to 2×ATR.
6b. Technical entry gate — must pass BEFORE recommending. Every candidate stock must have its Histock technicals fetched and evaluated before it enters the recommendation list. There are three valid entry styles; a candidate qualifies if it passes any. Do not force every stock through the pullback gate — that biases the whole system toward permanent "wait" in trending / post-crash-recovery tapes (the paralysis bug, 2026-07).
Style 1 — Pullback entry (buy weakness into support). Use when the stock is near a moving average / consolidation floor. Fails (→ exclude or flag "等待進場條件成立") if any of:
Style 2 — Breakout entry (buy strength out of a base). This is the O'Neil/Minervini path the correlation rules cite (6e) but the old gate never implemented. A stock qualifies as a breakout buy — even if it is somewhat extended or RSI is elevated — when ALL of:
Style 3 — Reversal-day entry inside a base (added 2026-07-08, user-approved). The gap between Style-1 and Style-2: a volume-confirmed reversal day inside an established base, before the base top breaks. Without this style, the only legal entries are the support edge and the breakout — a stock reversing mid-base fires its watchlist trigger but is unbuyable (the 2379 2026-07-08 contradiction: trigger met at 817, Style-1 R:R fails, Style-2 pivot not yet broken). Qualifies when ALL of:
screen.mjs — never by eye. Read
reversal.declineStart / reversal.reclaimed from the screening JSON. This test
was the one Style-3 condition never mechanized, and hand-reading it caused a
mis-call on 2026-07-20 (a down-close was overlooked, so the segment was reported
as 1 day when it was 2). If reversal is absent from the JSON, do not assert the
test passed.screen.mjs --style 3 hard-errors when 量 ≤ 5日均量 (it was
prose-only before, so a volume-failed Style-3 could be planned by hand). A failing
candidate routes to the 6j-A2 試行 paper track (--vol-trial), not to a buy.screen.mjs --style 3 --revlow), and R:R to the reward target ≥ 1:1.5.
Execution constraints (stricter than Style-1/2 because the base top has NOT yet
confirmed): pilot 50% only, never full size; add the rest only after the base
top breaks out (Style-2 rules take over from there); close back below the
reversal-day low = out, no averaging, no second guess. The entry window is the
reversal-day close +1% — beyond that the edge is gone (see 6l), wait for the
breakout.Style 3c — 延遲確認 (delayed confirmation, added 2026-07-22, user-approved). The hole between Style-3 and Style-2: a reversal day fires without full confirmation (typically volume, Rule 6j), and the confirmation arrives on the NEXT session — but Style-3's window keys on TODAY being the reversal day, so the confirmed day-2 had no legal entry path. The incident: 2454 on 2026-07-22 — 7/21's reversal day failed volume (0.84×) AND reclaim (gap +1.9%); 7/22 delivered both (1.58×, close 3,850 > declineStart 3,740) plus KD golden and converged ATR, yet Style-3 said "window expired", Style-2 said "no base", Style-1 said "not a pullback". 4th instance of the "mechanically correct gate emits 等 in a regime it wasn't designed for" defect class. A session qualifies as a 3c entry when ALL of (as-of the confirmation day — NOT "yesterday failed only volume"; 2454's reversal day failed reclaim too, and both arrived late together):
>; one threshold per rule).continuation.{qualified,checks,failures[]} from screen.mjs — never by eye;
if continuation is absent, do not assert the gate passed. Stop per 6a-1: the
confirmation-day low (--style 3 --confirm; the script refuses to plan when
unqualified). Execution: same as Style-3 — pilot 50% only; close back below the
confirmation-day low = out, no averaging (the confirmation must hold — that IS the
thesis); validity band = confirmation-day close +1% (6l, band style 3). Note: 3c makes
the day-2 case legal, not automatically good — a +15%-off-the-low entry may still
fail R:R to the nearest structural target, and that is then an auditable R:R no.
試行觀察期 (TRIAL — user-mandated 2026-07-22, not yet a buy path). Until the user
explicitly promotes 3c, a continuation.qualified day is reported as
「3c 成立(試行,不作買進建議)」— never as 進場條件成立, never in the buy list.
For each qualified instance, run the --style 3 --confirm trade plan anyway and record
a paper track in the analysis note (entry = confirmation close, the plan's stop/TP,
then track the hypothetical outcome in later sessions). Promotion review after 2–3
qualified instances with their paper outcomes — the user decides 轉正 or 作廢. Why the
trial: the rule was designed off ONE incident (2454 2026-07-22); the author's own
diagnostic (「若鏈上成形而系統仍買不了才確診」) was never evaluated before implementation
— the trial IS that observation, run with instruments instead of eyeballs.6c. No-chase rule — applies to spikes, NOT to base breakouts or base reversals. If a stock is up > 3% on the session as an isolated spike in open air (no base breakout, or it is the 2nd+ consecutive extended up-day far above 20MA), mark it "勿追高,等下一交易日" and give the buy zone for a future pullback only. But a
3% move that IS a volume-confirmed Style-2 breakout from a base is the entry signal itself, not a chase — do not exclude it under 6c; buy the breakout per 6b Style 2. Likewise a > 3% move that qualifies as a Style-3 reversal day inside a base (volume-confirmed, day 1–2, reclaiming recent closes) is an entry signal, not a chase — 6c does not block it. And likewise a > 3% session that qualifies as a Style-3c 延遲確認 day (
continuation.qualifiedfrom screen.mjs) is not a chase — though during the 3c trial period it is report-only, not a buy (see 6b 3c). Distinguish the cases explicitly in the writeup (spike vs base-breakout vs base-reversal vs delayed-confirmation) so the reason is auditable. Never set a pullback buy zone that includes today's price when a stock is merely spiking without a base.
6d. Staged take-profit, not a single far target. Replace the old "+15~20% single target" with staged exits:
6e. Correlation-aware position sizing (replaces forced diversification). Same-theme concentration is acceptable — forced cross-sector diversification at small portfolio scale dilutes returns without proportionally reducing risk (O'Neil, Minervini, Acadian study). The real fix is sizing and exits.
6e-1. Treat same supply chain as ONE correlated exposure. All positions within the same supply chain (e.g. AI server: material → thermal → ODM) depend on the same end demand. A demand shock hits all simultaneously. Size as one combined position, not N independent bets.
6e-2. Per-position risk cap: 1% of account equity — of the MATCHING book.
shares = (account_equity × 0.01) / (entry_price − stop_price).
This replaces "buy N shares" — position size is derived from the stop distance.
The equity is always the book matching the stock's market (市場維度 §2): TWD
equity for TW codes, USD equity for US tickers — never the combined worth, never
an FX conversion. Check sizing.equityCurrency in the script output.
6e-3. Per-theme heat cap: 2% of account (all correlated positions combined).
For 3 same-chain positions: each risks ~0.67% max, not 1% each.
For 2 same-chain positions: each risks ~1% max.
Always state the per-theme heat in the recommendation so the user sees the
combined risk.
Computed mechanically by rules.mjs heat --json legs.json --equity E [--cap 2]
(Rule 8) — read themeHeatPct/overCap/legs[].sharesAtCap from its JSON; never
apply the cap "manually" by eye. When overCap, size to sharesAtCap, not shares.
6e-4. Theme-level stop loss (fires before individual stops). When total unrealized loss across all same-theme positions reaches:
positions.mjs theme-stop --theme "<name>" --price code=P [--price code=P ...] (Rule 8) — read tier/action/weakestLeg from
its JSON; never hand-sum invested/live across legs or eyeball which leg is
weakest. If the command errors (missing --price for a leg), do not assert a
tier.6e-5. Entry protocol: pilot → add, never full size at once. First entry: 50% of intended position. Add the remaining 50% only after price confirms (holds above entry for 2+ sessions, or breaks out of consolidation). If the pilot hits stop, do NOT add — exit and reassess.
6e-6. Disclose correlation in every multi-stock recommendation. When recommending 2+ stocks from the same theme, always include:
6f. Market condition gate (Minervini/Weinstein).
The market environment is a prerequisite for any concentrated theme position.
Check the market's OWN index before recommending entries — TAIEX (加權指數,
^TWII) for 台股; S&P 500 (^GSPC) for 美股, same three tiers:
6g. Buy zone anchored to technical levels, not arbitrary percentages. The buy zone should reference actual support levels: 20MA, recent consolidation floor, or a Fibonacci retracement — not "current price minus 3%". State which technical level anchors the buy zone so the user understands why that zone and can judge if the level breaks.
6h. Earnings blackout — event risk overrides technicals. The entire rule set above is price/technical-based and is blind to scheduled events. The real account-killer is a gap, and gaps come from events — an ATR stop at 2,550 is worthless if an earnings miss gaps the open to 2,400, because stops do not fill in gaps. Therefore, before any entry, check the stock's next earnings (財報/法說) date:
references/data-sources.md).rules.mjs earnings --event <date> --from <date> [--market tw|us] (Rule 8) — the model supplies the earnings date (a
judgment/discovery input); the script counts trading days and reads back
tradingDaysAway/blackout/coverageVerified/warning. Never count trading
days by hand — an off-by-one here flips enter/don't-enter (2026-07-20: 1590 sat
exactly on the 6-vs-5 line). 美股: always pass --market us — the NYSE
calendar differs (Thanksgiving is a normal TWSE session; 春節 is a normal NYSE
week), and the script keeps the two calendars fully separate.coverageVerified: false is an instruction, not decoration (added 2026-07-20).
It means the range is NOT inside verified coverage — verified = the ohlc-derived
span ∪ years actually synced from TWSE. The built-in holiday table never counts
as verified, because it has now silently missed real closures twice (2026-04-06 /
07-10, then 2026-02-27 / 10-09 make-up Fridays), and typhoon closures cannot be
enumerated in advance at all. So when coverageVerified: false:
tradingDaysAway <= 7 → treat as blackout (「建議:不進」per 6h-1) unless you
first re-run with --sync-holidays and it comes back verified. Rationale: one or
two unknown closures inside the window is exactly the plausible error, and 6+2
covers it. A false blackout costs a missed entry; a false all-clear costs an
un-stoppable earnings gap — the asymmetry decides it.tradingDaysAway > 7 → proceed, but state the count is provisional.
Report the warning text verbatim rather than paraphrasing it as "資料略舊".
美股 coverage: there is NO --sync-holidays source for NYSE (the flag
hard-errors with --market us) — US verified coverage comes solely from fetched
US OHLC. To verify a US window, run fetch-history.mjs SPY --months 24 (SPY
trades every NYSE session, so its span IS the calendar), then re-run earnings.6h-1. 事件牆輸出規格 — 二選一指令,禁止中性語句 (added 2026-07-15, user-audited). Whenever a watchlist trigger's firing window overlaps a known binary event — the stock's OWN earnings (the hard block above), or a theme core event (e.g. 台積電法說 for the semi chain) — the watchlist entry MUST end with an explicit binary directive:
6i. Ex-dividend awareness — do not mistake the 除息 gap for a breakdown. Taiwan's ex-dividend season is heavy (roughly June–August). On the ex-dividend (除權息) day a stock's price drops mechanically by the dividend amount. This:
fetch-history.mjs <TICKER> --months N) so old rows restate.6j. Volume confirmation — a reclaim/breakout without volume is suspect. The technical gate (6b) uses price/MA/KD/RSI but ignores volume; we already fetch 成交量 from Histock every session, so this is the cheapest high-value add. Per O'Neil/Minervini, a reclaim of a key MA or a breakout on below-average volume is a likely fake.
6j-A2. 量能門檻試行觀察期 (TRIAL — added 2026-07-28, user-ruled A3→A2). Three pre-registered backtests found no demonstrated discriminative power in the 1.0× threshold, 2:1 against:
| 樣本 | 期間 | 量比 ≥1.0 | 量比 <1.0 | 指向 |
|---|---|---|---|---|
| IS 132 檔 | 2023-07~2026-07 | +0.243R | +0.085R | 支持 6j |
| OOS 300 檔 | 2023-07~2026-07 | +0.126R | +0.197R | 反對 |
| Tiebreak 432 檔 | 2018-01~2023-07 | +0.281R | +0.334R | 反對 |
6,800+ signals over 8.5 years. Read this correctly: "6j 沒用", NOT "量縮較好" — the tiebreak margin is only −0.053R. 6j removes 38.3% of Style-3 candidates (≈13/year on a 14-name chain) — by far the biggest gate (22× Rule 6h's 2.5%).
Rule: a Style-3 candidate that passes everything except 6j's volume leg is
TRACKED, not vetoed — run screen.mjs --style 3 --revlow L --vol-trial and record
a paper track in the analysis note (entry = that close, the plan's stop/TP, then
track the outcome in later sessions). Report it as
「6j-A2 成立(試行,不作買進建議)」— never as 進場條件成立, never in the buy list.
Pilot on promotion would be 25% (half the Style-3 50%), read from the plan's
pilotPct/sizing.pilotShares — never hand-halved.
Promotion review after 3–5 tracked instances; the user decides 轉正 or 作廢.
Scope: plain Style-3 only. Style-1/Style-2 are untouched (their volume handling is
unchanged), and Style-3c is excluded — it is already its own trial, and --vol-trial
must never unlock an unqualified continuation.
Timing caveat (state it when reporting a trial instance): the 2026-06-03~07-27
period check showed 6 of the 7 volume-confirmed Style-3 signals were −1R in that
regime. Loosening throughput in a bad tape is exactly when it hurts — the trial exists
so this is measured, not assumed.
⚠️ Descriptive-only observation from the tiebreak, NOT actionable without a fresh
pre-registration: the ≥1.5× bucket had the lowest avgR (+0.224 vs +0.348 for
1.0–1.5×), contradicting 6b Style-3's「≥ 1.5× strengthens it」. Do not change 6b on
this basis. Harness + pre-registrations: personal/stocks/experiments/.
6b-R1. reclaim 條件試行觀察期 (TRIAL — added 2026-07-31, user-approved).
The Style-3「收復跌段起點」condition was the ONLY Style-3 leg never isolated in a
backtest (every harness baked reclaimed into pass). The pre-registered experiment
(experiments/reclaim-preregistration.md) passed all three frozen hypotheses in BOTH
adjudicating samples — the blocked group had HIGHER avgR and LOWER stop rate:
| 樣本 | reclaimed(放行) | notReclaimed(被擋) |
|---|---|---|
| OOS-A 150 檔 2018–2023 | +0.092R / 停損 56.2% | +0.163R / 55.1% |
| OOS-B 300 檔含上櫃 3 年 | +0.120R / 52.8% | +0.219R / 49.5% |
Proxy fidelity 100%/99.7% (2,145 pairs). 4 samples total (2 exploratory + 2 frozen), all same direction, no sign flip.
Rule: a reversal day that passes every other Style-3 leg (KD golden, volume, RSI,
base judgment) and fails only the reclaim test is TRACKED, not vetoed — run
screen.mjs <code> --style 3 --revlow L --zone … (the script auto-tags
reclaimTrial: true, variant: '3-reclaimTrial', pilotPct: 25) and record a
paper track in Eliot/Notes/2026/reclaim-trial-tracker.md. Report it as
「reclaim-試行成立(試行,不作買進建議)」— never as 進場條件成立, never in the
buy list. Promotion review after 3–5 tracked instances — the user decides 轉正
or 作廢. Scope: plain Style-3 only (Style-3c untouched — its reclaimedNow check
stays; it is its own trial). A candidate failing BOTH volume and reclaim is a
dual-failure belonging to NEITHER trial's clean sample (the script flags it).
The reclaim fields (reversal.declineStart etc.) keep being computed and reported —
the trial changes the CONSEQUENCE of reclaimed: false, not the measurement.
6l. Trigger validity band — a late-firing trigger is a rewrite, not a buy (added 2026-07-08). Every watchlist trigger condition MUST state a validity band: the anchor level up to +2% (Style-2 breakout triggers: the pivot up to +2~3%, per 6b; Style-3: reversal-day close +1%; Style-3c: confirmation-day close +1%, same band-style-3 width). If the condition first fires with price already beyond the band, it is a late fire: do NOT chase, do NOT report it as "進場條件已成立" — report "遲到觸發(超出有效帶 X%)" and rewrite the trigger the same session (new anchor, or switch the path to breakout/reversal). Why: on 2026-07-08, "站穩 776 上" fired at 817 (+5.3% above its anchor) — met-but-unbuyable is a contradiction the trigger's author created, and resolving it ad hoc looks like paralysis. The 觀察名單 entry format (step 9) carries the band explicitly.
6l-1. The band is TWO-SIDED, and it is NOT the buy zone (added 2026-07-29, user-identified). Two distinct errors, both made on 3504 the same session:
rules.mjs band returns fired: false for any price under bandLo. A price below the
anchor is not a cheaper entry into the same setup; it is a session in which the
entry condition is simply untrue. Never set a buy-zone floor below the anchor.
In particular, never use an EXIT level as an ENTRY floor — the Style-3
thesis-death line (reversal-day low) says when to get out; using it as a
buy-zone bottom fabricates room no rule grants (3504: floor written at 62.5,
6.1 元 below any authorised price).The authorised entry set is the intersection: [bandLo, bandHi] ∩ {price : R:R ≥ 1.5}, then aligned to the exchange tick. It may be a single point (3504
2026-07-29: [68.6, 69.29] ∩ (−∞, 68.68], tick 0.1 → {68.6}) or empty (6668
same session: R:R ceiling 36.18 sits below the band floor 37.15 → no legal price
exists, so it is not a buy at any price). Both are legitimate, reportable answers —
say 「唯一合法進場價 X」 or 「授權集合為空」 rather than widening the zone to make
it look tradeable. The tick is per-market (script-owned): the TWSE/TPEx ladder
for 台股; a flat $0.01 for 美股 — so a US ceiling stays cent-aligned and the
single-point/empty geometry is far rarer there.
Computed mechanically by screen.mjs's trade plan → entryAuthorised (Rule 8,
added v1.15.0). Read lo/hi as the buy zone; singlePoint/empty/binding
explain which constraint bound. Never quote the band alone as a buy zone, and
never re-derive the ceiling by trying prices — that hand-work is what produced
both 3504 errors. Two details the script owns because they are easy to get wrong:
the ceiling is floored to the tick, never rounded (rounding up yields a price
that fails the very test it claims to pass — 68.6666 → 68.67 → R:R 1.4993), and it
is computed from the reported (rounded) stop so a reader can reproduce it from
the numbers printed in the same object.
Computed mechanically by rules.mjs band --style 1|2|3 --anchor A [--price P] [--breakout-pct N] (Rule 8) — read bandLo/bandHi/fired/lateFire/
excessPct from its JSON; never hand-write the ±% band or eyeball a late fire. If
lateFire is absent (no --price given), do not assert whether the trigger fired
in-band or late.
6m. ATR-hot regime — declare the closed pullback path instead of serially
failing R:R (added 2026-07-08). When atrPct > 6% (screen.mjs sets atrHot: true), the Style-1 2×ATR stop makes essentially the entire pullback zone fail
R:R by construction — only the extreme zone bottom can pass. That is math, not
judgment; hiding it inside per-candidate R:R failures reads as "the system always
says wait". Instead, state the regime up front in the analysis: "ATR 未收斂
(X%):回檔路徑關閉,僅突破 (Style-2) / 反轉日 (Style-3) 路徑有效;回檔僅買區
最下緣一點勉強可用". Re-open the pullback path when atrPct ≤ 6%. Do not present
Style-1 zones for an ATR-hot stock except that single bottom point, and label it
"只在買區下緣進".
6n. Stop-execution accountability — an unexecuted stop is theater (added 2026-07-08). In June 2026 a stop-breach exit was re-recommended for ~13 consecutive sessions while the position bled to −20%; the system repeated itself daily with no escalation path. Rule: when a stop-breach exit recommendation goes unexecuted for 2+ sessions, the analysis must force a binary decision and accept no third option:
--status invalidated with the re-underwrite as --outcome, and assert the new
stop marker. The position is then judged against the NEW plan, not nagged about
the old one.
Until one of the two happens, every analysis leads with the 持股警報 pinned at
top, counting the sessions since breach ("破停損第 N 日"). A stop that neither
fires nor is consciously re-underwritten protects nothing.
Computed mechanically by positions.mjs breach-check [--price code=P ...]
(Rule 8) — read breached/sessionsSinceBreach/forcedBinary/note per
position; never count sessions since breach by hand. A stop_status of
reunderwritten or void always reports breached: false — that is the
re-underwrite record, not a bug; do not re-flag it as an unexecuted stop. The
execute-or-re-underwrite CHOICE itself stays user/model judgment — the script
only flags WHEN the binary is due (forcedBinary), never which branch to take.6o. Every position must carry a thesis (added 2026-07-08). A prospective
thesis note is created at Action B buy time and re-scored with a numeric health
score at every Action C review — the reactive post-mortem habit becomes a
prospective discipline. Falsifiable core assumptions get a 🟢/🟡/🔴/⚫ status each
review; red lines (the ATR stop breach is always one) pre-commit the action that
Rule 6n enforces, so an exit-or-re-underwrite decision is a lookup, not a fresh
argument. Full template, health-score formula, action mapping, and drift
classification are in references/thesis-tracking.md — read it before Action B's
thesis step and Action C's re-score step.
Computed mechanically by rules.mjs thesis --json thesis.json (Rule 8) — the
model supplies each assumption's 🟢/🟡/🔴/⚫ status and each red line's
triggered/not (judgment inputs); the script returns health/breakdown/
action/forcedBinary. Never hand-compute the formula or hand-write the
breakdown string — quote them verbatim into the thesis note's 複審紀錄.
6p. 鏡子測試 — 說不完整就不進場 (added 2026-07-08). Rules 6b–6o are all veto gates — they can only say no. This is the affirmative half: before any stock is presented as a buy (not a watchlist item), complete a 5-sentence mirror test. A completed test is documented conviction; an incomplete one demotes the pick to 觀察名單, never a buy.
Rules:
screen.mjs trade-plan JSON values verbatim — no
hand-math, same discipline as step 7.Why: the veto gates (6b–6o) prevent bad entries; the mirror test proves a good one — it is the counterweight that turns "nothing vetoed it" into "here is the complete case".
6q. 資料充足度分級 (A/B/C) — 沒有資料就沒有訊號 (added 2026-07-08). Before analyzing any candidate, rate its data availability from five named checks. This generalizes 6a's provisional-ATR fallback (a B-level precedent) into a system-wide honesty rule: thin Taiwan small caps and sparse ETF constituents should get an honest "no signal" instead of a forced recommendation or a fake gate failure.
screen.mjs 能跑,不 hard-error)。Rating:
先補再降級: thin local history → 先跑 fetch-history.mjs <code> --months N
(上櫃加 --market tpex)再評級;C 只在缺口撐過補抓之後才成立(新上市、極端
冷門、來源不可達)。絕不用未補抓的資料直接判 C。
C 級輸出規格: 排除在推薦之外,歸類到獨立的「資料不足」類別 — 不與技術面 gate failure 混列(這個區分讓 audit trail 誠實:gate 沒有說話,是因為它無法 判斷,而不是判斷後說不);必須附具體升級路徑(「另補 N 個交易日後重評」/「補 財報日後重評」)。非懲罰性:C 判定是完整答案;絕不為了湊滿 N 檔而灌水 (呼應 Action A step 6 的 no-padding 規則)。
Worked examples:
Why: forcing a signal out of missing data is how thin small caps turn into
unbounded risk — an unverifiable earnings date defeats 6h, an uncomputable ATR
defeats 6a, and thin volume defeats the stop itself.
Computed mechanically by screen.mjs <code> [--quote-ok] [--events-known]
(Rule 8) — read dataGrade.{grade,checks,gaps,upgradePath} from its JSON; never
hand-rate the five checks. quoteAvailable/eventDatesKnown are judgment flags
(default unknown → partial when the flag is omitted); the other three checks
are derived from the local DB. If dataGrade is absent, do not assert a grade.
Rule 8 — 規則計算歸屬表 (added 2026-07-20, rule-math-mechanization). Every numeric rule in this skill is owned by EXACTLY ONE of: a script + JSON field (read only, never hand-derive), or "model judgment" (a genuinely human input — pattern recognition, event-date discovery, theme grouping, assumption authoring). A rule absent from this table is a bug in the table, not a signal that it's unmechanized — file it. This table exists because the Style-3 reclaim test (2026-07-20) slipped through hand-computation for 12 days with no inventory to catch it as unowned.
| Rule | What's computed | Owner | Model may only |
|---|---|---|---|
| 6a ATR14 stop width | 14-TR average, stop distance | screen.mjs → atr14/atrPct/atrProvisional (screen); stop (trade-plan) | read |
| 6a-1 stop-width regime (style → formula) | which formula + the stop price | screen.mjs trade-plan → stop/stopPctBelowBottom/notes[] | read (hard-errors on Style-2/3 without --pivot/--revlow, and on --style 3 --confirm when continuation.qualified is false) |
| 6b Style-1 gate | 4 overbought/momentum checks | screen.mjs → gate.style1.{pass,failures[]} | read |
| 6b Style-2 partial gate | volume/KD/MACD/RSI mechanical checks | screen.mjs → gate.style2Partial.{...} | read (base recognition + pivot level stay judgment) |
| 6b Style-3 reclaim test | decline segment + reclaim | screen.mjs → reversal.{declineDays,declineStart,reclaimed,reclaimGapPct} | read (absent → do not assert it passed) |
| 6b Style-3c delayed-confirmation gate (NEW) | yesterday's day-1/2 candidacy + the 7 confirmation-day checks | screen.mjs → continuation.{qualified,checks,failures[]} | read (absent → do not assert it passed) |
| 6d staged take-profit | TP1/TP2 prices | screen.mjs trade-plan → tp1/tp2 | read |
| step 7 / "Rule 7" R:R (to reward target, not TP1) | 1R, R:R, pass/fail, reward-target selection = max(結構目標, TP2) (2026-07-31 audit: the nearest-structure habit made the gate unpassable by construction — a 5%-floor stop needs a target ≥ mid+7.5%; 2330 nearest 0.52 vs TP2 2.34 — while every backtest validated the gate against TP2. A dominated structural target demotes to TP0/近程壓力.) | screen.mjs trade-plan → oneR/rr/rrPass/rewardTarget/structuralTarget | read (supplies --target; never re-judges rr against a dominated near target) |
| 6e-2 per-position 1% sizing | share count from stop distance | screen.mjs trade-plan → sizing.shares/sizing.riskDollars | read |
| 6e-3 per-theme heat cap (NEW) | combined theme risk %, scaled sizing | rules.mjs heat → themeHeatPct/overCap/legs[].sharesAtCap | read |
| 6e-4 theme-level stop (NEW) | combined unrealized %, tier, weakest leg | positions.mjs theme-stop → unrealizedPct/tier/action/weakestLeg | read |
| 6h earnings blackout (NEW) | trading-day count to event | rules.mjs earnings → tradingDaysAway/blackout/coverageVerified/warning? | read (supplies --event/--from); coverageVerified: false + tradingDaysAway <= 7 ⇒ treat as blackout unless --sync-holidays verifies — see 6h |
| 6j volume confirmation | volume vs 5-day average | screen.mjs → volRatio/signals.volConfirmed/signals.volStrong; Style-3 trade plans hard-error when unconfirmed | read |
| 6j-A2 量能試行 (NEW) | trial flag + 25% pilot split | screen.mjs --style 3 --vol-trial → volTrial/variant/pilotPct/sizing.pilotShares | read (report-only during the trial; never a buy) |
| 6b-R1 reclaim 試行 (NEW 2026-07-31) | auto trial tag on a reversal day failing only reclaim + 25% pilot | screen.mjs --style 3 → reclaimTrial/variant/pilotPct (auto-detected, no flag) | read (report-only during the trial; never a buy; dual vol+reclaim failure = neither trial) |
| 6e-5 pilot fraction (NEW) | pilot % and pilot share count | screen.mjs trade-plan → pilotPct/sizing.pilotShares/sizing.pilotRiskDollars | read (never hand-halve a position) |
| 6l trigger validity band (NEW) | band edges, late-fire excess % | rules.mjs band → bandLo/bandHi/fired/lateFire/excessPct | read |
| 6l-1 authorised entry set (NEW) | band ∩ R:R ceiling, tick-aligned | screen.mjs trade-plan → entryAuthorised.{band,maxEntryForRR,tick,lo,hi,singlePoint,empty,binding,notes[]} | read — quote lo/hi as the buy zone, never the band alone; empty:true = not a buy at any price; singlePoint:true = say 「唯一合法進場價 X」, never widen it |
| 6m ATR-hot regime | ATR% vs 6% threshold | screen.mjs → atrHot | read |
| 6n breach session counter (NEW) | sessions since breach, forced-binary flag | positions.mjs breach-check → breached/sessionsSinceBreach/forcedBinary | read (execute-vs-re-underwrite choice stays judgment) |
| 6o thesis health score (NEW) | health formula, breakdown string, action | rules.mjs thesis → health/breakdown/action/forcedBinary | read (🟢/🟡/🔴/⚫ status + red-line trigger are judgment inputs) |
| 6q data-richness grade (NEW) | 5-check grade, gaps, upgrade path | screen.mjs → dataGrade.{grade,checks,gaps,upgradePath} | read (--quote-ok/--events-known are judgment flags) |
| 3a cross-source deviation | Δabs/Δ%, verdict | rules.mjs deviate → deltaAbs/deltaPct/verdict | read |
| Action C P&L + sell signals (NEW) | cost×shares, unrealized P&L, stop/target hit | positions.mjs review → invested/live/unrealized/unrealizedPct/stopHit/targetHit | read |
| market classification (市場維度, v1.20.0) | tw vs us from ticker shape | db.mjs marketForCode — surfaced as market in every script's JSON | read (never classify by hand) |
| 6l-1 US tick (v1.20.0) | $0.01 flat tick for US entries | screen.mjs tickSize(price,'us') → entryAuthorised.tick | read |
| 6q US liquidity floor (v1.20.0) | US$20M/day dollar-volume check | screen.mjs → dataGrade.checks.liquidity (floor selected by market) | read |
| 6h US trading-day count (v1.20.0) | NYSE-calendar day count to event | rules.mjs earnings --market us → tradingDaysAway/blackout/coverageVerified | read (supplies --event; --sync-holidays hard-errors for us — verify via SPY fetch) |
| 3a US quote bound (v1.20.0) | 20% plausibility bound | rules.mjs deviate --market us --kind quote-vs-close → threshold/verdict | read |
| 市場維度 §3 cross-market theme guard (v1.20.0) | mixed-market theme rejection | positions.mjs theme-stop — hard error on a theme spanning tw+us | read (split the theme per market) |
| Action C per-book scoping (v1.20.0) | one book per report | `positions.mjs review/breach-check --market tw | us+ rowmarket` field |
| 6c no-chase classification (spike vs base-breakout vs base-reversal) | — | model judgment | uses screen.mjs's chgPct/signals.dayGainGt3/volConfirmed as inputs |
| 6e-1 / 6e-3 theme/correlation grouping | which stocks share a theme | model judgment | supplies positions.theme / heat's legs.json grouping |
| 6f market condition gate (TAIEX vs 50/200MA for tw; S&P 500 vs 50/200MA for us) | — | model judgment (pending a future network delta — explicitly out of scope for rule-math-mechanization) | applies the gate by hand from a fetched index quote/MA until mechanized; per-market index, never cross-applied |
| 6g buy-zone anchor (which technical level) | — | model judgment | the chosen level becomes rules.mjs band's --anchor |
| 6h/6i event-date discovery (next 財報/除權息 date) | — | model judgment | the discovered date becomes rules.mjs earnings's --event |
| 6i ex-dividend adjustment (restore dividend in close-vs-close comparisons) (mechanized 2026-07-31 — the 7769 64.99 incident: reclaim compared an ex-div close to a cum-div anchor) | dividend-restored up/down runs, decline segments, reclaim anchors, chgPct (vs 參考價, exchange convention) | screen.mjs → reversal.{declineStart,declineStartRaw,divAdjusted}/divEvents/nextDiv; data via fetch-dividends.mjs (TWSE full history; TPEx forward-window only — absence of a row is NOT proof of no dividend) | read (stop-adjustment for HELD positions and 除息日 sell-signal interpretation stay judgment) |
| 6n execute-or-re-underwrite decision | — | model + user judgment | breach-check's forcedBinary only flags WHEN a decision is due, never which branch |
| 6o assumption status (🟢/🟡/🔴/⚫) + red-line triggered/not | — | model judgment | becomes rules.mjs thesis's --json input |
| 6p mirror test (5 sentences) | — | model judgment (narrative) | sentences 2/4/5 quote other rules' script fields verbatim, no hand-math |
6q quoteAvailable/eventDatesKnown | — | model judgment (flags) | passes --quote-ok/--events-known to screen.mjs |
Adding or altering any numeric rule later: a row in this table + a golden test
case (node --experimental-sqlite --test, run from the skill root — node --test scripts/ does not work on Node 22.18) are part of the change, not follow-up.
Triggered by: "0050 跟 0052 共同持股", "推薦我買哪一檔", "哪一檔個股推薦購買". The user names two (or more) ETFs and wants overlapping holdings plus a reasoned pick. When the user does NOT name ETFs ("do today's analysis"), use the default set: 0050, 0052, 00892, 0051, 00733 (full-list) + 00891, 00904 (top-10 confirmation-only — see step 2). The candidate pool has two sources: the ETF union (step 2, carries index conviction) and the whole-market scan (step 2b, catches what no index committee picked).
Fetch full holdings for each ETF from the official 投信 site (not Yahoo).
See references/data-sources.md for the URL per ETF and the exact
agent-browser extraction recipe (the tables are div-based — read innerText
around a known holding, don't rely on querySelectorAll('table')). 權重與官網差
1% 依 3a 標註 (if Yahoo's weight for the same holding is ever consulted and disagrees with the 官網 by more than 1%, flag per Rule 3a and use the 官網 value).
Compute the membership-score table (soft tiers) — NOT an intersection. An intersection can only shrink as ETFs are added, and with top-10-only sources in the set it is mathematically capped at ~10 mega-caps — that was the old pool bottleneck. Instead:
2b. 市場掃描 — the non-ETF discovery source (added 2026-07-17). The ETF union
can only ever contain index constituents — names no index committee picked would
never surface, which is the pool's structural blind spot. Run
node --experimental-sqlite scripts/scan.mjs (CLI + output glossary in
references/charting.md §10; endpoints in references/data-sources.md
§市場掃描). It sweeps EVERY 上市/上櫃 common stock (~1,900) from official
TWSE/TPEx JSON — no browser — applies the hard liquidity floor (成交值 ≥
NT$1億/日; Rule 6q check 5 — a stop on an illiquid name is fiction, and this
floor is the honest replacement for the "professionals already filtered it"
safety that ETF membership provided), then returns three ranked signal lists:
multiSignal (hits on 2+ lists — read these first). Cross-reference
with the step-2 table: a scanned name that IS an ETF constituent keeps its ETF
tier (the scan corroborates it); a scanned name in NO fetched ETF gets tier
掃描 — below 單一 — and carries the flag 「非ETF成分,無指數把關」 into any
shortlist or writeup. The scan widens discovery only: scanned candidates pass
through exactly the same step-5 gates (6b/6h/6i/6j) and Rule 6q rating as
everyone else — a thin small cap still gets C-rated, not recommended.
Best-effort: if Node/network fails, say so and proceed with the ETF pool alone;
never hand-fetch or hand-parse these endpoints (the field indices are the
script's job, same discipline as screen.mjs and Rule 1's no-derive).^TWII) quote and its 50-day/200-day MA from Histock or Yahoo. If
TAIEX is below its 200-day MA, stop here — recommend cash, do not proceed to
stock selection. If below 50-day MA, flag reduced exposure and halve the theme
heat cap for all subsequent sizing calculations.3.5. Load prior context — watchlist & holdings. This step bridges consecutive analysis sessions so tracking is continuous.
a. Read the most recent analysis note. Search Obsidian for the latest stock
analysis note: obsidian search query="tags: stock, analysis" path="Eliot/Notes" format=json limit=1. Read that note and extract:
- 觀察名單 (watchlist): stock codes + their trigger conditions (e.g. "欣興:
等 KD 黃金交叉 + 站回 20MA")
- Previous recommendation: what was recommended last time and at what levels
If no prior note exists, skip — this is the first analysis.
b. Read the holdings ledger. obsidian read path="Eliot/Notes/2026/stock-holdings.md" to get ## 持有中 positions. For
each held stock, note code/name/cost/stop/TP. These holdings will be checked
against live data in step 5 alongside the candidates — if any holding has
breached its stop, surface it as a 持股警報 at the top of the output (before
the ETF analysis), since stop-loss discipline is more urgent than new picks.
c. Evaluate watchlist trigger conditions. For each watchlist item, its trigger condition will be checked during step 5's technical fetch. If a previously flagged stock now meets its entry condition (e.g. KD golden cross has formed, price has pulled back to 20MA), promote it to the candidate list in step 4 with a note: "前次觀察名單標的,進場條件已成立". If the condition is still not met, carry it forward to this session's watchlist with updated technicals.
d. Present continuity summary (brief, before the main analysis): - "前次分析 (YYYY-MM-DD): 推薦 X,觀察 Y/Z" - "持有中: A (@cost), B (@cost)" - "觀察名單進場條件檢查: 見 step 5"
Shortlist candidates (pre-technical screen). Identify 4–6 candidate stocks
from the membership-score table (step 2) and the market-scan lists (step
2b) based on tier, weight, theme, signal strength, and structural story.
Prefer 核心/確認 tiers by default; scan multiSignal hits rank alongside them
(two independent signals is real evidence). A 單一-tier candidate
(especially a 0051/00733-only mid/small cap) is allowed but must carry its tier
flag into the recommendation writeup; a 掃描-tier candidate needs a stronger
story still — name which scan signal(s) surfaced it and why the setup is more
than a one-day pop — and Rule 6q's data-richness/liquidity
rating gates it as usual — a mid/small cap whose volume can't support a stop
gets C-rated, not recommended (scan names are typically NOT in the local DB
yet: fetch-history.mjs <code> --months 4 first, --market tpex for 上櫃,
per the step-5 fetch-before-downgrade order). Same-theme
concentration is allowed (Rule 6e) — do NOT force cross-sector picks. But flag
which candidates share the same supply chain so correlation-adjusted sizing
applies later. Additionally, include any watchlist stocks from step 3.5 whose
trigger conditions will be evaluated in step 5 — they get priority since the
user is already tracking them.
Screen EVERY candidate + held stocks + watchlist — BEFORE recommending. The list includes: (a) new candidates from step 4, (b) currently held stocks from step 3.5b, (c) watchlist stocks from step 3.5c.
The numbers come from the script, not from hand-math or Histock scraping.
First top up history (fetch-history.mjs <code> --months 1 per stock), then run
node --experimental-sqlite scripts/screen.mjs <code1> <code2> … (all codes in
one call; CLI + JSON glossary in references/charting.md §9). This top-up-then-
screen order is also when the Rule 6q 資料充足度分級 (A/B/C) is computed — rate
each stock from the five named checks only AFTER this fetch, never before
(fetch-before-downgrade). It computes, per
stock, from the local OHLC DB: OHLC/chg%, MA5/10/20, 20MA deviation,
aboveMA20Streak, ATR14 (Rule 6a), 量/5日均量 ratio (Rule 6j), K9/D9,
RSI6/12, MACD (DIF/signal/OSC), the derived signal booleans (KD 金叉/死叉, MACD
rising, 過熱, 勿追高…), and the Rule 6b gate verdicts (gate.style1.pass +
failures[], gate.style2Partial). KD/RSI match Histock exactly; only fetch
Histock as a spot-check when the script sets gate.histockSpotCheck: true
(a reading within ±3 of a threshold, per 3a) or the DB has too little history.
Still fetched from the web (not computable from the DB): the Yahoo live quote
(the DB close is the last settled session — T-1 during market hours), the next
earnings/法說 date (Rule 6h), and the ex-dividend 除權息 date (Rule 6i) —
recipes in references/data-sources.md. This step is mandatory — a stock cannot
enter the recommendation list without passing the technical entry gate (Rule 6b)
AND the event gate (Rules 6h, 6i):
reversal.isReversalDay && reversal.reclaimed && !signals.volConfirmed — a Style-3
whose only failure is the volume leg. Each is a 試行實例: run
screen.mjs --style 3 --revlow L --zone … --vol-trial, report it as
「6j-A2 成立(試行,不作買進建議)」, and append a paper track to
Eliot/Notes/2026/6j-a2-trial-tracker.md. Zero instances is a normal, reportable
result — never manufacture one. Update the open tracks' outcomes each session.reversal.isReversalDay && reversal.declineStart != null && !reversal.reclaimed && signals.volConfirmed AND the remaining Style-3 legs pass (KD golden, RSI ≤ 80,
base judgment) — a Style-3 whose only failure is the reclaim leg. Each is a
試行實例: run screen.mjs --style 3 --revlow L --zone … (auto-tags
reclaimTrial), report it as 「reclaim-試行成立(試行,不作買進建議)」, and append
a paper track to Eliot/Notes/2026/reclaim-trial-tracker.md. Same discipline:
zero instances is normal; dual vol+reclaim failures belong to neither trial;
update open tracks' outcomes each session.For held stocks: compare live price against recorded 停損 and 停利. If any holding has breached its stop (live ≤ 停損), flag it as 持股警報 and present it at the top of the output with full technical context, counting the sessions since breach ("破停損第 N 日"). At N ≥ 2 apply Rule 6n: force the binary — execute the exit (Action B) or re-underwrite in the ledger; do not just repeat the recommendation a 3rd time.
For watchlist stocks: compare current technicals against the prior analysis's trigger conditions and each condition's validity band (Rule 6l). Report each as:
Present a technical screening table for all new candidates showing pass/fail so the user sees why certain stocks were excluded. Include columns for 量/5日均量 (Rule 6j), 下次財報日 (Rule 6h), 除權息日 (Rule 6i), and 資料級 (Rule 6q, A/B/C) alongside the technical indicators, so event, volume, and data-richness exclusions are visible in the same table. List C-rated candidates separately in their own 「資料不足」bucket with the upgrade path stated — do not fold them into the pass/fail gate rows; the distinction keeps the audit trail honest (the gate said nothing because it could not, per 6q).
Recommend stock(s) from the candidates that passed. For each pick explain why (weight rank, structural theme, what it does, technical posture) and briefly why not the obvious alternatives. If the user asks for N picks but fewer than N pass the screen, say so — never pad the list with stocks that failed the gate. State "資料不足 X 檔" alongside "未過關 Y 檔" so the user sees why the list is short — C-rated candidates (Rule 6q) never count toward N picks, same non-padding discipline.
Entry/exit plan (mandatory for every recommendation). Pick the stop regime
per 6a-1 before computing R:R — style determines stop width, stop width
determines 1R, 1R determines the verdict. All numbers in this step come from
the script: node --experimental-sqlite scripts/screen.mjs <code> --style 1|2|3 --zone LO-HI [--pivot P] [--revlow L] [--confirm] [--vol-trial] [--target T] [--equity E] returns stop,
TP1/TP2, 1R, R:R verdict, and share sizing (incl. pilotPct/sizing.pilotShares) in one
JSON. The model supplies the
judgment inputs (style, buy zone, breakout pivot / reversal-day low,
measured-move target) and MUST NOT hand-compute stop/TP/R:R/shares — hand-math
caused both paralysis bugs. The script hard-errors on Style-2 without --pivot,
Style-3 without --revlow (no silent 2×ATR fallback), Style-3 whose 量 ≤ 5日均量
unless --vol-trial (Rule 6j-A2 試行 — report-only, never a buy), and Style-3c
(--style 3 --confirm) when continuation.qualified is false — the script,
not the model, decides 3c qualification. If the stock is
ATR-hot (atrHot: true), lead with the Rule 6m regime statement.
For each recommended stock:
a. Buy zone: anchor to a real technical level. For a Style-1 pullback buy
(6b) that's the 20MA / consolidation floor / key support. For a Style-2
breakout buy that's the breakout pivot up to +2~3% above it (you buy the
breakout, not a lower pullback). For a Style-3 reversal buy it's the
reversal-day close up to +1% above it. For a Style-3c 延遲確認 buy it's the
confirmation-day close up to +1% above it (試行期間:僅報告+紙上追蹤,不作
買進建議 — see the 6b 3c trial clause). A Style-3 whose only failure is 6j's
volume leg is a 6j-A2 試行 instance — same report-only treatment
(--vol-trial; buy zone = reversal-day close +1%, pilot would be 25%).
State which style and which level, and why. Never use "spot price minus X%". A Style-2/Style-3/Style-3c buy zone legitimately
includes today's price when a volume-confirmed base breakout / base reversal /
delayed confirmation is in progress (6c does not block any of them).
b. Stop loss — per the 6a-1 regime table. For a Style-1 pullback:
buy_zone_bottom − max(2 × ATR14, buy_zone_bottom × 0.05), with ATR14
computed from the local OHLC DB (Rule 6a), not a single session's range.
For a Style-2 breakout: the structural stop just under the breakout
pivot (base top / reclaimed high), honoring the 5% floor below entry —
do NOT use the base low and do NOT use 2×ATR14; both belong to Style-1
(mis-applying them was the 2026-07-03 bug). Always express as both a price
and the % below buy zone bottom. If tighter than 5%, widen to the 5% floor.
c. Staged take-profit (Rule 6d):
d. Risk/reward summary — measure reward against TP2/trend, NOT TP1. TP1 (+8%)
is a partial de-risk scale-out, not the reward leg — with a 2×ATR14 stop it is
typically only ~0.5R, so a "R:R to TP1 ≥ 1.5" test is mathematically unsatisfiable
for volatile semis and was a paralysis bug (2026-07). Instead: express risk in
R (1R = entry − stop), and judge viability by the R:R to the reward
target = TP2 (+15%) or a measured-move / prior-swing-high target, whichever the
structure supports. Require R:R to the reward target ≥ 1:1.5; TP1 is reported
separately as the point where you take half off and move to breakeven (de-risk),
not as the reward. If even the reward-target R:R < 1.5, then flag/pass.
Before flagging/passing on R:R < 1.5, audit the stop width against 6a-1:
if a Style-2 candidate was computed with a 2×ATR stop (or a stop anchored to
the base low), recompute with the structural pivot stop first. A failed R:R
with a mismatched stop regime is not a signal — it is the bug.
Also re-test at the zone BOTTOM before passing (promoted from
references/charting.md §9, 2026-07-29). The script measures R:R mid→target;
a rrPass: false at mid with a pass at the bottom is not a fail — it is
「只在買區下緣進」, a deep-entry-only setup. Report it as such with the exact
ceiling price. Leaving this clause in a script-reference file meant the rule as
written in SKILL.md said only "FAIL" (e.g. 3711 2026-07-03 mid 1.33 / bottom
1.49; 3504 2026-07-29 mid 1.42 / bottom 1.52).
e. Position sizing (Rule 6e-2, 6e-3). For each stock, calculate:
shares = (account_equity × 0.01) / (entry − stop).
If multiple picks share the same supply chain, apply the per-theme heat cap
(2% combined, or 1% if TAIEX < 50-day MA). Show the user: per-position risk
in dollars, total theme heat, and the combined exposure warning (Rule 6e-6).
f. Entry protocol (Rule 6e-5). State: "先買 50% 部位(試單),確認站穩 2 個交易日後再加碼剩餘 50%。試單觸停損則不加碼,全部出場。"
g. Mirror test (Rule 6p). For every recommended stock, complete all 5 sentences and list them; missing any sentence demotes that stock to 觀察名單 with its trigger condition and validity band (6l) instead of a buy. Sentences 1–3 draw on this step's 7a–b judgment (style, buy zone, invalidation); sentences 4–5 draw on the 7e sizing output (shares, theme heat, worst-case loss).
Theme-level stop disclosure (Rule 6e-4). If recommending 2+ stocks from the same theme, include a theme stop table:
Offer to persist the analysis via Eliot (stock note + [[stock]] log). Don't
write without the user's go-ahead. The persisted note's 結論/推薦 section MUST
carry each recommended pick's completed 5-sentence mirror test (Rule 6p)
verbatim — this is what Action B's thesis draft (Rule 6o /
references/thesis-tracking.md) seeds 進場論點 from. The note MUST also include a
### 觀察名單 section listing each watchlist stock with its specific trigger
condition — this is what step 3.5 reads in the next session. Format each entry
as: - <code> <name>:<trigger condition>(可買 ≤<X> / 有效帶 <lo>-<hi>) — the
validity band is mandatory per Rule 6l (anchor +2%; breakout pivot +2~3%; reversal
close +1%), and the R:R ceiling 可買 ≤X is mandatory alongside it (added
2026-07-29 — see 6l-1). E.g.
- 3037 欣興:等 KD 黃金交叉 + 站回 20MA(948)(可買 ≤952 / 有效帶 948-967).
A condition that fires with price beyond its band is a late fire → rewrite, not a
buy. Emitting the band alone is a defect: the next session's reader inherits an
interval that reads as a buy zone, and the format then reproduces the error every
day (that is exactly how the 3504 2026-07-29 mis-scope propagated into the markers
and the simulator).
Mirror to SQLite (structured layer, after the Eliot write). Once the user approves
the persist, also record the structured side so charts stay current (Rule 5; mechanics in
references/charting.md). For each recommended pick and each watchlist entry, add a marker:
add-marker.mjs <code> <date> signal <trigger-level> "進場觀察:<name>" "[[<note-slug>]]" --status pending --condition "<the exact trigger, e.g. 站回 20MA(4329) 連 2 日 + KD 金叉>".
When a trigger fires, re-assert with --status met. A recommended position adds buy
(--status open) plus stop/target markers at the planned levels with their --condition.fetch-history.mjs <code> --months 1 (cheap — only the current month re-fetches).
This is best-effort and silent; never block the analysis on it. If Node/DB is unavailable,
skip and mention it.Triggered by: "美股推薦", "should I buy NVDA", "從 QQQ 挑一檔", or any US-ticker
recommendation request. Steps 5–10 run with EXACTLY the same mechanics (screen.mjs <TICKER> works unchanged — market is inferred from the ticker shape); only the pool,
the gate index, and the report header differ. The output is a standalone 美股報告
(市場維度 §1) — never merged into a 台股 table.
references/data-sources.md §美股 (server-rendered tables,
agent-browser), plus any ticker the user names (自選, flagged as such). No
membership-score tiers: presence in the QQQ/S&P top-30 IS the index-conviction flag
(single-source pool); a user-named ticker outside both carries 「自選標的,無指數把關」.scan.mjs stays TW-only; the ETF top-30
pool is the liquidity pre-filter (every constituent clears 6q's US$20M floor by
orders of magnitude).^GSPC) vs its 50/200MA (6f 美股 clause).### 觀察名單(美股) — a separate section so each market's list
round-trips into its own report.fetch-history.mjs <TICKER> --months N (Yahoo
v8, JSON channel — no browser needed for OHLC/quote); earnings dates via the
§美股 recipes; rules.mjs earnings --market us for the blackout count. First-time
setup: fetch-history.mjs SPY --months 24 to seed the NYSE calendar (6h).--equity = the USD book (stock_equity_usd), verified via
sizing.equityCurrency: "USD" in the output. 6p sentence 5 states the worst case
in USD.### 觀察名單(美股); recommended
picks' mirror tests state prices in USD.Triggered by: "我買了 <股號/股名> <股數> @<價>", "賣出 <股號> 一半 @<價>", "我買了 NVDA 10 股 @160". The user is reporting an actual transaction.
us-stock-holdings.md (prices are USD by
construction); a numeric code routes to stock-holdings.md. Same table format,
never mixed in one file.## 持有中 position summary (cost average, total cost). Log a one-liner to
[[stock]]. The exact ledger format is in references/obsidian-tracking.md.references/thesis-tracking.md.
references/thesis-tracking.md §5. A later re-entry gets a NEW thesis file.add-marker.mjs <code> <date> <買=buy|賣=sell> <fill> "<備註>". On a buy, also assert the
stop/target markers at the recorded levels. Then fetch-history.mjs <code> --months 1
to top up price history. Best-effort; don't block on it.Triggered by: "檢查我的持股", "我現在該賣什麼", "review my holdings", "should I sell anything", or a direct move question about a held stock ("XX 為什麼跌/漲"). This is the action that closes the loop: read what the user owns, get fresh data, and produce a per-holding sell recommendation.
Read BOTH ledgers. Get the ## 持有中 positions from the TW holdings ledger
(obsidian read path="Eliot/Notes/2026/stock-holdings.md") AND, when it exists, the
US ledger (Eliot/Notes/2026/us-stock-holdings.md). For each position you need:
code, name, shares, cost average, recorded 停損 and 停利 target. A missing US ledger
just means no US book yet — proceed TW-only. Steps 2–7 run once per book, and
step 7 renders two separate tables under 台股報告 / 美股報告 headers (市場維度 §1);
positions.mjs review --market tw and --market us are the two invocations.
Fetch fresh data per holding:
references/data-sources.md;
US quotes come free with fetch-history.mjs <TICKER> --months 1, §美股).
Plausibility bound (Rule 3a) before it feeds the stop/TP comparison in
step 5: if the live quote deviates beyond the market's bound (10% tw / 20% us,
deviate --market …) from the last settled DB close, treat it as a suspect
fetch (wrong ticker/stale page/parse error) and re-fetch rather than compare
against 停損/停利 — a parse error must not fake a stop breach.references/data-sources.md):
MA5/10/20, K9, D9, RSI6, RSI12, MACD. These are daily-close values (T-1 during
market hours).異動歸因 (move attribution) — trigger-gated, not run per-holding by default. This answers the review's real question: did the move break the setup, or is it noise? Only run it when triggered; an untriggered holding's review-table row alone is sufficient — do not spend a news search on every holding.
Trigger gate (any one fires it):
Ordered checks — short-circuit on the first hit:
references/data-sources.md §個股新聞查證. Best-effort: a failed
fetch yields 原因不明, never an invented cause.Mandatory verdict — exactly one (for any holding that reaches check 2 or beyond; the mechanical short-circuit in check 1 replaces it with the statement above, not one of these four):
Output per triggered holding: 2–4 timeline bullets (🔴 主因 / 🟡 次因 / ⚪ 背景)
Precedence: no verdict suspends a stop. A stop breach still routes through the 持股警報/Rule 6n path regardless of verdict — the verdict may inform the re-underwrite reasoning in step 6, never defer the binary.
Worked example: a holding is −4.2% on a session where TAIEX is −0.5% (not a market-wide day), no 除息 pending, theme peers flat, and one dated 重大訊息 (a customer order cut, announced same morning) is found → verdict 價值事件 with the citation → implication "檢查 thesis 假設(事實變化)— 見 Rule 6o 複審".
Evaluate technical signals per holding (supplement the fundamental sell signals):
| Signal | Condition | Interpretation |
|---|---|---|
| 均線空頭排列 | price < MA5 < MA10 | short-term downtrend, caution |
| 均線多頭排列 | price > MA5 > MA10 > MA20 | uptrend intact, support valid |
| KD 死亡交叉 | K < D and both declining | bearish momentum |
| KD 黃金交叉 | K > D and both rising | bullish momentum |
| KD 超買 | K9 > 80 | overbought — consider scaling out |
| KD 超賣 | K9 < 20 | oversold — possible bounce, but respect stops |
| RSI 偏弱 | RSI6 < 40 | selling pressure dominant |
| RSI 偏強 | RSI6 > 70 | buying pressure dominant |
| MACD 正轉負 | MACD crossing below 0 | medium-term trend weakening |
Technical signals alone are not sell triggers — they add context to the fundamental sell signals below. E.g. "停損 approaching + KD death cross + RSI weak" strengthens the case for exit, while "near 停損 but KD golden cross" suggests watching one more session.
Evaluate all four fundamental sell signals per holding:
| Signal | Condition | Suggestion |
|---|---|---|
| 停損觸價 | live ≤ recorded 停損 | 停損出場 — discipline, exit |
| 停利觸價 | live ≥ 停利 target | 分批停利 — scale out, let rest run if trend intact |
| 跌出 ETF 成分 | no longer in 0050/0052 holdings | 留意/考慮減碼 — weakened fundamentals signal |
| 權重明顯下降 | ETF weight well below the level recorded at buy | 留意 — losing index conviction |
| 報酬率檢視 | report unrealized P/L % from cost regardless | context for the above |
Computed mechanically by positions.mjs review [--price code=P ...] [--market tw|us] (Rule 8) — read invested/live/unrealized/unrealizedPct/stopHit/
targetHit/sessionsSinceBreach per holding; never hand-compute cost × shares or
hand-compare live price to the recorded stop/target. stopHit folds in
breach-check (Rule 6n) so a re-underwritten position never shows a false 停損觸價.
Run once per book with --market so each report's numbers stay in one currency.
Thesis health re-score (Rule 6o). For each holding, read its thesis note
(Eliot/Notes/<YYYY>/thesis/<code>-*.md) and run the health re-score + drift
check per references/thesis-tracking.md §2–4: mark every core assumption
🟢/🟡/🔴/⚫, check every red line, compute
health = 10 − 3×⚫ − 2×🔴 − 1×🟡 − 5×(red lines triggered) showing the count
breakdown, classify each change as 事實/價格/措辭 drift with cited evidence, and
map the score to an action (§3: ≥9 hold/add · 7–8 hold · 4–6 reduce · ≤3 or any
red line → Rule 6n binary). A triggered red line forces the 6n binary regardless
of score — it does not get softened by an otherwise-healthy score. Append the
re-score to the thesis's 複審紀錄 log. Holding with no thesis file: flag
"無 thesis 紀錄", offer to draft one retroactively (seeded from the ledger/analysis
context), and continue this review using the ledger's recorded 停損/停利 — do not
block the review on the missing thesis.
Present the review as TWO tables — 台股報告 then 美股報告 (市場維度 §1; one table when only one book has positions): code · name · cost · live price · 報酬率% · 技術面摘要 · 每個訊號狀態 · 異動歸因 (verdict icon/short verdict for triggered holdings, "—" for untriggered) · 論點健康度 (score + mapped action, or "無 thesis 紀錄") · 建議 (續抱 / 分批停利 / 停損出場 / 留意減碼). TW prices in NT$, US prices in US$ — stated in each table's header, never converted. Lead each report with anything actionable (停損/停利 hits, or a triggered thesis red line) at the top. Include a per-holding technical summary row (MA position, KD state, RSI level) so the user sees the full picture.
Offer to update the ledger via Eliot if the user acts on a suggestion (record the sell, update 持有中). Don't write unprompted.
Close with the disclaimer line.
Triggered by: "畫 K 線", "畫個 K 線圖", "把買賣點/進出場標在圖上", "show me the chart for 2330", "show me the chart for NVDA", "candlestick", "K-line", "視覺化我的持股", "畫出奇鋐走勢". The user wants to see a stock's price action with the decisions (and their reasons) marked on it. US tickers work everywhere a code does — the chart auto-switches to 綠漲紅跌 (美股慣例) with a Yahoo-Finance footer and share-count volume units; TW charts stay 紅漲綠跌. Stop/target line colors are semantic (danger red / goal green) and never flip.
This action is code-driven, not browser-driven: it renders a self-contained Tokyo-Night
candlestick HTML file from a local SQLite DB (OHLC history + decision markers). All scripts are
zero-dependency Node — run each with node --experimental-sqlite <skill>/scripts/<name>.mjs ….
Read references/charting.md once at the start of this action — it has the DB schema, the
TWSE 民國-date gotcha, and the exact CLI for every step.
Resolve the target stock(s). A code/name from the prompt, or "my holdings" → read the
## 持有中 ledger (Action C step 1) and chart each. Default lookback 60 trading days (--days).
Ensure the DB exists and history is fresh.
scripts/db.mjs --init is implicit (every script auto-creates the schema).scripts/fetch-history.mjs <code> --months 4 (TWSE 上市; add --market tpex for 上櫃;
an alphabetic ticker auto-routes to Yahoo v8 — fetch-history.mjs NVDA --months 4).
Only missing months are fetched, and the current month always tops up — cheap to re-run.Make sure the buy/sell/hold "why" markers exist. The chart is only as good as its markers.
scripts/seed-from-obsidian.mjs once to import the holdings
ledger (買/賣 + 停損/停利) and the latest analysis note's ### 觀察名單 into markers.scripts/add-marker.mjs <code> <date> <action> [price] [reason] [note_link]
(action ∈ buy|sell|hold|watch|stop|target). Keep the reason short — it is the chart tooltip;
the full rationale lives in the Obsidian note (pass its [[slug]] as note_link).Render and open. scripts/render-chart.mjs <code> --days 60 writes
…\personal\stocks\charts\<code>-<YYYYMMDD>.html. Open it for the user (start <path>), or
agent-browser open file:///<path> + screenshot if you want to verify it headless. If the
user reports the file looks blank, open it headed (agent-browser open --headed file:///<path>)
so it renders in a visible window. The chart shows 紅漲綠跌 candles, MA5/10/20, volume, dashed
停損/停利 lines, ⚑ signal threshold lines (amber=待觸發, green=已成立) for forward triggers,
and pin markers (▲買 ▼賣 ◆續抱) whose hover tooltip shows reason + status + outcome + note link.
Below the chart is the 決策與訊號紀錄 review panel — every decision/signal with its level,
distance-to-current-price, condition, and outcome — so the chart doubles as a post-mortem reference.
Summarize what the chart shows in chat (don't just hand over a file): the trend, where the marked decisions sit relative to the moving averages, which forward signals are closest to firing (smallest 距現價 in the review panel), and whether any 停損/停利 line is close to the latest close. Charts are per-stock; for "my holdings" render one per held position. Close with the disclaimer line (Rule 4).
agent-browser: always --session tw-stock on every command (the default
session is the user's own interactive browser — an unnamed open hijacks their
page; 2026-07-31 incident). Then open → wait 3500 (a fixed wait — Yahoo's
--load networkidle often hangs on ad/JS activity) → extract via eval --stdin
heredoc → close when done. Full recipes and the exact selectors/text-anchors are
in references/data-sources.md.references/obsidian-tracking.md before any persist step so the note and
ledger formats match the user's existing vault conventions.references/charting.md before Action D (or the SQLite mirror steps in A/B) — it
has the DB path resolution, the TWSE 民國-date (+1911) gotcha, the marker glyph/colour map,
and every script's exact CLI. The charting scripts are zero-dependency Node (built-in
node:sqlite + global fetch); always invoke with node --experimental-sqlite.scripts/screen.mjs is the rule-math engine (Action A steps 5 & 7): screening mode
computes indicators + Rule 6b gate verdicts from the local DB; trade-plan mode
(--style/--zone/--pivot/--target/--equity) computes the 6a-1 stop, TP1/TP2, R:R
verdict, and 6e-2 sizing. The model never hand-computes these numbers. CLI + JSON
glossary in references/charting.md §9.scripts/scan.mjs is the whole-market discovery engine (Action A step 2b): syncs
every 上市/上櫃 common stock's daily quotes + 三大法人 flows into the local DB from
official TWSE/TPEx JSON (no browser), then emits the 量價突擊/投信連買/營收YoY signal
lists behind a liquidity floor. Never hand-fetch its endpoints or hand-parse the field
indices. CLI + JSON glossary in references/charting.md §10.scripts/rules.mjs (stateless: earnings/band/heat/thesis/deviate) and
scripts/positions.mjs (needs the positions table: theme-stop/breach-check/
review) are the rule-math-mechanization engines (Rule 8) — see the 規則計算歸屬表
for which rule each verb owns. Read only, never hand-compute; CLI + JSON glossary in
references/charting.md §11–12. rules.mjs earnings --sync-holidays is the ONLY
network call in this delta (opt-in, refreshes the built-in Taiwan holiday table —
tw only; for us it hard-errors, seed the NYSE calendar with
fetch-history.mjs SPY --months 24 instead).fetch-history.mjs <TICKER> (Yahoo v8
JSON, no browser; --source stooq as the explicit fallback); pool = Slickcharts
recipes (references/data-sources.md §美股); calendar = SPY-derived; ledger =
us-stock-holdings.md; equity = stock_equity_usd. Reports always separate.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lizardliang/tw-stock-etf-advisor --plugin tw-stock-etf-advisorOther plugins' skills for the same job