python-skills 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_skills-1.0.0/.gitignore +38 -0
- python_skills-1.0.0/LICENSE +21 -0
- python_skills-1.0.0/PKG-INFO +99 -0
- python_skills-1.0.0/README.md +84 -0
- python_skills-1.0.0/pyproject.toml +69 -0
- python_skills-1.0.0/python_skills/__init__.py +10 -0
- python_skills-1.0.0/python_skills/__main__.py +6 -0
- python_skills-1.0.0/python_skills/adapters/__init__.py +48 -0
- python_skills-1.0.0/python_skills/adapters/agent_skills.py +415 -0
- python_skills-1.0.0/python_skills/adapters/aider_adapter.py +226 -0
- python_skills-1.0.0/python_skills/adapters/base.py +153 -0
- python_skills-1.0.0/python_skills/adapters/claude.py +474 -0
- python_skills-1.0.0/python_skills/adapters/cline.py +332 -0
- python_skills-1.0.0/python_skills/adapters/codex.py +24 -0
- python_skills-1.0.0/python_skills/adapters/continue_adapter.py +198 -0
- python_skills-1.0.0/python_skills/adapters/cursor.py +327 -0
- python_skills-1.0.0/python_skills/adapters/gemini.py +26 -0
- python_skills-1.0.0/python_skills/adapters/goose.py +26 -0
- python_skills-1.0.0/python_skills/adapters/junie.py +25 -0
- python_skills-1.0.0/python_skills/adapters/kiro.py +382 -0
- python_skills-1.0.0/python_skills/adapters/opencode.py +27 -0
- python_skills-1.0.0/python_skills/adapters/roo.py +25 -0
- python_skills-1.0.0/python_skills/adapters/universal.py +203 -0
- python_skills-1.0.0/python_skills/adapters/vscode.py +27 -0
- python_skills-1.0.0/python_skills/adapters/windsurf.py +26 -0
- python_skills-1.0.0/python_skills/adapters/zed.py +27 -0
- python_skills-1.0.0/python_skills/cli.py +326 -0
- python_skills-1.0.0/python_skills/config.py +160 -0
- python_skills-1.0.0/python_skills/detector.py +152 -0
- python_skills-1.0.0/python_skills/installer.py +163 -0
- python_skills-1.0.0/python_skills/markers.py +115 -0
- python_skills-1.0.0/python_skills/skills/__init__.py +14 -0
- python_skills-1.0.0/python_skills/skills/loader.py +171 -0
- python_skills-1.0.0/python_skills/skills/metadata.py +152 -0
- python_skills-1.0.0/python_skills/skills/registry.py +101 -0
- python_skills-1.0.0/python_skills/state.py +204 -0
- python_skills-1.0.0/skills/advanced_python.md +239 -0
- python_skills-1.0.0/skills/anti_patterns/index.md +406 -0
- python_skills-1.0.0/skills/comprehensions.md +167 -0
- python_skills-1.0.0/skills/control_flow.md +175 -0
- python_skills-1.0.0/skills/data_structures.md +243 -0
- python_skills-1.0.0/skills/debugging/common_bugs.md +222 -0
- python_skills-1.0.0/skills/debugging/inspection_techniques.md +249 -0
- python_skills-1.0.0/skills/debugging/root_cause.md +203 -0
- python_skills-1.0.0/skills/engineering/application_logging.md +195 -0
- python_skills-1.0.0/skills/engineering/cli_apps.md +207 -0
- python_skills-1.0.0/skills/engineering/configuration.md +218 -0
- python_skills-1.0.0/skills/engineering/database.md +240 -0
- python_skills-1.0.0/skills/engineering/dependency_management.md +205 -0
- python_skills-1.0.0/skills/engineering/http_clients.md +267 -0
- python_skills-1.0.0/skills/engineering/modules_packages.md +211 -0
- python_skills-1.0.0/skills/engineering/packaging.md +197 -0
- python_skills-1.0.0/skills/engineering/project_structure.md +155 -0
- python_skills-1.0.0/skills/engineering/pyproject_toml.md +302 -0
- python_skills-1.0.0/skills/engineering/virtual_environments.md +206 -0
- python_skills-1.0.0/skills/functions.md +244 -0
- python_skills-1.0.0/skills/generation/async_concurrency.md +291 -0
- python_skills-1.0.0/skills/generation/error_handling.md +276 -0
- python_skills-1.0.0/skills/generation/protocols_generics.md +243 -0
- python_skills-1.0.0/skills/generation/type_hints.md +290 -0
- python_skills-1.0.0/skills/generation/validation_pipeline.md +274 -0
- python_skills-1.0.0/skills/generation/workflow.md +190 -0
- python_skills-1.0.0/skills/oop.md +228 -0
- python_skills-1.0.0/skills/quality/abstractions.md +154 -0
- python_skills-1.0.0/skills/quality/comments.md +177 -0
- python_skills-1.0.0/skills/quality/documentation.md +176 -0
- python_skills-1.0.0/skills/quality/duplication.md +137 -0
- python_skills-1.0.0/skills/quality/maintainability.md +142 -0
- python_skills-1.0.0/skills/quality/naming.md +171 -0
- python_skills-1.0.0/skills/quality/quality_functions.md +245 -0
- python_skills-1.0.0/skills/quality/readability.md +239 -0
- python_skills-1.0.0/skills/quality/type_annotations.md +192 -0
- python_skills-1.0.0/skills/refactoring/behavior_preservation.md +157 -0
- python_skills-1.0.0/skills/refactoring/incremental.md +187 -0
- python_skills-1.0.0/skills/refactoring/interface_stability.md +199 -0
- python_skills-1.0.0/skills/refactoring/safe_refactoring.md +206 -0
- python_skills-1.0.0/skills/security/auth_boundaries.md +200 -0
- python_skills-1.0.0/skills/security/command_injection.md +207 -0
- python_skills-1.0.0/skills/security/dependency_risks.md +282 -0
- python_skills-1.0.0/skills/security/file_handling.md +156 -0
- python_skills-1.0.0/skills/security/input_validation.md +190 -0
- python_skills-1.0.0/skills/security/path_traversal.md +172 -0
- python_skills-1.0.0/skills/security/secrets.md +171 -0
- python_skills-1.0.0/skills/security/sql_injection.md +188 -0
- python_skills-1.0.0/skills/security/unsafe_deserialization.md +164 -0
- python_skills-1.0.0/skills/stdlib/argparse.md +178 -0
- python_skills-1.0.0/skills/stdlib/collections.md +212 -0
- python_skills-1.0.0/skills/stdlib/datetime.md +187 -0
- python_skills-1.0.0/skills/stdlib/functools.md +238 -0
- python_skills-1.0.0/skills/stdlib/itertools.md +183 -0
- python_skills-1.0.0/skills/stdlib/json.md +162 -0
- python_skills-1.0.0/skills/stdlib/logging.md +185 -0
- python_skills-1.0.0/skills/stdlib/os_sys.md +184 -0
- python_skills-1.0.0/skills/stdlib/pathlib.md +218 -0
- python_skills-1.0.0/skills/stdlib/re.md +171 -0
- python_skills-1.0.0/skills/stdlib/statistics.md +112 -0
- python_skills-1.0.0/skills/stdlib/subprocess.md +211 -0
- python_skills-1.0.0/skills/testing/async_tests.md +249 -0
- python_skills-1.0.0/skills/testing/coverage.md +168 -0
- python_skills-1.0.0/skills/testing/edge_cases.md +197 -0
- python_skills-1.0.0/skills/testing/fixtures_mocks.md +203 -0
- python_skills-1.0.0/skills/testing/organization.md +205 -0
- python_skills-1.0.0/skills/testing/parameterized.md +174 -0
- python_skills-1.0.0/skills/testing/regression_tests.md +165 -0
- python_skills-1.0.0/skills/variables_types.md +107 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Distribution / packaging
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
*.egg
|
|
11
|
+
|
|
12
|
+
# Virtual environments
|
|
13
|
+
.venv/
|
|
14
|
+
venv/
|
|
15
|
+
env/
|
|
16
|
+
|
|
17
|
+
# IDE
|
|
18
|
+
.vscode/
|
|
19
|
+
.idea/
|
|
20
|
+
*.swp
|
|
21
|
+
*.swo
|
|
22
|
+
|
|
23
|
+
# Testing
|
|
24
|
+
.pytest_cache/
|
|
25
|
+
.coverage
|
|
26
|
+
htmlcov/
|
|
27
|
+
|
|
28
|
+
# Linting
|
|
29
|
+
.ruff_cache/
|
|
30
|
+
.mypy_cache/
|
|
31
|
+
|
|
32
|
+
# OS
|
|
33
|
+
.DS_Store
|
|
34
|
+
Thumbs.db
|
|
35
|
+
|
|
36
|
+
# Project
|
|
37
|
+
.python-skills/
|
|
38
|
+
*.log
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FoxPink-dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: python-skills
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Python engineering skills for AI coding agents
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Requires-Dist: click>=8.0
|
|
8
|
+
Requires-Dist: pyyaml>=6.0
|
|
9
|
+
Requires-Dist: rich>=13.0
|
|
10
|
+
Provides-Extra: dev
|
|
11
|
+
Requires-Dist: mypy>=1.0; extra == 'dev'
|
|
12
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
13
|
+
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Python Skills
|
|
17
|
+
|
|
18
|
+
Python engineering skills for AI coding agents.
|
|
19
|
+
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
Python Skills is a comprehensive knowledge base of 69 skills across 10 categories, designed to help AI coding agents write better Python code. It supports 16 AI coding agents via a unified adapter system.
|
|
23
|
+
|
|
24
|
+
## Supported Agents
|
|
25
|
+
|
|
26
|
+
| Agent | Skills Dir | Native Dir | Type |
|
|
27
|
+
|-------|-----------|------------|------|
|
|
28
|
+
| **OpenCode** | `.agents/skills/` | `.opencode/skills/` | A-NativeSkills |
|
|
29
|
+
| **Windsurf** | `.agents/skills/` | `.windsurf/skills/` | A-NativeSkills |
|
|
30
|
+
| **VS Code / Copilot** | `.agents/skills/` | `.github/skills/` | A-NativeSkills |
|
|
31
|
+
| **Gemini** | `.agents/skills/` | `.gemini/skills/` | A-NativeSkills |
|
|
32
|
+
| **Roo Code** | `.agents/skills/` | `.roo/skills/` | A-NativeSkills |
|
|
33
|
+
| **Codex** | `.agents/skills/` | — | A-NativeSkills |
|
|
34
|
+
| **Goose** | `.agents/skills/` | — | A-NativeSkills |
|
|
35
|
+
| **Junie (JetBrains)** | `.agents/skills/` | `.junie/skills/` | A-NativeSkills |
|
|
36
|
+
| **Zed** | `.agents/skills/` | — | A-NativeSkills |
|
|
37
|
+
| **Continue** | `.continue/rules/` | — | B-NativeRules |
|
|
38
|
+
| **Aider** | `PYTHON_SKILLS.md` | `.aider.conf.yml` | D-Config |
|
|
39
|
+
| **Claude Code** | `.claude/skills/` | — | A-NativeSkills |
|
|
40
|
+
| **Cursor** | `.cursor/rules/` | — | B-NativeRules |
|
|
41
|
+
| **Kiro** | `.kiro/skills/` | — | A-NativeSkills |
|
|
42
|
+
| **Cline** | `.agents/skills/` | `.clinerules` | A-NativeSkills |
|
|
43
|
+
| **Universal** | `AGENTS.md` | — | E-Universal |
|
|
44
|
+
|
|
45
|
+
## Shared Skills Directory
|
|
46
|
+
|
|
47
|
+
Targets that support the [Agent Skills specification](https://github.com/opencode-ai/agent-skills) share a single `.agents/skills/` directory. Each target also gets its own vendor-specific directory (e.g., `.opencode/skills/`). Installing multiple targets produces only 67 skill directories, not 67 per target.
|
|
48
|
+
|
|
49
|
+
## Skill Categories
|
|
50
|
+
|
|
51
|
+
- **Core**: Python language fundamentals (variables, control flow, functions, data structures, OOP)
|
|
52
|
+
- **Stdlib**: Standard library modules (argparse, collections, datetime, functools, itertools, json, logging, pathlib, re, statistics, subprocess)
|
|
53
|
+
- **Generation**: Code generation patterns (type hints, protocols, async, error handling, validation, workflow)
|
|
54
|
+
- **Engineering**: Production engineering (CLI apps, configuration, databases, HTTP clients, packaging, virtual environments)
|
|
55
|
+
- **Quality**: Code quality standards (abstractions, comments, documentation, duplication, functions, maintainability, naming, readability, type annotations)
|
|
56
|
+
- **Security**: Security engineering (auth boundaries, command injection, dependency risks, file handling, input validation, path traversal, secrets, SQL injection, unsafe deserialization)
|
|
57
|
+
- **Testing**: Testing methodologies (async tests, coverage, edge cases, fixtures/mocks, organization, parameterized, regression tests)
|
|
58
|
+
- **Refactoring**: Safe refactoring patterns (behavior preservation, incremental, interface stability, safe refactoring)
|
|
59
|
+
- **Debugging**: Debugging techniques (common bugs, inspection, root cause analysis)
|
|
60
|
+
- **Anti-patterns**: Anti-pattern prevention
|
|
61
|
+
|
|
62
|
+
## Installation
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install python-skills
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Or from source:
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://github.com/FoxPink-dev/python-skills.git
|
|
71
|
+
cd python-skills
|
|
72
|
+
pip install -e .
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Usage
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Detect available agents
|
|
79
|
+
python -m python_skills detect
|
|
80
|
+
|
|
81
|
+
# Install for all compatible agents
|
|
82
|
+
python -m python_skills install --auto
|
|
83
|
+
|
|
84
|
+
# Install for specific targets
|
|
85
|
+
python -m python_skills install --target opencode --target windsurf
|
|
86
|
+
|
|
87
|
+
# Sync installed skills with latest
|
|
88
|
+
python -m python_skills sync
|
|
89
|
+
|
|
90
|
+
# Check installation status
|
|
91
|
+
python -m python_skills status
|
|
92
|
+
|
|
93
|
+
# Uninstall from all targets
|
|
94
|
+
python -m python_skills uninstall --auto
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
MIT License
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Python Skills
|
|
2
|
+
|
|
3
|
+
Python engineering skills for AI coding agents.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Python Skills is a comprehensive knowledge base of 69 skills across 10 categories, designed to help AI coding agents write better Python code. It supports 16 AI coding agents via a unified adapter system.
|
|
8
|
+
|
|
9
|
+
## Supported Agents
|
|
10
|
+
|
|
11
|
+
| Agent | Skills Dir | Native Dir | Type |
|
|
12
|
+
|-------|-----------|------------|------|
|
|
13
|
+
| **OpenCode** | `.agents/skills/` | `.opencode/skills/` | A-NativeSkills |
|
|
14
|
+
| **Windsurf** | `.agents/skills/` | `.windsurf/skills/` | A-NativeSkills |
|
|
15
|
+
| **VS Code / Copilot** | `.agents/skills/` | `.github/skills/` | A-NativeSkills |
|
|
16
|
+
| **Gemini** | `.agents/skills/` | `.gemini/skills/` | A-NativeSkills |
|
|
17
|
+
| **Roo Code** | `.agents/skills/` | `.roo/skills/` | A-NativeSkills |
|
|
18
|
+
| **Codex** | `.agents/skills/` | — | A-NativeSkills |
|
|
19
|
+
| **Goose** | `.agents/skills/` | — | A-NativeSkills |
|
|
20
|
+
| **Junie (JetBrains)** | `.agents/skills/` | `.junie/skills/` | A-NativeSkills |
|
|
21
|
+
| **Zed** | `.agents/skills/` | — | A-NativeSkills |
|
|
22
|
+
| **Continue** | `.continue/rules/` | — | B-NativeRules |
|
|
23
|
+
| **Aider** | `PYTHON_SKILLS.md` | `.aider.conf.yml` | D-Config |
|
|
24
|
+
| **Claude Code** | `.claude/skills/` | — | A-NativeSkills |
|
|
25
|
+
| **Cursor** | `.cursor/rules/` | — | B-NativeRules |
|
|
26
|
+
| **Kiro** | `.kiro/skills/` | — | A-NativeSkills |
|
|
27
|
+
| **Cline** | `.agents/skills/` | `.clinerules` | A-NativeSkills |
|
|
28
|
+
| **Universal** | `AGENTS.md` | — | E-Universal |
|
|
29
|
+
|
|
30
|
+
## Shared Skills Directory
|
|
31
|
+
|
|
32
|
+
Targets that support the [Agent Skills specification](https://github.com/opencode-ai/agent-skills) share a single `.agents/skills/` directory. Each target also gets its own vendor-specific directory (e.g., `.opencode/skills/`). Installing multiple targets produces only 67 skill directories, not 67 per target.
|
|
33
|
+
|
|
34
|
+
## Skill Categories
|
|
35
|
+
|
|
36
|
+
- **Core**: Python language fundamentals (variables, control flow, functions, data structures, OOP)
|
|
37
|
+
- **Stdlib**: Standard library modules (argparse, collections, datetime, functools, itertools, json, logging, pathlib, re, statistics, subprocess)
|
|
38
|
+
- **Generation**: Code generation patterns (type hints, protocols, async, error handling, validation, workflow)
|
|
39
|
+
- **Engineering**: Production engineering (CLI apps, configuration, databases, HTTP clients, packaging, virtual environments)
|
|
40
|
+
- **Quality**: Code quality standards (abstractions, comments, documentation, duplication, functions, maintainability, naming, readability, type annotations)
|
|
41
|
+
- **Security**: Security engineering (auth boundaries, command injection, dependency risks, file handling, input validation, path traversal, secrets, SQL injection, unsafe deserialization)
|
|
42
|
+
- **Testing**: Testing methodologies (async tests, coverage, edge cases, fixtures/mocks, organization, parameterized, regression tests)
|
|
43
|
+
- **Refactoring**: Safe refactoring patterns (behavior preservation, incremental, interface stability, safe refactoring)
|
|
44
|
+
- **Debugging**: Debugging techniques (common bugs, inspection, root cause analysis)
|
|
45
|
+
- **Anti-patterns**: Anti-pattern prevention
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pip install python-skills
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or from source:
|
|
54
|
+
```bash
|
|
55
|
+
git clone https://github.com/FoxPink-dev/python-skills.git
|
|
56
|
+
cd python-skills
|
|
57
|
+
pip install -e .
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Usage
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Detect available agents
|
|
64
|
+
python -m python_skills detect
|
|
65
|
+
|
|
66
|
+
# Install for all compatible agents
|
|
67
|
+
python -m python_skills install --auto
|
|
68
|
+
|
|
69
|
+
# Install for specific targets
|
|
70
|
+
python -m python_skills install --target opencode --target windsurf
|
|
71
|
+
|
|
72
|
+
# Sync installed skills with latest
|
|
73
|
+
python -m python_skills sync
|
|
74
|
+
|
|
75
|
+
# Check installation status
|
|
76
|
+
python -m python_skills status
|
|
77
|
+
|
|
78
|
+
# Uninstall from all targets
|
|
79
|
+
python -m python_skills uninstall --auto
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
MIT License
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "python-skills"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Python engineering skills for AI coding agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"click>=8.0",
|
|
13
|
+
"pyyaml>=6.0",
|
|
14
|
+
"rich>=13.0",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[project.optional-dependencies]
|
|
18
|
+
dev = [
|
|
19
|
+
"pytest>=7.0",
|
|
20
|
+
"ruff>=0.5",
|
|
21
|
+
"mypy>=1.0",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
python-skills = "python_skills.cli:main"
|
|
26
|
+
|
|
27
|
+
[tool.hatch.build.targets.wheel]
|
|
28
|
+
packages = ["python_skills", "skills"]
|
|
29
|
+
|
|
30
|
+
[tool.hatch.build.targets.sdist]
|
|
31
|
+
include = [
|
|
32
|
+
"python_skills/**",
|
|
33
|
+
"skills/**",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[tool.pytest.ini_options]
|
|
39
|
+
testpaths = ["tests"]
|
|
40
|
+
python_files = ["test_*.py"]
|
|
41
|
+
python_classes = ["Test*"]
|
|
42
|
+
python_functions = ["test_*"]
|
|
43
|
+
addopts = "-v --strict-markers --strict-config --tb=short"
|
|
44
|
+
asyncio_mode = "auto"
|
|
45
|
+
|
|
46
|
+
[tool.ruff]
|
|
47
|
+
target-version = "py310"
|
|
48
|
+
line-length = 100
|
|
49
|
+
select = ["E", "F", "I", "N", "UP", "W", "C4", "DTZ", "T10", "PTH", "S", "B", "A", "C", "Q", "TID", "RUF"]
|
|
50
|
+
fixable = ["ALL"]
|
|
51
|
+
unfixable = []
|
|
52
|
+
|
|
53
|
+
[tool.ruff.format]
|
|
54
|
+
quote-style = "double"
|
|
55
|
+
indent-style = "space"
|
|
56
|
+
skip-magic-trailing-comma = false
|
|
57
|
+
line-ending = "lf"
|
|
58
|
+
|
|
59
|
+
[tool.mypy]
|
|
60
|
+
python_version = "3.10"
|
|
61
|
+
warn_return_any = true
|
|
62
|
+
warn_unused_configs = true
|
|
63
|
+
disallow_untyped_defs = true
|
|
64
|
+
disallow_incomplete_defs = true
|
|
65
|
+
check_untyped_defs = true
|
|
66
|
+
no_implicit_optional = true
|
|
67
|
+
strict_optional = true
|
|
68
|
+
show_error_codes = true
|
|
69
|
+
namespace_packages = true
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Python Skills - Python engineering skills for AI coding agents."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import version as _metadata_version
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
__version__ = _metadata_version("python-skills")
|
|
7
|
+
except Exception:
|
|
8
|
+
__version__ = "0.0.0"
|
|
9
|
+
|
|
10
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Adapters for python-skills target environments."""
|
|
2
|
+
|
|
3
|
+
from ..config import Target
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def get_adapter(target: Target, project_root, skills_registry, lock_manager, config):
|
|
7
|
+
"""Factory function to get adapter instance by target."""
|
|
8
|
+
from .aider_adapter import AiderAdapter
|
|
9
|
+
from .claude import ClaudeAdapter
|
|
10
|
+
from .cline import ClineAdapter
|
|
11
|
+
from .codex import CodexAdapter
|
|
12
|
+
from .continue_adapter import ContinueAdapter
|
|
13
|
+
from .cursor import CursorAdapter
|
|
14
|
+
from .gemini import GeminiAdapter
|
|
15
|
+
from .goose import GooseAdapter
|
|
16
|
+
from .junie import JunieAdapter
|
|
17
|
+
from .kiro import KiroAdapter
|
|
18
|
+
from .opencode import OpenCodeAdapter
|
|
19
|
+
from .roo import RooAdapter
|
|
20
|
+
from .universal import UniversalAdapter
|
|
21
|
+
from .vscode import VSCodeAdapter
|
|
22
|
+
from .windsurf import WindsurfAdapter
|
|
23
|
+
from .zed import ZedAdapter
|
|
24
|
+
|
|
25
|
+
adapters = {
|
|
26
|
+
Target.CLAUDE: ClaudeAdapter,
|
|
27
|
+
Target.CURSOR: CursorAdapter,
|
|
28
|
+
Target.KIRO: KiroAdapter,
|
|
29
|
+
Target.CLINE: ClineAdapter,
|
|
30
|
+
Target.UNIVERSAL: UniversalAdapter,
|
|
31
|
+
Target.OPENCODE: OpenCodeAdapter,
|
|
32
|
+
Target.WINDSURF: WindsurfAdapter,
|
|
33
|
+
Target.VSCODE: VSCodeAdapter,
|
|
34
|
+
Target.ROO: RooAdapter,
|
|
35
|
+
Target.GEMINI: GeminiAdapter,
|
|
36
|
+
Target.CODEX: CodexAdapter,
|
|
37
|
+
Target.JETBRAINS: JunieAdapter,
|
|
38
|
+
Target.GOOSE: GooseAdapter,
|
|
39
|
+
Target.ZED: ZedAdapter,
|
|
40
|
+
Target.CONTINUE: ContinueAdapter,
|
|
41
|
+
Target.AIDER: AiderAdapter,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
adapter_cls = adapters.get(target)
|
|
45
|
+
if adapter_cls is None:
|
|
46
|
+
raise ValueError(f"Unknown target: {target}")
|
|
47
|
+
|
|
48
|
+
return adapter_cls(project_root, skills_registry, lock_manager, config)
|