[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTJDG56YKN6M60DCGCCATW":3,"skill-same:01M7CTJDG56YKN6M60DCGCCATW":50},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7CTJDG56YKN6M60DCGCCATW","python",null,"Lyngon Python conventions. Invoke before writing or editing a Python file, stub or notebook.","lyngon\u002Fdevkit","lyngon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F70928830?v=4","01M7CTHVD57GT6VR6Y5SES6GKR","Lyngon","01M7CTHVDSGGTXSY9S7M5MA8RA",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fconventions\u002Fskills\u002Fpython\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python\ndescription: Lyngon Python conventions. Invoke before writing or editing a Python file, stub or notebook.\nuser-invocable: false\npaths:\n  - \"**\u002F*.py\"\n  - \"**\u002F*.pyi\"\n  - \"**\u002F*.ipynb\"\n---\n\n# Python conventions\n\n## Project\n\n- uv manages everything: `uv add`, `uv run`, `uv sync`. Never `pip`, never `pip install`, never a hand-made virtual environment.\n- A package's `pyproject.toml` declares constraints (`httpx>=0.27`); the workspace lockfile pins.\n- Development dependencies go in `[dependency-groups]`, not in `[project.optional-dependencies]`.\n- `requires-python` is set once, at the root, to the newest stable release the toolchain provides.\n- Packages use the `src\u002F` layout: `src\u002F\u003Cimport_name>\u002F`. The import name is the distribution name with underscores.\n- An app exposes its entry point in `[project.scripts]` and keeps `main` in `__main__.py`; nothing else lives in an app.\n\n## Code\n\n- Type hints on every function signature and every module-level name. The code must pass a strict type checker; `Any` does not cross a package boundary.\n- Domain values are `@dataclasses.dataclass(frozen=True, slots=True)` or plain classes. pydantic and other validation libraries appear only in adapters and entrypoints, where data enters.\n- Exceptions are typed per domain and raised at the boundary where the rule is broken. Never a bare `except`, never `except Exception: pass`.\n- Logging through `logging.getLogger(__name__)` at module level. No `print` in a library.\n- `async` only in adapters and entrypoints. Domain and application code is synchronous.\n- Pathlib over `os.path`; `subprocess.run` with an argument list over shell strings.\n- A public module, class or function has a docstring that states its contract or its reason: what it guarantees, what it raises, why it exists. Never the name restated as a sentence.\n\n## Imports\n\n- Import modules, never names: `import pathlib`, then `pathlib.Path` at every use, so every name shows where it comes from.\n- `from a.b import c` only when `c` is a module, for a long package path. No `from x import *`.\n- Absolute imports only, also within a package.\n- Fixed aliases, and no others: `import typing as t`, `import collections.abc as ct`, `import datetime as dt`, and the conventional third-party aliases (`numpy as np`, `pandas as pd`, `polars as pl`).\n- Abstract collection types come from `ct`, not `t`: `ct.Iterable`, `ct.Callable`, `ct.Mapping`.\n- A package's `__init__.py` may re-export its public names (`from orders._order import Order`); that is the one place names are imported.\n\n## Tests\n\n- pytest, in `tests\u002F` next to `src\u002F`, named after the behaviour: `test_order_cannot_ship_twice`.\n- Fixtures over setup methods; parametrize over copy-paste.\n- Tests import the package the way a consumer does.\n\n## Stubs and notebooks\n\n- `.pyi` stubs only for third-party packages that ship no types, under `typings\u002F` at the package root.\n- Notebooks are exploration. They are never imported, and their outputs are stripped before commit.\n\n## Checks\n\n- Checked by the `ruff-format` and `ruff` hooks against the root `ruff.toml`: every stable ruff rule, minus a short ignore list with a reason on each entry. It also enforces the import rules above, except that a `from` import names a module.\n- The root `ruff.toml` is the only ruff configuration. A `[tool.ruff]` table in a package's `pyproject.toml` silently replaces it.\n- Silence a single finding with `# noqa: CODE  # reason`. Extend the ignore list only with a reason on the entry.\n- Type-checked by the `{name}-basedpyright` hook: basedpyright in `all` mode, configured once in the root `pyproject.toml`. It reports every `Any` that reaches a name, an unannotated parameter, an override without `@t.override` and an unused call result (assign it to `_`).\n- Silence a single type finding with `# pyright: ignore[rule]  # reason`; a bare ignore is rejected.\n\n## With the Lyngon structure\n\n- One uv workspace at the repository root with explicit members; `uv.lock` at the root pins.\n- A core library holds `domain\u002F` and `application\u002F` under `src\u002F\u003Cctx>\u002F`, with import-linter enforcing the direction; `\u002Frepo:add-package` writes the contract.\n- Domain and application never import a generated client, an adapter or a framework.\n","# Python conventions\n\n## Project\n\n- uv manages everything: `uv add`, `uv run`, `uv sync`. Never `pip`, never `pip install`, never a hand-made virtual environment.\n- A package's `pyproject.toml` declares constraints (`httpx>=0.27`); the workspace lockfile pins.\n- Development dependencies go in `[dependency-groups]`, not in `[project.optional-dependencies]`.\n- `requires-python` is set once, at the root, to the newest stable release the toolchain provides.\n- Packages use the `src\u002F` layout: `src\u002F\u003Cimport_name>\u002F`. The import name is the distribution name with underscores.\n- An app exposes its entry point in `[project.scripts]` and keeps `main` in `__main__.py`; nothing else lives in an app.\n\n## Code\n\n- Type hints on every function signature and every module-level name. The code must pass a strict type checker; `Any` does not cross a package boundary.\n- Domain values are `@dataclasses.dataclass(frozen=True, slots=True)` or plain classes. pydantic and other validation libraries appear only in adapters and entrypoints, where data enters.\n- Exceptions are typed per domain and raised at the boundary where the rule is broken. Never a bare `except`, never `except Exception: pass`.\n- Logging through `logging.getLogger(__name__)` at module level. No `print` in a library.\n- `async` only in adapters and entrypoints. Domain and application code is synchronous.\n- Pathlib over `os.path`; `subprocess.run` with an argument list over shell strings.\n- A public module, class or function has a docstring that states its contract or its reason: what it guarantees, what it raises, why it exists. Never the name restated as a sentence.\n\n## Imports\n\n- Import modules, never names: `import pathlib`, then `pathlib.Path` at every use, so every name shows where it comes from.\n- `from a.b import c` only when `c` is a module, for a long package path. No `from x import *`.\n- Absolute imports only, also within a package.\n- Fixed aliases, and no others: `import typing as t`, `import collections.abc as ct`, `import datetime as dt`, and the conventional third-party aliases (`numpy as np`, `pandas as pd`, `polars as pl`).\n- Abstract collection types come from `ct`, not `t`: `ct.Iterable`, `ct.Callable`, `ct.Mapping`.\n- A package's `__init__.py` may re-export its public names (`from orders._order import Order`); that is the one place names are imported.\n\n## Tests\n\n- pytest, in `tests\u002F` next to `src\u002F`, named after the behaviour: `test_order_cannot_ship_twice`.\n- Fixtures over setup methods; parametrize over copy-paste.\n- Tests import the package the way a consumer does.\n\n## Stubs and notebooks\n\n- `.pyi` stubs only for third-party packages that ship no types, under `typings\u002F` at the package root.\n- Notebooks are exploration. They are never imported, and their outputs are stripped before commit.\n\n## Checks\n\n- Checked by the `ruff-format` and `ruff` hooks against the root `ruff.toml`: every stable ruff rule, minus a short ignore list with a reason on each entry. It also enforces the import rules above, except that a `from` import names a module.\n- The root `ruff.toml` is the only ruff configuration. A `[tool.ruff]` table in a package's `pyproject.toml` silently replaces it.\n- Silence a single finding with `# noqa: CODE  # reason`. Extend the ignore list only with a reason on the entry.\n- Type-checked by the `{name}-basedpyright` hook: basedpyright in `all` mode, configured once in the root `pyproject.toml`. It reports every `Any` that reaches a name, an unannotated parameter, an override without `@t.override` and an unused call result (assign it to `_`).\n- Silence a single type finding with `# pyright: ignore[rule]  # reason`; a bare ignore is rejected.\n\n## With the Lyngon structure\n\n- One uv workspace at the repository root with explicit members; `uv.lock` at the root pins.\n- A core library holds `domain\u002F` and `application\u002F` under `src\u002F\u003Cctx>\u002F`, with import-linter enforcing the direction; `\u002Frepo:add-package` writes the contract.\n- Domain and application never import a generated client, an adapter or a framework.\n",{"name":5,"paths":24,"description":7,"user-invocable":20},[25,26,27],"**\u002F*.py","**\u002F*.pyi","**\u002F*.ipynb","main","7d4c29d5ef25e4bff96b8ed951739cd04811984b","plugins\u002Fconventions\u002Fskills\u002Fpython","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit","https:\u002F\u002Fwww.lyngon.com","https:\u002F\u002Fgithub.com\u002Flyngon","www.lyngon.com","2026-11-14 19:00:56",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lyngon\u002Fdevkit --skill python",{"tool":42,"command":43},"bunx","bunx skills add lyngon\u002Fdevkit --skill python",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lyngon\u002Fdevkit --skill python","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fconventions\u002Fskills\u002Fpython\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7CTNRE8KXX2CG9Q2XYYBTDE","unslop","Remove AI writing patterns from prose and give it a voice. Use whenever writing or editing non-code text (docs, READMEs, decision records, posts, commit messages, PR descriptions), before handing it over, and on request: \"unslop\", \"humanize\", \"make this sound human\", \"clean up this writing\", \"edit for voice\", \"de-AI this text\".","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CTNHG9ENS5D6GCA9283V08","technical","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use before writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages, every time, however small the document.","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting\u002Fskills\u002Ftechnical\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTND9T9J9P1TR6RRDVAXF4","simpler","Restate the last message in plain human language, with no jargon. Use when the reader did not follow the last message and says so: \"bro\", \"say that simpler\", \"in plain words\", \"no jargon\".","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting\u002Fskills\u002Fsimpler\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTN8H1N39FCQ67AM7WD4S2","init","Set up a fresh repository, or adopt an existing one, to Lyngon conventions. Interviews the owner relentlessly about purpose, failure modes, audiences, stack and constraints, then writes INTENT.md, .claude\u002FCLAUDE.md, README.md, CONCEPTS.md, decision records, devenv, git hooks, CI and every package in the kind-first Lyngon layout. User-invoked only.","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Frepo\u002Fskills\u002Finit\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTN36H4AR1GATK3KE5E85X","add-package","Create a package in a Lyngon repository in the directory its kind decides (apps\u002F, libs\u002F, contracts\u002F, tools\u002F, infra\u002F), with README.md, devenv.nix and the layer lint, and register it in its workspace and devenv. Use whenever a new app, service, CLI, library, adapter, contract, schema, tool, infra module or environment is needed, including when one feature needs several packages. Never create a package by hand.","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Frepo\u002Fskills\u002Fadd-package\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTMZE95Q1FJWKJRB8WCX4E","index","The index of Lyngon's principles, one line per principle saying when it applies and what it demands, each with a file under references\u002F. Invoke before work that takes judgment, such as a design choice, a refactor, a bug fix, a test, a measurement, a script, a document or a question to the owner; then read the file of each principle that applies.","https:\u002F\u002Fgithub.com\u002Flyngon\u002Fdevkit\u002Fblob\u002Fmain\u002Fplugins\u002Fprinciples\u002Fskills\u002Findex\u002FSKILL.md",[],[]]