Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shozye-python-simplify
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/python-simplify
What's inside
- Skill name
python-simplify- Description
- Simplify existing Python code
- License
- MIT
- Instructions
- 54 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Python Simplification
## Governing goal
Make **one small, evidence-based simplification at a time**.
Code upgrades are also 'evidence-based' simplifications, so this skill describes good and bad behaviors.
## Scope
- Reusing existing project helpers
- Inlining trivial indirection, removing unnecessary duplication, and simplifying control flow or data handling.
- Improving names, local structure, and readability where behavior remains equivalent.
- others
## Decision rules
- Treat fewer lines as a possible result, not the objective; clarity and risk reduction decide.
- When Pydantic model validates something, there is no need to validate it later itself.
- Do not create variables that are unnecessary. For example `total = page.total` is unnecessary. Use `page.total`
## AntiPatterns
Those are in general examples and rules of what to not follow with explanations what is better.
### 1. Pydantic Antipattern - Everything as None
```
class Detail(BaseModel):
location: str | None = None
description: str | None = None
```
This is an antipattern, much better would be
```
class Detail(BaseModel):
location: str
description: str
```
It is good to make validation as fast as possible.
Only use the None when it really is possible that the API will give you None.
### 2. Pydantic Antipattern - Field validator for strings
```python
class Offer(BaseModel):
url: str
@field_validator("url")
@classmethod
def require_nonblank_text(cls, value: str) -> str:
if not value.strip():
raise ValueError("value must not be blank")
return value
```
It is much better to use StrictStr and StringConstraintsFrom Shozye/skills, MIT.
More from Shozye/skills
- 0.524score
dirty-equals
Shozye
Use this skill when you need to write declarative, readable, and maintainable assertions in Python tests.
SkillBFreshness: BClaude Code +9 - 0.516score
ruff-ty-fix-validation
Shozye
Should be read when tools such as `ruff` or `ty` find issue during static analysis of the code.
SkillBFreshness: BClaude Code +9 - 0.285score
skill-name
Shozye
Describe what this skill does and when to use it.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 10, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Shozye/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Shozye
- 0.524score
dirty-equals
Shozye
Use this skill when you need to write declarative, readable, and maintainable assertions in Python tests.
SkillBFreshness: BClaude Code +9 - 0.516score
ruff-ty-fix-validation
Shozye
Should be read when tools such as `ruff` or `ty` find issue during static analysis of the code.
SkillBFreshness: BClaude Code +9
Cite this page
python-simplify skill. Agent Mart. https://agentmart.dev/skills/shozye-python-simplify (last updated 2026-10-24)