← Back to Pull requests

Add coding agent plugin with skills-first architecture #71

Closed
unknown closed this pull request without merging on May 30, 2026 05:50 UTC
View on GitHub
unknown unknown commented on May 12, 2026 21:02 UTC
Author

Summary

  • Add Claude Code and Codex CLI plugin support for training_hub

  • Skills-based architecture: 3 automation skills coexisting with the pre-existing training-hub-guide domain skill

  • Automation skills are thin wrappers — domain knowledge (algorithm selection, hyperparameters, OOM troubleshooting) lives in the pre-existing .claude/skills/training-hub-guide/

  • Bash scripts for environment/GPU detection, training execution, and memory estimation

  • Smart defaults offer LoRA config fast-path for quick setup

  • Passes claude plugin validate cleanly
  • What's included

    Plugin manifests


  • .claude-plugin/plugin.json + marketplace.json — Claude Code discovery

  • .codex-plugin/plugin.json + INSTALL.md — Codex CLI discovery
  • New skills (in .claude/skills/, alongside pre-existing training-hub-guide)


    | Skill | Purpose |
    |-------|---------|
    | setup-guide | Detect environment, install library, configure algorithm/model/data/hyperparameters |
    | training-guide | Run training via th_train.sh, present results |
    | memory-estimation | Estimate GPU VRAM requirements via th_estimate.sh |

    Pre-existing skill (untouched)


    | Skill | Purpose |
    |-------|---------|
    | training-hub-guide | Deep domain knowledge: algorithm selection, hyperparameter guide, backend kwargs, installation troubleshooting |

    Scripts (in scripts/)


    | Script | Purpose |
    |--------|---------|
    | _env.sh | Resolve Python from virtual environment |
    | th_detect.sh | Detect library, installer, config, GPU status |
    | th_train.sh | Execute training via Python library |
    | th_estimate.sh | Run memory estimation |

    Documentation updates


  • docs/README.md — plugin installation for both agents, skill table
  • Architecture

  • Plugin automation skills defer domain knowledge to the pre-existing training-hub-guide skill — no duplication

  • Both manifests point to ./.claude/skills so Codex users also get the full training guide with reference docs

  • Setup detects GPU count and offers LoRA defaults as a fast path

  • Config stored at .training-hub/config.json (gitignored)
  • Install

    /plugin marketplace add Red-Hat-AI-Innovation-Team/plugins
    /plugin install training-hub@Red-Hat-AI-Innovation-Team/plugins
    

    Test plan

  • Install plugin via marketplace in Claude Code

  • Install plugin via marketplace in Codex CLI

  • Verify setup-guide skill auto-triggers on first use

  • Verify training-hub-guide skill is discoverable by both agents

  • Run /training-hub:training-guide with a saved config

  • Run /training-hub:memory-estimation to estimate VRAM

  • Run claude plugin validate . — should pass clean
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    training-hub is now available as a plugin for Claude Code and Codex, enabling guided LLM training workflows through AI-assisted skills
    Added three new skills: setup-guide (configuration), training-guide (execution), and memory-estimation (GPU VRAM planning)

    Documentation
    Added installation instructions for Claude Code and Codex plugin integration
    Updated main documentation with plugin setup and usage guidance

    <!-- review_stack_entry_start -->

    ![Review Change Stack](https://app.coderabbit.ai/change-stack/Red-Hat-AI-Innovation-Team/training_hub/pull/71?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

    <!-- review_stack_entry_end -->

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 463 lines (+347 / -116) across 5 files Reviewer: RobotSail Review duration: 25008m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.51) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.51 · 463 lines diff across 5 files
    0.51
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.367
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #71"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.6% (MEDIUM) · Higher = larger blast radius
    50.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.0% · Safe to merge
    20.0%