r/Python • u/Ashamed-Calendar-139 • 11d ago
Discussion Do Python-specific skills actually improve the agentic coding?
Hey folks! I’ve been playing with agentic coding and wondering if it’s actually worth adding Python-specific skills to my setup.
For those of you using them: which ones are genuinely useful? Any examples where a Python-specific skill noticeably improved the result vs just letting the agent figure things out on its own?
0
Upvotes
33
u/No_Departure_1878 11d ago
The single most important thing with agentic coding is code readability. You need to be able to keep the large amounts of software that you get under your control. You do not want to be left with 100K LOC that you do not understand. For that you need skills that will force the agents to write very readable code, so that you can go through it, reviewing it, as fast as it comes out of the LLM.
Those stills are for sure going to be language dependent.
8
u/BakkerJoop 11d ago
Don't need Python skills for that
2
u/this_is_life_now 11d ago
I'm not even sure what I'd put into a skill. What practices in python would you expect the agent to follow, that it doesn't inherently do already?
6
u/jmacey 11d ago
I use more software engineering type skills. For example
My main process is to alway use a TDD approach to generating new code and I will typically review the tests before letting it write the code.
3
u/Legal-Pop-1330 5d ago
An oft overlooked aspect is the awesome power of ruff/typecheckers too.
Forcing strongly typed code automatically results in better designs in my experience.
A key problem remains no "perfect" type-checker, though I think ty will get there.
We use https://pypi.org/project/codedoctor/ to setup a repo consistently. It also has an AST parser to enforce additional failure modes of agents.
2
u/andy4015 11d ago
Using GitHub copilot recently I noticed that it automatically picked up and used a python skill. I guess it just has one available and imagine it is far better than one I could craft.
The one caveat being if there is a specific way of doing something that you've found works then I would write a skill for that. For instance I have some libraries that I've developed that I include in a skill and offer some examples of how to use it and declare that it should prefer to use them where applicable.
2
u/quiet_stacktrace 11d ago
i'd test it with a few representative tasks both with and without the skill and compare test pass rate plus how much review or rework each output needs. project-specific constraints like the supported Python version, test/lint commands, and library conventions seem more useful than a generic 'write good Python' skill.
2
u/digihmong 10d ago
I make them generic, but it would be worth it. Most agents are trained with python code so they'll read and write python the fastest and be the most token efficient about it. Use frameworks such as fastAPI and SQLmodel as guardrails. There's a caveat to this, sometimes you'll want to use Rust/Go/C++ or Elixir/Erlang depending on the task. I pretty much build everything in python now. I've got a skill bank I'll publish soon. Did some benchmark testing and the results were very good. I tested with muse and DeepSeek so I still need to get Claude in there.
2
u/sinoziqi 9d ago
Long "write idiomatic Python" style guides barely help, whereas tiny, strict repo-invariant checklists make a noticeable difference — especially when they ban concrete footguns rather than restating Python syntax.
What actually catches bugs in multi-file edits is keeping a short (<50 lines) rule list paired with a fast test command: for example pinning stdlib-only vs allowed deps, forbidding
shell=Trueinsubprocess.run, requiring atomic temp-file +os.replacefor state files, and always runningpython3 -m unittestorpytestafter the final edit.2
u/NadiaReadsChunks 8d ago
Skills that pin down your test runner, type checker and package manager config help most. Without them the agent guesses pip vs poetry vs uv every session. Beyond that I haven't seen much difference, it still hallucinates APIs on anything niche. idk man.
2
u/heikkitoivonen 4d ago
I haven't felt the need to use any generic Python skills yet, but I think there are specific situations where skills would make sense. For example, if I had to work a lot with SQLAlchemy, I would probably install a skill for that. Also anything specific to your project or personal preferences could be a useful skill.
Another area I could think of would be performance optimization. I built the documentation site for Python Big-O time and space complexity for humans first. While I was working on it I noticed that agents actually had lots of wrong assumptions about the builtin and stdlib performance; the more obscure parts having more issues.
I made the site into a skill for agents as well, and run simple evals to verify that the skill helped agents get the facts right. What I have not yet tried is to see if it would help improve performance in real life projects. If you have a perf problem, I would be interested in hearing if the skill helped in optimization.
2
u/hstarnaud 4d ago
Yes skills will improve agents a lot, you should provide skills which are specific to your project and your set up rather than generic python skills.
2
u/mrbartuss 4d ago
Definitely won't hurt you
1
u/DEE_PIZZLE 20h ago
Python skills help with testing and dependency management. Rapidfort can also help secure python app containers by removing unnecessary components and reducing vulnerabilities.