agestra 4.2.1 → 4.3.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agestra",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "description": "Claude Code plugin — orchestrate Ollama, Gemini, and Codex for multi-AI debates, cross-validation, and GraphRAG memory",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.11.0",
@@ -0,0 +1,115 @@
1
+ ---
2
+ name: agestra-design
3
+ description: >
4
+ Use when exploring architecture, discussing design trade-offs, planning implementation approaches,
5
+ or structuring a feature before writing code. Triggers on: "design this", "how should I architect",
6
+ "what's the best approach", "explore approaches", "design trade-offs", "before implementing",
7
+ "설계", "아키텍처", "구조 잡아줘", "어떻게 만들지", "방향 잡아줘",
8
+ "設計", "アーキテクチャ", "架构", "设计"
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ Pre-implementation design exploration. Understand intent through targeted questions, explore the codebase for existing patterns, propose multiple approaches with trade-offs, and produce a design document.
14
+
15
+ ## Scope
16
+
17
+ Design features and systems **for the current project**. If the request is outside this project's scope (a new product idea, a business question, or something unrelated to this codebase), say so and suggest `/agestra idea` for open exploration instead.
18
+
19
+ ## Workflow
20
+
21
+ ### Phase 1: Clarity Gate
22
+
23
+ Before asking questions, check if the request is already clear. If it includes specific file paths, function names, or concrete acceptance criteria, skip the interview.
24
+
25
+ **Clarity Dimensions:**
26
+
27
+ | Dimension | Weight (greenfield) | Weight (brownfield) |
28
+ |-----------|-------------------|-------------------|
29
+ | Goal | 40% | 35% |
30
+ | Constraints | 30% | 25% |
31
+ | Success Criteria | 30% | 25% |
32
+ | Context | N/A | 15% |
33
+
34
+ Greenfield: no relevant source code exists for the feature.
35
+ Brownfield: modifying or extending existing code.
36
+
37
+ **After each user answer:**
38
+ 1. Score all dimensions 0.0–1.0
39
+ 2. Calculate: `ambiguity = 1 - weighted_sum`
40
+ 3. Display progress:
41
+ ```
42
+ Round {n} | Ambiguity: {score}% | Targeting: {weakest dimension}
43
+ ```
44
+ 4. If ambiguity <= 20% → proceed to Phase 2
45
+ 5. If ambiguity > 20% → ask the next question targeting the WEAKEST dimension
46
+
47
+ **Question targeting:** Always target the dimension with the lowest score. Ask ONE question at a time. Expose assumptions, not feature lists.
48
+
49
+ | Dimension | Question Style |
50
+ |-----------|---------------|
51
+ | Goal | "What exactly happens when...?" / "What specific action does a user take first?" |
52
+ | Constraints | "What are the boundaries?" / "Should this work offline?" |
53
+ | Success Criteria | "How do we know it works?" / "What would make you say 'yes, that's it'?" |
54
+ | Context (brownfield) | "How does this fit with existing...?" / "Extend or replace?" |
55
+
56
+ **Challenge modes** (each used once, then return to normal):
57
+ - Round 4+: **Contrarian** — "What if the opposite were true? What if this constraint doesn't actually exist?"
58
+ - Round 6+: **Simplifier** — "What's the simplest version that would still be valuable?"
59
+ - Round 8+: **Ontologist** (if ambiguity still > 30%) — "What IS this, really? One sentence."
60
+
61
+ **Soft limits:**
62
+ - Round 3+: allow early exit if user says "enough" — show ambiguity warning
63
+ - Round 10: soft warning — "We're at 10 rounds. Current ambiguity: {score}%. Continue or proceed?"
64
+ - Round 20: hard cap — proceed with current clarity, note the risk
65
+
66
+ ### Phase 2: Explore
67
+
68
+ Search the codebase for relevant existing patterns:
69
+ - Use Glob to find related files by name
70
+ - Use Grep to find similar implementations
71
+ - Use Read to understand existing architecture
72
+ - Note conventions: naming, file organization, patterns used
73
+
74
+ ### Phase 3: Propose
75
+
76
+ Present 2-3 distinct approaches. For each:
77
+ - **Approach name** — one-line summary
78
+ - **How it works** — architecture overview
79
+ - **Fits with** — which existing patterns it aligns with
80
+ - **Trade-offs** — pros and cons
81
+ - **Effort** — relative complexity (low/medium/high)
82
+
83
+ ### Phase 4: Refine
84
+
85
+ Based on user feedback:
86
+ - Deep-dive into the selected approach
87
+ - Address concerns raised
88
+ - Detail component boundaries and data flow
89
+ - Identify risks and mitigation
90
+
91
+ ### Phase 5: Document
92
+
93
+ Write a design document to `docs/plans/` with this structure:
94
+
95
+ ```markdown
96
+ # [Feature/System Name] Design
97
+
98
+ ## Problem
99
+ ## Approach
100
+ ## Architecture
101
+ ## Components
102
+ ## Data Flow
103
+ ## Trade-offs & Decisions
104
+ ## Open Questions
105
+ ## Implementation Steps
106
+ ```
107
+
108
+ ## Constraints
109
+
110
+ - Ask one question at a time. Do not dump multiple questions.
111
+ - Present approaches before solutions. Let the user choose direction.
112
+ - Always explore the codebase before proposing — do not design in a vacuum.
113
+ - Document all decisions made during the conversation in the final design document.
114
+ - Do not write implementation code. Design documents only.
115
+ - Communicate in the user's language.
package/skills/idea.md ADDED
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: agestra-idea
3
+ description: >
4
+ Use when discovering improvements, comparing with similar projects, collecting user feedback,
5
+ exploring new features, researching what to build, or validating ideas. Triggers on:
6
+ "find improvements", "what should I add", "compare with competitors", "what are users asking for",
7
+ "explore ideas", "feature ideas", "what's missing", "is this worth building", "what do users want",
8
+ "what problem does this solve", "who would use this", "what should I focus on next",
9
+ "개선점", "뭐 추가하면 좋을까", "아이디어", "유사 프로젝트", "뭐가 부족해",
10
+ "이거 만들 가치가 있어?", "다음에 뭘 해야 할까", "비슷한 도구",
11
+ "改善", "アイデア", "改进", "想法"
12
+ ---
13
+
14
+ ## Purpose
15
+
16
+ Idea and improvement discovery. Research similar projects, collect user complaints and feature requests, compare capabilities, and generate actionable suggestions.
17
+
18
+ ## Scope
19
+
20
+ **Mode A: Existing project** — The codebase has a README or meaningful code.
21
+ Research improvements, missing features, and competitive gaps for this project.
22
+
23
+ **Mode B: New project** — The codebase is empty/new, but the user has a seed idea (e.g., "I want to build a writing tool").
24
+ Research the landscape: what already exists, what users complain about, what gaps remain.
25
+
26
+ **Out of scope:** Requests with no seed idea at all (e.g., "what should I build?"). You need at least a domain or concept to anchor research. Ask for one:
27
+
28
+ > "I need at least a rough idea — a domain, a tool type, or a problem you want to solve. For example: 'a writing tool', 'a CLI for deployment', 'something for managing bookmarks'."
29
+
30
+ ## Workflow
31
+
32
+ ### Phase 1: Clarity Gate
33
+
34
+ Before researching, understand what the user needs through targeted questions. Ask ONE question at a time. Communicate in the user's language.
35
+
36
+ **Step 1: Determine mode.**
37
+ - If the codebase has a README or meaningful code → Mode A (existing project)
38
+ - If the codebase is empty/new but user has a seed idea → Mode B (new project)
39
+
40
+ **Step 2: Mode-specific interview.**
41
+
42
+ **Mode A — Existing project:**
43
+
44
+ | Dimension | Question | Purpose |
45
+ |-----------|----------|---------|
46
+ | Direction | "What aspect are you looking to improve? (features, UX, performance, integrations, DX)" | Narrow the research scope |
47
+ | Audience | "Who are your current users? What do they use it for most?" | Target the right competitors |
48
+ | Feedback | "Have you received any complaints or feature requests?" | Direct pain point input |
49
+ | Competition | "Are there specific competitors or similar tools you're aware of?" | Seed the research |
50
+ | Strength | "What do you consider your project's unique strength?" | Avoid suggesting what already works |
51
+ | Constraints | "Any areas you don't want to change or can't change?" | Set research boundaries |
52
+
53
+ After gathering context:
54
+ - Read the project's README and key files to understand what it does
55
+ - Use Glob and Grep to map the current feature set
56
+ - Identify the project's category and target audience
57
+
58
+ **Mode B — New project:**
59
+
60
+ | Dimension | Question | Purpose |
61
+ |-----------|----------|---------|
62
+ | Problem | "What problem are you trying to solve?" | Core motivation |
63
+ | Audience | "Who would use this? What's the target audience?" | Market focus |
64
+ | Form | "How do you envision it? (CLI, web app, library, service, plugin)" | Shape the research |
65
+ | Inspiration | "What inspired this? Have you seen something similar?" | Seed the research |
66
+ | Core | "What's the single most important thing it must do well?" | Prioritization anchor |
67
+ | Boundary | "What should it NOT be? Where do you draw the line?" | Scope limits |
68
+
69
+ **Early exit:** If the user provides enough context upfront (specific competitors, clear scope, concrete goals), skip remaining questions and proceed to Phase 2. Do not force unnecessary rounds.
70
+
71
+ ### Phase 2: Research Similar Projects
72
+
73
+ - Use WebSearch to find similar tools, libraries, and projects
74
+ - Look for: direct competitors, adjacent tools, inspirational projects
75
+ - Collect names, URLs, and key differentiators
76
+
77
+ ### Phase 3: Collect Pain Points
78
+
79
+ - WebSearch for complaints about similar tools (GitHub issues, forums, discussions)
80
+ - WebFetch relevant issue pages and discussion threads
81
+ - Identify recurring themes in user feedback
82
+ - Note what users wish existed but doesn't
83
+
84
+ ### Phase 4: Feature Comparison
85
+
86
+ Build a comparison table:
87
+
88
+ | Feature | This Project | Competitor A | Competitor B |
89
+ |---------|-------------|-------------|-------------|
90
+ | Feature 1 | Yes/No | Yes/No | Yes/No |
91
+
92
+ ### Phase 5: Generate Suggestions
93
+
94
+ For each suggestion:
95
+ - **Title** — clear, actionable name
96
+ - **Category** — UX, Performance, Feature, Integration, DX
97
+ - **Source** — where this idea came from (competitor, user complaint, own analysis)
98
+ - **Priority** — HIGH / MEDIUM / LOW with rationale
99
+ - **Effort** — estimated complexity
100
+ - **Description** — what it does and why it matters
101
+
102
+ ### Phase 6: Prioritized Recommendations
103
+
104
+ Present a ranked list:
105
+ 1. **Quick wins** — high impact, low effort
106
+ 2. **Strategic investments** — high impact, high effort
107
+ 3. **Nice-to-haves** — low impact, low effort
108
+
109
+ ## Output Format
110
+
111
+ ```markdown
112
+ ## Research Summary
113
+
114
+ ### Similar Projects
115
+ (list with URLs and key features)
116
+
117
+ ### User Pain Points
118
+ (categorized complaints from research)
119
+
120
+ ### Feature Comparison
121
+ (table)
122
+
123
+ ### Recommendations
124
+
125
+ #### Quick Wins
126
+ 1. ...
127
+
128
+ #### Strategic Investments
129
+ 1. ...
130
+
131
+ #### Nice-to-Haves
132
+ 1. ...
133
+
134
+ ### Sources
135
+ - [Source 1](url)
136
+ - [Source 2](url)
137
+ ```
138
+
139
+ ## Constraints
140
+
141
+ - Always include source URLs for claims about other projects.
142
+ - Do not fabricate features of competitors — verify via web research.
143
+ - Prioritize actionable suggestions over theoretical improvements.
144
+ - Communicate in the user's language.