lean-code
Apply on-demand minimalism to select the smallest complete, verified code change without weakening safety, accessibility, or required behaviour.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- lean-code
- license
- MIT
- version
- 0.1.0
- metadata
- { "hermes_config_kit": { "adapter": "hermes-agent-config-kit", "conversion": "adapted", "source_path": "skills/lean-code/SKILL.md", "source_repo": "AnastasiyaW/claude-code-config" } }
- description
- Apply on-demand minimalism to select the smallest complete, verified code change without weakening safety, accessibility, or required behaviour.
03 SKILL.md 正文
Lean Code
Source: AnastasiyaW/claude-code-config/skills/lean-code/SKILL.md.
This module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.
Lean Code
Use this module on demand when an implementation risks unnecessary abstraction,
boilerplate, dependencies, or speculative scope. It complements the always-on
code-quality baseline: code-quality defines the normal correctness and safety
standard, while this module intensifies the search for the smallest complete solution.
It is not a general defect-finding or merge-approval procedure.
Minimalism protocol
- Confirm the required behaviour. Read the task, surrounding code, public contract, and relevant constraints before removing anything. Minimal means less unnecessary surface area, not fewer required branches or outcomes.
- Choose the smallest adequate building block. Prefer an existing project capability, standard library feature, native platform feature, or established dependency before adding a new abstraction or package. Stop when one option fully satisfies the actual requirement.
- Remove speculative structure. Avoid a framework, configuration layer, factory, wrapper, or extension point that has no current use. Keep names and control flow direct enough that the next maintainer can verify the intent.
- Protect load-bearing work. Do not simplify away input validation at trust boundaries, error handling that prevents data loss, security controls, accessibility, required compatibility, calibration for real systems, or behaviour the operator explicitly requested. Lean is not incomplete.
- Mark a deliberate ceiling. Where a small solution has a known future limit,
record a nearby
simplification:note with the observed ceiling and a concrete upgrade path. Do not invent a threshold as runtime policy. - Verify the result. Non-trivial logic needs the smallest runnable check that could expose a regression. Inspect the diff and use the normal project verification path; minimalism never authorises skipped testing or unreviewed shortcuts.
Intensity
- Lite: implement the requested solution and briefly identify a simpler viable alternative for the operator to consider.
- Full (default): apply the protocol and prefer the shortest maintainable complete diff.
- Ultra: challenge optional scope explicitly, but still implement every accepted requirement and preserve all load-bearing safeguards.
Output
Present the code or proposed diff first. Then state the complexity avoided, any
intentional simplification and its upgrade path, why required behaviour remains
complete, and the verification evidence. For routine quality or broader review, use
the Hermes-native code-quality module.
04 同仓库更多 Skills
owner-voice
暂无简介
humanize-russian
Редактировать русский текст для ясности и естественного звучания, сохраняя факты, термины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст живее, отредактировать русский черновик или статью перед публикацией. Не определяет авторство и не обещает обход детекторов. Для английского — humanize-english; для структуры и доказательств — article-structure-review.
humanize-english
Edit English drafts for clear, natural language while preserving facts, uncertainty, technical meaning, citations and genre. Use when: humanize this text, remove AI-style filler, improve English prose, or edit an English article before publication. Not an authorship detector or a promise to bypass one. For Russian use humanize-russian; for thesis/evidence and structure use article-structure-review.
caveman
Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse "caveman" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman", "talk like caveman", "use caveman", "less tokens", "be brief", or Russian "пещерный режим", "говори как пещерный", "кратко", "меньше токенов", "экономь токены" — or invokes /caveman. Preserves the user's language (Russian in → Russian caveman out). Off only: "stop caveman" / "normal mode" / "обычный режим". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.
article-structure-review
Проверить структуру технической статьи после черновика: задача читателя, жанр, опора значимых утверждений на доказательства и честные ограничения. Use after the first draft, before publication. Исправлять структуру, когда это входит в запрос; не создавать обязательный конвейер из других навыков. Для локальной языковой редактуры — humanize-english или humanize-russian.
video-post-production
Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames/scenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.