@caddis/cli 0.4.18 → 0.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: mmr
3
+ description: Multi-Model Review & Runner (MMR) — run an ad-hoc task in an isolated multi-lane sandbox with rate-limit failover, test gates, and second-vendor review, or run a fast cross-model review on a diff
4
+ ---
5
+
6
+ # /caddis:mmr — Multi-Model Review & Runner
7
+
8
+ Execute an ad-hoc task across model lanes (GLM-5.3 → Codex Sol → Claude) inside an isolated
9
+ git worktree with automated test gates and second-vendor review (DeepSeek). Destroys the worktree
10
+ immediately on completion (zero worktree leaks) and leaves the output on a clean branch with a
11
+ simple Verdict Card.
12
+
13
+ When invoked without a task prompt (or with a git range), `/mmr` runs a direct cross-model diff review.
14
+
15
+ ## Natural Language Triggers
16
+ You can trigger MMR naturally without typing the full slash command:
17
+ - *"Run this on another lane: &lt;task&gt;"* &rarr; `/mmr "<task>"`
18
+ - *"Try this with multilane: &lt;task&gt;"* &rarr; `/mmr "<task>"`
19
+ - *"Keep it"* / *"Keep the changes"* &rarr; `/mmr keep`
20
+ - *"Drop it"* / *"Discard the attempt"* &rarr; `/mmr drop`
21
+ - *"Check mmr status"* / *"Which lanes are ready?"* &rarr; `/mmr status`
22
+ - *"Review this diff with mmr"* &rarr; `/mmr`
23
+
24
+ ---
25
+
26
+ ## Commands
27
+
28
+ ### 1. Run an Ad-Hoc Task
29
+ ```bash
30
+ python scripts/caddis_adhoc.py run "<task description>" [--type backend|tests|docs|ui|hard]
31
+ # Shorthand:
32
+ python scripts/caddis_adhoc.py "<task description>"
33
+ ```
34
+ - **Sandbox Isolation:** Creates an ephemeral 1-phase plan at `.caddis/orchestrator/adhoc/<slug>.md`.
35
+ - **Pre-flight Checks:** Verifies dirty tree and API keys. Warns if local edits exist.
36
+ - **Failover Cascade:** Automatically cascades from GLM to Codex to Claude if a lane is out of budget.
37
+ - **Local Test Gates:** Runs project test gates before review.
38
+ - **Cross-Vendor Review:** DeepSeek or GLM reviews the diff.
39
+ - **Immediate Worktree Cleanup:** Stashes/commits results to `lane/adhoc-<slug>` and immediately removes the worktree. Zero open worktrees remain.
40
+ - **Verdict Card:** Prints PASS/FAIL summary with diff stats and next actions.
41
+
42
+ ### 2. Keep the Result
43
+ ```bash
44
+ python scripts/caddis_adhoc.py keep
45
+ ```
46
+ - Keeps the output branch `lane/adhoc-<slug>`.
47
+ - **Main Branch Protection:** If you are on `main` or `master`, direct merge is disabled to protect trunk. Recommends running `/ship-pr`.
48
+ - If on a feature branch and the working tree is clean, provides squash-merge instructions.
49
+
50
+ ### 3. Drop the Result
51
+ ```bash
52
+ python scripts/caddis_adhoc.py drop
53
+ ```
54
+ - Deletes the branch `lane/adhoc-<slug>`.
55
+ - Deletes the ephemeral plan file and run logs.
56
+ - Workspace remains clean and untouched.
57
+
58
+ ### 4. Check Status
59
+ ```bash
60
+ python scripts/caddis_adhoc.py status
61
+ ```
62
+ - Displays API key readiness for all lanes (`Anthropic`, `DeepSeek`, `GLM`, `OpenAI`).
63
+ - Shows the latest task status, model used, and gates/review verdicts.
64
+ - Lists any unmerged `lane/adhoc-*` branches.
65
+
66
+ ### 5. Review Diff Only
67
+ ```bash
68
+ python scripts/caddis_adhoc.py review [--range <range>]
69
+ # Shorthand (no args):
70
+ python scripts/caddis_adhoc.py
71
+ ```
72
+ - Fast cross-model review of working tree or git range (e.g., `origin/main..HEAD`).
73
+
74
+ ---
75
+
76
+ ## Tool Resolution
77
+ Resolve `caddis_adhoc.py` deterministically:
78
+ ```bash
79
+ if [ -f "${CLAUDE_PLUGIN_ROOT}/scripts/caddis_adhoc.py" ]; then
80
+ TOOL="${CLAUDE_PLUGIN_ROOT}/scripts/caddis_adhoc.py"
81
+ elif [ -f "scripts/caddis_adhoc.py" ]; then
82
+ TOOL="scripts/caddis_adhoc.py"
83
+ else
84
+ echo "caddis_adhoc.py not found — report this and stop."
85
+ exit 3
86
+ fi
87
+ ```
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "caddis-extras",
3
- "version": "1.3.29",
3
+ "version": "1.3.30",
4
4
  "description": "caddis-extras — the long-tail skills for the Antigravity (agy) caddis plugin; install alongside caddis for the full set."
5
5
  }
@@ -61,6 +61,8 @@
61
61
  | Architecture Document | `architecture-document/` | Generate professional enterprise-grade HLD and LLD documents from the living Architecture.md. Outputs DOCX (editable) or PPTX (executive summary) using existing document skills. |
62
62
  | Doc Coauthoring | `doc-coauthoring/` | Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. |
63
63
  | Documentation Analyzer | `documentation-analyzer/` | Analyze codebases, explain code functionality, and generate comprehensive documentation. Use when documenting a project, creating README files, or understanding complex code. |
64
+ | Hld | `hld/` | Generates High-Level Design (HLD) Markdown documentation and converts to Confluence Storage Format XHTML with inline PlantUML macros. |
65
+ | Lld | `lld/` | Generates Lower-Level Design (LLD) Markdown documentation and converts to Confluence Storage Format XHTML with inline PlantUML macros. |
64
66
  | Naming Analyzer | `naming-analyzer/` | Suggest better variable, function, and class names based on context and conventions. |
65
67
  | Prd To Code | `prd-to-code/` | Transform PRD documents into working application code using a systematic 6-phase methodology. Use when starting projects from requirements or converting specs to implementation. |
66
68
 
@@ -0,0 +1,100 @@
1
+ ---
2
+ name: hld
3
+ description: Generates High-Level Design (HLD) Markdown documentation and converts to Confluence Storage Format XHTML with inline PlantUML macros.
4
+ ---
5
+
6
+ # High-Level Design (HLD) Authoring Skill
7
+
8
+ ## Overview
9
+ This skill generates High-Level Design (HLD) documents for enterprise application fleet systems and converts them to Confluence Storage Format XHTML with self-contained, inline PlantUML (`<ac:structured-macro ac:name="plantuml">`) diagrams.
10
+
11
+ ## Scope and Boundary Principles (Strict)
12
+ 1. **High-Level Design Only:**
13
+ - Include: Business initiative goals, high-level architecture topology, user surfaces, high-level database references, security & network boundaries, and target state roadmap.
14
+ - **DO NOT INCLUDE:**
15
+ - Internal application API routes or controller implementation details.
16
+ - Stored procedure names, parameter lists, or SQL code.
17
+ - Low-level ETL batch scripts, job schedules, or internal script arguments.
18
+ - Low-level table schemas or physical column definitions.
19
+ 2. **Database Representation:**
20
+ - Mention the physical database host and database name.
21
+ - List high-level reporting summary tables or key domain mart entities only.
22
+ - Low-level tables and stored procedures belong strictly in the Lower-Level Design (LLD).
23
+ 3. **Sequence Diagrams:**
24
+ - Automated schedulers (such as Windows Task Scheduler or cron) must be depicted as system components or lifeline participants, **NEVER** as human actors.
25
+ 4. **Diagram Rendering and Orthogonal Connectors:**
26
+ - Diagrams are converted to native Confluence PlantUML macros (`<ac:structured-macro ac:name="plantuml">`) using `skinparam linetype ortho`.
27
+ - `skinparam linetype ortho` ensures that all arrows connecting boxes are strictly orthogonal (90-degree right angles, zero diagonal slants).
28
+ - PlantUML renders inline upon copy-paste into Confluence with zero attachment access errors.
29
+ 5. **No AI Traces and Clean STE:**
30
+ - The HLD must contain zero hints or traces of AI generation (no model names, tool mentions, or meta-notices in the Confluence HTML).
31
+ - Write in Simplified Technical English (ASD-STE100): short sentences, active voice, and clear technical descriptions.
32
+ - Executive Metadata is omitted from the Confluence HTML view (metadata belongs in LLD).
33
+
34
+ ## Standard HLD Document Structure (Markdown)
35
+ Every HLD document must follow this standardized 7-section structure:
36
+
37
+ ```markdown
38
+ ---
39
+ type: design
40
+ status: current
41
+ feature: <app>-hld
42
+ creation-agent: caddis
43
+ Original Author: Solutions Architecture
44
+ Creation Date: <YYYY-MM-DDTHH:MM:SSZ>
45
+ Creating Model: gemini-3.5-flash
46
+ ---
47
+
48
+ # High-Level Architecture (HLA): <Application Name>
49
+
50
+ ## Document Information
51
+
52
+ ### Version History
53
+ | Version | Date | Author | Description |
54
+ |---|---|---|---|
55
+ | 1.0 | <YYYY-MM-DD> | Solutions Architecture | Initial High-Level Architecture Draft |
56
+
57
+ ---
58
+
59
+ ## 1. Executive Summary
60
+ - 1.1 Initiative Goal
61
+ - 1.2 Solution Architecture Summary
62
+ - 1.3 Business Value & Operational Outcomes
63
+
64
+ ## 2. Project Context and Scope
65
+ - 2.1 Background
66
+ - 2.2 Scope (In Scope / Out of Scope)
67
+ - 2.3 Architecture Boundaries and Key Assumptions
68
+
69
+ ## 3. Solution Approach and Workflow
70
+ - 3.1 Operational Process Flow (Mermaid flowchart)
71
+ - 3.2 End-to-End Operational Sequence Diagram (Mermaid sequence diagram with system scheduler participant)
72
+
73
+ ## 4. Solution Architecture Landscape
74
+ - 4.1 Solution Design and Architecture (Mermaid topology diagram)
75
+ - 4.2 User Surfaces and Capabilities Overview (Summary table of primary operational interfaces)
76
+ - 4.3 High-Level Data Model and Summary Mart (High-level summary entities only, no stored procedures or DDL)
77
+ - 4.4 High-Level Data Flow and Integration (Mermaid data lineage flow)
78
+
79
+ ## 5. Security Architecture and Controls
80
+ - 5.1 Identity and Access Management (Authentication seams, roles, authorization boundaries)
81
+ - 5.2 Network Boundaries and Perimeter Controls (Subnets, ports, host environments)
82
+ - 5.3 Data Protection and Privacy (Encryption, sensitive data handling)
83
+ - 5.4 Auditability and Governance
84
+
85
+ ## 6. Target State Roadmap (Work In Progress)
86
+ - 6.1 Enterprise Identity Evolution
87
+ - 6.2 Automated Operational Integration
88
+
89
+ ## 7. Appendix
90
+ - 7.1 Terms and Definitions
91
+ - 7.2 Reference Documents
92
+ ```
93
+
94
+ ## Conversion Workflow
95
+ 1. Write the canonical HLD Markdown file to `docs/<app>/<app>-hld.md`.
96
+ 2. Run the conversion script:
97
+ ```bash
98
+ python scripts/convert_doc_to_confluence.py docs/<app>/<app>-hld.md --output docs/<app>/<app>-hld.html
99
+ ```
100
+ 3. Verify that the output validates as well-formed XML and contains `<ac:structured-macro ac:name="plantuml">` blocks with `skinparam linetype ortho`.