# Python Fundamentals

The Python Fundamentals skill covers Python syntax, data structures, functions, OOP, and the standard library. Use it to work through learning exercises or understand Python code in a project.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 222 installs · ★ 7 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/python-fundamentals/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/python-fundamentals

## What it does

The material covers data types, conditionals, loops, functions, and introductory object-oriented programming. It explains lists, tuples, dictionaries, sets, type annotations, and decorators. Ask about a code fragment or how to choose a data structure for a task.

Examples work with files, `pathlib`, dates, JSON, CSV, and modules such as `collections`, `itertools`, and `functools`. The exercises include sorting files by extension, building a contact book that saves to JSON, and analyzing text with CSV output.

The skill also addresses PEP 8, exception handling, code documentation, and managing environments with `pip` and `venv`. It teaches through exercises rather than providing a ready-made library to add to an application.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill python-fundamentals -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/python-fundamentals/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/python-fundamentals/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill python-fundamentals -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/python-fundamentals/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill python-fundamentals -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/python-fundamentals/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-python skills/python-fundamentals
```

2. **Manually: put the files in place**
- File: `.github/skills/python-fundamentals/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill python-fundamentals -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-python --path skills/python-fundamentals
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/python-fundamentals/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill python-fundamentals -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/python-fundamentals/SKILL.md

## When to use it
- understand Python conditions, loops, and functions
- choose a data structure for a given task
- write classes that work together
- read and write JSON or CSV data
- build a program that counts words in a text file

## Example prompts
- Explain how Python dictionaries and sets work, with a relevant example.
- Help me build a contact book class that can search entries and save them as JSON.
- Review this Python code and suggest how to handle its exceptions.

## Similar
- [mojo-gpu-fundamentals](https://affpapa.org/en/nevibecode/skills/mojo-gpu-fundamentals.md) — skill · 2800 installs
- [nextjs-app-router-fundamentals](https://affpapa.org/en/nevibecode/skills/nextjs-app-router-fundamentals.md) — skill · 2200 installs
- [java-fundamentals](https://affpapa.org/en/nevibecode/skills/java-fundamentals.md) — skill · 630 installs
- [javascript-fundamentals](https://affpapa.org/en/nevibecode/skills/javascript-fundamentals.md) — skill · 462 installs
- [dart-test-fundamentals](https://affpapa.org/en/nevibecode/skills/dart-test-fundamentals.md) — skill · 455 installs
- [wordpress-plugin-fundamentals](https://affpapa.org/en/nevibecode/skills/wordpress-plugin-fundamentals.md) — skill · 440 installs

From the same set: [pluginagentmarketplace/custom-plugin-python](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-python.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
