[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DC0C3H3VTWMJJAWDGMJSB4":3,"skill-same:01M7DC0C3H3VTWMJJAWDGMJSB4":44},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7DC0C3H3VTWMJJAWDGMJSB4","python-modules",null,"Style and good practices when implementing or refactoring Python modules","fabiommendes\u002Fcodehood-cli","fabiommendes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1248626?v=4","01M7B2WVHQWE1G2F5M3BGZ15BV","Fábio Macêdo Mendes","01M7DBZY07P78Y6GNPNSH3E1CE",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-modules\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-modules\ndescription: Style and good practices when implementing or refactoring Python modules\n---\n\n# python-modules\n\nBest practices and style guide for implementing Python modules.\n\n\n## Architecture\n\nPrefer deep modules over wide modules. A deep module has a small API surface \nyet implement a large set of features. Avoid exposing public functions that are \ntrivial to implement and provide only marginal convenience. \n\n\n## Coding layout\n\nAll modules should include an import of \"from __future__ import annotations\". \nThe module should be organized in the following order:\n\n* Module docstring, if public.\n* Future imports.\n* Imports.\n* Module-level constants. Those should be in all caps and separated by underscores.\n* Module-level type aliases. Those should be in PascalCase.\n* The main API entry points of the module. Can be a class or a function. If the\n  module exposes multiple APIs, they should be grouped in a logical order, from\n  the most important to the least important.\n* Internal implementation of the module. Can be classes, functions or variables.\n  Those should be named with a leading underscore. If the module is large, it\n  can be split into multiple files and the internal implementation can be\n  placed in a private module. \n* If you want to separate by sections, use the following comment style:\n\n  ```python\n  # \n  # SECTION TITLE\n  #\n  ```\n\n  The section can also contain extra comments if they implement an unusual or\n  complex behavior. The comments should be placed after the section title. \n\n\n## Public modules\n\nAll public modules should have a docstring at the top of the file with a short\ndescription of the module's purpose. DO NOT list the exposed symbols in the \ndocstring.\n\nPublic modules should also export a `__all__` variable with a list of the \npublic symbols. You can separete sections within the exported symbols with \ncomments like so:\n\n```python\n__all__ = [\n    \"MyClass\",\n    #: Section title\n    #\n    # Small paragraph describing the section.\n    \"fn1\",\n    \"fn2\",\n]\n```\n\n## Private modules\n\nPrivate modules do not contain neither a docstring nor an `__all__` variable.\nModules can be prived for two reasons:\n\n* Internal use only, never export any public symbols.\n* Implement some public symbol that is re-exported by a public module. It is\n  mostly used to split a large implementation into multiple files.\n\nThe first should always be named with a leading underscore. The internal symbols\nshould be named with public names. Internal use modules should usually be imported\nas namespaces like so:\n\n```python\nfrom . import _internal_module\n\n# use some symbol:\n_internal_module.some_symbol()\n```\n","# python-modules\n\nBest practices and style guide for implementing Python modules.\n\n\n## Architecture\n\nPrefer deep modules over wide modules. A deep module has a small API surface \nyet implement a large set of features. Avoid exposing public functions that are \ntrivial to implement and provide only marginal convenience. \n\n\n## Coding layout\n\nAll modules should include an import of \"from __future__ import annotations\". \nThe module should be organized in the following order:\n\n* Module docstring, if public.\n* Future imports.\n* Imports.\n* Module-level constants. Those should be in all caps and separated by underscores.\n* Module-level type aliases. Those should be in PascalCase.\n* The main API entry points of the module. Can be a class or a function. If the\n  module exposes multiple APIs, they should be grouped in a logical order, from\n  the most important to the least important.\n* Internal implementation of the module. Can be classes, functions or variables.\n  Those should be named with a leading underscore. If the module is large, it\n  can be split into multiple files and the internal implementation can be\n  placed in a private module. \n* If you want to separate by sections, use the following comment style:\n\n  ```python\n  # \n  # SECTION TITLE\n  #\n  ```\n\n  The section can also contain extra comments if they implement an unusual or\n  complex behavior. The comments should be placed after the section title. \n\n\n## Public modules\n\nAll public modules should have a docstring at the top of the file with a short\ndescription of the module's purpose. DO NOT list the exposed symbols in the \ndocstring.\n\nPublic modules should also export a `__all__` variable with a list of the \npublic symbols. You can separete sections within the exported symbols with \ncomments like so:\n\n```python\n__all__ = [\n    \"MyClass\",\n    #: Section title\n    #\n    # Small paragraph describing the section.\n    \"fn1\",\n    \"fn2\",\n]\n```\n\n## Private modules\n\nPrivate modules do not contain neither a docstring nor an `__all__` variable.\nModules can be prived for two reasons:\n\n* Internal use only, never export any public symbols.\n* Implement some public symbol that is re-exported by a public module. It is\n  mostly used to split a large implementation into multiple files.\n\nThe first should always be named with a leading underscore. The internal symbols\nshould be named with public names. Internal use modules should usually be imported\nas namespaces like so:\n\n```python\nfrom . import _internal_module\n\n# use some symbol:\n_internal_module.some_symbol()\n```\n",{"name":5,"description":7},"main","c739d83b48c0708f55498864294af01123d6c5f2",".claude\u002Fskills\u002Fpython-modules","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli","https:\u002F\u002Fgithub.com\u002Ffabiommendes","2026-11-14 20:55:29",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add fabiommendes\u002Fcodehood-cli --skill python-modules",{"tool":36,"command":37},"bunx","bunx skills add fabiommendes\u002Fcodehood-cli --skill python-modules",{"tool":39,"command":40},"pnpm","pnpm dlx skills add fabiommendes\u002Fcodehood-cli --skill python-modules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-modules\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7DC0N00YJHWNS4MXGPDKX0V","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DC0KSF9JPBVYDEX5JG5CFH","python-publish","Guidelines to publish Python packages","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-publish\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DC0HVE7915R27139YGZ6VE","python-projects","Style and good practices when implementing Python projects","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-projects\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DC0F1R77HAG40S5B23DDEE","python-paths","Good practices when working with file paths in Python","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-paths\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DC08K5RXPSB077RQR0W179","python-functions","Style and good practices when implementing or refactoring Python functions and methods","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-functions\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DC061MX3KX7PXMARDJ4S5R","principle-subtract-before-you-add","Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood-cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fprinciple-subtract-before-you-add\u002FSKILL.md",[],[]]