Skip to content

Releases

Release v1.2.1

Choose a tag to compare

@larchanka larchanka released this 14 Nov 02:03

This release integrates the core principles of thermonuclear code quality audits and radical structural simplification directly into code-review, refactoring, and test-driven-development.


🚀 Highlights & Architectural Upgrades

1. code-review (v1.1.0 → v1.2.0)

  • "Code Judo" Structural Simplification Lens: Reviews now actively evaluate whether a change deletes complexity rather than merely rearranging it. Refactorings that merely shuffle lines into helper functions or introduce thin wrappers are flagged.
  • 1,000-Line File-Growth Boundary: Established a hard quality smell when a PR pushes a target file from under 1k lines to over 1k lines. Requires decomposition prior to or alongside the change.
  • Anti-Spaghetti & Ad-Hoc Branching Gate: Flags ad-hoc boolean flags, one-off modes, and special-case if statements bolted onto existing shared workflows ("weird if statements in random places").
  • Presumptive Blockers: Explicitly codifies conditions that presumptively block PR approval (file-size sprawl, missed radical simplification, canonical helper duplication, leaky layer boundaries).
  • Dual Review Modes: Standard review (continuous improvement baseline) vs. Deep Quality Audit / Thermo-Nuclear mode (zero tolerance for incidental complexity).

2. refactoring (v1.0.0 → v1.1.0)

  • Fourth Quality Gate (simplification-gate): Added to complement risk-gate (CRAP < 10), clone-check (duplication < 80%), and mutant-gate. Enforces net conceptual reduction over incidental complexity.
  • Ban on Thin Wrappers & Identity Abstractions: Prohibits pass-through layers, trivial adapters, and wrappers that add indirection without buying clarity or domain boundary protection.
  • Canonical Reuse Discipline: Enforces reusing existing project utilities rather than introducing bespoke, near-duplicate helpers.
  • State Model Simplification: Encourages reframing data and state models to eliminate branching altogether rather than distributing if/else checks across helper functions.

3. test-driven-development (v1.1.0 → v1.2.0)

  • Anti-Pattern: Green-Phase Accretion (Conditional Spaghetti): Identifies the anti-pattern of turning tests green by accumulating ad-hoc conditionals, flags, and special cases in existing paths without refactoring them.
  • Scaffolding Cleanup Rule: Minimal code written during the Green phase is treated as temporary scaffolding that must be eliminated or promoted to first-class domain concepts before starting the next Red cycle.
  • File Growth Ceiling in Slicing: Prevents vertical test slices from causing God-class file bloat across iterations.

📦 Changed Files

  • code-review/SKILL.md & code-review/README.md
  • refactoring/SKILL.md & refactoring/README.md
  • test-driven-development/SKILL.md & test-driven-development/README.md
  • README.md

Release v1.2.0

Choose a tag to compare

@larchanka larchanka released this 05 Nov 11:16

🚀 New Features

New Skill: email-triage

An autonomous multi-agent email triage skill powered by a dedicated Python wrapper suite around the Google Workspace CLI (gog gmail).

  • Multi-Agent Thread Delegation:
    • The orchestrator scans the inbox and delegates each email thread to an isolated Thread Triage Agent subagent, preventing context bloat and eliminating cross-thread contamination.
    • Subagents categorize threads into SPAM, REGULAR, or NEEDS_ATTENTION, perform the corresponding action, and return a standardized structured report (Summary, Performed Action, Proposed Next Action).
  • Dynamic Account Discovery & Multi-Account Triage:
    • Automatically queries Google accounts via gog auth status, gog auth alias list, and gog auth list (no hardcoded accounts or aliases).
    • Automatically prioritizes the configured default account first, then iterates across all connected Gmail accounts.
    • Supports account aliases (work_account, personal_account).
  • Human-in-the-Loop Safe Communication:
    • No Auto-Send: Inbound messages requiring a reply generate Gmail Drafts (draft_reply.py) for user review before sending.
    • Safe Deletion: Low-value/spam emails are moved to Gmail Trash (--trash) retaining a 30-day recovery safety net. Permanent deletion requires explicit --force.
    • Dry-Run Mode: Full --dry-run simulation support across all mutating scripts (apply_triage.py, draft_reply.py, manage_labels.py).
  • Curated Python Helper Script Suite (email-triage/scripts/):
    • common.py: Subprocess runner with JSON parsing, dynamic account resolver, and HTML-to-markdown text cleansing (strips CSS, tracking pixels, scripts, and legal disclaimers).
    • scan_inbox.py: Queries unread inbox threads across all accounts with normalized headers and snippets.
    • read_email.py: Parses multipart/base64 bodies, extracts headers and attachments, and outputs clean readable plain text.
    • apply_triage.py: Executes batch thread mutations (--mark-read, --archive, --trash, --add-label, --remove-label).
    • draft_reply.py: Creates draft replies linked to original messages with auto-populated subjects and threading headers.
    • manage_labels.py: Idempotently sets up default triage labels (Triage/Action-Needed, Triage/Waiting, Triage/FYI).
  • Classification & Action Playbooks (email-triage/references/):
    • classification_rules.md: Heuristics, positive/negative signals, and examples for phishing, spam, automated alerts, and action items.
    • actions_policy.md: Standard operating procedures, draft writing guidelines, and report schemas.

🔄 Enhancements

agent-loop (v1.2.0)

  • Strict Pure Orchestration: Enforced coordinator disciplines ensuring the orchestrator thread does zero codebase inspection, searching, or direct editing, leaving all exploration and implementation strictly to subagents.
  • Enforced Workspace Skill Delegation: Coordinators must explicitly pass skill paths (SKILL.md) to subagents rather than inlining or summarizing prompt instructions.

📚 Documentation & Catalog

  • Root README.md: Added email-triage as skill #4, updated total skills count to 12, and documented features and security invariants.
  • Skill Documentation: Authored email-triage/SKILL.md (orchestration protocol, subagent prompt templates, CLI tables) and email-triage/README.md (quick start and developer CLI usage).
  • Strict Path Discipline: Standardized all documentation and references to use strictly relative paths (./scripts/..., references/...).
  • Generic Account Naming: Normalized all CLI examples and test fixtures to generic naming (work_account, personal_account).

🧪 CI & Automated Testing

  • GitHub Actions CI Workflow (.github/workflows/ci.yml):
    • Added automated test discovery step for email-triage/tests.
    • Added email-triage/ to the Python SAST Bandit security scan.
  • Test Suite:
    • Added 66 comprehensive unit tests across email-triage/tests/test_common.py and email-triage/tests/test_scripts.py (100% pass rate in <0.1s).
    • Isolated account discovery unit tests with mocks for headless CI environments where local gog binaries are not pre-installed.

Release v1.1.0

Choose a tag to compare

@larchanka larchanka released this 04 Nov 17:32

Repository State: Commit 48e9468
Total Skills: 11 skills (5 updated skills bumped to 1.1.0, new skill at 1.0.0)

1. New Skill: refactoring (v1.0.0)

  • The "Then Make it Right" Core Rule: Pin current behavior $\to$ Restructure code $\to$ Prove behavior did not change (all tests remain green).
  • The Three Polyglot Quality Gates:
    1. risk-gate: Enforce function $\text{CRAP} &lt; 10$ ($\text{CRAP} = \text{CC}^2 \times (1 - \text{cov})^3 + \text{CC}$).
    2. clone-check: Eliminate structural duplication ranking $\ge 0.8$ ($\ge 80%$).
    3. mutant-gate: Mutation testing — Cover the uncovered, kill the survivors, delete dead code.
  • Native Tooling Matrix: Polyglot commands for TypeScript/JavaScript (eslint, jscpd, stryker), Go (gocyclo, go-mutesting), Rust (clippy, cargo mutants), Python (radon, mutmut), and Java (pitest).
  • Architectural Disciplines: Domain modeling (illegal states unrepresentable), boundary discipline (parse at edges, pure functions inside), type system discipline, idempotency, and shared-state serialization.

2. Upgraded Skills (Bumped 1.0.0 $\to$ 1.1.0)

agent-loop (v1.1.0)

  • Overarching Protocol: Enforces 1. First Make it Work $\to$ 2. Then Make it Right $\to$ 3. Follow Practice.
  • Two-Step Development Phase: Split into Step 2a: Implement (test-driven-development) and Step 2b: Perfect (refactoring).
  • Attack the Premise Protocol: When two fixes sharing a premise fail the same quality gate, pause, write the premise in one sentence, count actors holding the imbalance, remove the assignment, and diagnose before retrying.
  • Practice Rules: Maintain and report an execution log; guard the context window by keeping the main coordinator thread lean.

test-driven-development (v1.1.0)

  • Laziness Protocol: One decision lives in one place; ship the smallest edit that solves the problem.
  • Subtract Before You Add: Strip complexity out before adding new code.
  • Fixing Root Causes: Reproduce bugs with a test first; fix the underlying cause; strictly prohibit defensive guards that merely mask crashes.
  • Behavior Test Litmus Test: "If the test would still pass when every function returned nothing, throw it out."
  • Handoff: Directly hands off to refactoring once tests are green.

planning-and-task-breakdown (v1.1.0)

  • Foundational Thinking: Get the data shape right before writing logic; do first whatever helps later phases; do not share state if concurrent writers matter.
  • Redesign From First Principles: Do not bolt new requirements onto old design; ask what you'd build from scratch and deliver in pieces.
  • Build the Lever: If work is not obvious at a glance, build the tool that does it (do one unit by hand, make the tool match).
  • Outcome-Oriented Execution: Sequence work into verifiable units; aim at checkable end states; allow only planned, undoable breaks.

code-review (v1.1.0)

  • Expanded Axis 3 (Architecture): Added formal checks for domain modeling, boundary parsing, pure functions, compiler/linter suppression bans, idempotency, and single-writer concurrency.
  • Automated Quality Gates Checklist: Review checklist now explicitly audits for risk-gate ($\text{CRAP} &lt; 10$), clone-check ($&lt; 0.8$), and mutant-gate (0 surviving mutants).

pull-request (v1.1.0)

  • Worktree Cleanup: Proactive cleanup step to identify safe files to remove, reclaim disk, and pause uncommitted work for explicit decisions.
  • Commit Discipline: Commit often in small ordered units stating why, what changed, and how it was proved. Push to main line at the end.

Release v1.0.0

Choose a tag to compare

@larchanka larchanka released this 04 Nov 17:31

Repository State: Commit 53f1685
Total Skills: 10 skills (all version 1.0.0)

Included Features:

  • agent-loop (v1.0.0): 4-agent coordinator (planning $\to$ development $\to$ review $\to$ publisher). The development subagent was responsible for simple Red-Green TDD implementation, while code review handled auditing.
  • test-driven-development (v1.0.0): Core Red $\to$ Green loop reference. Defined public seams, anti-patterns (implementation-coupled, tautological), and vertical slicing. Explicitly excluded refactoring from the developer's loop (deferred it to review).
  • code-review (v1.0.0): 5-axis review framework (Correctness, Readability, Architecture, Security, Performance). Change sizing guidelines (~100–300 lines), dead code hygiene, and multi-model review pattern.
  • planning-and-task-breakdown (v1.0.0): Plan mode guidelines, vertical slicing, and task decomposition (description, acceptance criteria, verification, dependencies).
  • pull-request (v1.0.0): Branch creation, Conventional Commits formatting (commit-message-instructions.md), and GitHub PR opening via gh pr create.
  • Utility & Project Skills: codebase-context-generator, manual-automation, project-change-intelligence, slack-cli, yt-random-comment-picker.

Identified Gaps in v1.0.0:

  • No dedicated skill guiding the developer through code refactoring, complexity limits, or deduplication.
  • No concrete, automated quality gates for code complexity (CRAP), structural duplication (DRY), or test assertion efficacy (mutation testing).
  • No failure-recovery protocol for the review loop when fixes repeatedly fail quality gates.
  • No explicit worktree cleanup step prior to staging and PR generation.