readable-layout
Reports why a project is hard to read — import cycles, an ungrouped package, a god module, no tests — and names one move. Use when the task is structure, layout, layers, organise, or refactor. Do not use for adding one function.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-05
- Stars
- ★ 4
- Forks
- 5
01 前言 Front Matter
- name
- readable-layout
- description
- Reports why a project is hard to read — import cycles, an ungrouped package, a god module, no tests — and names one move. Use when the task is structure, layout, layers, organise, or refactor. Do not use for adding one function.
03 SKILL.md 正文
Look before you move anything.
Action: layout Scope: {{scope}}
It answers with findings worst-first and one next move. Do that one move. Do not restructure a second folder in the same turn.
A readable package is one folder per job, each with an __init__.py whose
docstring says what the folder is for, and imports that only point at
folders below it. Two modules that import each other share something: put
that shared thing in a third module they both import.
04 同仓库更多 Skills
write-workflow
Adds one workflow YAML that runs the unit test suite. Use when the task is CI, pipeline, or workflow. Do not use for questions or one Python function.
write-tests
Adds one AAA unittest that names the behavior. Use when adding a feature or when the user asks for tests.
write-script
Adds one small argparse script in pkg/ with if __name__. Use for CLI, argv, or a weekday-style script. Do not use for questions.
write-paths
Adds one pathlib helper for venv, home, or project paths on Windows, macOS, and Linux. Use for filesystem and platform work. Do not use for questions.
write-cli-app
One argparse GitHub PR CLI in pkg/ with urllib. Use when the task is design or develop a CLI app that talks to GitHub. Do not use for weekday scripts.
write-algorithm
Adds one named algorithm (binary search, stack, tally of edges) plus a later AAA test. Use for data structures and algorithms.