[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVKFK6X0R4975EN0SSXGQT":3,"skill-same:01M7EVKFK6X0R4975EN0SSXGQT":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7EVKFK6X0R4975EN0SSXGQT","ams-python-pro",null,"TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-python-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-pro\ndescription: Idiomatic Python: project layout, packaging, type hints, testing, async, and performance. Use when writing, reviewing, or structuring Python projects.\ncategory: development\n---\n\n# Python Pro\n\n## Overview\n\nPython rewards **readability and the standard library**: the best Python code looks obvious after\nyou read it and leans on batteries-included modules before reaching for dependencies. This skill\ncovers professional Python — project layout that scales, packaging without pain, type hints as\ndocumentation, testing culture, async done right, and performance work that respects how CPython\nactually executes.\n\nThe through-line: write Python like Python, not like Java or C wearing a Python costume.\n\n## When to use\n\n- Starting or restructuring a Python project (layout, packaging, tooling).\n- Writing or reviewing Python for idiom, correctness, or performance.\n- Choosing between sync\u002Fasync, packaging tools, or test frameworks.\n- Debugging packaging issues, import problems, or slow code.\n- Adding type hints or linting to an existing codebase.\n\n## Core concepts\n\n- **Project layout (src layout).** `src\u002Fmypackage\u002F` with `pyproject.toml` at root; tests in\n  `tests\u002F` mirroring the package. Src layout prevents the classic bug of tests importing the local\n  directory instead of the installed package. One `pyproject.toml` declares metadata, dependencies,\n  and tool config — `setup.py` is legacy for most projects.\n- **Virtual environments, always.** One venv per project (`python -m venv .venv`), dependencies\n  pinned via lock file (`uv.lock`, `poetry.lock`, or `requirements.txt` with hashes for deploys).\n  Never `pip install` into the system Python.\n- **Type hints as documentation.** Annotate public APIs (`def fetch(url: str) -> Response`); run\n  `mypy`\u002F`pyright` in strict-ish mode on new code. Hints catch a class of bugs tests miss and make\n  IDE support dramatically better. `dataclasses` (or `attrs`\u002F`pydantic` at boundaries) over dicts\n  for structured data.\n- **The stdlib is deep.** `pathlib` over `os.path`, `dataclasses`, `functools`, `itertools`,\n  `collections`, `datetime` with timezones (`zoneinfo`), `argparse`, `logging`, `sqlite3`,\n  `http.server` for quick needs. Reach for PyPI only after checking the stdlib.\n- **Async is for I\u002FO concurrency.** `asyncio` shines when awaiting many network\u002Fdisk operations;\n  it doesn't speed up CPU work (GIL). Don't mix sync blocking calls into async code (use\n  `run_in_executor` for blocking libs); don't make everything async \"just in case\" — async is\n  viral and must be justified by actual concurrency needs.\n- **Testing culture.** `pytest` with fixtures and `parametrize`; test behavior, not internals;\n  `coverage` to find untested *areas*, not to chase a number. Doctests for documentation examples.\n\n## Practical workflow\n\n1. **Scaffold:** `src\u002F` layout, `pyproject.toml` (build-system, project metadata, tool configs),\n   `.venv`, lock file, `ruff` (lint+format — fast, one tool), `mypy` or `pyright`.\n2. **Write code Pythonically:** context managers for resources, comprehensions where readable,\n   generators for large\u002Fstreaming data, `pathlib.Path` for paths, f-strings for formatting,\n   exceptions for exceptional cases (EAFP) with specific except clauses.\n3. **Type the boundaries.** Public functions fully annotated; internal code annotated where it\n   clarifies. Run the type checker in CI — gradually, ratcheting strictness.\n4. **Test in layers:** fast unit tests (pure functions), integration tests with real local\n   services where feasible (testcontainers for Postgres\u002FRedis), and a few end-to-end tests.\n   `pytest -x -q` locally; full suite in CI.\n5. **Profile before optimizing.** `cProfile`\u002F`py-spy` to find hotspots; common wins: algorithmic\n   fixes first, then reduce per-item overhead (avoid repeated attribute lookups in loops), use\n   `__slots__` for millions of small objects, push inner loops to numpy\u002FC extensions, or parallelize\n   CPU work with multiprocessing.\n6. **Package for distribution:** version in one place, build with `python -m build`, publish to an\n   internal index or PyPI; CLIs via entry points (`[project.scripts]`).\n\nStandard layout:\n\n```text\nmypackage\u002F\n├── pyproject.toml          # metadata, deps, tool config\n├── src\u002Fmypackage\u002F\n│   ├── __init__.py         # minimal; don't import heavy deps here\n│   ├── core.py\n│   └── cli.py\n├── tests\u002F\n│   ├── test_core.py\n│   └── conftest.py         # shared fixtures\n└── README.md\n```\n\n## Common pitfalls\n\n- **Mutable default arguments.** `def f(items=[])` shares one list across calls — the classic\n  Python gotcha. Use `None` + initialize inside.\n- **Bare `except:` \u002F swallowing exceptions.** Hides bugs and `KeyboardInterrupt`. Catch specific\n  exceptions; log with context; let unexpected ones propagate.\n- **Importing the wrong package.** Running tests\u002Fscripts from the repo root importing local code\n  instead of the installed package — src layout + installed venv fixes this whole class of bug.\n- **Timezone-naive datetimes.** `datetime.now()` without tz bites in serialization, scheduling,\n  and DST. Use timezone-aware datetimes everywhere (`datetime.now(timezone.utc)`).\n- **String concatenation in loops \u002F quadratic joins.** Build lists and `''.join()`; use\n  generators for streaming; don't load a 2GB file into memory to process it line by line —\n  iterate the file object.\n- **`pip freeze` chaos.** Unpinned or transitively-bloated requirements cause \"works on my machine.\"\n  Lock files, regenerated deliberately, committed to the repo.\n- **Over-engineering with classes.** A module of functions beats a class with one method and no\n  state. Python is multi-paradigm — reach for classes when there's genuine state + behavior.\n","# Python Pro\n\n## Overview\n\nPython rewards **readability and the standard library**: the best Python code looks obvious after\nyou read it and leans on batteries-included modules before reaching for dependencies. This skill\ncovers professional Python — project layout that scales, packaging without pain, type hints as\ndocumentation, testing culture, async done right, and performance work that respects how CPython\nactually executes.\n\nThe through-line: write Python like Python, not like Java or C wearing a Python costume.\n\n## When to use\n\n- Starting or restructuring a Python project (layout, packaging, tooling).\n- Writing or reviewing Python for idiom, correctness, or performance.\n- Choosing between sync\u002Fasync, packaging tools, or test frameworks.\n- Debugging packaging issues, import problems, or slow code.\n- Adding type hints or linting to an existing codebase.\n\n## Core concepts\n\n- **Project layout (src layout).** `src\u002Fmypackage\u002F` with `pyproject.toml` at root; tests in\n  `tests\u002F` mirroring the package. Src layout prevents the classic bug of tests importing the local\n  directory instead of the installed package. One `pyproject.toml` declares metadata, dependencies,\n  and tool config — `setup.py` is legacy for most projects.\n- **Virtual environments, always.** One venv per project (`python -m venv .venv`), dependencies\n  pinned via lock file (`uv.lock`, `poetry.lock`, or `requirements.txt` with hashes for deploys).\n  Never `pip install` into the system Python.\n- **Type hints as documentation.** Annotate public APIs (`def fetch(url: str) -> Response`); run\n  `mypy`\u002F`pyright` in strict-ish mode on new code. Hints catch a class of bugs tests miss and make\n  IDE support dramatically better. `dataclasses` (or `attrs`\u002F`pydantic` at boundaries) over dicts\n  for structured data.\n- **The stdlib is deep.** `pathlib` over `os.path`, `dataclasses`, `functools`, `itertools`,\n  `collections`, `datetime` with timezones (`zoneinfo`), `argparse`, `logging`, `sqlite3`,\n  `http.server` for quick needs. Reach for PyPI only after checking the stdlib.\n- **Async is for I\u002FO concurrency.** `asyncio` shines when awaiting many network\u002Fdisk operations;\n  it doesn't speed up CPU work (GIL). Don't mix sync blocking calls into async code (use\n  `run_in_executor` for blocking libs); don't make everything async \"just in case\" — async is\n  viral and must be justified by actual concurrency needs.\n- **Testing culture.** `pytest` with fixtures and `parametrize`; test behavior, not internals;\n  `coverage` to find untested *areas*, not to chase a number. Doctests for documentation examples.\n\n## Practical workflow\n\n1. **Scaffold:** `src\u002F` layout, `pyproject.toml` (build-system, project metadata, tool configs),\n   `.venv`, lock file, `ruff` (lint+format — fast, one tool), `mypy` or `pyright`.\n2. **Write code Pythonically:** context managers for resources, comprehensions where readable,\n   generators for large\u002Fstreaming data, `pathlib.Path` for paths, f-strings for formatting,\n   exceptions for exceptional cases (EAFP) with specific except clauses.\n3. **Type the boundaries.** Public functions fully annotated; internal code annotated where it\n   clarifies. Run the type checker in CI — gradually, ratcheting strictness.\n4. **Test in layers:** fast unit tests (pure functions), integration tests with real local\n   services where feasible (testcontainers for Postgres\u002FRedis), and a few end-to-end tests.\n   `pytest -x -q` locally; full suite in CI.\n5. **Profile before optimizing.** `cProfile`\u002F`py-spy` to find hotspots; common wins: algorithmic\n   fixes first, then reduce per-item overhead (avoid repeated attribute lookups in loops), use\n   `__slots__` for millions of small objects, push inner loops to numpy\u002FC extensions, or parallelize\n   CPU work with multiprocessing.\n6. **Package for distribution:** version in one place, build with `python -m build`, publish to an\n   internal index or PyPI; CLIs via entry points (`[project.scripts]`).\n\nStandard layout:\n\n```text\nmypackage\u002F\n├── pyproject.toml          # metadata, deps, tool config\n├── src\u002Fmypackage\u002F\n│   ├── __init__.py         # minimal; don't import heavy deps here\n│   ├── core.py\n│   └── cli.py\n├── tests\u002F\n│   ├── test_core.py\n│   └── conftest.py         # shared fixtures\n└── README.md\n```\n\n## Common pitfalls\n\n- **Mutable default arguments.** `def f(items=[])` shares one list across calls — the classic\n  Python gotcha. Use `None` + initialize inside.\n- **Bare `except:` \u002F swallowing exceptions.** Hides bugs and `KeyboardInterrupt`. Catch specific\n  exceptions; log with context; let unexpected ones propagate.\n- **Importing the wrong package.** Running tests\u002Fscripts from the repo root importing local code\n  instead of the installed package — src layout + installed venv fixes this whole class of bug.\n- **Timezone-naive datetimes.** `datetime.now()` without tz bites in serialization, scheduling,\n  and DST. Use timezone-aware datetimes everywhere (`datetime.now(timezone.utc)`).\n- **String concatenation in loops \u002F quadratic joins.** Build lists and `''.join()`; use\n  generators for streaming; don't load a 2GB file into memory to process it line by line —\n  iterate the file object.\n- **`pip freeze` chaos.** Unpinned or transitively-bloated requirements cause \"works on my machine.\"\n  Lock files, regenerated deliberately, committed to the repo.\n- **Over-engineering with classes.** A module of functions beats a class with one method and no\n  state. Python is multi-paradigm — reach for classes when there's genuine state + behavior.\n",{},"main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-python-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ams-python-pro",{"tool":37,"command":38},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ams-python-pro",{"tool":40,"command":41},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ams-python-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-python-pro\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]