Trading Skills Navigator
The interactive on-ramp for this repository. It turns a user's goal into a
concrete recommendation: which workflow to run, which skillset
(skills-index category) it belongs to, the API requirement, and the
setup path for Claude Web App or Claude Code.
A new user faces 74 skills + 11 workflows with no router. This skill is that
router. It is deterministic — a Python recommender (scripts/recommend.py)
consumes the repo metadata; this SKILL.md narrates the result conversationally.
When to Use
- The user expresses a trading/investing goal and asks where to start or which
skill/workflow to use ("どれを使えばいい", "where do I start").
- The user asks what works without paid API keys.
- The user wants the no-API vs API path separated, or a beginner path.
- The user describes a persona ("part-time swing trader", "dividend investor",
"I want to short", "I want to backtest ideas") and needs routing.
Do not use this skill to execute trades, place orders, or auto-run other
skills. It recommends and explains only.
Workflow
Step 1 — Capture the goal and constraints
From the user's message, extract:
- The natural-language goal (verbatim is fine).
- Optional constraints: no-API only? a daily time budget
(15m/30m/60m/90m)? experience level (beginner/intermediate/advanced)?
Ask at most one brief clarifying question only if the goal is empty or has no
discernible intent. Otherwise proceed — the recommender degrades gracefully.
Step 2 — Run the recommender
python3 skills/trading-skills-navigator/scripts/recommend.py \
--query "<the user's goal, verbatim>" \
--format json
# optional: --no-api --time-budget 15m|30m|60m|90m|any
# --experience beginner|intermediate|advanced
- In Claude Code the script reads the repo-root SSoT
(
skills-index.yaml + workflows/*.yaml) automatically.
- In the Claude Web App there is no repo root; the script transparently
falls back to the bundled
assets/metadata_snapshot.json. The recommendation
is byte-identical in both environments — no behavior change for the user.
Step 3 — Narrate the result conversationally
Parse the JSON and explain, in the user's language:
- Primary workflow —
display_name, cadence, ~estimated_minutes,
api_profile. State plainly what it does and when to run it.
- Routing diagnostics — read
routing_diagnostics.status. For
ambiguous, name every candidate_personas entry and explain that the
ordered first match was selected. For fallback, state that no persona
matched and ask the user to rephrase; never present the beginner fallback as
an exact intent match.
- Secondary workflows — if any, how they relate (e.g. "run the regime
check first, then this when it allows risk").
- Skillset — the
skillset.id (skills-index category).
manifest_status: active means a curated skillsets/<id>.yaml bundle ships
for this category (market-regime, core-portfolio, swing-opportunity,
trade-memory) — mention it as the install bundle for the recommended
workflow. manifest_status: deferred means no manifest yet (e.g. honest-gap
categories); the recommendation is workflow-based only.
- No-API vs API — read
no_api_path: true → the entire recommended path
works without paid API keys (state this plainly); false → tell the user
which paid key(s) the path needs; null → honest gap, no path. (no_api is
the request flag — whether no-API mode was active — not whether the path is
free; always narrate no_api_path.) If a workflow was excluded under
--no-api, surface the rationale entry naming the paid integration (e.g.
"swing-opportunity-daily needs FMP").
- Honest gap — if
honest_gap is true there is no shipped workflow for
this intent. Say so directly, then present suggested_skills from the
relevant category and relay the note. Never invent a workflow.
- Operational roles — narrate the
operational_roles entry for every
skill in the setup bundle or honest-gap suggestion. Explain standalone
rationale when present; keep enum values unchanged.
- Always read the
rationale array and explain why this was recommended.
Step 4 — Explain the setup path
Read references/setup_paths.md and walk the user through installing
setup_bundle — the recommender's deterministic install union over the
primary skillset and every secondary workflow (so nothing is dropped for a
multi-workflow recommendation). Enumerate setup_bundle.required →
recommended → optional, cite setup_bundle.sources to explain why each
skill is needed, and name skillset.manifest.related_workflows for how the
bundle is run. Narrate skillset.manifest (when present) as "what the
recommended skillset is". On an honest gap install suggested_skills. Do this
for whichever environment the user is in (Claude Web App .skill upload, or
Claude Code folder copy); call out any paid API keys those skills need.
Step 5 — Point to the learning loop
Close by pointing the user at trader-memory-core and the
trade-memory-loop / monthly-performance-review workflows so every
recommended path feeds the Plan → Trade → Record → Review → Improve loop.
Output Format
The JSON the recommender emits (stable, idempotent, sort_keys):
| Field |
Meaning |
primary_workflow |
Recommended workflow object, or null on an honest gap |
secondary_workflows |
Supporting workflows (ordered, time-budget filtered) |
skillset |
{id, source: skills-index.category, manifest_status, manifest}. manifest_status is active when skillsets/<id>.yaml ships, else deferred. manifest is the 5-key view {display_name, required_skills, recommended_skills, optional_skills, related_workflows} when active, else null. Describes the primary skillset only — not the install list |
setup_bundle |
{required, recommended, optional, sources} — the actionable install union over the primary skillset and every secondary workflow (deterministic, tier-deduped). This is what to install. All-empty on an honest gap (use suggested_skills) |
suggested_skills |
Skills to use when no workflow shipped (honest gap); else [] |
operational_roles |
Skill id → {type, rationale?} for every setup-bundle skill, or every suggested_skills item on an honest gap |
no_api |
Request-side: was no-API constraint mode active (flag or persona) |
no_api_path |
Path-side: does the whole recommendation (primary + every secondary) work without paid API keys? true/false; null on an honest gap. This is the DoD's API-vs-no-API separation — narrate it explicitly |
honest_gap |
true when no workflow exists for the intent |
note |
Plain-language explanation for gaps / unmapped input |
rationale |
Ordered list of why-this-was-recommended strings |
routing_diagnostics |
{status, selected_persona, candidate_personas, explanation}. status is exact, ambiguous, or fallback; candidates are all pre-constraint persona matches in deterministic order |
setup_path_ref |
Pointer to the setup-path reference |
Resources
scripts/recommend.py — the deterministic recommender (single source of
truth for routing).
scripts/build_snapshot.py — regenerates assets/metadata_snapshot.json
from the SSoT; --check guards drift (pre-commit + CI).
scripts/intent_benchmark.py — validates the fail-closed bilingual routing
corpus, persona shadowing contracts, and metamorphic invariants.
references/intent_routing.md — the persona table, the 10-question contract,
the --no-api credential rule, and scoring tie-breaks.
references/setup_paths.md — Claude Web App vs Claude Code setup steps.
assets/metadata_snapshot.json — generated SSoT digest for the Web App
fallback. Never edit by hand; run build_snapshot.py.
assets/intent_benchmark_v1.json — 211 explicitly labeled EN/JA routing
cases with 1.0 precision/recall and per-persona/workflow coverage gates.
1---2name: trading-skills-navigator3description: Recommend the right trading workflow, skillset, API profile, and setup path from a natural-language goal. Use this as the on-ramp when a user expresses a trading or investing goal and needs to know which skill/workflow to use, where to start, or whether something works without paid API keys — e.g. "where do I start", "which skill should I use", "I want to swing trade only when the market is favorable", "what works without API keys", "どれを使えばいい", "API キー無しで 使えるものは". Routes and explains only; it never executes trades or auto-runs other skills, and it is honest when no workflow has shipped yet.4---5
6# Trading Skills Navigator
7
8The interactive on-ramp for this repository. It turns a user's goal into a
9concrete recommendation: which **workflow** to run, which **skillset**
10(skills-index category) it belongs to, the **API requirement**, and the
11**setup path** for Claude Web App or Claude Code.
12
13A new user faces 74 skills + 11 workflows with no router. This skill is that
14router. It is **deterministic** — a Python recommender (`scripts/recommend.py`)
15consumes the repo metadata; this SKILL.md narrates the result conversationally.
16
17## When to Use
18
19- The user expresses a trading/investing goal and asks where to start or which
20 skill/workflow to use ("どれを使えばいい", "where do I start").
21- The user asks what works **without paid API keys**.
22- The user wants the no-API vs API path separated, or a beginner path.
23- The user describes a persona ("part-time swing trader", "dividend investor",
24 "I want to short", "I want to backtest ideas") and needs routing.
25
26Do **not** use this skill to execute trades, place orders, or auto-run other
27skills. It recommends and explains only.
28
29## Workflow
30
31### Step 1 — Capture the goal and constraints
32
33From the user's message, extract:
34
35- The natural-language **goal** (verbatim is fine).
36- Optional constraints: **no-API** only? a daily **time budget**
37 (15m/30m/60m/90m)? **experience** level (beginner/intermediate/advanced)?
38
39Ask at most one brief clarifying question only if the goal is empty or has no
40discernible intent. Otherwise proceed — the recommender degrades gracefully.
41
42### Step 2 — Run the recommender
43
44```bash
45python3 skills/trading-skills-navigator/scripts/recommend.py \
46 --query "<the user's goal, verbatim>" \
47 --format json
48 # optional: --no-api --time-budget 15m|30m|60m|90m|any
49 # --experience beginner|intermediate|advanced
50```
51
52- In **Claude Code** the script reads the repo-root SSoT
53 (`skills-index.yaml` + `workflows/*.yaml`) automatically.
54- In the **Claude Web App** there is no repo root; the script transparently
55 falls back to the bundled `assets/metadata_snapshot.json`. The recommendation
56 is byte-identical in both environments — no behavior change for the user.
57
58### Step 3 — Narrate the result conversationally
59
60Parse the JSON and explain, in the user's language:
61
62- **Primary workflow** — `display_name`, `cadence`, `~estimated_minutes`,
63 `api_profile`. State plainly what it does and when to run it.
64- **Routing diagnostics** — read `routing_diagnostics.status`. For
65 `ambiguous`, name every `candidate_personas` entry and explain that the
66 ordered first match was selected. For `fallback`, state that no persona
67 matched and ask the user to rephrase; never present the beginner fallback as
68 an exact intent match.
69- **Secondary workflows** — if any, how they relate (e.g. "run the regime
70 check first, then this when it allows risk").
71- **Skillset** — the `skillset.id` (skills-index category).
72 `manifest_status: active` means a curated `skillsets/<id>.yaml` bundle ships
73 for this category (market-regime, core-portfolio, swing-opportunity,
74 trade-memory) — mention it as the install bundle for the recommended
75 workflow. `manifest_status: deferred` means no manifest yet (e.g. honest-gap
76 categories); the recommendation is workflow-based only.
77- **No-API vs API** — read `no_api_path`: `true` → the entire recommended path
78 works without paid API keys (state this plainly); `false` → tell the user
79 which paid key(s) the path needs; `null` → honest gap, no path. (`no_api` is
80 the *request* flag — whether no-API mode was active — not whether the path is
81 free; always narrate `no_api_path`.) If a workflow was excluded under
82 `--no-api`, surface the `rationale` entry naming the paid integration (e.g.
83 "swing-opportunity-daily needs FMP").
84- **Honest gap** — if `honest_gap` is true there is **no shipped workflow** for
85 this intent. Say so directly, then present `suggested_skills` from the
86 relevant category and relay the `note`. Never invent a workflow.
87- **Operational roles** — narrate the `operational_roles` entry for every
88 skill in the setup bundle or honest-gap suggestion. Explain standalone
89 rationale when present; keep enum values unchanged.
90- Always read the `rationale` array and explain *why* this was recommended.
91
92### Step 4 — Explain the setup path
93
94Read `references/setup_paths.md` and walk the user through installing
95**`setup_bundle`** — the recommender's deterministic install union over the
96primary skillset **and every secondary workflow** (so nothing is dropped for a
97multi-workflow recommendation). Enumerate `setup_bundle.required` →
98`recommended` → `optional`, cite `setup_bundle.sources` to explain *why* each
99skill is needed, and name `skillset.manifest.related_workflows` for *how* the
100bundle is run. Narrate `skillset.manifest` (when present) as "what the
101recommended skillset is". On an honest gap install `suggested_skills`. Do this
102for whichever environment the user is in (Claude Web App `.skill` upload, or
103Claude Code folder copy); call out any paid API keys those skills need.
104
105### Step 5 — Point to the learning loop
106
107Close by pointing the user at `trader-memory-core` and the
108`trade-memory-loop` / `monthly-performance-review` workflows so every
109recommended path feeds the Plan → Trade → Record → Review → Improve loop.
110
111## Output Format
112
113The JSON the recommender emits (stable, idempotent, `sort_keys`):
114
115| Field | Meaning |
116|---|---|
117| `primary_workflow` | Recommended workflow object, or `null` on an honest gap |
118| `secondary_workflows` | Supporting workflows (ordered, time-budget filtered) |
119| `skillset` | `{id, source: skills-index.category, manifest_status, manifest}`. `manifest_status` is `active` when `skillsets/<id>.yaml` ships, else `deferred`. `manifest` is the 5-key view `{display_name, required_skills, recommended_skills, optional_skills, related_workflows}` when active, else `null`. Describes the **primary skillset only** — not the install list |
120| `setup_bundle` | `{required, recommended, optional, sources}` — the actionable install union over the primary skillset **and every secondary workflow** (deterministic, tier-deduped). **This is what to install.** All-empty on an honest gap (use `suggested_skills`) |
121| `suggested_skills` | Skills to use when no workflow shipped (honest gap); else `[]` |
122| `operational_roles` | Skill id → `{type, rationale?}` for every setup-bundle skill, or every `suggested_skills` item on an honest gap |
123| `no_api` | Request-side: was no-API constraint mode active (flag or persona) |
124| `no_api_path` | Path-side: does the **whole** recommendation (primary + every secondary) work without paid API keys? `true`/`false`; `null` on an honest gap. This is the DoD's API-vs-no-API separation — narrate it explicitly |
125| `honest_gap` | `true` when no workflow exists for the intent |
126| `note` | Plain-language explanation for gaps / unmapped input |
127| `rationale` | Ordered list of why-this-was-recommended strings |
128| `routing_diagnostics` | `{status, selected_persona, candidate_personas, explanation}`. `status` is `exact`, `ambiguous`, or `fallback`; candidates are all pre-constraint persona matches in deterministic order |
129| `setup_path_ref` | Pointer to the setup-path reference |
130
131## Resources
132
133- `scripts/recommend.py` — the deterministic recommender (single source of
134 truth for routing).
135- `scripts/build_snapshot.py` — regenerates `assets/metadata_snapshot.json`
136 from the SSoT; `--check` guards drift (pre-commit + CI).
137- `scripts/intent_benchmark.py` — validates the fail-closed bilingual routing
138 corpus, persona shadowing contracts, and metamorphic invariants.
139- `references/intent_routing.md` — the persona table, the 10-question contract,
140 the `--no-api` credential rule, and scoring tie-breaks.
141- `references/setup_paths.md` — Claude Web App vs Claude Code setup steps.
142- `assets/metadata_snapshot.json` — generated SSoT digest for the Web App
143 fallback. Never edit by hand; run `build_snapshot.py`.
144- `assets/intent_benchmark_v1.json` — 211 explicitly labeled EN/JA routing
145 cases with 1.0 precision/recall and per-persona/workflow coverage gates.