up-cc 0.1.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.
Files changed (44) hide show
  1. package/agents/up-depurador.md +357 -0
  2. package/agents/up-executor.md +409 -0
  3. package/agents/up-pesquisador-projeto.md +358 -0
  4. package/agents/up-planejador.md +390 -0
  5. package/agents/up-roteirista.md +401 -0
  6. package/agents/up-sintetizador.md +232 -0
  7. package/agents/up-verificador.md +357 -0
  8. package/bin/install.js +709 -0
  9. package/bin/lib/core.cjs +270 -0
  10. package/bin/up-tools.cjs +1361 -0
  11. package/commands/adicionar-fase.md +33 -0
  12. package/commands/ajuda.md +131 -0
  13. package/commands/discutir-fase.md +35 -0
  14. package/commands/executar-fase.md +40 -0
  15. package/commands/novo-projeto.md +39 -0
  16. package/commands/pausar.md +33 -0
  17. package/commands/planejar-fase.md +43 -0
  18. package/commands/progresso.md +33 -0
  19. package/commands/rapido.md +40 -0
  20. package/commands/remover-fase.md +34 -0
  21. package/commands/retomar.md +35 -0
  22. package/commands/verificar-trabalho.md +35 -0
  23. package/package.json +32 -0
  24. package/references/checkpoints.md +358 -0
  25. package/references/git-integration.md +208 -0
  26. package/references/questioning.md +156 -0
  27. package/references/ui-brand.md +124 -0
  28. package/templates/config.json +6 -0
  29. package/templates/continue-here.md +78 -0
  30. package/templates/project.md +184 -0
  31. package/templates/requirements.md +129 -0
  32. package/templates/roadmap.md +131 -0
  33. package/templates/state.md +130 -0
  34. package/templates/summary.md +174 -0
  35. package/workflows/discutir-fase.md +324 -0
  36. package/workflows/executar-fase.md +277 -0
  37. package/workflows/executar-plano.md +192 -0
  38. package/workflows/novo-projeto.md +561 -0
  39. package/workflows/pausar.md +111 -0
  40. package/workflows/planejar-fase.md +208 -0
  41. package/workflows/progresso.md +226 -0
  42. package/workflows/rapido.md +209 -0
  43. package/workflows/retomar.md +231 -0
  44. package/workflows/verificar-trabalho.md +261 -0
@@ -0,0 +1,131 @@
1
+ # Roadmap Template
2
+
3
+ Template for `.plano/ROADMAP.md`.
4
+
5
+ ```markdown
6
+ # Roadmap: [Project Name]
7
+
8
+ ## Overview
9
+
10
+ [One paragraph describing the journey from start to finish]
11
+
12
+ ## Phases
13
+
14
+ **Phase Numbering:**
15
+ - Integer phases (1, 2, 3): Planned work
16
+ - Decimal phases (2.1, 2.2): Urgent insertions (marked with INSERTED)
17
+
18
+ Decimal phases appear between their surrounding integers in numeric order.
19
+
20
+ - [ ] **Phase 1: [Name]** - [One-line description]
21
+ - [ ] **Phase 2: [Name]** - [One-line description]
22
+ - [ ] **Phase 3: [Name]** - [One-line description]
23
+ - [ ] **Phase 4: [Name]** - [One-line description]
24
+
25
+ ## Phase Details
26
+
27
+ ### Phase 1: [Name]
28
+ **Goal**: [What this phase delivers]
29
+ **Depends on**: Nothing (first phase)
30
+ **Requirements**: [REQ-01, REQ-02, REQ-03]
31
+ **Success Criteria** (what must be TRUE):
32
+ 1. [Observable behavior from user perspective]
33
+ 2. [Observable behavior from user perspective]
34
+ 3. [Observable behavior from user perspective]
35
+ **Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
36
+
37
+ Plans:
38
+ - [ ] 01-01: [Brief description of first plan]
39
+ - [ ] 01-02: [Brief description of second plan]
40
+ - [ ] 01-03: [Brief description of third plan]
41
+
42
+ ### Phase 2: [Name]
43
+ **Goal**: [What this phase delivers]
44
+ **Depends on**: Phase 1
45
+ **Requirements**: [REQ-04, REQ-05]
46
+ **Success Criteria** (what must be TRUE):
47
+ 1. [Observable behavior from user perspective]
48
+ 2. [Observable behavior from user perspective]
49
+ **Plans**: [Number of plans]
50
+
51
+ Plans:
52
+ - [ ] 02-01: [Brief description]
53
+ - [ ] 02-02: [Brief description]
54
+
55
+ ### Phase 2.1: Critical Fix (INSERTED)
56
+ **Goal**: [Urgent work inserted between phases]
57
+ **Depends on**: Phase 2
58
+ **Success Criteria** (what must be TRUE):
59
+ 1. [What the fix achieves]
60
+ **Plans**: 1 plan
61
+
62
+ Plans:
63
+ - [ ] 02.1-01: [Description]
64
+
65
+ ### Phase 3: [Name]
66
+ **Goal**: [What this phase delivers]
67
+ **Depends on**: Phase 2
68
+ **Requirements**: [REQ-06, REQ-07, REQ-08]
69
+ **Success Criteria** (what must be TRUE):
70
+ 1. [Observable behavior from user perspective]
71
+ 2. [Observable behavior from user perspective]
72
+ 3. [Observable behavior from user perspective]
73
+ **Plans**: [Number of plans]
74
+
75
+ Plans:
76
+ - [ ] 03-01: [Brief description]
77
+ - [ ] 03-02: [Brief description]
78
+
79
+ ### Phase 4: [Name]
80
+ **Goal**: [What this phase delivers]
81
+ **Depends on**: Phase 3
82
+ **Requirements**: [REQ-09, REQ-10]
83
+ **Success Criteria** (what must be TRUE):
84
+ 1. [Observable behavior from user perspective]
85
+ 2. [Observable behavior from user perspective]
86
+ **Plans**: [Number of plans]
87
+
88
+ Plans:
89
+ - [ ] 04-01: [Brief description]
90
+
91
+ ## Progress
92
+
93
+ **Execution Order:**
94
+ Phases execute in numeric order: 2 -> 2.1 -> 2.2 -> 3 -> 3.1 -> 4
95
+
96
+ | Phase | Plans Complete | Status | Completed |
97
+ |-------|----------------|--------|-----------|
98
+ | 1. [Name] | 0/3 | Not started | - |
99
+ | 2. [Name] | 0/2 | Not started | - |
100
+ | 3. [Name] | 0/2 | Not started | - |
101
+ | 4. [Name] | 0/1 | Not started | - |
102
+ ```
103
+
104
+ <guidelines>
105
+ **Planning:**
106
+ - Phase count depends on granularity setting (coarse: 3-5, standard: 5-8, fine: 8-12)
107
+ - Each phase delivers something coherent
108
+ - Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
109
+ - Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
110
+ - No time estimates
111
+ - Progress table updated by execute workflow
112
+ - Plan count can be "TBD" initially, refined during planning
113
+
114
+ **Success criteria:**
115
+ - 2-5 observable behaviors per phase (from user's perspective)
116
+ - Cross-checked against requirements during roadmap creation
117
+ - Flow downstream to `must_haves` in plan-phase
118
+ - Verified by verify-phase after execution
119
+ - Format: "User can [action]" or "[Thing] works/exists"
120
+
121
+ **After phases complete:**
122
+ - Collapse completed phases in `<details>` tags
123
+ - Keep continuous phase numbering (never restart at 01)
124
+ </guidelines>
125
+
126
+ <status_values>
127
+ - `Not started` - Haven't begun
128
+ - `In progress` - Currently working
129
+ - `Complete` - Done (add completion date)
130
+ - `Deferred` - Pushed to later (with reason)
131
+ </status_values>
@@ -0,0 +1,130 @@
1
+ # State Template
2
+
3
+ Template for `.plano/STATE.md` -- the project's living memory.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ # Estado do Projeto
11
+
12
+ ## Referencia do Projeto
13
+
14
+ Ver: .plano/PROJECT.md (atualizado [data])
15
+
16
+ **Valor central:** [One-liner from PROJECT.md Core Value section]
17
+ **Foco atual:** [Current phase name]
18
+
19
+ ## Posicao Atual
20
+
21
+ Fase: [X] de [Y] ([Phase name])
22
+ Plano: [A] de [B] na fase atual
23
+ Status: [Ready to plan / Planning / Ready to execute / In progress / Phase complete]
24
+ Ultima atividade: [YYYY-MM-DD] -- [What happened]
25
+
26
+ Progresso: [----------] 0%
27
+
28
+ ## Contexto Acumulado
29
+
30
+ ### Decisoes
31
+
32
+ Decisions are logged in PROJECT.md Key Decisions table.
33
+ Recent decisions affecting current work:
34
+
35
+ - [Phase X]: [Decision summary]
36
+ - [Phase Y]: [Decision summary]
37
+
38
+ ### Bloqueios
39
+
40
+ [Issues that affect future work]
41
+
42
+ None yet.
43
+
44
+ ## Continuidade de Sessao
45
+
46
+ Ultima sessao: [YYYY-MM-DD HH:MM]
47
+ Parou em: [Description of last completed action]
48
+ Arquivo de retomada: [Path to .continue-aqui.md if exists, otherwise "None"]
49
+ ```
50
+
51
+ <purpose>
52
+
53
+ STATE.md is the project's short-term memory spanning all phases and sessions.
54
+
55
+ **Problem it solves:** Information is captured in summaries, issues, and decisions but not systematically consumed. Sessions start without context.
56
+
57
+ **Solution:** A single, small file that's:
58
+ - Read first in every workflow
59
+ - Updated after every significant action
60
+ - Contains digest of accumulated context
61
+ - Enables instant session restoration
62
+
63
+ </purpose>
64
+
65
+ <lifecycle>
66
+
67
+ **Creation:** After ROADMAP.md is created (during init)
68
+ - Reference PROJECT.md (read it for current context)
69
+ - Initialize empty accumulated context sections
70
+ - Set position to "Phase 1 ready to plan"
71
+
72
+ **Reading:** First step of every workflow
73
+ - progress: Present status to user
74
+ - plan: Inform planning decisions
75
+ - execute: Know current position
76
+ - transition: Know what's complete
77
+
78
+ **Writing:** After every significant action
79
+ - execute: After SUMMARY.md created
80
+ - Update position (phase, plan, status)
81
+ - Note new decisions (detail in PROJECT.md)
82
+ - Add blockers/concerns
83
+ - transition: After phase marked complete
84
+ - Update progress bar
85
+ - Clear resolved blockers
86
+ - Refresh Project Reference date
87
+
88
+ </lifecycle>
89
+
90
+ <sections>
91
+
92
+ ### Referencia do Projeto
93
+ Points to PROJECT.md for full context. Includes:
94
+ - Core value (the ONE thing that matters)
95
+ - Current focus (which phase)
96
+ - Last update date (triggers re-read if stale)
97
+
98
+ ### Posicao Atual
99
+ Where we are right now:
100
+ - Phase X of Y -- which phase
101
+ - Plan A of B -- which plan within phase
102
+ - Status -- current state
103
+ - Last activity -- what happened most recently
104
+ - Progress bar -- visual indicator of overall completion
105
+
106
+ Progress calculation: (completed plans) / (total plans across all phases) x 100%
107
+
108
+ ### Contexto Acumulado
109
+ **Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access.
110
+ **Blockers:** Issues that affect future work, prefixed with originating phase, cleared when addressed.
111
+
112
+ ### Continuidade de Sessao
113
+ Enables instant resumption:
114
+ - When was last session
115
+ - What was last completed
116
+ - Is there a .continue-aqui.md file to resume from
117
+
118
+ </sections>
119
+
120
+ <size_constraint>
121
+
122
+ Keep STATE.md under 60 lines.
123
+
124
+ It's a DIGEST, not an archive. If accumulated context grows too large:
125
+ - Keep only 3-5 recent decisions in summary (full log in PROJECT.md)
126
+ - Keep only active blockers, remove resolved ones
127
+
128
+ The goal is "read once, know where we are" -- if it's too long, that fails.
129
+
130
+ </size_constraint>
@@ -0,0 +1,174 @@
1
+ # Summary Template
2
+
3
+ Template for `.plano/fases/XX-name/{phase}-{plan}-SUMMARY.md` - phase completion documentation.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ phase: XX-name
12
+ plan: YY
13
+ subsystem: [primary category: auth, payments, ui, api, database, infra, testing, etc.]
14
+ tags: [searchable tech: jwt, stripe, react, postgres, prisma]
15
+
16
+ # Dependency graph
17
+ requires:
18
+ - phase: [prior phase this depends on]
19
+ provides: [what that phase built that this uses]
20
+ provides:
21
+ - [bullet list of what this phase built/delivered]
22
+ affects: [list of phase names or keywords that will need this context]
23
+
24
+ # Tech tracking
25
+ tech-stack:
26
+ added: [libraries/tools added in this phase]
27
+ patterns: [architectural/code patterns established]
28
+
29
+ key-files:
30
+ created: [important files created]
31
+ modified: [important files modified]
32
+
33
+ key-decisions:
34
+ - "Decision 1"
35
+ - "Decision 2"
36
+
37
+ patterns-established:
38
+ - "Pattern 1: description"
39
+ - "Pattern 2: description"
40
+
41
+ requirements-completed: [] # Copy ALL requirement IDs from this plan's requirements field.
42
+
43
+ # Metrics
44
+ duration: Xmin
45
+ completed: YYYY-MM-DD
46
+ ---
47
+
48
+ # Phase [X]: [Name] Summary
49
+
50
+ **[Substantive one-liner describing outcome - NOT "phase complete" or "implementation finished"]**
51
+
52
+ ## Performance
53
+
54
+ - **Duration:** [time] (e.g., 23 min, 1h 15m)
55
+ - **Started:** [ISO timestamp]
56
+ - **Completed:** [ISO timestamp]
57
+ - **Tasks:** [count completed]
58
+ - **Files modified:** [count]
59
+
60
+ ## Accomplishments
61
+ - [Most important outcome]
62
+ - [Second key accomplishment]
63
+ - [Third if applicable]
64
+
65
+ ## Task Commits
66
+
67
+ Each task was committed atomically:
68
+
69
+ 1. **Task 1: [task name]** - `abc123f` (feat/fix/test/refactor)
70
+ 2. **Task 2: [task name]** - `def456g` (feat/fix/test/refactor)
71
+ 3. **Task 3: [task name]** - `hij789k` (feat/fix/test/refactor)
72
+
73
+ **Plan metadata:** `lmn012o` (docs: complete plan)
74
+
75
+ _Note: TDD tasks may have multiple commits (test -> feat -> refactor)_
76
+
77
+ ## Files Created/Modified
78
+ - `path/to/file.ts` - What it does
79
+ - `path/to/another.ts` - What it does
80
+
81
+ ## Decisions Made
82
+ [Key decisions with brief rationale, or "None - followed plan as specified"]
83
+
84
+ ## Deviations from Plan
85
+
86
+ [If no deviations: "None - plan executed exactly as written"]
87
+
88
+ [If deviations occurred:]
89
+
90
+ ### Auto-fixed Issues
91
+
92
+ **1. [Rule X - Category] Brief description**
93
+ - **Found during:** Task [N] ([task name])
94
+ - **Issue:** [What was wrong]
95
+ - **Fix:** [What was done]
96
+ - **Files modified:** [file paths]
97
+ - **Verification:** [How it was verified]
98
+ - **Committed in:** [hash] (part of task commit)
99
+
100
+ [... repeat for each auto-fix ...]
101
+
102
+ ---
103
+
104
+ **Total deviations:** [N] auto-fixed ([breakdown by rule])
105
+ **Impact on plan:** [Brief assessment]
106
+
107
+ ## Issues Encountered
108
+ [Problems and how they were resolved, or "None"]
109
+
110
+ ## User Setup Required
111
+
112
+ [If USER-SETUP.md was generated:]
113
+ **External services require manual configuration.** See [{phase}-USER-SETUP.md](./{phase}-USER-SETUP.md) for:
114
+ - Environment variables to add
115
+ - Dashboard configuration steps
116
+ - Verification commands
117
+
118
+ [If no USER-SETUP.md:]
119
+ None - no external service configuration required.
120
+
121
+ ## Next Phase Readiness
122
+ [What's ready for next phase]
123
+ [Any blockers or concerns]
124
+
125
+ ---
126
+ *Phase: XX-name*
127
+ *Completed: [date]*
128
+ ```
129
+
130
+ <frontmatter_guidance>
131
+ **Purpose:** Enable automatic context assembly via dependency graph. Frontmatter makes summary metadata machine-readable so plan-phase can scan all summaries quickly and select relevant ones based on dependencies.
132
+
133
+ **Fast scanning:** Frontmatter is first ~25 lines, cheap to scan across all summaries without reading full content.
134
+
135
+ **Dependency graph:** `requires`/`provides`/`affects` create explicit links between phases, enabling transitive closure for context selection.
136
+
137
+ **Subsystem:** Primary categorization for detecting related phases.
138
+
139
+ **Tags:** Searchable technical keywords for tech stack awareness.
140
+
141
+ **Key-files:** Important files for @context references in PLAN.md.
142
+
143
+ **Patterns:** Established conventions future phases should maintain.
144
+ </frontmatter_guidance>
145
+
146
+ <one_liner_rules>
147
+ The one-liner MUST be substantive:
148
+
149
+ **Good:**
150
+ - "JWT auth with refresh rotation using jose library"
151
+ - "Prisma schema with User, Session, and Product models"
152
+ - "Dashboard with real-time metrics via Server-Sent Events"
153
+
154
+ **Bad:**
155
+ - "Phase complete"
156
+ - "Authentication implemented"
157
+ - "Foundation finished"
158
+ - "All tasks done"
159
+
160
+ The one-liner should tell someone what actually shipped.
161
+ </one_liner_rules>
162
+
163
+ <guidelines>
164
+ **Frontmatter:** MANDATORY - complete all fields. Enables automatic context assembly for future planning.
165
+
166
+ **One-liner:** Must be substantive. "JWT auth with refresh rotation using jose library" not "Authentication implemented".
167
+
168
+ **Decisions section:**
169
+ - Key decisions made during execution with rationale
170
+ - Extracted to STATE.md accumulated context
171
+ - Use "None - followed plan as specified" if no deviations
172
+
173
+ **After creation:** STATE.md updated with position, decisions, issues.
174
+ </guidelines>