Agent skill

Mastering Python Skill

by SpillwaveSolutions in SpillwaveSolutions/agent-brain

Modern Python coaching covering language foundations through advanced production patterns.

MITAuto-check: notesDevelopment

Install Mastering Python Skill

skills CLI
$ npx skills add SpillwaveSolutions/agent-brain --skill mastering-python-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SpillwaveSolutions/agent-brain mastering-python-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SpillwaveSolutions/agent-brain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mastering-python-skill .claude/skills/mastering-python-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mastering-python-skill
GitHub stars
120
Token cost
~1.4k tokens
SKILL.md length
238 words
Files
32 (incl. references)
Skills in repo
55
Repo updated
First seen
Licence
MIT

At a glance

Modern Python coaching covering language foundations through advanced production patterns.

  • Works in 4 steps: Setup → Develop → Validate → …
  • Asked to write Python code
  • SKILL.md covers Contents, Workflow, Reference Files and Sample CLI Tools, plus 1 more section
  • Calls python, ruff and poetry; reaches httpbin.org

What it does

Mastering Python Skill is an agent skill from SpillwaveSolutions/agent-brain. Modern Python coaching covering language foundations through advanced production patterns. Use when asked to "write Python code", "explain Python concepts", "set up a Python project", "configure Poetry or PDM", "write pytest tests", "create a FastAPI endpoint", "run uvicorn server", "configure alembic migrations", "set up logging", "process data with pandas", or "debug Python errors". Triggers on "Python best practices", "type hints", "async Python", "packaging", "virtual environments", "Pydantic validation"…

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 36 other files, including reference files (for example `.skilz-manifest.yaml`, `TOC.md` and `references/foundations/code-quality.md`).

It sits in Development, covering Backend development, Type safety and Unit testing. It works with Python, pytest, FastAPI and pandas. The repository describes itself as: Local-first RAG memory for AI agents: hybrid + GraphRAG search, MCP server with OAuth 2.1, plugin for Claude Code / OpenCode / Codex. The licence is MIT.

When your agent uses it

  • Asked to write Python code
  • Explain Python concepts
  • Set up a Python project
  • Configure Poetry

Example prompts

  • “write Python code”
  • “explain Python concepts”
  • “set up a Python project”
  • “/mastering-python-skill”

Requirements

  • Python 3
  • Docker
  • Pre-approved tools (allowed-tools): Read, Write, Bash, Edit, Glob, Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Setup
  2. Develop
  3. Validate
  4. Deploy

What it can do on your machine

Read from SKILL.md and the folder at commit 8339623. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • ruff
    • poetry
    • mypy
    • pytest

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • httpbin.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mastering Python Skill loads about 1.4k tokens when it runs, and up to ~111k if it reads all its reference files. Until then it costs about 146 tokens; SKILL.md has 238 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~146
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~111k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:122
    i/config_loader.py) | Pydantic settings, .env files, validation | [pydantic-validation.md](references/web-apis/pydantic-
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash, Edit, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SpillwaveSolutions/agent-brain at commit 8339623, republished under its MIT licence (© SpillwaveSolutions). 238 words, ~1,422 tokens.

Download SKILL.mdSave it as .claude/skills/mastering-python-skill/SKILL.md (or your agent's skills folder). This skill also uses 31 other files; get the full folder from GitHub.
name
mastering-python-skill
description
Modern Python coaching covering language foundations through advanced production patterns. Use when asked to "write Python code", "explain Python concepts", "set up a Python project", "configure Poetry or PDM", "write pytest tests", "create a FastAPI endpoint", "run uvicorn server", "configure alembic migrations", "set up logging", "process data with pandas", or "debug Python errors". Triggers on "Python best practices", "type hints", "async Python", "packaging", "virtual environments", "Pydantic validation", "dependency injection", "SQLAlchemy models".
allowed-tools
Read, Write, Bash, Edit, Glob, Grep
context
fork
agent
senior-python-engineer
metadata.version
2.2.0
metadata.domains
python, testing, packaging, web-development, async, security

Mastering Python Skill

Production-ready Python patterns with runnable code examples.

Contents


Workflow

Phase 1: Setup
  1. Verify Python version

    bash
    python --version  # Require 3.10+, prefer 3.12+
  2. Create and activate virtual environment

    bash
    python -m venv .venv && source .venv/bin/activate
  3. Install dependencies

    bash
    poetry install  # or: pip install -r requirements.txt
Phase 2: Develop
  1. Reference appropriate patterns:

  2. Follow project structure from project-structure.md

Phase 3: Validate
  1. Run quality checks

    bash
    ruff check . && ruff format --check .
    mypy src/
  2. Run tests with coverage

    bash
    pytest -v --cov=src --cov-report=term-missing
Phase 4: Deploy
  1. Build and verify package

    bash
    python -m build && twine check dist/*
  2. Deploy per docker-deployment.md or ci-cd-pipelines.md

Pre-Completion Checklist:

- [ ] All tests pass
- [ ] mypy reports no errors
- [ ] ruff check clean
- [ ] Coverage ≥80%
- [ ] No security warnings in dependencies

Reference Files

CategoryFilesKey Topics
Foundationssyntax-essentials, type-systems, project-structure, code-qualityVariables, type hints, generics, src layout, ruff, mypy
Patternsasync-programming, error-handling, decorators, context-managers, generatorsasync/await, exceptions, Result type, with statements, yield
Testingpytest-essentials, mocking-strategies, property-testingFixtures, parametrize, unittest.mock, Hypothesis
Web APIsfastapi-patterns, pydantic-validation, database-accessDependencies, middleware, validators, SQLAlchemy async
Packagingpoetry-workflow, pyproject-config, docker-deploymentLock files, PEP 621, multi-stage builds
Productionci-cd-pipelines, monitoring, securityGitHub Actions, OpenTelemetry, OWASP, JWT

See TOC.md for detailed topic lookup.


Sample CLI Tools

Runnable examples demonstrating production patterns:

ToolDemonstratesReference
async_fetcher.pyAsync HTTP, rate limiting, error handlingasync-programming.md
config_loader.pyPydantic settings, .env files, validationpydantic-validation.md
db_cli.pySQLAlchemy async CRUD, repository patterndatabase-access.md
code_validator.pyRun→check→fix with ruff and mypycode-quality.md
bash
# Test examples
python sample-cli/async_fetcher.py https://httpbin.org/get
python sample-cli/config_loader.py --show-env
python sample-cli/db_cli.py init --sample-data && python sample-cli/db_cli.py list
python sample-cli/code_validator.py src/

When NOT to Use

  • Non-Python languages: Use language-specific skills
  • ML/AI model internals: Use PyTorch/TensorFlow skills
  • Cloud infrastructure: Use AWS/GCP skills for infra (this covers code)
  • Legacy Python 2: Focus is Python 3.10+

© SpillwaveSolutions, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 31 other files (references) in .claude/skills/mastering-python-skill of SpillwaveSolutions/agent-brain.

  • SKILL.md
  • .skilz-manifest.yaml
  • TOC.md
  • references/foundations/code-quality.md
  • references/foundations/project-structure.md
  • references/foundations/syntax-essentials.md
  • references/foundations/type-systems.md
  • references/packaging/docker-deployment.md
  • references/packaging/poetry-workflow.md
  • references/packaging/pyproject-config.md
  • references/patterns/async-programming.md
  • references/patterns/context-managers.md
  • references/patterns/decorators.md
  • references/patterns/error-handling.md
  • references/patterns/generators.md
  • references/production/ci-cd-pipelines.md
  • … and 16 more

Open the folder on GitHubat commit 8339623

Compare with similar skills

Mastering Python Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mastering Python Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mastering Python Skill this skillSpillwaveSolutions/agent-brain120—~1.4kAutomated safety check: NotesMIT
PythonMadAppGang/claude-code283—~2.8kAutomated safety check: NotesMIT
Fastapi Endpointdavila7/claude-code-templates32k—~3.9kAutomated safety check: PassMIT
Python Rulessoftspark/ai-toolkit179—~2.9kAutomated safety check: PassApache-2.0
Fastapi Appccplugins/awesome-claude-code-plugins967—~1.1kAutomated safety check: NotesApache-2.0
FastAPI ExpertJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Python

    MadAppGang/claude-code

    A skill your agent uses when building FastAPI applications, implementing async endpoints, setting up Pydantic schemas, working with SQLAlchemy, or writing pytest tests for Python backend services.

    283 GitHub stars~2.8k tokensUpdated 6 mo ago
    Backend & APIsAuto-check: notes
  • Fastapi Endpoint

    davila7/claude-code-templates

    Plan and build production-ready FastAPI endpoints with async SQLAlchemy, Pydantic v2 models, dependency injection for auth, and pytest tests.

    32k GitHub stars~3.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Python Rules

    softspark/ai-toolkit

    Python coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.

    179 GitHub stars~2.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Fastapi App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.

    967 GitHub stars~1.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • FastAPI Expert

    Jeffallan/claude-skills

    Builds async Python APIs with FastAPI and Pydantic V2, covering endpoints, JWT authentication, async SQLAlchemy, WebSockets and pytest checks against the OpenAPI docs.

    12k GitHub stars~1.8k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Flowfile Debugging Playbook

    Edwardvaneechoud/Flowfile

    Symptom-to-cause triage playbook for Flowfile (core/worker/kernel/frontend/AI) — covers "no such table" DB cascades (two distinct causes), import-time Alembic migration corruption, silent…

    370 GitHub stars~6.3k tokensUpdated today
    DevelopmentAuto-check passed

More from SpillwaveSolutions/agent-brain

All 55 skills in this repo
  • Gsd Complete Milestone

    SpillwaveSolutions/agent-brain

    Archive completed milestone and prepare for next version. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 4 repos~1.6k tokens
    Auto-check passed
  • Gsd Debug

    SpillwaveSolutions/agent-brain

    Systematic debugging with persistent state across context resets

    120 GitHub starsUsed in 4 repos~1.5k tokens
    Auto-check passed
  • Gsd Review Backlog

    SpillwaveSolutions/agent-brain

    Review and promote backlog items to active milestone. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 3 repos~961 tokens
    Auto-check passed
  • Configuring Agent Brain

    SpillwaveSolutions/agent-brain

    Installation and configuration skill for Agent Brain document search system.

    120 GitHub stars~7k tokensUpdated 17 days ago
    Auto-check: notes
  • Gsd Thread

    SpillwaveSolutions/agent-brain

    Manage persistent context threads for cross-session work. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • Gsd Plant Seed

    SpillwaveSolutions/agent-brain

    Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone

    120 GitHub starsUsed in 2 repos~691 tokens
    Auto-check passed

Questions about Mastering Python Skill

What does Mastering Python Skill do?

Modern Python coaching covering language foundations through advanced production patterns. Mastering Python Skill is an agent skill from SpillwaveSolutions/agent-brain. Modern Python coaching covering language foundations through advanced production patterns.

When should I use Mastering Python Skill?

Mastering Python Skill fits situations like: asked to write Python code; explain Python concepts; set up a Python project; configure Poetry.

How do I install Mastering Python Skill in Claude Code?

Run `npx skills add SpillwaveSolutions/agent-brain --skill mastering-python-skill -a claude-code`. Or copy the skill folder (.claude/skills/mastering-python-skill in SpillwaveSolutions/agent-brain) into .claude/skills/mastering-python-skill in your project. Claude Code loads it when a task matches its description.

How do I install Mastering Python Skill in Codex?

Run `npx skills add SpillwaveSolutions/agent-brain --skill mastering-python-skill -a codex`. Or copy the skill folder (.claude/skills/mastering-python-skill in SpillwaveSolutions/agent-brain) into .agents/skills/mastering-python-skill in your project. Codex loads it when a task matches its description.

Can I use Mastering Python Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SpillwaveSolutions/agent-brain --skill mastering-python-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mastering-python-skill, .gemini/skills/mastering-python-skill, .github/skills/mastering-python-skill and .opencode/skills/mastering-python-skill in your project.

What does Mastering Python Skill need to run?

Going by SKILL.md and its folder, Mastering Python Skill needs the command-line tools its instructions call (python, ruff, poetry, mypy and pytest). Our summary lists: Python 3; Docker. Its frontmatter pre-approves these tools: Read, Write, Bash, Edit, Glob, Grep.

Does Mastering Python Skill access the network?

SKILL.md names 1 domain. In commands or code: httpbin.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Mastering Python Skill safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Mastering Python Skill use?

Mastering Python Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mastering Python Skill use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 109k tokens, read only when the agent opens those files.

What are the alternatives to Mastering Python Skill?

Skills that share tags, products or a category with Mastering Python Skill: Python (MadAppGang/claude-code, 283 stars), Fastapi Endpoint (davila7/claude-code-templates, 32k stars), Python Rules (softspark/ai-toolkit, 179 stars) and Fastapi App (ccplugins/awesome-claude-code-plugins, 967 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mastering Python Skill?

SpillwaveSolutions (a GitHub organization) maintains it in SpillwaveSolutions/agent-brain, which has 120 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on September 19, 2026.

Source: SpillwaveSolutions/agent-brain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.