code-completion-ROLE-reinforced-codegolf

Use this skill whenever you are given a Python code file with missing code and asked to complete it — whether that is a single incomplete line, an API invocation, or an entire function body. This skill completes the missing code by first generating doctests as a validation oracle, then generating the code, then iteratively fixing the code until it passes its own doctests before delivering the result. Trigger for: - Any prompt containing a Python code file where code is missing or truncated - Requests like "complete this function", "fill in the missing code", "implement this" - JSON records with a "prompt" field containing Python code and a "metadata" field with either "function_name" (function body task) or "line_no" (line completion task) - Any RepoEval-style code completion benchmark instance - Situations where generated code must be validated before delivery Do not trigger for: - General code questions or explanations with no missing code to fill in - Requests to write entirely new files from scratch with

IBM b30f99e 5 files · 86.4 KB Updated

File contents

ibm/skillset-artifacts/tree/main/doctest/ablations/style_succinct_coder/skill commit b30f99e7d4

Frequently asked questions

npx skillmds@latest add ibm/code-completion-role-reinforced-codegolf