no-code-comments
Apply the repository's strict no-code-comments policy and use the approved explanation channels.
- License 许可
- MIT
- 最近更新
- 2026-10-25
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- no-code-comments
- description
- Apply the repository's strict no-code-comments policy and use the approved explanation channels.
03 SKILL.md 正文
No-code-comments policy
Do not add explanatory comments to tracked source, test, script, build, CI, hook, or configuration files. This includes line comments, block comments, documentation comments, section markers, MARK: labels, shellcheck annotations, and inline comments.
Use the appropriate durable channel instead:
- Document how behavior should work in the relevant OpenSpec specification or change delta.
- Document how an implementation should be built and why that approach was chosen in the active OpenSpec change's
proposal.mdanddesign.md. - Explain why a change is needed in the pull-request description.
- Record change history in commit titles and messages.
- Explain how to use a feature in the user-facing documentation site or an agent skill.
- If code is confusing, simplify and clarify it first. If the remaining rationale is important, put it in the pull-request description.
- Explain the purpose of a package in the nearest
README.mdor the relevant feature map.
Markdown files, pull-request prose, and commit messages are allowed to contain prose. Executable shebangs and the first-line // swift-tools-version: ... directive in Package.swift are machine directives and remain allowed.
Comment-like text inside strings, URLs, raw or multiline strings, embedded scripts, heredocs, generated values, and CSS colors is data rather than a code comment.
Local validation
Run the repository-wide check from the repository root:
make no-code-comments
The checker scans all tracked files in the candidate tree and reports each violation as path:line:column. It is intentionally separate from Swift format and SwiftLint.
Migration guidance
When removing existing comments, preserve behavior and leave comment-like text inside strings, URLs, raw or multiline strings, embedded scripts, heredocs, generated values, and CSS colors unchanged. Keep executable shebangs and the first-line SwiftPM tools-version directive. Run the focused tests, then make no-code-comments, before review.
04 同仓库更多 Skills
workflow
Development workflow for this repo: plan → test → implement → human review → repeat. Load when starting any feature, bug fix, or refactor.
usernotifications-documentation
UserNotifications official doc index — load when building notification features, requesting authorization, scheduling local notifications, handling notification actions, or any UserNotifications framework behavior.
swiftui-macos-form-alignment
SwiftUI macOS Form layout: alignment override bug, background control, and VStack-based alternative. Load when debugging alignment issues inside Form rows, or when row controls (toggles, text fields, pickers) are visually misaligned with their labels on macOS.
swiftui-documentation
SwiftUI official doc index — load when building SwiftUI views, modifiers, state management, data flow, AppKit bridging, or any SwiftUI behavior.
swifterm-documentation
SwiftTerm official doc index — load when building SwiftTerm features, terminal emulation, terminal views, process lifecycle, delegate callbacks, GPU rendering, pseudo-terminals, or any SwiftTerm-specific behavior. Any project that uses or interacts with SwiftTerm should load this skill.
sqlite-documentation
SQLite official doc index — load when working with SQLite, the C/C++ API, import SQLite3, prepared statements, binding, query execution, result codes, or any SQLite-specific behavior. Any project that uses or interacts with SQLite should load this skill.