codingfix-param-use
Fix function call sites to pass positional args by position and assign constants to intermediate variables
소스 정보
- 저장소
- causify-ai/helpers
- 최근 소스 활동
- 2026년 2월 28일 18:01
- 감지된 SKILL.md 언어
- 영어
- 스타
- 146
- 포크
- 162
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- coding.fix_param_use
- description
- Fix function call sites to pass positional args by position and assign constants to intermediate variables
- I will pass you a file
- In that file, make sure that:
- Callers pass the parameters by position and pass the keywords arguments
- Constant should be assigned to intermediate variable with the same name
corresponding to the formal parameters
- For a function with the signature
```python
def apply_llm_prompt_to_df(
prompt: str,
df: pd.DataFrame,
extractor: Callable[[Union[str, pd.Series]], str],
target_col: str,
batch_mode: str,
*,
model: str,
batch_size: int = 50,
dump_every_batch: Optional[str] = None,
tag: str = "Processing",
testing_functor: Optional[Callable[[str], str]] = None,
use_sys_stderr: bool = False,
) -> Tuple[pd.DataFrame, Dict[str, int]]:
```
- Bad
```python
df, stats = hllmcli.apply_llm_prompt_to_df(
prompt=prompt,
df=df,
extractor=extract_person_industry_from_df,
target_col="industry",
batch_mode=batch_mode,
batch_size=batch_size,
model=model,
tag=tag,
)
```
- Good
```python
target_col = "industry"
df, stats = hllmcli.apply_llm_prompt_to_df(
prompt,
df,
extract_person_industry_from_df,
target_col,
batch_mode,
batch_size=batch_size,
model=model,
tag=tag,
)
```
GitHub에서 보기