Skip to content

ttncode/unioss-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

189 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ unioss-pipeline

An Aโ†’Z, human-gated ticket pipeline for the UNIOSS team.
A GitLab ticket in โ€” an investigated, planned, coded, reviewed, tested, ship-ready change out.

version tests PHP CodeIgniter Claude Code license

A Claude Code plugin by ttncode.


Why use it

โšก Fast setup

  • Two commands to install; /unioss-doctor checks deps, containers, token, and browser.
  • Zero config on a standard UNIOSS box โ€” defaults for containers, GitLab host, project IDs, module paths, branches, and DB.
  • Every setting in one gitignored file; config.mjs scan repairs module paths that differ on your box.

๐Ÿค– Automation (Aโ†’Z)

  • Reads the GitLab ticket + linked issues, the production DB, and real module source.
  • Runs every stage for you: Investigate โ†’ Spec โ†’ Plan โ†’ Code โ†’ Review โ†’ Verify โ†’ Ship.
  • Rounds โ€” customer feedback continues on the same ticket; prior work stays frozen.
  • One command opens the staging / customer MRs with the right branch, reviewers, and options.

โœ… Quality & safety

  • Human-gated โ€” stops at 4 gates (spec, plan, review, ship). No runaway edits.
  • Review enforces the UNIOSS CI3 + PHP 8.1 clean-code + security checklist.
  • Real tests โ€” PHPUnit in Docker; UI driven in a real browser (Playwright) with screenshots.
  • Never commits or pushes a protected branch โ€” a hook blocks it, not just a rule in a doc.

Pipeline

โ•ญโ”€ UNIOSS Pipeline ยท AP#1834 ยท round-1 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                      โ”‚
โ”‚  #   Stage        Runs as            Output                          โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€     โ”‚
โ”‚  1   Investigate  subagent ยท opus    INVESTIGATION + REPORT          โ”‚
โ”‚  โ›”  GATE 0       you                clarify (only if unclear)       โ”‚
โ”‚  2   Spec         subagent ยท opus    SPEC.md                         โ”‚
โ”‚  โ›”  GATE 1       you                approve spec / edit             โ”‚
โ”‚  3   Plan         subagent ยท opus    IMPLEMENTATION_V1               โ”‚
โ”‚  โ›”  GATE 2       you                approve plan / edit             โ”‚
โ”‚  4   Code         main ยท sonnet      CHANGES.md + fast tests         โ”‚
โ”‚  5   Review       subagent ยท opus    REVIEW.md                       โ”‚
โ”‚  โ›”  GATE 3       you                fix / accept                    โ”‚
โ”‚  6   Verify       subagent ยท sonnet  TEST_RESULTS.md (DB+UI)         โ”‚
โ”‚  7   Finalize     main               branch + commit (no push/MR)    โ”‚
โ”‚                                                                      โ”‚
โ”‚  Gates stop for approval. Nothing runs until you confirm.            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Artifacts land in .walkthrough/<PREFIX>#<IID>/round-<N>/, surfaced as Ctrl+Click-able paths.

Commands

Command Use it when
/unioss-pipeline <gitlab-url> A new ticket โ€” run the full Aโ†’Z pipeline.
/unioss-feedback <gitlab-url> Customer feedback โ€” continue in a new round, not a restart.
/unioss-task <description> An ad-hoc task with no GitLab ticket.
/unioss-ship staging | customer Ship โ€” open the MR into v3-develop-tps / v3-develop.
/unioss-api-spec <endpoint|controller> API spec โ€” write the house-template spec for a new/changed endpoint.
/unioss-doctor Check deps, containers, token, browser.

Skills

Grouped by pipeline stage. Each stage skill also runs standalone (/skill-name <args>).

Stage Skill Does
Orchestrate unioss-pipeline Proceed a ticket from A to Z (6 stages + 3 gates).
Fetch unioss-gitlab-issue-context Fetch GitLab ticket + linked issues into .walkthrough/.pipeline/.
Investigate unioss-investigate Investigate ticket + linked issues
Plan unioss-plan Plan mode (exact per-file code + points).
Code unioss-implement Implement code changes
Review unioss-review Review code changes against the CI3 + PHP 8.1 + security checklist.
Verify unioss-verify DB checks + browser-driven UI verification with screenshots.
Ship unioss-ship Open an MR per touched repo (apps + submodules). Never merges.
Clarify unioss-brainstorming, unioss-writing-plans GATE-0 clarify + plan structuring (superpowers-style).

Companion plugin โ€” unioss-knowledge

The marketplace also ships unioss-knowledge: human digests + an agent knowledge base for UNIOSS 3 tickets. It crawls tickets and comments (across all projects carrying the label), renders WWWH / focus / sentiment reports for any period, and maintains a tiered, token-budgeted knowledge base injected before every ticket.

Command Does
/unioss-knowledge-today Summarize today's new UNIOSS 3 tickets (WWWH).
/unioss-knowledge-ticket <url> Summarize one ticket (WWWH).
/unioss-knowledge-ask "<question>" [period] Free-form query for any period; refreshes only when stale.
/unioss-knowledge-refresh [daily|weekly|monthly] Crawl + distill the current window into the KB.
/unioss-knowledge-approve Promote staged rules into the live KB.
/unioss-knowledge Status + staleness.
  • Store: .walkthrough/.knowledge/ โ€” GLOBAL.md (injected each session, โ‰ค1200 tokens), domain/, rules/ (stagedโ†’approved), sentiment/, digests/.
  • Injection: a SessionStart hook injects GLOBAL.md + a staleness nudge; the pipeline's investigate stage reads domain/<module>.md + rules/approved.md per ticket and appends new facts.
  • Curation: observational facts auto-write; prescriptive rules stage for your approval.
  • Shares .walkthrough/.config/unioss.config.json (gitlab.workLabel, falls back to ship.label, default UNIOSS 3). Read-only against GitLab.

Install

  • /plugin marketplace add https://github.com/ttncode/ttnplugins
  • /plugin install unioss-pipeline ยท /plugin install unioss-knowledge
  • /unioss-doctor โ€” verify the environment.

Usage

  • New ticket โ€” /unioss-pipeline https://gitlab.unioss.jp/unioss/AdminPage/-/work_items/1834
  • Feedback (new round) โ€” /unioss-feedback <gitlab-url>
  • No ticket โ€” /unioss-task "Add a CSV export button to the sales-ledger screen"
  • MR review feedback โ€” /unioss-mr-feedback <mr-url> [mr-url...] โ€” verifies and applies another developer's review comments, standalone (not part of the Aโ†’Z pipeline)
  • Ship โ€” /unioss-ship staging โ†’ v3-develop-tps; /unioss-ship customer (syncs v3-master, re-runs tests) โ†’ v3-develop; both preview the plan and wait for "Proceed?" first

Configuration

One file holds everything: .walkthrough/.config/unioss.config.json (gitignored). /unioss-doctor creates it for you.

  • Scaffold: node "${CLAUDE_PLUGIN_ROOT}/scripts/config.mjs" init โ€” writes every key, grouped per-machine โ†’ per-team โ†’ project-wide.
  • Resolution: env โ†’ file โ†’ default, deep-merged.
  • Module keys (admin-page, front-end, common-helper, common-models) are the one vocabulary: source.modules.<key> is its path on disk, gitlab.projects.<key> is its GitLab project id.
  • Inspect / validate: config.mjs print ยท config.mjs check (/unioss-doctor runs check).
  • Wrong module paths: config.mjs scan locates them; scan --write repairs the file (/unioss-doctor offers this).
  • Secrets (env only): GITLAB_TOKEN (required) ยท DB_PASSWORD (optional).
  • Tester browser: ! npx playwright install --with-deps chrome if Chrome is missing.
  • Tester URLs/credentials are not config โ€” they live in skills/unioss-verify/tester-access.md.

Requirements

Dependency Required Notes
Node.js โœ… Hooks and scripts
jq โœ… JSON processing
Docker + mysql-unioss3 + php-unioss3 โœ… DB + PHP runtime
GITLAB_TOKEN env var โœ… GitLab API access
Google Chrome โญ Tester UI verification

Run /unioss-doctor to check them all at once.

License

MIT

About

๐Ÿš€ Gated AI dev pipeline for the UNIOSS team โ€” GitLab ticket in, reviewed and verified CodeIgniter change out.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors