Token导航 LogoToken导航

Agent Skill · 研究检索

coding-guidance-python(coding guidance Python 搜索)

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

coding-guidance-python 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 69,087。

总安装 220周安装 9GitHub Stars 3下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-guidance-python(coding guidance Python 搜索)
来源仓库:https://github.com/n-n-code/n-n-code-skills
仓库路径:skills/coding-guidance-python
安装命令:
npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidance-python
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidance-python

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

coding-guidance-python 辅助 Python 项目开发、测试运行与依赖管理,支持虚拟环境与 uv 工具链。可定位测试失败原因、生成启动脚本并分析数据处理逻辑,提升本地开发效率。执行前务必确认工作目录、Python 版本与 requirements.txt 一致性,防止环境污染。

涉及数据库连接或 API 调用时,应使用测试数据集并关闭写权限,避免误改真实业务数据。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/coding-guidance-python

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidan…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

coding-guidance-python 怎么安装?

在终端执行 npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidance-python。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

coding-guidance-python 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

coding-guidance-python 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidance-python 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

coding-guidance-python 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

coding-guidance-python 用的人多吗?

公开数据是累计安装 220 次,近一周安装 9 次,下载 71 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

coding-guidance-python 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
coding-guidance-python

coding guidance Python 搜索 · 本页

2203执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Python Coding Guidance

This skill adds portable Python implementation, refactoring, and review guidance.

Adjacent Skills

This skill provides portable Python engineering principles. Compose with:

  • Workflow: thinking (planning), recursive-thinking (stress-testing), security (threat modeling)
  • Domain overlays: backend-guidance (server-side code), backend-systems-guidance (stronger backend architecture, reliability, and trust-boundary work), ui-guidance (graphical UI/web frontend), project-core-dev (repo-specific build/test commands)

Open the bundled references only when the task actually touches package distribution, entrypoint layout, or a real I/O/service boundary.

When Not to Lean on This Skill

  • non-Python work
  • notebook-first exploratory work where reproducibility and module design are not the main concern
  • one-off throwaway scripts where the repo explicitly does not want production Python standards

Implementation Workflow

  1. Read the touched modules, entrypoints, tests, package metadata, and nearby docs before editing.
  2. Infer intended behavior from existing code, imports, and tests when the request is only partially specified. Ask only when multiple plausible designs would change semantics.
  3. Choose the narrowest change that keeps contracts, side effects, error handling, and public API shape explicit.
  4. Implement with simple functions, clear module boundaries, explicit types where they improve the contract, and production-safe behavior at I/O boundaries.
  5. Add or update tests close to the changed behavior; prefer pytest-native fixtures and parameterization over ad hoc setup.
  6. Run the narrowest relevant formatter, linter, type checker, packaging check, and test targets the repo supports.

Refactoring Workflow

Use this instead of the default implementation workflow when the task is primarily cleanup or restructuring:

  1. Capture current behavior, side effects, hidden globals, import shape, and mutation hotspots.
  2. Break the refactor into small slices that preserve behavior.
  3. Remove long functions, muddled responsibilities, implicit coupling, and anti-patterns one step at a time.
  4. Keep tests passing after each slice; add characterization coverage first when behavior is unclear.
  5. Stop when the code is simpler, more explicit, easier to test, and easier to operate.

Review Workflow

When reviewing (not implementing), skip the implementation workflow and use this instead:

  1. Read the change in full before commenting.
  2. Identify findings, ordered by severity: Critical > Important > Suggestion.
  3. Prioritize bugs and regressions, exception or error-path holes, mutable shared-state mistakes, typing and interface mismatches, packaging or import breakage, performance mistakes with real impact, security risks, and missing tests. Add service-boundary observability, retry, and timeout findings when the change actually crosses a real external boundary.
  4. State findings with concrete evidence and the likely consequence.

Python Rules

First tier - causes bugs

  • Keep module side effects minimal; avoid import-time network calls, filesystem mutation, or heavy initialization unless the module is explicitly an entrypoint
  • Prefer explicit parameters and return values over hidden globals, ambient context, or mutation of module-level state
  • Do not use mutable default arguments
  • Treat None handling, optional fields, and missing keys as contract design, not cleanup for callers to guess
  • Preserve exception context; do not catch broadly and discard the original failure without adding useful domain context
  • Use context managers for files, locks, subprocess pipes, and other resources with lifetime rules
  • Be explicit about text vs. bytes boundaries, timezone-aware vs. naive datetimes, and sync vs. async call paths
  • Do not block the event loop with synchronous I/O in async code
  • Do not mix sync and async APIs inside one path without a clear boundary

Second tier - prevents mistakes

  • Prefer small functions and plain data flow before introducing classes
  • Use classes when they model stateful domain objects or a stable behavior boundary, not just to group helpers
  • Prefer pathlib.Path over stringly typed path manipulation
  • Prefer dataclass, TypedDict, Protocol, Enum, and other standard library types when they make contracts clearer
  • Use comprehensions and built-ins when they make intent clearer; avoid dense one-liners that hide control flow
  • Avoid boolean flag parameters when separate functions or a small config type would make behavior clearer
  • Keep warnings, lint findings, and type-checker regressions at zero in repo-owned code

Typing and interfaces

  • Add type hints to public functions, methods, and non-trivial internal seams where they clarify real contracts
  • Prefer concrete types at boundaries and protocols for substitution seams rather than broad Any
  • Use Any only when the repo truly needs a dynamic escape hatch and the cost is explicit
  • Prefer modern union syntax and type narrowing over comments or sentinel-heavy calling conventions
  • Public APIs should make invalid states hard to represent and expensive work visible to callers
  • If a function takes more than 2-3 meaningful parameters, prefer a named type, config object, or split responsibility
  • Make mutation visible in names and interfaces; hidden in-place updates are a design smell
  • Use strict type checking where the repo supports it; if the codebase is not yet strict, tighten changed modules instead of broadening exemptions

Tests and verification

  • Prefer pytest-style tests with clear arrange-act-assert flow
  • Use fixtures for reusable setup and teardown, not for hiding the meaning of a test
  • Use parameterized tests when the same contract should hold across multiple inputs
  • Mock external boundaries, not the internal behavior you are trying to prove
  • Add integration coverage when the change crosses package, transport, persistence, or subprocess boundaries
  • Coverage is a signal, not a goal; prioritize meaningful path coverage over percentage chasing

Data and state discipline

  • Keep validation, serialization, persistence, and business rules separated enough that each can be tested directly
  • Be suspicious of dict-shaped data flowing through many layers without a named contract
  • Prefer immutable or append-only data flow where shared mutation would make behavior harder to reason about
  • Cache only when measurement or repeated cost justifies it; make cache scope and invalidation rules explicit
  • Treat environment-variable reads, current working directory assumptions, and process-global configuration as boundary concerns
  • Validate external input at the boundary instead of letting malformed data fail deep in the call graph

Modules, structure, and packaging

  • Prefer narrow modules with clear import direction over utility grab bags
  • Avoid circular imports by moving shared contracts to a lower layer instead of using late imports as a default escape hatch
  • Keep CLI, transport, persistence, and domain logic separated enough to test each piece in isolation
  • Prefer shallow directory structures unless there is a real sub-domain split
  • Expose public package APIs deliberately; do not leak internal helpers, framework types, or persistence models as public contracts by accident
  • Packaging-specific guidance that would otherwise bloat this file lives in references/python-packaging-and-layout.md

Architecture and anti-patterns

  • Prefer composition over inheritance unless inheritance matches the real domain model
  • Wait for repeated pressure before extracting abstractions; avoid clever registries, factories, or framework indirection that do not buy real clarity
  • Keep I/O and business logic separated enough that core logic can be tested without transport or database setup
  • Do not duplicate retry, timeout, or fallback behavior at multiple layers
  • Do not hard-code secrets, production hosts, or environment-specific settings
  • Do not swallow exceptions, ignore partial failures silently, or hide destructive side effects behind benign names

Concurrency, observability, and resilience

  • Keep sync and async entrypoints separate unless the repo already has a clear bridging pattern
  • In async code, await real work promptly; do not create background tasks casually without ownership, cancellation, and error propagation rules
  • Protect invariants, not individual fields, when threads or async tasks share mutable state
  • Service-boundary concerns become first-class only when the task actually crosses a real external boundary such as HTTP, queues, subprocesses, or persistent workers
  • Service-boundary observability and resilience guidance lives in references/python-service-boundaries.md

Decision Heuristics

Use these when the right choice is not obvious:

  • Scope check: if a change touches more than 3 modules or public entrypoints, stop and plan before continuing; the change is bigger than it looks.
  • State visibility: if mutation or side effects are hard to see from the function signature, redesign the interface or add a one-line contract comment.
  • Typing pressure: if Any, untyped dicts, or loose tuples start spreading, introduce a clearer type boundary before adding more code.
  • Async boundary: if a change crosses sync and async code, name the boundary explicitly and keep adaptation local.
  • Packaging pressure: if the change affects imports, entrypoints, package layout, or published metadata, treat that as a compatibility boundary rather than a refactor detail.
  • I/O boundary pressure: if an external boundary can fail, time out, retry, or degrade, make the ownership and diagnostics explicit; local helper code usually does not need the same instrumentation.
  • Repo conventions: if the repo has established formatter, linter, typing, or framework conventions, follow them unless they create a correctness or maintainability problem.
  • Narrowness vs. quality: implement the narrowest change that solves the problem. When narrowness conflicts with correctness or clarity, prefer correctness. When it conflicts with style alone, prefer narrowness unless the task is explicitly a cleanup.
  • Refactor boundary: outside explicit refactor work, fix at most one small adjacent issue while you are in the file.
  • Abstraction threshold: three similar code blocks or repeated data-shaping pain is a pattern; before extracting, check whether a helper function, named type, or boundary cleanup is the simpler move.
  • Performance rule: optimize only after measurement, except for obvious algorithmic, allocation, or I/O mistakes on hot paths.
  • Framework pressure: if a framework convenience hides control flow, data ownership, or test seams, prefer the plainer construct.
  • Language-fit check: if the problem is mostly shell orchestration, keep it in shell; if the problem needs rich data shaping, type-safe contracts, or non-trivial retry and observability logic, prefer Python over stretching shell too far.

Validation

A change is done when:

  • the code passes the repo's formatter or format-check
  • lint and static analysis report no new findings
  • type checking reports no new regressions where the repo uses type checking
  • existing tests pass
  • new or changed behavior has test coverage, or the lack of coverage is called out with a concrete reason
  • changed CLI, import, or service entrypoints have a narrow smoke path
  • packaging metadata and import paths are verified when the change affects a distributable library or CLI
  • review findings at Critical and Important severity are addressed

Examples

  • Refactor this Python service module without breaking its typed public API
  • Review this async Python worker for retry, timeout, and test gaps

平台分布

Codex

36.13%
按下载量换算26

Claude

32.12%
按下载量换算23

Cursor

17.05%
按下载量换算12

Gemini CLI

10.33%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/n-n-code/n-n-code-skills --skill coding-guidance-python 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills