code-complexity
Keep functions, interfaces, and modules comprehensible through information hiding, clear names, bounded responsibilities, and explicit error handling.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- code-complexity
- license
- MIT
- version
- 0.1.0
- metadata
- { "hermes_config_kit": { "adapter": "hermes-agent-config-kit", "conversion": "adapted", "source_path": "skills/development/code-complexity/SKILL.md", "source_repo": "AnastasiyaW/claude-code-config" } }
- description
- Keep functions, interfaces, and modules comprehensible through information hiding, clear names, bounded responsibilities, and explicit error handling.
02 资源文件 21
- 参考文档references/clean-code-original.md18.5 KB
- 参考文档references/clean-code/code-smells.md16.3 KB
- 参考文档references/clean-code/comments-formatting.md12.8 KB
- 参考文档references/clean-code/error-handling.md12.7 KB
- 参考文档references/clean-code/functions-and-methods.md12.7 KB
- 参考文档references/clean-code/naming-conventions.md11.3 KB
- 参考文档references/clean-code/testing-principles.md13.0 KB
- 参考文档references/pragmatic-programmer-original.md17.7 KB
- 参考文档references/pragmatic-programmer/broken-windows.md11.9 KB
- 参考文档references/pragmatic-programmer/contracts-assertions.md13.6 KB
- 参考文档references/pragmatic-programmer/dry-orthogonality.md11.3 KB
- 参考文档references/pragmatic-programmer/estimation-portfolio.md14.0 KB
- 参考文档references/pragmatic-programmer/reversibility.md14.2 KB
- 参考文档references/pragmatic-programmer/tracer-bullets.md12.2 KB
- 参考文档references/software-design-philosophy-original.md20.2 KB
- 参考文档references/software-design-philosophy/comments-as-design.md16.7 KB
- 参考文档references/software-design-philosophy/complexity-symptoms.md12.1 KB
- 参考文档references/software-design-philosophy/deep-modules.md13.7 KB
- 参考文档references/software-design-philosophy/general-vs-special.md13.6 KB
- 参考文档references/software-design-philosophy/information-hiding.md12.3 KB
- 参考文档references/software-design-philosophy/strategic-programming.md13.7 KB
03 SKILL.md 正文
Code Complexity
Source: AnastasiyaW/claude-code-config/skills/development/code-complexity/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.
Code Complexity
Use this module when writing or reviewing an existing function, class, or module that is hard to understand or expensive to change. It is a read-only analysis protocol: it does not modify code, add dependencies, or authorise a refactor.
Scope and exclusions
This module improves the comprehensibility of an existing unit: function shape, names,
interfaces, local responsibilities, information hiding, comments, errors, and tests.
Use architecture-first for system boundaries and code placement; refactoring-safely
for a named, verified transformation of an oversized unit; system-and-data-design for
capacity, storage, scaling, or distributed-system choices; and lean-code to remove
unjustified scope. It complements code-quality; it does not replace project-specific
correctness, security, or review requirements.
Read-only complexity review
- State the observed change cost and inspect the smallest relevant call sites, tests, public contract, and error paths. Record behaviour that must remain stable before proposing a simplification.
- Identify change amplification and leaked knowledge: a decision belongs to one owner; callers should not need unstated locks, formats, ordering rules, or configuration.
- Assess interface depth. Prefer a small, clear interface that hides useful behaviour; do not split a coherent unit into shallow wrappers merely to reduce line count.
- Check names, responsibilities, parameters, comments, and error handling. A name should reveal intent; a function should operate at one abstraction level; comments preserve why and constraints; failure must be explicit rather than quietly treated as success.
- Distinguish duplicated knowledge from coincidental text. Reduce coupling only where two sites must change together, and preserve independently changing behaviour.
- Propose the smallest safe change, its behavioural verification, residual risk, and the operator-confirmation point before any write-impacting refactor.
Output
Report the affected unit, concrete complexity symptoms, knowledge owner, interface and error-path evidence, minimal proposed change, verification needed, and any scope that belongs to a sibling 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.