[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AE14KGNR0ED6XEE9BNMJTN":3,"skill-same:01M6AE14KGNR0ED6XEE9BNMJTN":142},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":29,"publishedAt":57,"linkOnly":58,"markdownContent":59,"markdownBody":60,"frontMatter":61,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":67,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6AE14KGNR0ED6XEE9BNMJTN","python-pypi-package-builder",null,"End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI. Covers all four build backends (setuptools+setuptools_scm, hatchling, flit, poetry), PEP 440 versioning, semantic versioning, dynamic git-tag versioning, OOP\u002FSOLID design, type hints (PEP 484\u002F526\u002F544\u002F561), Trusted Publishing (OIDC), and the full PyPA packaging flow. Use for: creating Python packages, pip-installable SDKs, CLI tools, framework plugins, pyproject.toml setup, py.typed, setuptools_scm, semver, mypy, pre-commit, GitHub Actions CI\u002FCD, or PyPI publishing.","github\u002Fawesome-copilot","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3PBDYPK7NVFJNJ66Y8RS",41162,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002FSKILL.md",[18,23,26],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,9,54,55,56],"python","builder","package","python pypi package builder","pypi","actions","for","mypy","toml","full","hatchling","packaging","versioning","Production","flow","github actions","ci","testing","library","plugins","semver","git","packages","commit","solid","cli","design","2026-11-10 10:12:30",false,"---\nname: python-pypi-package-builder\ndescription: 'End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI. Covers all four build backends (setuptools+setuptools_scm, hatchling, flit, poetry), PEP 440 versioning, semantic versioning, dynamic git-tag versioning, OOP\u002FSOLID design, type hints (PEP 484\u002F526\u002F544\u002F561), Trusted Publishing (OIDC), and the full PyPA packaging flow. Use for: creating Python packages, pip-installable SDKs, CLI tools, framework plugins, pyproject.toml setup, py.typed, setuptools_scm, semver, mypy, pre-commit, GitHub Actions CI\u002FCD, or PyPI publishing.'\n---\n\n# Python PyPI Package Builder Skill\n\nA complete, battle-tested guide for building, testing, linting, versioning, typing, and\npublishing a production-grade Python library to PyPI — from first commit to community-ready\nrelease.\n\n> **AI Agent Instruction:** Read this entire file before writing a single line of code or\n> creating any file. Every decision — layout, backend, versioning strategy, patterns, CI —\n> has a decision rule here. Follow the decision trees in order. This skill applies to any\n> Python package type (utility, SDK, CLI, plugin, data library). Do not skip sections.\n\n---\n\n## Quick Navigation\n\n| Section in this file | What it covers |\n|---|---|\n| [1. Skill Trigger](#1-skill-trigger) | When to load this skill |\n| [2. Package Type Decision](#2-package-type-decision) | Identify what you are building |\n| [3. Folder Structure Decision](#3-folder-structure-decision) | src\u002F vs flat vs monorepo |\n| [4. Build Backend Decision](#4-build-backend-decision) | setuptools \u002F hatchling \u002F flit \u002F poetry |\n| [5. PyPA Packaging Flow](#5-pypa-packaging-flow) | The canonical publish pipeline |\n| [6. Project Structure Templates](#6-project-structure-templates) | Full layouts for every option |\n| [7. Versioning Strategy](#7-versioning-strategy) | PEP 440, semver, dynamic vs static |\n\n| Reference file | What it covers |\n|---|---|\n| `references\u002Fpyproject-toml.md` | All four backend templates, `setuptools_scm`, `py.typed`, tool configs |\n| `references\u002Flibrary-patterns.md` | OOP\u002FSOLID, type hints, core class design, factory, protocols, CLI |\n| `references\u002Ftesting-quality.md` | `conftest.py`, unit\u002Fbackend\u002Fasync tests, ruff\u002Fmypy\u002Fpre-commit |\n| `references\u002Fci-publishing.md` | `ci.yml`, `publish.yml`, Trusted Publishing, TestPyPI, CHANGELOG, release checklist |\n| `references\u002Fcommunity-docs.md` | README, docstrings, CONTRIBUTING, SECURITY, anti-patterns, master checklist |\n| `references\u002Farchitecture-patterns.md` | Backend system (plugin\u002Fstrategy), config layer, transport layer, CLI, backend injection |\n| `references\u002Fversioning-strategy.md` | PEP 440, SemVer, pre-release, setuptools_scm deep-dive, flit static, decision engine |\n| `references\u002Frelease-governance.md` | Branch strategy, branch protection, OIDC, tag author validation, prevent invalid tags |\n| `references\u002Ftooling-ruff.md` | Ruff-only setup (replaces black\u002Fisort), mypy config, pre-commit, asyncio_mode=auto |\n\n**Scaffold script:** run `python skills\u002Fpython-pypi-package-builder\u002Fscripts\u002Fscaffold.py --name your-package-name`\nto generate the entire directory layout, stub files, and `pyproject.toml` in one command.\n\n---\n\n## 1. Skill Trigger\n\nLoad this skill whenever the user wants to:\n\n- Create, scaffold, or publish a Python package or library to PyPI\n- Build a pip-installable SDK, utility, CLI tool, or framework extension\n- Set up `pyproject.toml`, linting, mypy, pre-commit, or GitHub Actions for a Python project\n- Understand versioning (`setuptools_scm`, PEP 440, semver, static versioning)\n- Understand PyPA specs: `py.typed`, `MANIFEST.in`, `RECORD`, classifiers\n- Publish to PyPI using Trusted Publishing (OIDC) or API tokens\n- Refactor an existing package to follow modern Python packaging standards\n- Add type hints, protocols, ABCs, or dataclasses to a Python library\n- Apply OOP\u002FSOLID design patterns to a Python package\n- Choose between build backends (setuptools, hatchling, flit, poetry)\n\n**Also trigger for phrases like:** \"build a Python SDK\", \"publish my library\", \"set up PyPI CI\",\n\"create a pip package\", \"how do I publish to PyPI\", \"pyproject.toml help\", \"PEP 561 typed\",\n\"setuptools_scm version\", \"semver Python\", \"PEP 440\", \"git tag release\", \"Trusted Publishing\".\n\n---\n\n## 2. Package Type Decision\n\nIdentify what the user is building **before** writing any code. Each type has distinct patterns.\n\n### Decision Table\n\n| Type | Core Pattern | Entry Point | Key Deps | Example Packages |\n|---|---|---|---|---|\n| **Utility library** | Module of pure functions + helpers | Import API only | Minimal | `arrow`, `humanize`, `boltons`, `more-itertools` |\n| **API client \u002F SDK** | Class with methods, auth, retry logic | Import API only | `httpx` or `requests` | `boto3`, `stripe-python`, `openai` |\n| **CLI tool** | Command functions + argument parser | `[project.scripts]` or `[project.entry-points]` | `click` or `typer` | `black`, `ruff`, `httpie`, `rich` |\n| **Framework plugin** | Plugin class, hook registration | `[project.entry-points.\"framework.plugin\"]` | Framework dep | `pytest-*`, `django-*`, `flask-*` |\n| **Data processing library** | Classes + functional pipeline | Import API only | Optional: `numpy`, `pandas` | `pydantic`, `marshmallow`, `cerberus` |\n| **Mixed \u002F generic** | Combination of above | Varies | Varies | Many real-world packages |\n\n**Decision Rule:** Ask the user if unclear. A package can combine types (e.g., SDK with a CLI\nentry point) — use the primary type for structural decisions and add secondary type patterns on top.\n\nFor implementation patterns of each type, see `references\u002Flibrary-patterns.md`.\n\n### Package Naming Rules\n\n- PyPI name: all lowercase, hyphens — `my-python-library`\n- Python import name: underscores — `my_python_library`\n- Check availability: https:\u002F\u002Fpypi.org\u002Fsearch\u002F before starting\n- Avoid shadowing popular packages (verify `pip install \u003Cname>` fails first)\n\n---\n\n## 3. Folder Structure Decision\n\n### Decision Tree\n\n```\nDoes the package have 5+ internal modules OR multiple contributors OR complex sub-packages?\n├── YES → Use src\u002F layout\n│         Reason: prevents accidental import of uninstalled code during development;\n│         separates source from project root files; PyPA-recommended for large projects.\n│\n├── NO → Is it a single-module, focused package (e.g., one file + helpers)?\n│         ├── YES → Use flat layout\n│         └── NO (medium complexity) → Use flat layout, migrate to src\u002F if it grows\n│\n└── Is it multiple related packages under one namespace (e.g., myorg.http, myorg.db)?\n          └── YES → Use namespace\u002Fmonorepo layout\n```\n\n### Quick Rule Summary\n\n| Situation | Use |\n|---|---|\n| New project, unknown future size | `src\u002F` layout (safest default) |\n| Single-purpose, 1–4 modules | Flat layout |\n| Large library, many contributors | `src\u002F` layout |\n| Multiple packages in one repo | Namespace \u002F monorepo |\n| Migrating old flat project | Keep flat; migrate to `src\u002F` at next major version |\n\n---\n\n## 4. Build Backend Decision\n\n### Decision Tree\n\n```\nDoes the user need version derived automatically from git tags?\n├── YES → Use setuptools + setuptools_scm\n│         (git tag v1.0.0 → that IS your release workflow)\n│\n└── NO → Does the user want an all-in-one tool (deps + build + publish)?\n          ├── YES → Use poetry (v2+ supports standard [project] table)\n          │\n          └── NO → Is the package pure Python with no C extensions?\n                    ├── YES, minimal config preferred → Use flit\n                    │   (zero config, auto-discovers version from __version__)\n                    │\n                    └── YES, modern & fast preferred → Use hatchling\n                        (zero-config, plugin system, no setup.py needed)\n\nDoes the package have C\u002FCython\u002FFortran extensions?\n└── YES → MUST use setuptools (only backend with full native extension support)\n```\n\n### Backend Comparison\n\n| Backend | Version source | Config | C extensions | Best for |\n|---|---|---|---|---|\n| `setuptools` + `setuptools_scm` | git tags (automatic) | `pyproject.toml` + optional `setup.py` shim | Yes | Projects with git-tag releases; any complexity |\n| `hatchling` | manual or plugin | `pyproject.toml` only | No | New pure-Python projects; fast, modern |\n| `flit` | `__version__` in `__init__.py` | `pyproject.toml` only | No | Very simple, single-module packages |\n| `poetry` | `pyproject.toml` field | `pyproject.toml` only | No | Teams wanting integrated dep management |\n\nFor all four complete `pyproject.toml` templates, see `references\u002Fpyproject-toml.md`.\n\n---\n\n## 5. PyPA Packaging Flow\n\nThis is the canonical end-to-end flow from source code to user install.\n**Every step must be understood before publishing.**\n\n```\n1. SOURCE TREE\n   Your code in version control (git)\n   └── pyproject.toml describes metadata + build system\n\n2. BUILD\n   python -m build\n   └── Produces two artifacts in dist\u002F:\n       ├── *.tar.gz   → source distribution (sdist)\n       └── *.whl      → built distribution (wheel) — preferred by pip\n\n3. VALIDATE\n   twine check dist\u002F*\n   └── Checks metadata, README rendering, and PyPI compatibility\n\n4. TEST PUBLISH (first release only)\n   twine upload --repository testpypi dist\u002F*\n   └── Verify: pip install --index-url https:\u002F\u002Ftest.pypi.org\u002Fsimple\u002F your-package\n\n5. PUBLISH\n   twine upload dist\u002F*          ← manual fallback\n   OR GitHub Actions publish.yml  ← recommended (Trusted Publishing \u002F OIDC)\n\n6. USER INSTALL\n   pip install your-package\n   pip install \"your-package[extra]\"\n```\n\n### Key PyPA Concepts\n\n| Concept | What it means |\n|---|---|\n| **sdist** | Source distribution — your source + metadata; used when no wheel is available |\n| **wheel (.whl)** | Pre-built binary — pip extracts directly into site-packages; no build step |\n| **PEP 517\u002F518** | Standard build system interface via `pyproject.toml [build-system]` table |\n| **PEP 621** | Standard `[project]` table in `pyproject.toml`; all modern backends support it |\n| **PEP 639** | `license` key as SPDX string (e.g., `\"MIT\"`, `\"Apache-2.0\"`) — not `{text = \"MIT\"}` |\n| **PEP 561** | `py.typed` empty marker file — tells mypy\u002FIDEs this package ships type information |\n\nFor complete CI workflow and publishing setup, see `references\u002Fci-publishing.md`.\n\n---\n\n## 6. Project Structure Templates\n\n### A. src\u002F Layout (Recommended default for new projects)\n\n```\nyour-package\u002F\n├── src\u002F\n│   └── your_package\u002F\n│       ├── __init__.py           # Public API: __all__, __version__\n│       ├── py.typed              # PEP 561 marker — EMPTY FILE\n│       ├── core.py               # Primary implementation\n│       ├── client.py             # (API client type) or remove\n│       ├── cli.py                # (CLI type) click\u002Ftyper commands, or remove\n│       ├── config.py             # Settings \u002F configuration dataclass\n│       ├── exceptions.py         # Custom exception hierarchy\n│       ├── models.py             # Data classes, Pydantic models, TypedDicts\n│       ├── utils.py              # Internal helpers (prefix _utils if private)\n│       ├── types.py              # Shared type aliases and TypeVars\n│       └── backends\u002F             # (Plugin pattern) — remove if not needed\n│           ├── __init__.py       # Protocol \u002F ABC interface definition\n│           ├── memory.py         # Default zero-dep implementation\n│           └── redis.py          # Optional heavy implementation\n├── tests\u002F\n│   ├── __init__.py\n│   ├── conftest.py               # Shared fixtures\n│   ├── unit\u002F\n│   │   ├── __init__.py\n│   │   ├── test_core.py\n│   │   ├── test_config.py\n│   │   └── test_models.py\n│   ├── integration\u002F\n│   │   ├── __init__.py\n│   │   └── test_backends.py\n│   └── e2e\u002F                      # Optional: end-to-end tests\n│       └── __init__.py\n├── docs\u002F                         # Optional: mkdocs or sphinx\n├── scripts\u002F\n│   └── scaffold.py\n├── .github\u002F\n│   ├── workflows\u002F\n│   │   ├── ci.yml\n│   │   └── publish.yml\n│   └── ISSUE_TEMPLATE\u002F\n│       ├── bug_report.md\n│       └── feature_request.md\n├── .pre-commit-config.yaml\n├── pyproject.toml\n├── CHANGELOG.md\n├── CONTRIBUTING.md\n├── SECURITY.md\n├── LICENSE\n├── README.md\n└── .gitignore\n```\n\n### B. Flat Layout (Small \u002F focused packages)\n\n```\nyour-package\u002F\n├── your_package\u002F         # ← at root, not inside src\u002F\n│   ├── __init__.py\n│   ├── py.typed\n│   └── ... (same internal structure)\n├── tests\u002F\n└── ... (same top-level files)\n```\n\n### C. Namespace \u002F Monorepo Layout (Multiple related packages)\n\n```\nyour-org\u002F\n├── packages\u002F\n│   ├── your-org-core\u002F\n│   │   ├── src\u002Fyour_org\u002Fcore\u002F\n│   │   └── pyproject.toml\n│   ├── your-org-http\u002F\n│   │   ├── src\u002Fyour_org\u002Fhttp\u002F\n│   │   └── pyproject.toml\n│   └── your-org-cli\u002F\n│       ├── src\u002Fyour_org\u002Fcli\u002F\n│       └── pyproject.toml\n├── .github\u002Fworkflows\u002F\n└── README.md\n```\n\nEach sub-package has its own `pyproject.toml`. They share the `your_org` namespace via PEP 420\nimplicit namespace packages (no `__init__.py` in the namespace root).\n\n### Internal Module Guidelines\n\n| File | Purpose | When to include |\n|---|---|---|\n| `__init__.py` | Public API surface; re-exports; `__version__` | Always |\n| `py.typed` | PEP 561 typed-package marker (empty) | Always |\n| `core.py` | Primary class \u002F main logic | Always |\n| `config.py` | Settings dataclass or Pydantic model | When configurable |\n| `exceptions.py` | Exception hierarchy (`YourBaseError` → specifics) | Always |\n| `models.py` | Data models \u002F DTOs \u002F TypedDicts | When data-heavy |\n| `utils.py` | Internal helpers (not part of public API) | As needed |\n| `types.py` | Shared `TypeVar`, `TypeAlias`, `Protocol` definitions | When complex typing |\n| `cli.py` | CLI entry points (click\u002Ftyper) | CLI type only |\n| `backends\u002F` | Plugin\u002Fstrategy pattern | When swappable implementations |\n| `_compat.py` | Python version compatibility shims | When 3.9–3.13 compat needed |\n\n---\n\n## 7. Versioning Strategy\n\n### PEP 440 — The Standard\n\n```\nCanonical form:  N[.N]+[{a|b|rc}N][.postN][.devN]\n\nExamples:\n  1.0.0          Stable release\n  1.0.0a1        Alpha (pre-release)\n  1.0.0b2        Beta\n  1.0.0rc1       Release candidate\n  1.0.0.post1    Post-release (e.g., packaging fix only)\n  1.0.0.dev1     Development snapshot (not for PyPI)\n```\n\n### Semantic Versioning (recommended)\n\n```\nMAJOR.MINOR.PATCH\n\nMAJOR: Breaking API change (remove\u002Frename public function\u002Fclass\u002Farg)\nMINOR: New feature, fully backward-compatible\nPATCH: Bug fix, no API change\n```\n\n### Dynamic versioning with setuptools_scm (recommended for git-tag workflows)\n\n```bash\n# How it works:\ngit tag v1.0.0          →  installed version = 1.0.0\ngit tag v1.1.0          →  installed version = 1.1.0\n(commits after tag)     →  version = 1.1.0.post1  (suffix stripped for PyPI)\n\n# In code — NEVER hardcode when using setuptools_scm:\nfrom importlib.metadata import version, PackageNotFoundError\ntry:\n    __version__ = version(\"your-package\")\nexcept PackageNotFoundError:\n    __version__ = \"0.0.0-dev\"    # Fallback for uninstalled dev checkouts\n```\n\nRequired `pyproject.toml` config:\n```toml\n[tool.setuptools_scm]\nversion_scheme = \"post-release\"\nlocal_scheme   = \"no-local-version\"   # Prevents +g\u003Chash> from breaking PyPI uploads\n```\n\n**Critical:** always set `fetch-depth: 0` in every CI checkout step. Without full git history,\n`setuptools_scm` cannot find tags and the build version silently falls back to `0.0.0+dev`.\n\n### Static versioning (flit, hatchling manual, poetry)\n\n```python\n# your_package\u002F__init__.py\n__version__ = \"1.0.0\"    # Update this before every release\n```\n\n### Version specifier best practices for dependencies\n\n```toml\n# In [project] dependencies:\n\"httpx>=0.24\"            # Minimum version — PREFERRED for libraries\n\"httpx>=0.24,\u003C1.0\"       # Upper bound only when a known breaking change exists\n\"httpx==0.27.0\"          # Pin exactly ONLY in applications, NOT libraries\n\n# NEVER do this in a library — it breaks dependency resolution for users:\n# \"httpx~=0.24.0\"        # Too tight\n# \"httpx==0.27.*\"        # Fragile\n```\n\n### Version bump → release flow\n\n```bash\n# 1. Update CHANGELOG.md — move [Unreleased] entries to [x.y.z] - YYYY-MM-DD\n# 2. Commit the changelog\ngit add CHANGELOG.md\ngit commit -m \"chore: prepare release vX.Y.Z\"\n# 3. Tag and push — this triggers publish.yml automatically\ngit tag vX.Y.Z\ngit push origin main --tags\n# 4. Monitor GitHub Actions → verify on https:\u002F\u002Fpypi.org\u002Fproject\u002Fyour-package\u002F\n```\n\nFor complete pyproject.toml templates for all four backends, see `references\u002Fpyproject-toml.md`.\n\n---\n\n## Where to Go Next\n\nAfter understanding decisions and structure:\n\n1. **Set up `pyproject.toml`** → `references\u002Fpyproject-toml.md`\n   All four backend templates (setuptools+scm, hatchling, flit, poetry), full tool configs,\n   `py.typed` setup, versioning config.\n\n2. **Write your library code** → `references\u002Flibrary-patterns.md`\n   OOP\u002FSOLID principles, type hints (PEP 484\u002F526\u002F544\u002F561), core class design, factory functions,\n   `__init__.py`, plugin\u002Fbackend pattern, CLI entry point.\n\n3. **Add tests and code quality** → `references\u002Ftesting-quality.md`\n   `conftest.py`, unit\u002Fbackend\u002Fasync tests, parametrize, ruff\u002Fmypy\u002Fpre-commit setup.\n\n4. **Set up CI\u002FCD and publish** → `references\u002Fci-publishing.md`\n   `ci.yml`, `publish.yml` with Trusted Publishing (OIDC, no API tokens), CHANGELOG format,\n   release checklist.\n\n5. **Polish for community\u002FOSS** → `references\u002Fcommunity-docs.md`\n   README sections, docstring format, CONTRIBUTING, SECURITY, issue templates, anti-patterns\n   table, and master release checklist.\n\n6. **Design backends, config, transport, CLI** → `references\u002Farchitecture-patterns.md`\n   Backend system (plugin\u002Fstrategy pattern), Settings dataclass, HTTP transport layer,\n   CLI with click\u002Ftyper, backend injection rules.\n\n7. **Choose and implement a versioning strategy** → `references\u002Fversioning-strategy.md`\n   PEP 440 canonical forms, SemVer rules, pre-release identifiers, setuptools_scm deep-dive,\n   flit static versioning, decision engine (DEFAULT\u002FBEGINNER\u002FMINIMAL).\n\n8. **Govern releases and secure the publish pipeline** → `references\u002Frelease-governance.md`\n   Branch strategy, branch protection rules, OIDC Trusted Publishing setup, tag author\n   validation in CI, tag format enforcement, full governed `publish.yml`.\n\n9. **Simplify tooling with Ruff** → `references\u002Ftooling-ruff.md`\n   Ruff-only setup replacing black\u002Fisort\u002Fflake8, mypy config, pre-commit hooks,\n   asyncio_mode=auto (remove @pytest.mark.asyncio), migration guide.\n","# Python PyPI Package Builder Skill\n\nA complete, battle-tested guide for building, testing, linting, versioning, typing, and\npublishing a production-grade Python library to PyPI — from first commit to community-ready\nrelease.\n\n> **AI Agent Instruction:** Read this entire file before writing a single line of code or\n> creating any file. Every decision — layout, backend, versioning strategy, patterns, CI —\n> has a decision rule here. Follow the decision trees in order. This skill applies to any\n> Python package type (utility, SDK, CLI, plugin, data library). Do not skip sections.\n\n---\n\n## Quick Navigation\n\n| Section in this file | What it covers |\n|---|---|\n| [1. Skill Trigger](#1-skill-trigger) | When to load this skill |\n| [2. Package Type Decision](#2-package-type-decision) | Identify what you are building |\n| [3. Folder Structure Decision](#3-folder-structure-decision) | src\u002F vs flat vs monorepo |\n| [4. Build Backend Decision](#4-build-backend-decision) | setuptools \u002F hatchling \u002F flit \u002F poetry |\n| [5. PyPA Packaging Flow](#5-pypa-packaging-flow) | The canonical publish pipeline |\n| [6. Project Structure Templates](#6-project-structure-templates) | Full layouts for every option |\n| [7. Versioning Strategy](#7-versioning-strategy) | PEP 440, semver, dynamic vs static |\n\n| Reference file | What it covers |\n|---|---|\n| `references\u002Fpyproject-toml.md` | All four backend templates, `setuptools_scm`, `py.typed`, tool configs |\n| `references\u002Flibrary-patterns.md` | OOP\u002FSOLID, type hints, core class design, factory, protocols, CLI |\n| `references\u002Ftesting-quality.md` | `conftest.py`, unit\u002Fbackend\u002Fasync tests, ruff\u002Fmypy\u002Fpre-commit |\n| `references\u002Fci-publishing.md` | `ci.yml`, `publish.yml`, Trusted Publishing, TestPyPI, CHANGELOG, release checklist |\n| `references\u002Fcommunity-docs.md` | README, docstrings, CONTRIBUTING, SECURITY, anti-patterns, master checklist |\n| `references\u002Farchitecture-patterns.md` | Backend system (plugin\u002Fstrategy), config layer, transport layer, CLI, backend injection |\n| `references\u002Fversioning-strategy.md` | PEP 440, SemVer, pre-release, setuptools_scm deep-dive, flit static, decision engine |\n| `references\u002Frelease-governance.md` | Branch strategy, branch protection, OIDC, tag author validation, prevent invalid tags |\n| `references\u002Ftooling-ruff.md` | Ruff-only setup (replaces black\u002Fisort), mypy config, pre-commit, asyncio_mode=auto |\n\n**Scaffold script:** run `python skills\u002Fpython-pypi-package-builder\u002Fscripts\u002Fscaffold.py --name your-package-name`\nto generate the entire directory layout, stub files, and `pyproject.toml` in one command.\n\n---\n\n## 1. Skill Trigger\n\nLoad this skill whenever the user wants to:\n\n- Create, scaffold, or publish a Python package or library to PyPI\n- Build a pip-installable SDK, utility, CLI tool, or framework extension\n- Set up `pyproject.toml`, linting, mypy, pre-commit, or GitHub Actions for a Python project\n- Understand versioning (`setuptools_scm`, PEP 440, semver, static versioning)\n- Understand PyPA specs: `py.typed`, `MANIFEST.in`, `RECORD`, classifiers\n- Publish to PyPI using Trusted Publishing (OIDC) or API tokens\n- Refactor an existing package to follow modern Python packaging standards\n- Add type hints, protocols, ABCs, or dataclasses to a Python library\n- Apply OOP\u002FSOLID design patterns to a Python package\n- Choose between build backends (setuptools, hatchling, flit, poetry)\n\n**Also trigger for phrases like:** \"build a Python SDK\", \"publish my library\", \"set up PyPI CI\",\n\"create a pip package\", \"how do I publish to PyPI\", \"pyproject.toml help\", \"PEP 561 typed\",\n\"setuptools_scm version\", \"semver Python\", \"PEP 440\", \"git tag release\", \"Trusted Publishing\".\n\n---\n\n## 2. Package Type Decision\n\nIdentify what the user is building **before** writing any code. Each type has distinct patterns.\n\n### Decision Table\n\n| Type | Core Pattern | Entry Point | Key Deps | Example Packages |\n|---|---|---|---|---|\n| **Utility library** | Module of pure functions + helpers | Import API only | Minimal | `arrow`, `humanize`, `boltons`, `more-itertools` |\n| **API client \u002F SDK** | Class with methods, auth, retry logic | Import API only | `httpx` or `requests` | `boto3`, `stripe-python`, `openai` |\n| **CLI tool** | Command functions + argument parser | `[project.scripts]` or `[project.entry-points]` | `click` or `typer` | `black`, `ruff`, `httpie`, `rich` |\n| **Framework plugin** | Plugin class, hook registration | `[project.entry-points.\"framework.plugin\"]` | Framework dep | `pytest-*`, `django-*`, `flask-*` |\n| **Data processing library** | Classes + functional pipeline | Import API only | Optional: `numpy`, `pandas` | `pydantic`, `marshmallow`, `cerberus` |\n| **Mixed \u002F generic** | Combination of above | Varies | Varies | Many real-world packages |\n\n**Decision Rule:** Ask the user if unclear. A package can combine types (e.g., SDK with a CLI\nentry point) — use the primary type for structural decisions and add secondary type patterns on top.\n\nFor implementation patterns of each type, see `references\u002Flibrary-patterns.md`.\n\n### Package Naming Rules\n\n- PyPI name: all lowercase, hyphens — `my-python-library`\n- Python import name: underscores — `my_python_library`\n- Check availability: https:\u002F\u002Fpypi.org\u002Fsearch\u002F before starting\n- Avoid shadowing popular packages (verify `pip install \u003Cname>` fails first)\n\n---\n\n## 3. Folder Structure Decision\n\n### Decision Tree\n\n```\nDoes the package have 5+ internal modules OR multiple contributors OR complex sub-packages?\n├── YES → Use src\u002F layout\n│         Reason: prevents accidental import of uninstalled code during development;\n│         separates source from project root files; PyPA-recommended for large projects.\n│\n├── NO → Is it a single-module, focused package (e.g., one file + helpers)?\n│         ├── YES → Use flat layout\n│         └── NO (medium complexity) → Use flat layout, migrate to src\u002F if it grows\n│\n└── Is it multiple related packages under one namespace (e.g., myorg.http, myorg.db)?\n          └── YES → Use namespace\u002Fmonorepo layout\n```\n\n### Quick Rule Summary\n\n| Situation | Use |\n|---|---|\n| New project, unknown future size | `src\u002F` layout (safest default) |\n| Single-purpose, 1–4 modules | Flat layout |\n| Large library, many contributors | `src\u002F` layout |\n| Multiple packages in one repo | Namespace \u002F monorepo |\n| Migrating old flat project | Keep flat; migrate to `src\u002F` at next major version |\n\n---\n\n## 4. Build Backend Decision\n\n### Decision Tree\n\n```\nDoes the user need version derived automatically from git tags?\n├── YES → Use setuptools + setuptools_scm\n│         (git tag v1.0.0 → that IS your release workflow)\n│\n└── NO → Does the user want an all-in-one tool (deps + build + publish)?\n          ├── YES → Use poetry (v2+ supports standard [project] table)\n          │\n          └── NO → Is the package pure Python with no C extensions?\n                    ├── YES, minimal config preferred → Use flit\n                    │   (zero config, auto-discovers version from __version__)\n                    │\n                    └── YES, modern & fast preferred → Use hatchling\n                        (zero-config, plugin system, no setup.py needed)\n\nDoes the package have C\u002FCython\u002FFortran extensions?\n└── YES → MUST use setuptools (only backend with full native extension support)\n```\n\n### Backend Comparison\n\n| Backend | Version source | Config | C extensions | Best for |\n|---|---|---|---|---|\n| `setuptools` + `setuptools_scm` | git tags (automatic) | `pyproject.toml` + optional `setup.py` shim | Yes | Projects with git-tag releases; any complexity |\n| `hatchling` | manual or plugin | `pyproject.toml` only | No | New pure-Python projects; fast, modern |\n| `flit` | `__version__` in `__init__.py` | `pyproject.toml` only | No | Very simple, single-module packages |\n| `poetry` | `pyproject.toml` field | `pyproject.toml` only | No | Teams wanting integrated dep management |\n\nFor all four complete `pyproject.toml` templates, see `references\u002Fpyproject-toml.md`.\n\n---\n\n## 5. PyPA Packaging Flow\n\nThis is the canonical end-to-end flow from source code to user install.\n**Every step must be understood before publishing.**\n\n```\n1. SOURCE TREE\n   Your code in version control (git)\n   └── pyproject.toml describes metadata + build system\n\n2. BUILD\n   python -m build\n   └── Produces two artifacts in dist\u002F:\n       ├── *.tar.gz   → source distribution (sdist)\n       └── *.whl      → built distribution (wheel) — preferred by pip\n\n3. VALIDATE\n   twine check dist\u002F*\n   └── Checks metadata, README rendering, and PyPI compatibility\n\n4. TEST PUBLISH (first release only)\n   twine upload --repository testpypi dist\u002F*\n   └── Verify: pip install --index-url https:\u002F\u002Ftest.pypi.org\u002Fsimple\u002F your-package\n\n5. PUBLISH\n   twine upload dist\u002F*          ← manual fallback\n   OR GitHub Actions publish.yml  ← recommended (Trusted Publishing \u002F OIDC)\n\n6. USER INSTALL\n   pip install your-package\n   pip install \"your-package[extra]\"\n```\n\n### Key PyPA Concepts\n\n| Concept | What it means |\n|---|---|\n| **sdist** | Source distribution — your source + metadata; used when no wheel is available |\n| **wheel (.whl)** | Pre-built binary — pip extracts directly into site-packages; no build step |\n| **PEP 517\u002F518** | Standard build system interface via `pyproject.toml [build-system]` table |\n| **PEP 621** | Standard `[project]` table in `pyproject.toml`; all modern backends support it |\n| **PEP 639** | `license` key as SPDX string (e.g., `\"MIT\"`, `\"Apache-2.0\"`) — not `{text = \"MIT\"}` |\n| **PEP 561** | `py.typed` empty marker file — tells mypy\u002FIDEs this package ships type information |\n\nFor complete CI workflow and publishing setup, see `references\u002Fci-publishing.md`.\n\n---\n\n## 6. Project Structure Templates\n\n### A. src\u002F Layout (Recommended default for new projects)\n\n```\nyour-package\u002F\n├── src\u002F\n│   └── your_package\u002F\n│       ├── __init__.py           # Public API: __all__, __version__\n│       ├── py.typed              # PEP 561 marker — EMPTY FILE\n│       ├── core.py               # Primary implementation\n│       ├── client.py             # (API client type) or remove\n│       ├── cli.py                # (CLI type) click\u002Ftyper commands, or remove\n│       ├── config.py             # Settings \u002F configuration dataclass\n│       ├── exceptions.py         # Custom exception hierarchy\n│       ├── models.py             # Data classes, Pydantic models, TypedDicts\n│       ├── utils.py              # Internal helpers (prefix _utils if private)\n│       ├── types.py              # Shared type aliases and TypeVars\n│       └── backends\u002F             # (Plugin pattern) — remove if not needed\n│           ├── __init__.py       # Protocol \u002F ABC interface definition\n│           ├── memory.py         # Default zero-dep implementation\n│           └── redis.py          # Optional heavy implementation\n├── tests\u002F\n│   ├── __init__.py\n│   ├── conftest.py               # Shared fixtures\n│   ├── unit\u002F\n│   │   ├── __init__.py\n│   │   ├── test_core.py\n│   │   ├── test_config.py\n│   │   └── test_models.py\n│   ├── integration\u002F\n│   │   ├── __init__.py\n│   │   └── test_backends.py\n│   └── e2e\u002F                      # Optional: end-to-end tests\n│       └── __init__.py\n├── docs\u002F                         # Optional: mkdocs or sphinx\n├── scripts\u002F\n│   └── scaffold.py\n├── .github\u002F\n│   ├── workflows\u002F\n│   │   ├── ci.yml\n│   │   └── publish.yml\n│   └── ISSUE_TEMPLATE\u002F\n│       ├── bug_report.md\n│       └── feature_request.md\n├── .pre-commit-config.yaml\n├── pyproject.toml\n├── CHANGELOG.md\n├── CONTRIBUTING.md\n├── SECURITY.md\n├── LICENSE\n├── README.md\n└── .gitignore\n```\n\n### B. Flat Layout (Small \u002F focused packages)\n\n```\nyour-package\u002F\n├── your_package\u002F         # ← at root, not inside src\u002F\n│   ├── __init__.py\n│   ├── py.typed\n│   └── ... (same internal structure)\n├── tests\u002F\n└── ... (same top-level files)\n```\n\n### C. Namespace \u002F Monorepo Layout (Multiple related packages)\n\n```\nyour-org\u002F\n├── packages\u002F\n│   ├── your-org-core\u002F\n│   │   ├── src\u002Fyour_org\u002Fcore\u002F\n│   │   └── pyproject.toml\n│   ├── your-org-http\u002F\n│   │   ├── src\u002Fyour_org\u002Fhttp\u002F\n│   │   └── pyproject.toml\n│   └── your-org-cli\u002F\n│       ├── src\u002Fyour_org\u002Fcli\u002F\n│       └── pyproject.toml\n├── .github\u002Fworkflows\u002F\n└── README.md\n```\n\nEach sub-package has its own `pyproject.toml`. They share the `your_org` namespace via PEP 420\nimplicit namespace packages (no `__init__.py` in the namespace root).\n\n### Internal Module Guidelines\n\n| File | Purpose | When to include |\n|---|---|---|\n| `__init__.py` | Public API surface; re-exports; `__version__` | Always |\n| `py.typed` | PEP 561 typed-package marker (empty) | Always |\n| `core.py` | Primary class \u002F main logic | Always |\n| `config.py` | Settings dataclass or Pydantic model | When configurable |\n| `exceptions.py` | Exception hierarchy (`YourBaseError` → specifics) | Always |\n| `models.py` | Data models \u002F DTOs \u002F TypedDicts | When data-heavy |\n| `utils.py` | Internal helpers (not part of public API) | As needed |\n| `types.py` | Shared `TypeVar`, `TypeAlias`, `Protocol` definitions | When complex typing |\n| `cli.py` | CLI entry points (click\u002Ftyper) | CLI type only |\n| `backends\u002F` | Plugin\u002Fstrategy pattern | When swappable implementations |\n| `_compat.py` | Python version compatibility shims | When 3.9–3.13 compat needed |\n\n---\n\n## 7. Versioning Strategy\n\n### PEP 440 — The Standard\n\n```\nCanonical form:  N[.N]+[{a|b|rc}N][.postN][.devN]\n\nExamples:\n  1.0.0          Stable release\n  1.0.0a1        Alpha (pre-release)\n  1.0.0b2        Beta\n  1.0.0rc1       Release candidate\n  1.0.0.post1    Post-release (e.g., packaging fix only)\n  1.0.0.dev1     Development snapshot (not for PyPI)\n```\n\n### Semantic Versioning (recommended)\n\n```\nMAJOR.MINOR.PATCH\n\nMAJOR: Breaking API change (remove\u002Frename public function\u002Fclass\u002Farg)\nMINOR: New feature, fully backward-compatible\nPATCH: Bug fix, no API change\n```\n\n### Dynamic versioning with setuptools_scm (recommended for git-tag workflows)\n\n```bash\n# How it works:\ngit tag v1.0.0          →  installed version = 1.0.0\ngit tag v1.1.0          →  installed version = 1.1.0\n(commits after tag)     →  version = 1.1.0.post1  (suffix stripped for PyPI)\n\n# In code — NEVER hardcode when using setuptools_scm:\nfrom importlib.metadata import version, PackageNotFoundError\ntry:\n    __version__ = version(\"your-package\")\nexcept PackageNotFoundError:\n    __version__ = \"0.0.0-dev\"    # Fallback for uninstalled dev checkouts\n```\n\nRequired `pyproject.toml` config:\n```toml\n[tool.setuptools_scm]\nversion_scheme = \"post-release\"\nlocal_scheme   = \"no-local-version\"   # Prevents +g\u003Chash> from breaking PyPI uploads\n```\n\n**Critical:** always set `fetch-depth: 0` in every CI checkout step. Without full git history,\n`setuptools_scm` cannot find tags and the build version silently falls back to `0.0.0+dev`.\n\n### Static versioning (flit, hatchling manual, poetry)\n\n```python\n# your_package\u002F__init__.py\n__version__ = \"1.0.0\"    # Update this before every release\n```\n\n### Version specifier best practices for dependencies\n\n```toml\n# In [project] dependencies:\n\"httpx>=0.24\"            # Minimum version — PREFERRED for libraries\n\"httpx>=0.24,\u003C1.0\"       # Upper bound only when a known breaking change exists\n\"httpx==0.27.0\"          # Pin exactly ONLY in applications, NOT libraries\n\n# NEVER do this in a library — it breaks dependency resolution for users:\n# \"httpx~=0.24.0\"        # Too tight\n# \"httpx==0.27.*\"        # Fragile\n```\n\n### Version bump → release flow\n\n```bash\n# 1. Update CHANGELOG.md — move [Unreleased] entries to [x.y.z] - YYYY-MM-DD\n# 2. Commit the changelog\ngit add CHANGELOG.md\ngit commit -m \"chore: prepare release vX.Y.Z\"\n# 3. Tag and push — this triggers publish.yml automatically\ngit tag vX.Y.Z\ngit push origin main --tags\n# 4. Monitor GitHub Actions → verify on https:\u002F\u002Fpypi.org\u002Fproject\u002Fyour-package\u002F\n```\n\nFor complete pyproject.toml templates for all four backends, see `references\u002Fpyproject-toml.md`.\n\n---\n\n## Where to Go Next\n\nAfter understanding decisions and structure:\n\n1. **Set up `pyproject.toml`** → `references\u002Fpyproject-toml.md`\n   All four backend templates (setuptools+scm, hatchling, flit, poetry), full tool configs,\n   `py.typed` setup, versioning config.\n\n2. **Write your library code** → `references\u002Flibrary-patterns.md`\n   OOP\u002FSOLID principles, type hints (PEP 484\u002F526\u002F544\u002F561), core class design, factory functions,\n   `__init__.py`, plugin\u002Fbackend pattern, CLI entry point.\n\n3. **Add tests and code quality** → `references\u002Ftesting-quality.md`\n   `conftest.py`, unit\u002Fbackend\u002Fasync tests, parametrize, ruff\u002Fmypy\u002Fpre-commit setup.\n\n4. **Set up CI\u002FCD and publish** → `references\u002Fci-publishing.md`\n   `ci.yml`, `publish.yml` with Trusted Publishing (OIDC, no API tokens), CHANGELOG format,\n   release checklist.\n\n5. **Polish for community\u002FOSS** → `references\u002Fcommunity-docs.md`\n   README sections, docstring format, CONTRIBUTING, SECURITY, issue templates, anti-patterns\n   table, and master release checklist.\n\n6. **Design backends, config, transport, CLI** → `references\u002Farchitecture-patterns.md`\n   Backend system (plugin\u002Fstrategy pattern), Settings dataclass, HTTP transport layer,\n   CLI with click\u002Ftyper, backend injection rules.\n\n7. **Choose and implement a versioning strategy** → `references\u002Fversioning-strategy.md`\n   PEP 440 canonical forms, SemVer rules, pre-release identifiers, setuptools_scm deep-dive,\n   flit static versioning, decision engine (DEFAULT\u002FBEGINNER\u002FMINIMAL).\n\n8. **Govern releases and secure the publish pipeline** → `references\u002Frelease-governance.md`\n   Branch strategy, branch protection rules, OIDC Trusted Publishing setup, tag author\n   validation in CI, tag format enforcement, full governed `publish.yml`.\n\n9. **Simplify tooling with Ruff** → `references\u002Ftooling-ruff.md`\n   Ruff-only setup replacing black\u002Fisort\u002Fflake8, mypy config, pre-commit hooks,\n   asyncio_mode=auto (remove @pytest.mark.asyncio), migration guide.\n",{"name":5,"description":7},"main","5269f7ea2d6c3a9bfda5ed878b6726cf509121fd","skills\u002Fpython-pypi-package-builder",5360,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot","https:\u002F\u002Fawesome-copilot.github.com\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 04:42:30",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add github\u002Fawesome-copilot --skill python-pypi-package-builder",{"tool":78,"command":79},"bunx","bunx skills add github\u002Fawesome-copilot --skill python-pypi-package-builder",{"tool":81,"command":82},"pnpm","pnpm dlx skills add github\u002Fawesome-copilot --skill python-pypi-package-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002FSKILL.md",true,[86,92,96,100,104,108,112,116,120,124,128,132,138],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"agents\u002Fopenai.yaml","REFERENCE","参考文档",100,"https:\u002F\u002Fgithub.com\u002FVortex375\u002Fseraph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fprototype\u002Fagents\u002Fopenai.yaml",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"LOGIC.md",6036,"https:\u002F\u002Fgithub.com\u002FVortex375\u002Fseraph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fprototype\u002FLOGIC.md",{"path":97,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Farchitecture-patterns.md",16148,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Farchitecture-patterns.md",{"path":101,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fci-publishing.md",8050,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Fci-publishing.md",{"path":105,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fcommunity-docs.md",13263,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Fcommunity-docs.md",{"path":109,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Flibrary-patterns.md",18167,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Flibrary-patterns.md",{"path":113,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fpyproject-toml.md",13326,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Fpyproject-toml.md",{"path":117,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Frelease-governance.md",10680,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Frelease-governance.md",{"path":121,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Ftesting-quality.md",6565,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Ftesting-quality.md",{"path":125,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Ftooling-ruff.md",9371,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Ftooling-ruff.md",{"path":129,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fversioning-strategy.md",11193,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Freferences\u002Fversioning-strategy.md",{"path":133,"resourceType":134,"resourceTypeDesc":135,"sizeBytes":136,"sourceHtmlUrl":137},"scripts\u002Fscaffold.py","SCRIPT","脚本",22563,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fpython-pypi-package-builder\u002Fscripts\u002Fscaffold.py",{"path":139,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":140,"sourceHtmlUrl":141},"UI.md",6913,"https:\u002F\u002Fgithub.com\u002FVortex375\u002Fseraph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fprototype\u002FUI.md",[143,151,158,168,197,224],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":150},"01M7B5D8BRA66G07045DF7WDYA","sap-cloud-integration","SAP Cloud Integration (CPI, part of SAP Integration Suite) runtime-specific guidance for building and troubleshooting iFlows. Use when writing or reviewing CPI Groovy scripts, choosing headers vs. exchange properties, designing exception subprocesses, JMS retry, idempotency or data store patterns, or diagnosing adapter errors (SFTP, HTTP\u002FOAuth, SOAP, IDoc, OData, AS2, Cloud Connector) from Message Processing Log (MPL) text. Not for SAP PI\u002FPO, ABAP development, or generic Java\u002FGroovy outside CPI.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsap-cloud-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":150},"01M7B5CYRGSG571NH7EJWT5066","on-device-delegate","Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fon-device-delegate\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":162,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":167},"01M74CBQ0M3ZKGQH8XKQZ2FHB1","scout-issue","Use when a developer wants to find the best GitHub issues to contribute to in a repository. Invoke with \u002Fscout-issue or ask to find good first issues, beginner-friendly issues, or open source work. Asks about experience level, technical skills, time, and contribution type, then searches GitHub issues, scores them, and presents ranked recommendations with match analysis.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":176,"publishedAt":57},"01M70KXZNX9ES38N2A8M58ZZMZ","supabase-rls-policies","Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows. Use when creating or changing tables, policies, views, or security definer functions in a Supabase project, when reviewing a migration that touches RLS, or when asked to prove user isolation with pgTAP tests that sign in as two users.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-rls-policies\u002FSKILL.md",[174,175],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},[177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],"supabase rls policies","supabase rls","supabase","rls","project","with","when","review","change","read","write","security","isolation","tables","as","tests","prove","use","users","functions",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":204,"publishedAt":57},"01M70KWA5YWXDV6V8DZ19E3T2Y","skill-distribution-audit","Audit a skill collection before release or investigate installer omissions, archived\u002Ftemplate leakage, duplicate identities, and manifest drift. Reconcile the intended public source set, distribution manifest, and actual discovery output for a specified consumer version. Includes a deterministic set-comparison helper.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fskill-distribution-audit\u002FSKILL.md",[203],{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},[205,206,207,208,209,210,211,212,213,214,215,216,217,36,218,219,220,221,222,223],"distribution","skill distribution audit","audit","output","reconcile","release","template","duplicate","investigate","drift","SET","deterministic","installer","discovery","comparison","helper","manifest","version","collection",{"skillNo":225,"name":226,"nameZh":6,"description":227,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":228,"sourceHtmlUrl":229,"categories":230,"keywords":236,"publishedAt":57},"01M70KCJPFVW7PPQ49CC5R8JGK","logicapps-custom-code-net10-migration","Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project\u002Fpackage configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FSKILL.md",[231],{"categoryNo":232,"categoryName":233,"taxonomyType":234,"taxonomyTypeDesc":235},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[237,238,239,240,241,242,243,36,181,244,245,246,247,248,249,32,194,250,251,252],"code","logicapps custom code net10 migration","migration","custom","Legacy","projects","standalone","deployment","applications","local","azure","worker","upgrades","apps","debugging","workflows"]