Store
Claude skill Sciences

Python Debugging

Helps you debug a pasted Python error: reading the traceback line by line, the likely cause, a minimal test to confirm the hypothesis, then a targeted hint — never the fully fixed code, since it's your job to fix it.

Real example

Taken from the skill's “Example” section (in French: the skill answers in your language).

Claude · skill python-debug-etudiant
J'ai cette erreur : `IndexError: list index out of range` à la ligne 8, mon code fait une boucle for i in range(len(liste)+1): print(liste[i])

Trace lue

IndexError levée à la ligne 8, pendant l'accès à liste[i].

Type d'erreur

IndexError — ligne 8

Cause probable

range(len(liste)+1) génère un indice égal à len(liste), qui n'existe pas dans la liste (les indices vont de 0 à len(liste)-1).

Test minimal

print(len(liste))

print(list(range(len(liste)+1)))

Indice

Regarde jusqu'où va range(...) par rapport à la taille réelle de la liste : faut-il vraiment le +1 ?

…

Install in two minutes

  1. 1

    claude.ai or Claude Desktop

    Settings, capabilities (skills) section, then import the .zip file.

  2. 2

    Claude Code

    Unzip the folder into ~/.claude/skills/: the /python-debug-etudiant command appears.

  3. 3

    Ask as usual

    Claude triggers the skill on its own when your request matches.

The skill helps you learn and produce your own work; it never writes graded work for you. Check your school's rules on AI use.

In the same field

Join GetPack

Already have an account? Sign in