MCPInstall

python fundamentals

Master Python syntax, data types, control flow, functions, OOP, and standard library

Installs
221
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/pluginagentmarketplace/custom-plugin-python --skill python-fundamentals
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads python fundamentals automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Python Fundamentals

Overview

This skill covers the foundational elements of Python programming including syntax, data types, control structures, functions, object-oriented programming, and the standard library.

Learning Objectives

  • Write clean, Pythonic code following PEP 8 guidelines
  • Master all Python data structures (lists, tuples, dicts, sets)
  • Understand and implement object-oriented programming concepts
  • Navigate and utilize the Python standard library effectively
  • Manage virtual environments and packages with pip/venv

Core Topics

1. Python Syntax & Data Types

  • Variables and naming conventions
  • Numeric types (int, float, complex)
  • Strings and string methods
  • Boolean logic and None
  • Type hints (PEP 484)
  • F-strings and formatting

Code Example:

# Type hints and f-strings
def greet_user(name: str, age: int) -> str:
    return f"Hello {name}, you are {age} years old!"

# Using the function
message = greet_user("Alice", 30)
print(message)  # Hello Alice, you are 30 years old!

2. Control Flow & Functions

  • Conditional statements (if/elif/else)
  • Loops (for, while)
  • List/dict/set comprehensions
  • Function parameters and arguments
  • Lambda functions
  • Decorators basics

Code Example:

# List comprehension with conditional
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
even_squares = [x**2 for x in numbers if x % 2 == 0]
print(even_squares)  # [4, 16, 36, 64, 100]

# Decorator example
def timing_decorator(func):
    import time
    def wrapper(*args, **kwargs):
        start = time.time()
        result = func(*args, **kwargs)
        end = time.time()
        print(f"{func.__name__} took {end - start:.4f} seconds")
        return result
    return wrapper

@timing_decorator
def slow_function():
    import time
    time.sleep(1)
    return "Done!"

3. Object-Oriented Programming

  • Classes and instances
  • Inheritance and composition
  • Polymorphism and duck typing
  • Encapsulation (public/private)
  • Magic methods (init, str, repr, etc.)
  • Abstract base classes

Code Example:

from abc import ABC, abstractmethod

class Vehicle(ABC):
    def __init__(self, brand: str, model: str):
        self.brand = brand
        self.model = model

    @abstractmethod
    def start_engine(self) -> str:
        pass

    def __str__(self) -> str:
        return f"{self.brand} {self.model}"

class Car(Vehicle):
    def __init__(self, brand: str, model: str, doors: int):
        super().__init__(brand, model)
        self.doors = doors

    def start_engine(self) -> str:
        return f"{self} engine started with {self.doors} doors"

# Usage
car = Car("Toyota", "Camry", 4)
print(car.start_engine())  # Toyota Camry engine started with 4 doors

4. Standard Library

  • File operations (open, read, write)
  • Path handling with pathlib
  • datetime for date/time operations
  • collections (Counter, defaultdict, namedtuple)
  • itertools and functools
  • json and csv modules

Code Example:

from pathlib import Path
from datetime import datetime, timedelta
from collections import Counter
import json

# Path operations
data_dir = Path("data")
data_dir.mkdir(exist_ok=True)

config_file = data_dir / "config.json"
config = {"app_name": "MyApp", "version": "1.0.0"}

# Write JSON
with open(config_file, "w") as f:
    json.dump(config, f, indent=2)

# Read JSON
with open(config_file, "r") as f:
    loaded_config = json.load(f)

# Date operations
today = datetime.now()
next_week = today + timedelta(days=7)
formatted = today.strftime("%Y-%m-%d %H:%M:%S")

# Counter for frequency analysis
words = ["apple", "banana", "apple", "cherry", "banana", "apple"]
word_count = Counter(words)
print(word_count.most_common(2))  # [('apple', 3), ('banana', 2)]

Hands-On Practice

Project 1: File Management Tool

Build a command-line tool that organizes files by extension.

Requirements:

  • Accept directory path as input
  • Scan for files recursively
  • Group files by extension
  • Move files to organized folders
  • Generate summary report

Key Skills: pathlib, file I/O, os module

Project 2: Contact Manager (OOP)

Create a contact management system using object-oriented principles.

Requirements:

  • Contact class with name, email, phone
  • ContactBook class to manage contacts
  • CRUD operations (Create, Read, Update, Delete)
  • Search and filter functionality
  • Persist data to JSON file

Key Skills: OOP, JSON serialization, data structures

Project 3: Text Analyzer

Analyze text files for statistics and patterns.

Requirements:

  • Word frequency analysis
  • Character count (with/without spaces)
  • Average word length
  • Most common words (exclude stop words)
  • Export results to CSV

Key Skills: String manipulation, collections.Counter, CSV

Assessment Criteria

  • Write PEP 8 compliant Python code
  • Use appropriate data structures for different scenarios
  • Implement classes with proper OOP principles
  • Utilize standard library modules effectively
  • Manage virtual environments and dependencies
  • Handle exceptions properly
  • Write clear docstrings and comments

Resources

Official Documentation

Learning Platforms

Tools

Next Steps

After mastering Python fundamentals, proceed to:

  • Django Framework - Build web applications
  • Pandas Data Analysis - Work with data
  • Pytest Testing - Write comprehensive tests
  • Asyncio Programming - Asynchronous Python

FAQ

What does the python fundamentals skill do?

Master Python syntax, data types, control flow, functions, OOP, and standard library

How do I install python fundamentals?

Run npx skills add https://github.com/pluginagentmarketplace/custom-plugin-python --skill python-fundamentals in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/python-fundamentals/ (personal) or .claude/skills/python-fundamentals/ (project).

Which AI agents can use python fundamentals?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is python fundamentals safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains python fundamentals?

It is published by pluginagentmarketplace in pluginagentmarketplace/custom-plugin-python. It has 221 recorded installs.

More from pluginagentmarketplace/custom-plugin-python

View all →

pandas data analysis

pluginagentmarketplace/custom-plugin-python

Master data manipulation, analysis, and visualization with Pandas, NumPy, and Matplotlib

Data & Databases1.1K installs

pytest testing

pluginagentmarketplace/custom-plugin-python

Master test-driven development with pytest, fixtures, mocking, and CI/CD integration

Testing & QA525 installs

machine learning

pluginagentmarketplace/custom-plugin-python

Open the skill to read its SKILL.md instructions.

AI & Agents345 installs

debugging

pluginagentmarketplace/custom-plugin-python

Python debugging techniques, pdb, and IDE debugging tools

python performance

pluginagentmarketplace/custom-plugin-python

Master Python optimization techniques, profiling, memory management, and high-performance computing

fastapi

pluginagentmarketplace/custom-plugin-python

Open the skill to read its SKILL.md instructions.

Backend & APIs180 installs

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs