Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

239 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ UNIOSS Plugin

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 Claude Code Antigravity Codex license

An AI Agent plugin by ttncode.


Why use it

โšก Fast setup

  • Two commands to install; /unioss-doctor checks deps.
  • Zero config on a standard UNIOSS environment.
  • Every setting in one file config.mjs.

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

  • Reads the GitLab ticket + linked issues, analyzes the dumped production DB and codebase.
  • Runs all the stages automatically: Investigate โ†’ Spec โ†’ Plan โ†’ Code โ†’ Review โ†’ Verify โ†’ Ship.
  • Rounds โ€” customer feedback continues with new rounds on the same ticket.
  • 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.

๐Ÿง  Team knowledge

  • Every ticket turned into an agent-written report in your language โ€” ask what happened today, this week, or on any past ticket without digging through GitLab.
  • Ask free-form questions like "what did customers complain about this week?" and get an answer, not a search.
  • Facts and rules learned from past tickets carry forward automatically into new investigations, so the pipeline gets sharper over time.

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

Pipeline (unioss-pipeline plugin)

Command What
/unioss-pipeline <gitlab-url> New ticket โ€” e.g. /unioss-pipeline https://gitlab.unioss.jp/unioss/AdminPage/-/work_items/1834
/unioss-feedback <gitlab-url> Customer feedback โ€” e.g. /unioss-feedback https://gitlab.unioss.jp/unioss/AdminPage/-/work_items/1834
/unioss-task "<description>" Specific task โ€” e.g. /unioss-task "Add a CSV export button to the product detail screen"
/unioss-mr-feedback <merge-url> [...] Reviewer feedback โ€” e.g. /unioss-mr-feedback https://gitlab.unioss.jp/unioss/AdminPage/-/merge_requests/3818
/unioss-ship staging Create a new merge request into v3-develop-tps branch
/unioss-ship customer Create a new merge request into v3-develop branch (sync with the v3-master branch & re-run tests)
/unioss-api-spec <endpoint|controller> Write the API spec for a new/changed endpoint
/unioss-doctor Check dependencies

Knowledge (unioss-knowledge plugin)

Command What
/unioss-knowledge-today Report new issues today?
/unioss-knowledge-ticket <gitlab-url> Report a specific issue?
/unioss-knowledge-refresh [daily|weekly|monthly|yearly] Refresh the knowledge โ€” If you want the Agent to remember, run /unioss-knowledge-approve
/unioss-knowledge-approve Approve staged rules โ€” only then injected into the agents' brain
/unioss-knowledge-ask "<question>" [period] Ask anything โ€” e.g. /unioss-knowledge-ask "What did customers complain about this week?"
/unioss-knowledge Check of the knowledge base status

Install

Claude Code

/plugin marketplace add https://github.com/ttncode/unioss-plugins
/plugin install unioss-pipeline
/plugin install unioss-knowledge

Antigravity

agy plugin install https://github.com/ttncode/unioss-plugins
# If the plugin hasn't been loaded yet -> Ask the agent to load it

Codex

codex marketplace add https://github.com/ttncode/unioss-plugins
codex plugin install unioss-pipeline
codex plugin install unioss-knowledge

After installation, run /unioss-doctor to verify the environment.

Usage

Commonly used:

Something broke? โ€” /unioss-doctor first.

New ticket, start to ship

  1. /unioss-pipeline <gitlab-url> โ€” full Aโ†’Z run, approve at each gate
  2. /unioss-ship staging โ€” open the staging MR
  3. /unioss-mr-feedback <merge-url> โ€” improve based on the reviewer's feedback (if any)
  4. /unioss-ship customer โ€” open the staging MR

Customer feedback on a shipped ticket

  1. /unioss-feedback <gitlab-url> โ€” improve based on the customer's feedback
  2. /unioss-ship staging โ€” re-ship
  3. /unioss-ship customer โ€” when staging is confirmed OK

Morning catch-up

  1. /unioss-knowledge-today โ€” What's new today?
  2. /unioss-knowledge-ask "What did customers complain about this week?" โ€” ask for anything

Monthly knowledge upkeep (keeps agents sharp)

  1. /unioss-knowledge-refresh monthly โ€” distill sentiment, rebuild the global brief, stage rules
  2. /unioss-knowledge-approve โ€” review staged rules; approved ones are injected into every agent session
  3. /unioss-knowledge โ€” confirm freshness

Configuration

One file holds everything: .walkthrough/.config/unioss.config.json via /unioss-doctor command.

  • 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 configured โ€” 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

Releases

Packages

Contributors

Languages