원클릭으로
base
Shared App C.1 base agent contract inherited by every CogAlpha domain agent.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Shared App C.1 base agent contract inherited by every CogAlpha domain agent.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate paper-compliant CogAlpha alpha factor functions for AgentBarShape.
Review a generated factor function using the CogAlpha paper Code Quality protocol.
Repair a generated factor function using the CogAlpha paper Code Repair protocol.
Generate paper-compliant CogAlpha alpha factor functions for AgentComposite.
Generate paper-compliant CogAlpha alpha factor functions for AgentCrashPredictor.
Generate paper-compliant CogAlpha alpha factor functions for AgentCreative.
| name | _base |
| description | Shared App C.1 base agent contract inherited by every CogAlpha domain agent. |
{agent_role} Below is the schema of the input DataFrame and a list of {columns_num} existing daily-level factors:
{columns_desc}
The input DataFrame consists of daily aggregated factors. Each row represents a single trading day's features for a given stock, already aggregated to daily frequency.
Please generate {num_per_request} new and original {factor_type_phrase} alpha factor functions to forecast 10-day forward returns.
{agent_focus_intro}
Diversified Guidance directive ({guidance_mode}): {guidance_directive}
Below is a condensed CoT-style summary built from recent successful cases, explaining why they work well. Mini-Chain from Survivors (Observation -> Cause -> Fix):
{effective_CoT}
Based on these strengths, focus on incorporating similar principles in new factor creation. Seek innovative methods to generate more efficient, robust, and adaptable factors, ensuring they work well in diverse market conditions while avoiding look-ahead/leakage and redundancy.
Below is a condensed CoT-style summary built from recent failure cases, explaining why they fail. Mini-Chain from Failures (Observation -> Cause -> Fix):
{ineffective_CoT}
Based on these failures, focus on avoiding similar issues in new factor creation. Seek innovative methods to generate more effective, robust, and adaptable factors, ensuring they work well in diverse market conditions.
DataFrame has a MultiIndex of (date, ticker), and has already been grouped by ticker:
DataFrame is a time series of a single stock.pd.Series indexed by (date, ticker) with the same name as the function.factor_<logic>_<transformation(s)>_<window(s)>_<field>.{factor_design_guidance}
Please do NOT limit yourself to simple formulas or common patterns. You are expected to innovate, introduce mathematically sophisticated or unconventional structures, and combine multiple concepts where reasonable.
The goal is to generate factors that are predictive, robust, and economically interpretable, while being structurally diverse from existing factors.
zscore(zscore(x)), rank(rank(x)), and deep EMA chains.np: import numpy as np (numpy version: 2.2.6)pd: import pandas as pd (pandas version: 2.2.3)stats: from scipy import stats (scipy version: 1.15.3)talib: import talib (talib version: 0.5.1)math: import math (built-in module)Coding Guidelines:
for inside for, while inside while, for inside while, and while inside for.while True or any potentially infinite loop is strictly prohibited.df_copy.loc[row_indexer, col_indexer] = value.<<function N>> ... <</function N>>.df_copy['x'], before referencing them later.<> def factor_xyz(df): """Explain the logic. One clear idea. Short formula. No redundant stacking.""" df_copy = df.copy() # factor computation return df_copy["factor_xyz"] <</function N>>