Coding.fix param use

From causify-ai/helpers · View interactive version

Coding.fix param use is an AI agent skill from the GitHub repository causify-ai/helpers. Fix call sites to pass positional/keyword args and name constants correctly

How to use this skill

Skill file

Goal

I will pass you a file <FILE>. In that file, make sure that:

keyword

the corresponding formal parameter

Conventions

Examples

```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: str = "",

tag: str = "Processing",

testing_functor: Optional[Callable[[str], str]] = None,

use_sys_stderr: bool = False,

) -> Tuple[pd.DataFrame, Dict[str, int]]:

```

```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,

)

```

```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,

)

```

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.