用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/drmoisan/drm-copilot --skill self-explanatory-code-commenting命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Admit one new item into a running parallel run — preparation via a preparation-mode child orchestrator run, conflict-edge computation against all items including in-flight ones, and the admission decision that either places the item in the current cohort or defers it and recolors the unstarted subgraph. Appends exactly one mutations[] entry. In-flight items are never moved.
Execute a prepared parallel run for the parallel-orchestrator agent — cohort scheduling under a max_concurrency cap, per-item fan-out onto isolated worktrees branched from origin/main, per-item merge to main after durably confirming CI green, worktree cleanup, and the generated parallel-status.md projection. There is no integration branch and no final integration pull request.
Prepare a set of thematically unrelated items for concurrent execution before any execution begins - item intake over issue numbers and potential-entry paths, concurrent preparation-mode child orchestrator delegations, blast-radius computation and V1-V3 validation, cohort seeding with a recomputation-parity check, run-manifest and planner-checkpoint authoring, and the parallel-orchestrator kickoff artifact.
基于 SOC 职业分类
正在显示 SKILL.md
| name | self-explanatory-code-commenting |
| paths | ["**/*.py"] |
| description | Intent-first docstring and commenting standards. |
This rule file summarizes the code commenting and docstring requirements for Python code in this repository.
Write code that is readable, but assume the maintainer may not know the intent. Docstrings are mandatory for classes and functions. Inline comments explain intent, flow, and decision logic — especially around iteration and branching. Avoid low-value comments that merely narrate the obvious.
Every class must have a docstring covering, at minimum:
Preferred docstring style: Google-style with Args:, Returns:, Raises:, and Attributes: sections where applicable.
Every function and method (including private helpers) must have a docstring that includes:
None for procedures).Keep docstrings accurate and contract-oriented. If behavior changes, docstrings must be updated. If a method is a thin wrapper, say so explicitly and explain why the wrapper exists.
Every for loop, while loop, and non-trivial list/dict/set comprehension must have an intent comment immediately above it explaining what the loop accomplishes and why.
For any conditional branching beyond a trivial guard clause, add a comment that explains:
This applies to if/elif/else chains and match/case statements. For match/case, include a short "routing table" explanation of what each case handle.
When a sequence of tactical lines collectively accomplishes a larger goal, precede the block with a meta-what + why comment that describes the overall purpose of the block and the rationale for its approach.
If the block is substantial, strongly prefer extracting it into a helper method with its own docstring.
In code comments and docstrings, do not use fragile numbered notes like:
NOTE 1: ...NOTE 2: ...Prefer comments without tags for general explanations. But if a tag is necessary (e.g. follow-up is needed), use unnumbered tags instead:
TODO: ...WARNING: ...PERF: ...SECURITY: ...Example of prohibited narration: # increment counter above count += 1
Example of allowed meta-what: # Walk all changed files and collect those that exceed the size limit for the report above a filtering loop.
Before finalizing code:
NOTE 1:, NOTE 2:) appear in comments or docstrings.