/quandora:strategy-buildingfrom quandora
Builds one non-optimizer Quandora Strategy from Factor evidence, recommending equal Factor weights. Lists available, eligible, or selectable factors. Use when designing, creating, revising, backtesting, rerunning, retrieving, or exporting a Strategy.
Ships in quandora. 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.
Follow Connection and Security for automatic recovery and the once-per-session release check; preserve existing update authority. After a failed mutating call, follow Failed mutations. Follow Research intent and evidence for backtest/forward scope, capability-aware conclusions and authorization-preserving handoffs. Follow Research notebook to read prior research before deciding, write the hypothesis with each decision and record a conclusion after each result.
Use the authenticated quandora connection for one canonical lifecycle:
StrategyFamily → immutable Strategy → StrategyRun. Creating a definition and submitting its Run
are distinct calls within the same authorized task. There is no alternate ad-hoc submission path.
Route one to five exact Strategies to $portfolio-building, simulated execution and observation
to $portfolio-trading-analysis, and diagnosis of existing results to $strategy-analysis.
For archive waits, stale sync_failed, inline too_large, or bundle channel limits,
follow Strategy delivery recovery.
For named objects, follow Name discovery to resolve exact identities.
Use Research playbooks for goal-based call orders and similarity decisions.
A Strategy turns existing Factor evidence into one traceable definition: exact FactorRun →
Factor Card → Strategy admission → ordered factor_references → immutable Strategy →
StrategyRun. The Factor Card says why Factors belong together; the server's admission record says
whether they may be combined. Neither overrides the other.
get_strategy_capabilities, list_eligible_strategy_factors,
get_eligible_strategy_factor.create_strategy_family, list_strategy_families, get_strategy_family.create_strategy, list_strategies, get_strategy.submit_strategy_backtest, list_strategy_backtests, get_strategy_backtest.get_research_context, list_research_notes, record_research_conclusion,
and wait_for_runs for waiting.download_result_bundle with kind: "strategy" and the canonical StrategyRun ID.These are canonical actions on the configured MCP dependency. Let the host resolve its qualified
names. Missing tools do not authorize aliases or direct internal HTTP. Use get_quandora_guidance
only when the current schema leaves a relevant workflow detail unclear; it is not an entry gate.
For a bare factor-list request, call only list_eligible_strategy_factors with one bounded page.
Use a supplied name as query, exact supported constraints as filters, and preserve the opaque
page token byte-for-byte. Do not start research or auto-page from an inventory request.
Preserve returned strategy_use and unresolved_eligible_factor_ids; an explicitly included Factor can
appear with strategy_use.status=needs_optimization and is not selectable merely because it is
listed. Report that state without adding local grade thresholds or silently substituting Factors.
For a design request or delegated Factor choice, follow Factor selection and signal weighting; a design-only request stops at the proposal without creating a definition or submitting a Run. Judge cross-Factor redundancy and complementarity from Factor value correlation, reported with its direction, window, valid days, common symbols and status; missing or insufficient overlap is not low correlation.
For a Strategy request, follow Canonical Strategy Workflow.
Read get_research_context with stage: "strategy" first. Resolve exact admitted Factors, prepare
one named immutable definition, create its Family if needed, then submit a Run with a fresh
client_request_id when requested. Optional start_date and end_date select ordinary research
periods; omissions use server-owned standard defaults. Keep dates out of Strategy definitions and
preserve accepted retry identity as described in
the Canonical Strategy Workflow. A brand-new idea starts a new Family: create_strategy_family
with a research_note whose relation is new_direction. A revision of an existing idea calls
create_strategy in its Family with the exact base and relation improvement, or control when
it removes or changes one Factor or rule to measure its contribution; create each control with its
own call and hypothesis. Always include references to the exact Factor runs/versions and any
Strategy baseline used for the decision. Write the note in the user's language and begin hypothesis with a
one-sentence topic of at most 60 characters. The backtest submission of a new definition carries no
second note. A request to build and backtest covers both calls; do not add a confirmation at each
step or Skill handoff. Choose missing settings from the research context and returned candidates;
record why in research_note.hypothesis for a new direction or change_summary otherwise.
Never upload a local plugin directly to Strategy: use $factor-mining, finish its canonical Factor
backtest/admission, then select the admitted Factor here. A new Strategy applies each Factor in the
direction QuantAI evaluated on its card automatically; do not reverse or negate a Factor for it.
The Factor Plugin Contract owns raw input definitions, including binance_intraday semantics and
D/D+1 availability. Strategy construction consumes exact admitted Factor identities; it must not
copy the 86-field semantic registry or reviewed research policy, select raw data columns,
re-normalize a Factor's inputs, or apply an
additional date shift. Route a request to author or change an input-level thesis to
$factor-mining before returning to the eligible Factor inventory.
For a changed definition or another Run of an existing Strategy, follow Immutable Definition Changes.
Every Strategy you design or recommend uses equal Factor weights: omit weighting and the server
derives them. Use non-equal weights only when the user supplies them; label that definition
user-specified, never an AI recommendation, and show the equal-weight version of the same Factors
beside it. User weights are finite and positive, sum exactly to 1 and align with the ordered
factor_references. Never search for, recommend or pick in-sample best weights. If equal weights
leave an unacceptable concentration, change the Factor set or report that the candidates do not
make a Strategy; do not reweight to hide it. Factor signal weights, Strategy asset weights and
Portfolio capital weights are different quantities.
Copy run.strategy_run_id from submission, wait with wait_for_runs, then read it with
get_strategy_backtest.
For history, list_strategy_backtests requires the exact strategy_id. Family and Run lists use
page_size/page_token; they do not accept query or filters. Definitions in a Family are read
with list_strategies(strategy_family_id=...). Preserve the returned identities and states.
An ambiguous write is not permission to submit a replacement or change its payload. After a failed
create or submit, follow Failed mutations: the Run may
already exist. For a submit, read list_strategy_backtests for the original immutable strategy_id
and reconcile any exact returned Run with get_strategy_backtest; do not use an internal command
ID or treat a merely similar Run as proof. Allow bounded reads for delayed visibility, then report
remaining uncertainty. A repeat with the same client_request_id and identical parameters recovers
the same operation, also after ten minutes; never replace an uncertain submission with a fresh ID.
A definitive factor_needs_optimization rejection identifies the affected Factors in
error.details.factor_family_ids. Report those returned Families and the reason. Do not retry the same
rejected input, silently remove or substitute Factors, or infer that the rejection created a Run.
Continue Factor repair only within the user's authorized scope, then use newly admitted evidence.
A failed Run remains historical evidence. A requested rerun calls submit_strategy_backtest
for the same immutable Strategy with a fresh client_request_id; a changed definition must first
create a new Strategy. Generate the ID before submitting, preserve it across retries, and never
reuse it with different parameters or a different Strategy.
After a terminal Run and a readable archive, use
Strategy Result Bundle Delivery for requested export.
The default completed local path is Quandora result/strategy/<strategy_slug>.zip.
Analysis uses server artifacts through $strategy-analysis; a local ZIP is not a prerequisite.
For Trading preparation, hand the exact Strategy to $portfolio-building for a one-component
Portfolio. A backtest does not start Monitoring: PB runs it only for a shared Portfolio, and a private
forward test is an explicit Simulation request for $portfolio-trading-analysis. Do not start a
TradingRun here.
State the Strategy name, Family/definition/Run identities when useful, observed Run/archive state,
safe diagnostics, and verified export path when saved. After a terminal Run, record a one- or
two-sentence conclusion on that strategy_run before answering; the server files it under the
Strategy version with run_id. Preserve missing evidence as unavailable. Use the user's language
while preserving tool names, schema fields, and returned identifiers.
For Factor/Strategy stars and folder-independent metadata, follow Library Favorites.
agents/openai.yaml (opens in a new tab)assets/strategy-building.png (opens in a new tab)references/canonical-strategy-workflow.md (opens in a new tab)references/factor-selection-and-weighting.md (opens in a new tab)references/ordinary-strategy-workflow.md (opens in a new tab)references/result-bundle-delivery.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub varsity-tech-product/quandora-plugins --plugin quandora8 skills in this plugin
/account-connectionConnects, reauthorizes, switches, and verifies the current Quandora account through host-native MCP OAuth, and files problem reports with the Quandora team. Use when the user asks to log in, open authorization, reconnect, change accounts, identify the connected account, or report a problem, bug or wrong data to Quandora. Do not use for Factor, Strategy, Portfolio, or Trading operations./factor-analysisAnalyzes existing owned or active-official Quandora Factor results from server evidence. Use when the user asks about pass/fail, Health, ratings, data quality, mechanisms, controlled improvements, Strategy readiness, similarity to the user's other Factors, or grouping them into factor LibraryFolders. Do not use for creating or submitting a factor./factor-miningCreates, validates, backtests, continues, retrieves, or summarizes one Quandora Factor and reads owned Factor families or history. Use when the user asks for Factor Mining authoring or reuse. Do not use for the Strategy eligible-factor pool or deep result diagnosis./portfolio-analysisAnalyzes an existing Quandora Portfolio backtest against its actual Strategy members and declared baselines. Use when the user asks about diversification, neutrality, risk contributions, drawdown, member value or historical portfolio improvement. Do not use to select and create a new Portfolio, share it, submit experiments or manage forward trading./portfolio-buildingSelects complementary Strategies at equal initial capital and builds, revises or backtests an immutable Quandora Portfolio, including one-member Portfolios. Use when the user asks for a composition plan, capital weights, creation, Community discovery, favorites, publication or sharing. Do not use for single-Strategy authoring, deep diagnosis of an existing Portfolio result or Trading account management./portfolio-trading-analysisManages Simulation accounts and runs and analyzes actual forward-test evidence for Simulation and real Live portfolios. Use when the user asks to create, rename, archive or restore a Simulation account, start/pause/resume/stop a simulated run, or analyze observed trading performance, execution and research divergence. Do not use to create or control real Live accounts or author backtest research.Other plugins' skills for the same job