hummingbot/condor/controller-development
Claude Code and agent skill by hummingbot/condor
- community
Checking that the SKILL.md file is still in the repository.
Phase 2 — turn a confirmed signal spec into a complete, fully vectorized
Install
npx vskill@latest install hummingbot/condor/controller-developmentSKILL.md
The same SKILL.md was published earlier as hummingbot/condor/controller-development.
Phase 2: Controller Development
Translate the confirmed signal spec into a working controller — fully vectorized, uploaded, with an initial named config ready for backtesting.
Step 1 — Define the config class
Every tunable value is a config field. No magic numbers in the signal logic — a hardcoded threshold cannot be swept, which kills Phase 3.
Required fields (from the base class):
controller_name— snake_case and descriptive (ema_cross_adx_filter)connector_name— e.g.binance_perpetualtrading_pair— e.g.BTC-USDTcandles_connector/candles_trading_pair— usually mirror the aboveinterval— from research (e.g.1h)max_records—max(indicator_length) * 3, minimum 200
Step 2 — Implement update_processed_data
Critical rules:
- Fully vectorized — no
iterrows(), noapply()with Python lambdas, no
loops over rows. The engine reads the signal column in bulk; a row-loop silently produces wrong results.
- The
signalcolumn holds only1,-1or0— not booleans, not floats. - Every tunable value comes from
self.config.<param>. - End with exactly these two exports.
Step 3 — Self-review checklist
Before uploading:
- [ ] No row loops — grep for
iterrows,apply,for idx; must be zero - [ ] All params from config — no hardcoded numbers in the signal logic
- [ ] Signal values — only
1,-1,0 - [ ] Column names — pandas_ta convention:
EMA_{length},RSI_{length},
ADX_{length}, MACD_{fast}_{slow}_{signal}, BBL_{length}_{lower_std}_{upper_std} / BBU_{length}_{lower_std}_{upper_std} (bbands takes the two stds separately and puts BOTH in the name, so a 20/2.0 band is BBL_20_2.0_2.0 and not BBL_20_2.0 — DT-10), SUPERTd_{length}_{multiplier}. Print `df.columns` once and read it rather than trusting any of these: a mismatch is a runtime KeyError
- [ ] No all-NaN or mutually exclusive feature columns — the backtester
dropna()s the feature frame as a whole, so one column that is NaN everywhere deletes every row and the run fails with an unexplained HTTP
df.ta.supertrend()emits exactly this trap:SUPERTlandSUPERTs
are a complementary pair, and in a one-directional window one of them is NaN throughout (DT-3). Drop what the signal does not read before publishing processed_data["features"]
- [ ] Declare the feeds — implement
get_candles_config()and return a
CandlesConfig for every interval update_processed_data reads. A controller that fetches a feed it never declared gets an empty frame at 1m, which is how a template-derived controller failed there while working at higher resolutions (DT-10). The three shipped controllers all declare theirs; copy that shape
- [ ] NaN handling — indicators emit NaN during warm-up; NaN comparisons yield
False, which correctly maps to signal = 0
- [ ] `signal` populated for all rows — default 0, then overwritten by masks
- [ ] `iloc[-1]`, not `iloc[0]` — the current bar is what the engine acts on
- [ ] Indicator lookback < `max_records - 50` — headroom for warm-up
- [ ] No look-ahead —
.shift(1)wherever entry-bar logic needs it - [ ] Complete module — both classes, all imports
Step 4 — Write the controller to your folder, then sync it
Your folder is the source of truth; the server holds a copy. Follow the shared controller_sources playbook (manage_skill(action="read", name="controller_sources")) for the status/sync/drift rules — never upload folder-owned code with manage_controllers(action="upsert", target="controller").
The type is inferred from the base class (DirectionalTradingControllerBase → directional_trading).
Step 5 — Create the initial config as a style, then upload it
Write the initial config as a sample (a "style") next to the controller, then upload it — it lands on the server as ema_cross_adx__v1:
Rules that actually bite:
- Numbers must be numbers, not strings.
"ema_fast": "5"reaches the
backtesting engine as a string and fails on arithmetic.
- `controller_name` must match the controller module name (
ema_cross_adx→
bots/controllers/directional_trading/ema_cross_adx.py). It is how the backend resolves the config class.
- The server config id is
<controller>__<style>unless you passconfig_name; it
becomes the YAML filename and the config id.
- Config classes set
extra="forbid"— a typo'd field is a hard rejection, not a
warning. Discover the real field set with manage_controllers(action="describe", controller_name="<name>").
overwrite=trueis required when replacing a differing config on the server; the
refusal shows the diff first.
Step 6 — Modifying an existing controller
Config only: edit the style (manage_agent_controllers(action="read", name=..., sample=...), then write it back with sample=) and upload_config with overwrite=true. For a one-off variant, upload under a new config_name instead of editing the style.
Controller code:
manage_agent_controllers(action="read", name="...")- Rewrite the full
update_processed_data— never patch partial snippets - Re-run the self-review checklist
writeit, thensyncwithoverwrite=true— the drift is your own edit (see
controller_sources: the server copy is backed up, running bots keep the old class, and the next backtest and any bot deployed from now on use the new code — no API restart needed)
- Re-upload any configs referencing it — they do not auto-update
Go/No-Go → Phase 3
✅ GO — controller and config uploaded without errors, checklist fully passes, code is a complete importable module.
❌ NO-GO — any row-level loop, hardcoded magic numbers in the signal logic, column name mismatch, or max_records < 2× the longest indicator length.
Artifacts
- Controller source (complete module)
- Named config with all parameters
- Self-review checklist results
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/directional_trader/skills/controller_development/SKILL.md
Popularity
- Repository stars
- 191
- Repository forks
- 103
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hummingbot/condor/controller-development)