code-intel: Skill for Claude Code

.agents/skills/python/SKILL.md

python is a skill for Claude Code from SecondLifes/code-intel. It costs 67 tokens per session (763 once invoked), scanned A, a copy of python, Apache-2.0.

A general Python engineering guide for writing, testing, profiling, optimizing, and structuring Python code.

In plain words
What is it for?
Writing scripts, diagnosing CPU or memory problems, creating unit, integration, asynchronous, or property-based tests, and choosing between composition, inheritance, and dependency injection.
Why use it?
It provides patterns for finding performance bottlenecks, creating reliable pytest tests, and keeping components simple and maintainable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

This is SecondLifes/code-intel's own configuration. It tells Claude Code how to work on code-intel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything code-intel configures →

Part of the codeintel plugin — 32 skills, 14 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to SecondLifes/code-intel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SecondLifes/code-intel/main/.agents/skills/python/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SecondLifes/code-intel

Made for: Claude Code.

Or install codeintel, the plugin that ships this one along with the rest of its 32 skills, 14 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python

README.md
[![agentmods](https://agentmods.dev/badge/skills/secondlifes/code-intel/python/github.svg)](https://agentmods.dev/skills/secondlifes/code-intel/python)
Your own site
<a href="https://agentmods.dev/skills/secondlifes/code-intel/python"><img src="https://agentmods.dev/badge/skills/secondlifes/code-intel/python/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python

Your own site · 80×15
<a href="https://agentmods.dev/skills/secondlifes/code-intel/python"><img src="https://agentmods.dev/badge/skills/secondlifes/code-intel/python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.00763
Opus 5.5 $0.00027 $0.00305
Sonnet 5.5 $0.00013 $0.00153
Haiku 4.5 $0.00007 $0.00076

Measured 3mo ago against content hash 85ae1ce2af1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to python — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/python/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python

Consolidated from three separately-sourced skills (wshobson/agents: python-performance-optimization, python-testing-patterns, python-design-patterns — reviewed for correctness, no issues found) into one, per this workspace's "one skill per topic" policy.

When to Use

  • Writing an ad-hoc Python script to accomplish a task (data processing, file manipulation, automation, validation)
  • Identifying and fixing performance bottlenecks (CPU, memory, I/O)
  • Writing or reviewing tests (unit, integration, async, property-based)
  • Designing a new component/service or refactoring a tangled one
  • Deciding between inheritance and composition, or whether to add an abstraction

Usage

You say What happens
"Write a script to parse these CSVs" / ad-hoc helper script request Applies the Golden Rules directly (simplicity first, single responsibility) — no reference file needed for a small script.
"This function is slow, why?" / "Bu kodu optimize et" Loads references/performance.md — profiles with cProfile/py-spy first, then applies the matching optimization pattern.
"Write tests for this" / "Şunun için pytest yaz" Loads references/testing.md — fixtures, mocking, async tests, property-based testing as the case requires.
"Refactor this class" / "Composition mi inheritance mi kullanmalıyım?" Loads references/design-patterns.md — SRP, composition-over-inheritance, Rule of Three, dependency injection.

Golden Rules

  • Profile before optimizing. Measure with cProfile/py-spy first — don't guess at bottlenecks.
  • Simplicity first (KISS). Choose the simplest solution that works; complexity must be justified by concrete requirements.
  • Single Responsibility. Each function/class has one reason to change — separate HTTP parsing, business logic, and data access.
  • Compose, don't inherit for flexibility and testability; inject dependencies through constructors.
  • Rule of Three — don't abstract until you have three real instances of the duplication; a wrong abstraction is worse than repetition.
  • Test in isolation. Fakes/mocks for external dependencies; never hit a real database in unit tests.
  • Use built-ins and generators for large datasets; prefer dict/set lookups over list scans.

Read the full file on GitHub · 47 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 47 lines · 67 tokens per session scan A 85ae1ce2af1d

Subscribe to this mod's changes

python is a skill published in the GitHub repository SecondLifes/code-intel (3 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 763 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to python, differing in 0 lines, and is treated as a copy.

Related

python compared with skills from other repositories

python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pythonSecondLifes/code-intelSkill33mo agoApache-2.0A67Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.3ktodayApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9ktodayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill46ktodayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill803todayApache-2.0A93Claude Code