Converts Kanchi-style dividend investing into a repeatable US-stock operating procedure covering screening, deep-dive analysis, pullback entry planning, and post-purchase monitoring.
Ships in tradermonty-claude-trading-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Implement Kanchi's 5-step method as a deterministic workflow for US dividend investing. Prioritize safety and repeatability over aggressive yield chasing.
Use this skill when the user needs:
The entry signal script requires FMP API access:
export FMP_API_KEY=your_api_key_here
Prepare one of the following inputs before running the workflow:
skills/value-dividend-screener/scripts/screen_dividend_stocks.py.skills/dividend-growth-pullback-screener/scripts/screen_dividend_growth_rsi.py.When using --input, provide JSON in one of these formats:
{
"profile": "balanced",
"candidates": [
{"ticker": "JNJ", "bucket": "core"},
{"ticker": "O", "bucket": "satellite"}
]
}
Or simplified:
{
"tickers": ["JNJ", "PG", "KO"]
}
The optional value-dividend-screener and
dividend-growth-pullback-screener handoffs use stocks[].symbol.
Both build_sop_plan.py --input and build_entry_signals.py --input
accept that shape directly, as well as the native candidates[].ticker and
tickers[] shapes above.
For deterministic artifact generation, provide tickers to:
python3 skills/kanchi-dividend-sop/scripts/build_sop_plan.py \
--tickers "JNJ,PG,KO" \
--output-dir reports/
For Step 5 entry timing artifacts. --yield-floor is mandatory — it is
the Step-1 yield gate; without it every row fail-safes to STEP1-RECHECK
(a row can never reach a PASS tier without Step 1). Pass --profile /
--safety-bias for run_context, and --events-json for the Step 4b scan
(absent ⇒ every row is treated as SKIPPED and a TRIGGERED name is capped
to HOLD-REVIEW — never silently clean):
python3 skills/kanchi-dividend-sop/scripts/build_entry_signals.py \
--tickers "JNJ,PG,KO" \
--alpha-pp 0.5 \
--yield-floor 3.0 \
--profile balanced --safety-bias medium \
--events-json reports/kanchi_events_2026-05-17.json \
--output-dir reports/
The Step 5 buy target uses a regular-only 5-year average yield rebuilt from
dividend rows and daily closes (issue #834), never the provider annual
dividendYield ratios, which bundle specials. Per ticker the script fetches
/stable/historical-price-eod/full and /stable/splits, then averages
latest_declared_annualized / close at the last trading day of each of the 60
months ending with the last completed month (method
month_end_60_regular_only_v1; split-adjusted close, never adjusted-close
fields). A month is dropped when the regular dividend cannot be proven: irregular
cadence, variable policy, a gap between the last two regular pays outside
0.5-1.5x the cadence, or an FMP frequency that disagrees with the inferred
cadence (frequency switches, prorated stubs). The average is withheld when
price or dividend history is shorter than 5 years, when fewer than 90% of the 60
months validate, when the last window month has no price, or when the split history
is unknown (fetch failed) or any split is dated on or after the window start
(including after the window end) and any dividend row lacks a positive
adjDividend. Specials are classified once on the full history as of the run
date (an unlabelled 1.5-3x spike that later reverts is excluded everywhere);
only "was it declared by that month" stays point-in-time. An observation price
must fall in the last 7 calendar days of its month. A month is also dropped when
the dividend stream looks suspended at that date (stale pre-suspension amount) or
when its latest payment has a non-cadence FMP frequency such as Irregular.
Cut rule: after a dividend cut the point-in-time declared rate is kept for
later months and the reason cut_in_window is recorded; it does not withhold the
average by itself. FMP rows with frequency: Special are labelled special;
Irregular is not special. Raise confirmation: a regular payment L is
unconfirmed when L is more than 25% above M (REGULAR_YIELD_RAISE_CONFIRM_PCT)
and fewer than 2 consecutive regular payments equal L. M is the median of the
regular payments before that run, over the trailing window of max(pays per year, 8)
payments. A genuine raise is therefore unconfirmed at its first payment and
confirmed at the second; a raise of 25% or less is never withheld. An
observation whose latest used payment is unconfirmed is invalid. If the CURRENT
latest regular payment is Irregular or unconfirmed, the target is withheld with
latest_dividend_unconfirmed (also a pre_order_blockers entry). Known
limitation: a combined regular-plus-special row less than 25% above the regular
level inside the history cannot be detected from data alone; correct it with
kind: combined. A withheld average keeps the existing
regular_only_average_unavailable / regular_dividend_unavailable behavior and
lists the reasons in notes as yield_history:<reason>. Each row carries a
yield_history summary (status, window, coverage, method, source); the CSV adds
yield_history_status, yield_window_start, yield_window_end,
yield_coverage_ratio and yield_method.
When FMP rows are wrong or incomplete, supply verified rows with
--yield-history-json. Supplied data for a ticker replaces the fetched dividend,
price and split rows for that ticker, including the dividend history that feeds
the current numerator. Each ticker needs price_basis set to split_adjusted and
a splits list (empty is allowed). A bare average number is never accepted:
{"NNN": {"source": "Issuer dividend history + exchange closes, retrieved 2026-11-20",
"price_basis": "split_adjusted",
"dividends": [{"date": "2026-09-15", "dividend": 0.60},
{"date": "2025-09-15", "dividend": 0.95, "kind": "special",
"kind_source": "Issuer press release 2025-08-30"}],
"prices": [{"date": "2026-10-30", "close": 41.2}],
"splits": []}}
A dividend row may carry kind of special (excluded from the regular stream),
exclude (dropped, for stubs) or combined (a regular plus special payment in
one row: set regular_amount, a positive number below dividend, which becomes
the row's amount, with adjDividend scaled by the same ratio). kind requires a
non-empty kind_source, and a row labelled or marked Special without a kind is
rejected. Invalid input (bad or duplicate-key JSON, empty source, missing
price_basis or splits, non-positive or non-finite close, unparsable dates,
kind without kind_source) exits with code 2 before any provider call; dividend
dates are normalized to YYYY-MM-DD. Tickers in the file that are not in the run
print a warning on stderr. Supplied dividend rows should carry adjDividend when
a split falls on or after the window start.
Collect and lock the parameters first:
Load references/default-thresholds.md and apply baseline
settings unless the user overrides.
Start with a quality-biased universe:
Use explicit source priority for ticker collection:
skills/value-dividend-screener/scripts/screen_dividend_stocks.py output (FMP/FINVIZ).skills/dividend-growth-pullback-screener/scripts/screen_dividend_growth_rsi.py output.Return a ticker list grouped by bucket before moving forward.
Primary rule:
latest_declared_regular dividend × cadence-implied frequency / price (WS-1 dividend_basis.py).
Never use profile.lastDividend / TTM — it lags the latest declared raise
(defect D5) and silently bundles specials (D4).Trap & freshness controls (machine-emitted by dividend_basis.py):
special_dividend_flag → exclude specials; report regular vs ttm yield.variable_policy_flag → FAIL (CALM-style; not an income base).cut_flag → FAIL; suspension_flag → FAIL.freeze_flag → HOLD-REVIEW (income cash-cow exception decided in
Step 8 synthesis only if safety is clean & unblocked).floor_borderline) and the latest declared dividend is not
confirmed from an authoritative source, emit STEP1-RECHECK — never a
hard FAIL (this is the CFR D5 fix).Safety is sector-specific — a uniform GAAP/FCF triad mis-judges banks
(FCF meaningless) and regulated utilities (FCF structurally negative).
Use references/sector-step2-modules.md; the deterministic dispatch is
scripts/payout_safety.py.
adjusted_eps_source = UNAVAILABLE ⇒ cap HOLD-REVIEW (fail-safe;
never a silent PASS).HOLD-REVIEW (FITB/Comerica golden case).When trend is mixed but not broken, classify as HOLD-REVIEW instead of
hard reject.
Use references/valuation-and-one-off-checks.md and apply
sector-specific valuation logic:
PER x PBR can remain primary.P/FFO or P/AFFO instead of plain P/E.P/E, P/FCF, and historical range.Always report which valuation method was used for each ticker.
Reject or downgrade names where recent profits rely on one-time effects:
Record one-line evidence for each FAIL to keep auditability.
Step 4 is backward-looking; Step 4b catches pending/recent structural
events (the MKC-Unilever miss, D3). For each surviving candidate, run a
WebSearch + issuer-IR/SEC check using the source hierarchy: issuer IR
→ SEC filing (8-K/10-Q/10-K/proxy/S-4) → exchange/company deck →
reputable wire → finance portals (secondary only). Record findings into a
curated events JSON and pass it via build_entry_signals.py --events-json.
HOLD-REVIEW
(tx > 10% mcap, share issuance > 10–20%, leverage +0.5x EBITDA,
control/listing/HQ change, merger-of-equals / RMT / spin-off / large
asset sale, dividend/rating/leverage-policy change, sector-specific
materiality, or rolling-24m cumulative M&A > 15% mcap). Minor bolt-ons
are a CAUTION note only.FAILED-DEGRADED / SKIPPED / NO_EVENT_FOUND
on a Step-5 TRIGGERED name ⇒ HOLD-REVIEW + T1 BLOCKED. WebSearch
unavailable (web app / offline) is treated the same — never a silent
skip. CLEAN_CONFIRMED (primary source checked) is stronger than
NO_EVENT_FOUND (search only).Set entry triggers mechanically:
+0.5pp).ASSUMPTION-REQUIRED, the withholding reason, and a non-actionable
HOLD-REVIEW cap with T1 blocked (stricter FAIL/recheck decisions remain).
Do not infer a replacement entry price from the provider diagnostic average
or register these rows as actionable theses.P/E, P/FFO, or P/FCF).Execution pattern:
40% -> 30% -> 30%.pre_order_blockers[] (from WS-1/2/3 — variable/cut/suspension,
adjusted-EPS-unavailable, GAAP/Adj divergence, bank credit, utility
FFO/debt, event-scan failed/skipped, stale dividend, …) OR
t1_blocked is true, the first tranche is blocked or downsized to a
≤20% tracking tranche — not 40%.SECTOR_CLUSTER_WARN_COUNT same-sector
names pass (e.g. many small banks share one macro beta), emit a
portfolio-level CLUSTER-RISK warning.Always produce:
CLEAN-PASS,
PASS-CAUTION, CONDITIONAL-PASS, HOLD-REVIEW, STEP1-RECHECK,
FAIL (synthesized by verdict.py from Step 1 + Step 2 + Step 4b +
blockers). Include evidence per row.references/stock-note-template.md) with the
per-ticker provenance block (price/dividend/payout/event sources,
unresolved_blockers, evidence_refs[]).Return and/or generate:
references/stock-note-template.md.skills/kanchi-dividend-sop/scripts/build_sop_plan.py in reports/.skills/kanchi-dividend-sop/scripts/build_entry_signals.py in reports/.Use this minimum rhythm:
Run this skill first, then hand off outputs:
kanchi-dividend-review-monitor for daily/weekly/quarterly anomaly detection.kanchi-dividend-us-tax-accounting for account-location and tax classification planning.STEP1-RECHECK, not FAIL.HOLD-REVIEW + T1
blocked. Never silently skip Step 4b.adjusted_eps/data missing ⇒ fail-safe
HOLD-REVIEW, never silent PASS.scripts/thresholds.py: single source of truth for all SOP
thresholds + SCHEMA_VERSION (downstream schema-evolution guard).scripts/dividend_basis.py: WS-1 regular/special/variable/freeze/cut +
Data Freshness Gate engine (pure, offline).scripts/payout_safety.py: WS-2 sector-aware GAAP/Adjusted/FCF payout
triad + completed-merger linkage.scripts/event_scanner.py: WS-3 isolated forward/recent corporate-action
scanner + materiality gate + pessimistic cap.scripts/verdict.py: WS-5 actionable-tier synthesis + run_context +
evidence_ref helpers.scripts/build_entry_signals.py: orchestrator (Step 5 targets + WS-1/2/3/5
integration). Flags: --yield-floor, --events-json, --financials-json,
--yield-history-json, --profile, --safety-bias, --universe-source.scripts/regular_yield_history.py: pure regular-only 5-year average yield
reconstruction + --yield-history-json loader (#834).scripts/build_sop_plan.py: deterministic SOP plan scaffold generator.scripts/tests/test_golden_p0.py: P0 merge gate — end-to-end frozen
verdicts for CALM/ORI/CMCSA/MKC/CFR/cut (run via scripts/run_all_tests.sh).references/default-thresholds.md: human-readable threshold mirror.references/sector-step2-modules.md: Step 2 safety indicators by sector.references/valuation-and-one-off-checks.md: Step 3 valuation + Step 4 one-off.references/stock-note-template.md: one-page memo + provenance block.FMP data access uses the bundled generated scripts/fmp_client.py. Existing CLI
key/environment precedence, financial calculations and successful output shapes
are preserved. The migrated paths use stable endpoints only; a denied or failed
stable request does not fall back to retired v3 URLs. The shared client masks raw
and URL-encoded key echoes, retries malformed JSON once, and retries a 429 once
with a 60-second wait before stopping on a repeated rate limit. FINVIZ, where
used, remains a separate client.
The Python client retains sleep_seconds, timeout and api_calls. Sleep now
sets the minimum interval between requests; accounting includes retried HTTP
responses. Quote/profile retrieval remains one symbol per request.
Use --financials-json to supply sourced adjusted EPS and sector metrics before
re-running the CLI. Follow the input contract
for required per-metric source, date, document reference and units. Record values
as MANUAL user assertions; verify the referenced documents separately. Invalid
records retain explicit blockers and HOLD-REVIEW (existing FAIL stays FAIL).
Read order_ready as the aggregate screening gate in JSON, CSV and Markdown:
TRIGGERED, CLEAN/CONDITIONAL-PASS, final T1 unblocked, and zero blockers are all
required. event_t1_blocked is event-only; legacy t1_blocked is the final T1
restriction and can be false with open blockers. Neither alone permits an order.
Distinguish a failed or malformed dividend request (None) from a confirmed empty list ([]). Unknown, unusable or entirely future-only evidence requires STEP1-RECHECK; only confirmed empty history establishes FAIL no_dividend. Never substitute profile TTM lastDiv for missing regular dividends: withhold yields/entry targets and keep order readiness false. Unrelated established safety failures retain their priority.
Use finite positive adjDividend consistently when any eligible row supplies that field. Do not mix adjusted and raw rows or fall back from missing/invalid adjusted amounts. Record dividend_amount_basis and the history status in JSON/CSV/Markdown. Raw-only CLI inputs require confirmed split history: unknown splits or a relevant split without adjusted dividends require review. Original-currency amounts whose split basis cannot be established also require review; never infer or apply a split ratio from a dividend-rate change. Future-only rows are excluded before basis selection.
Direct library callers retain raw-only compatibility unless require_split_evidence=True; the result marks that basis raw_unverified. The CLI always requires split evidence. A confirmed empty split list yields raw_no_splits_confirmed. Adjusted provider rows yield split_adjusted, which describes the supplied amount convention and does not certify live FMP adjustment semantics or point-in-time historical availability. Re-fetch failed data or supply sourced consistent history before retrying; do not act on incomplete reports.
agents/openai.yaml (opens in a new tab)references/default-thresholds.md (opens in a new tab)references/sector-step2-modules.md (opens in a new tab)references/sourced-financials.md (opens in a new tab)references/stock-note-template.md (opens in a new tab)references/valuation-and-one-off-checks.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/build_entry_signals.py (opens in a new tab)scripts/build_sop_plan.py (opens in a new tab)scripts/dividend_basis.py (opens in a new tab)scripts/event_scanner.py (opens in a new tab)scripts/fmp_client.py (opens in a new tab)scripts/payout_safety.py (opens in a new tab)scripts/regular_yield_history.py (opens in a new tab)scripts/sourced_financials.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_build_entry_signals.py (opens in a new tab)scripts/tests/test_build_sop_plan.py (opens in a new tab)scripts/tests/test_currency_cut_evidence.py (opens in a new tab)scripts/tests/test_dividend_basis.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tradermonty-claude-trading-skills:kanchi-dividend-sopfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skills74 skills in this plugin
/backtest-expertExpert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing.Other plugins' skills for the same job