BUNDLE Security scanned2 skills

    Clean Coding 101

    Master the Complete Two-Pass Code Excellence Pipeline

    Clean Coding 101 combines structural architectural refactoring with rigorous LLM token hygiene. It equips your AI coding assistant (Cursor, Claude Code, Antigravity, GitHub Copilot) with the dual disciplines required to transform brittle, convoluted codebases into clean, fast, and token-efficient software.


    What Workflow Does It Enable?

    Clean Coding 101 enables a coordinated Two-Pass Quality Pipeline:

    1. Pass 1 — Structural & Algorithmic Refactoring (Craftsman):

      • Inverts deep conditional pyramids (if/else ladders) into clean guard clauses with early exits.
      • Eradicates hidden $O(n^2)$ bottlenecks by converting nested loop scans into $O(1)$ pre-computed hash maps.
      • Decomposes unreadable declarative method chains into clear, named, strongly typed execution stages.
      • Guarantees 100% behavioral invariance: Zero regressions, zero changes to error types or return values.
    2. Pass 2 — Token Conservation & Context Hygiene (Clean Comments):

      • Eliminates redundant inline narrative noise (// 1. Users, // increment i, // check status) that wastes 20–35% of file context on every read.
      • Automatically migrates public interface contracts to standardized JSDoc/TSDoc specifications.
      • Preserves rare, high-value non-obvious "Why" comments while stripping misleading dead commentary.

    What Problem Does It Solve That Individual Skills Don't?

    Running structural refactoring alone leaves stale, misleading inline comments scattered across your files, continuing to burn precious context tokens on every subsequent AI cycle.

    Conversely, cleaning comments without fixing underlying code structure leaves deeply nested branching, cognitive bloat, and algorithmic bottlenecks intact.

    Clean Coding 101 unifies both layers:

    • Code Clarity for Humans: Linear, readable, guard-clause-driven architecture.
    • Context Efficiency for AI: Zero token waste, higher LLM attention fidelity, and crystal-clear API contracts.

    Who Is It For?

    • Agent-First Developers & Teams: Teams using Cursor, Claude Code, Antigravity, or Copilot who want to stop burning context tokens on comment fluff and unreadable nesting.
    • Tech Leads & Code Reviewers: Anyone modernizing legacy repositories into maintainable, production-ready code with guaranteed behavioral invariance.
    • Open-Source Maintainers: Projects looking to enforce clean-code standards, high-performance algorithms, and professional API documentation.

    What's Included in the Bundle?

    • 2 Production-Grade Skills: craftsman + clean-comments with standardized SKILL.md triggers.
    • 2 Zero-Dependency Python Toolkits:
      • analyze_complexity.py: AST & indentation scanner mapping nesting pyramids, function bloat, and Big-O hotspots.
      • find_inline_comments.py: Lexical state-machine scanner that isolates // comments without false positives on URLs or strings, estimating token waste and supporting in-place --strip.
    • Comprehensive Examples & Walkthroughs: TypeScript before/after progressions and standardized audit reporting templates.

    Works with any agent that signs in to Agensi, such as Claude, ChatGPT, Claude Code, Cursor and Codex CLI.

    Evgenii Zinner
    Created by
    Evgenii Zinner
    $10.10$18
    Save 44% · $7.90

    One payment, lifetime access. 2 skills unlock instantly in your library.

    Money-back guarantee

    Instant unlock in your library

    Free updates from the creator

    What's included

    2 skills

    See it in action

    Clean Comments: Token Conservation

    Clean Comments: Token Conservation

    Example session with this skill installed

    Audit src/services/billing.ts, remove useless inline comments to conserve LLM tokens, and add JSDocs for exported functions while preserving exact behavior.

    • Read your context and instructions
    • Compiled the clean comments

    Summary of Comment Cleanup

    • Target: src/services/billing.ts
    • Audit Findings: 14 inline // comments identified wasting ~68 LLM tokens per file read.
    • Actions Taken:
      • Removed 12 trivial step narrators (// 1. Calculate discount, // Loop through items).
      • Removed 2 trailing comments on object property initializers.
      • Added 2 JSDoc contracts documenting edge-case behavior on exported functions.

    Token & Quality Metrics

    MetricBeforeAfterDelta
    Total Lines9478-16 lines (-17%)
    Inline Comments140-14 comments (-100%)
    Documented Contracts (JSDoc)02+2 contracts
    Est. Token Cost per Read~480 tokens~395 tokens-85 tokens saved (-17.7%)

    Verification

    • Test Suite: All unit tests pass with zero regressions.

    Scanner Verification: python3 scripts/find_inline_comments.py src/services/billing.ts reported 0 unwanted comments.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads these skills and uses them on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every skill in this bundle goes through our trust checks.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently asked questions

    Yes — every skill in Clean Coding 101 is also sold on its own product page. The bundle just packages them together at a discount (save 44% vs buying each one separately).

    Yes. When you own the bundle your connected agent can load the latest version of any included skill. Updates the creator publishes after your purchase are included at no extra cost.

    All skills in this bundle use the open SKILL.md standard and work with Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Windsurf. The compatibility list on this page is computed from the included skills.

    The bundle price is set 44% below the combined retail price of the 2 paid skills included. You pay once and unlock every skill in your library instantly.

    Bundles are covered by the same money-back guarantee as individual skills. Doesn't do what its page promises? You get your money back.

    Craftsman first restructures the control flow—flattening nested conditional pyramids into early guard clauses and replacing quadratic scans with hash maps. Clean Comments then runs immediately after to sweep away redundant inline narrative noise and ensure all exported boundaries have clean, accurate JSDoc contracts. This creates a cohesive, 360-degree refactoring cycle.

    Never. Both skills adhere to the strict **Behavioral Invariance Protocol**. Every refactoring must pass your project's test suite, maintaining 100% equivalence in return values, exception types, and side-effect sequencing.

    In agentic pair-programming, your AI reads code files dozens or hundreds of times per session. Trivial inline comments (`// fetch user`, `// return result`) typically inflate token count by 20% to 35%. Stripping comment noise directly reduces recurring prompt costs and prevents context window dilution.

    No. Both `analyze_complexity.py` and `find_inline_comments.py` use Python's standard library only. They execute 100% locally on your machine with zero npm/pip installs, zero network calls, and zero data leakage.

    Craftsman and Clean Comments are language-agnostic. They natively support TypeScript, JavaScript, Python, Dart, Go, Rust, Java, C#, and C/C++.