Repository navigation
Releases
Releases · larchanka/skills
Release v1.2.1
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
ifstatements 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 complementrisk-gate(CRAP < 10),clone-check(duplication < 80%), andmutant-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/elsechecks 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.mdrefactoring/SKILL.md&refactoring/README.mdtest-driven-development/SKILL.md&test-driven-development/README.mdREADME.md
Release v1.2.0
🚀 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 Agentsubagent, preventing context bloat and eliminating cross-thread contamination. - Subagents categorize threads into
SPAM,REGULAR, orNEEDS_ATTENTION, perform the corresponding action, and return a standardized structured report (Summary,Performed Action,Proposed Next Action).
- The orchestrator scans the inbox and delegates each email thread to an isolated
- Dynamic Account Discovery & Multi-Account Triage:
- Automatically queries Google accounts via
gog auth status,gog auth alias list, andgog 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).
- Automatically queries Google accounts via
- 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-runsimulation support across all mutating scripts (apply_triage.py,draft_reply.py,manage_labels.py).
- No Auto-Send: Inbound messages requiring a reply generate Gmail Drafts (
- 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: Addedemail-triageas 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) andemail-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.
- Added automated test discovery step for
- Test Suite:
- Added 66 comprehensive unit tests across
email-triage/tests/test_common.pyandemail-triage/tests/test_scripts.py(100% pass rate in <0.1s). - Isolated account discovery unit tests with mocks for headless CI environments where local
gogbinaries are not pre-installed.
- Added 66 comprehensive unit tests across
Release v1.1.0
Repository State: Commit
48e9468
Total Skills: 11 skills (5 updated skills bumped to1.1.0, new skill at1.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:
-
risk-gate: Enforce function$\text{CRAP} < 10$ ($\text{CRAP} = \text{CC}^2 \times (1 - \text{cov})^3 + \text{CC}$ ). -
clone-check: Eliminate structural duplication ranking$\ge 0.8$ ($\ge 80%$ ). -
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
refactoringonce 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} < 10$ ),clone-check($< 0.8$ ), andmutant-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
Repository State: Commit
53f1685
Total Skills: 10 skills (all version1.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 viagh 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.