ruff-style
Ruff rule corpus and enforcement reference for Python code style. DRAFT — under construction.
- License 许可
- BSD-3-Clause
- 所属仓库
- kalaverin/skills
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- ruff-style
- draft
- true
- description
- Ruff rule corpus and enforcement reference for Python code style. DRAFT — under construction.
02 资源文件 35
- 参考文档README.md5.0 KB
- 参考文档references/01_async.md8.8 KB
- 参考文档references/02_classes.md20.5 KB
- 参考文档references/03_collections.md6.8 KB
- 参考文档references/04_common.md19.8 KB
- 参考文档references/05_comparisons.md5.3 KB
- 参考文档references/06_comprehensions.md7.1 KB
- 参考文档references/07_datetime.md4.2 KB
- 参考文档references/08_docstrings.md27.5 KB
- 参考文档references/09_exceptions.md17.3 KB
- 参考文档references/10_flow.md12.0 KB
- 参考文档references/11_functions.md5.4 KB
- 参考文档references/12_generics.md6.9 KB
- 参考文档references/13_hygiene.md6.1 KB
- 参考文档references/14_imports.md6.9 KB
- 参考文档references/15_iterators.md20.5 KB
- 参考文档references/16_lint-suppression.md5.8 KB
- 参考文档references/17_logging.md7.2 KB
- 参考文档references/18_mutable-defaults.md4.5 KB
- 参考文档references/19_naming.md6.5 KB
- 参考文档references/20_numbers.md3.3 KB
- 参考文档references/21_pathlib.md13.9 KB
- 参考文档references/22_pytest.md11.4 KB
- 参考文档references/23_resources.md4.2 KB
- 参考文档references/24_scope.md6.5 KB
- 参考文档references/25_simplification.md15.4 KB
- 参考文档references/26_string-formatting.md9.0 KB
- 参考文档references/27_strings.md6.9 KB
- 参考文档references/28_typing.md20.3 KB
- 参考文档references/security/01_content.md7.6 KB
- 参考文档references/security/02_crypto.md3.9 KB
- 参考文档references/security/03_injection.md5.1 KB
- 参考文档references/security/04_network.md8.5 KB
- 参考文档references/security/05_runtime.md6.6 KB
- 脚本scripts/ruff_rules_dump.py21.2 KB
03 SKILL.md 正文
SKILL: Ruff Style
DRAFT. The ruff rule corpus lives in
references/(28 top-level themes +references/security/5 themes).
04 同仓库更多 Skills
todo-protocol
Mandatory protocol for using the SetTodoList tool. Governs when to create a todo list, how to update it without violating immutability rules, how to synchronize item status after every tool call, and the forbidden mutations. Always active.
subagents-protocol
Mandatory protocol for delegating work to built-in subagents (coder, explore, plan), also called our bots by users. Always active. Owns the context-hygiene delegation test (material vs answer, cost balance, warm-instance reuse), launch parameters (mandatory explicit `model`), the single-source model-selection table, answer budgets, degradation handling, the launch checklist, and the role library for delegated review/audit with intent routing (`references/roles.md`).
serena-protocol
MANDATORY skill for Serena (MCP) memory, knowledge base, and symbolic code exploration operations. Use whenever the agent needs to: read or write Serena memories, mutate or persist memory, explore code via symbolic MCP tools, resolve contradictions in stored knowledge, or follow memory metadata, naming, and routing conventions.
read-for-comments
Mandatory local standards library and archive. Before fetching any standard from the internet, the agent MUST check the Serena `standard/` archive and this skill's `references/` seed; after ANY standard-body download, the agent MUST archive it per the event-bound Archival Rule. Governs standard lookup, fetch, archival, and the family and full-body rules.
python-lang
MANDATORY skill for Python code. Use when writing, editing, refactoring, or reviewing Python files, modules, packages, classes, functions, type annotations, imports, exceptions, comprehensions, decorators, or docstrings. Enforces Google Python Style Guide and a mandatory, unconditional Ruff format+check pipeline scoped strictly to the agent's own changes.
preflight-checklist
Mandatory session-initialization closer and Startup Gate audit. Always loaded. Runs EXACTLY ONCE at session start, after all skill loading completes: verifies Startup Gate completion with evidence (mirror sync, forced import, discovery, activation, memory priming, MCP declaration, think block), runs dynamic session checks derived from the active skill set (mode states, delegation readiness), and reports a compact evidence-backed verdict table to the user before the first task output. Any FAIL is fixed before proceeding.