cc-control-flow-quality

Use Code Complete rules for nesting, cyclomatic complexity, loop design, guard clauses, and Boolean simplification to review and refactor control flow. Covers deep nesting, loop exit design, index naming, and callback chains. Use for statement-level flow inside routines, not routine or class structure design; use cc-routine-and-class-design for that, and cc-refactoring-guidance for broader refactoring planning.

Last repository push
Stars
391
Forks
31
Issues / PRs
2

Installation

Review the source and dependencies with a prompt.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cc-control-flow-quality" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f6f37777ad451b5234c0c3f80245b3cbf9333f52e0d1c19b7d2c3000316dc74c. Verify the upstream source and version against https://github.com/ryanthedev/code-foundations before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

A complete, approved package is not available yet.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use Code Complete rules for nesting, cyclomatic complexity, loop design, guard clauses, and Boolean simplification to review and refactor control flow. Covers deep nesting, loop exit design, index naming, and callback chains. Use for statement-level flow inside routines, not routine or class structure design; use cc-routine-and-class-design for that, and cc-refactoring-guidance for broader refactoring planning.

0 Downloads 0 Share clicks

Introduction source: third_party · ryanthedev · 0.0.1 Reference

SkillPi interpretation

Tasks
Audits and restructures control flow using Code Complete's nesting, cyclomatic complexity, loop design, guard-clause, and boolean simplification rules. Covers deep nesting, loop exit design, index naming, and callback chains. For statement-level flow inside a routine; not for routine/class structure (use cc-routine-and-class-design) or staging a broader refactor (use cc-refactoring-guidance).
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

A verified file list is not available on Skillπ yet.

Browse files at the source ↗

Original SKILL.md

Open original ↗

Skillπ does not display the original SKILL.md on this page. View the original source ↗ The source site governs the file contents, license, and use terms.

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • 基于《代码大全》权威方法论,解决开发者日常编码中的控制流质量问题
  • 覆盖深层嵌套、圈复杂度、循环设计等核心痛点,实用性强
Trigger Precision95/100

Highlights

  • description 明确限定适用范围并排除边界,避免与其他 Skill 重叠
  • 触发词精准完整,边界清晰
Structure and Standards92/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档结构良好但缺少显式的 When to Use 使用场景说明章节

    Recommendation: 建议增加 When to Use 章节,明确列出典型使用场景和调用时机

  • 引用文件路径未验证存在性 Reported severity: Minor

    文档中引用了 ${CLAUDE_SKILL_DIR}/checklists/ 下的两个 checklist 文件,但未验证其是否存在

    Recommendation: 请确认引用的 checklist 文件已包含在 Skill 包中,或移除引用以避免用户困惑

Highlights

  • 结构清晰分层合理,含多个 BEFORE/AFTER 代码示例
  • 提供决策树和选择标准,便于用户理解执行流程
Execution Reliability88/100

Highlights

  • 方法论来源权威,提供具体可量化的阈值标准
  • 重构建议均为可逆操作,无破坏性变更风险
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

No text check results available.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

The main document is unavailable or exceeds this check’s scope; permissions are unknown.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

risk · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.