@orchestrator-claude/definitions 3.5.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 (73) hide show
  1. package/agents/api-extractor.md +687 -0
  2. package/agents/business-rule-miner.md +754 -0
  3. package/agents/code-archaeologist.md +720 -0
  4. package/agents/docs-guardian.md +524 -0
  5. package/agents/implementer.md +512 -0
  6. package/agents/legacy-discoverer.md +583 -0
  7. package/agents/legacy-synthesizer.md +1101 -0
  8. package/agents/orchestrator.md +165 -0
  9. package/agents/planner.md +365 -0
  10. package/agents/researcher.md +447 -0
  11. package/agents/reviewer.md +514 -0
  12. package/agents/schema-extractor.md +781 -0
  13. package/agents/specifier.md +360 -0
  14. package/agents/task-generator.md +390 -0
  15. package/bin/orch-defs.js +2 -0
  16. package/dist/cli.d.ts +3 -0
  17. package/dist/cli.d.ts.map +1 -0
  18. package/dist/cli.js +172 -0
  19. package/dist/cli.js.map +1 -0
  20. package/dist/commands/DiffCommand.d.ts +13 -0
  21. package/dist/commands/DiffCommand.d.ts.map +1 -0
  22. package/dist/commands/DiffCommand.js +74 -0
  23. package/dist/commands/DiffCommand.js.map +1 -0
  24. package/dist/commands/SeedCommand.d.ts +19 -0
  25. package/dist/commands/SeedCommand.d.ts.map +1 -0
  26. package/dist/commands/SeedCommand.js +56 -0
  27. package/dist/commands/SeedCommand.js.map +1 -0
  28. package/dist/http/ApiClient.d.ts +50 -0
  29. package/dist/http/ApiClient.d.ts.map +1 -0
  30. package/dist/http/ApiClient.js +58 -0
  31. package/dist/http/ApiClient.js.map +1 -0
  32. package/dist/index.d.ts +12 -0
  33. package/dist/index.d.ts.map +1 -0
  34. package/dist/index.js +11 -0
  35. package/dist/index.js.map +1 -0
  36. package/dist/manifest/ManifestLoader.d.ts +34 -0
  37. package/dist/manifest/ManifestLoader.d.ts.map +1 -0
  38. package/dist/manifest/ManifestLoader.js +110 -0
  39. package/dist/manifest/ManifestLoader.js.map +1 -0
  40. package/dist/manifest/types.d.ts +59 -0
  41. package/dist/manifest/types.d.ts.map +1 -0
  42. package/dist/manifest/types.js +5 -0
  43. package/dist/manifest/types.js.map +1 -0
  44. package/dist/scripts/generate-manifest.d.ts +10 -0
  45. package/dist/scripts/generate-manifest.d.ts.map +1 -0
  46. package/dist/scripts/generate-manifest.js +114 -0
  47. package/dist/scripts/generate-manifest.js.map +1 -0
  48. package/hooks/post-agent-artifact-relay.sh +157 -0
  49. package/hooks/post-artifact-generate.sh +39 -0
  50. package/hooks/post-implement-validate.sh +139 -0
  51. package/hooks/post-phase-checkpoint.sh +322 -0
  52. package/hooks/pre-agent-invoke.sh +34 -0
  53. package/hooks/pre-phase-advance.sh +40 -0
  54. package/hooks/track-agent-invocation.sh +241 -0
  55. package/kb/auth-strategies.md +742 -0
  56. package/kb/docs-constitution.md +310 -0
  57. package/kb/error-handling.md +555 -0
  58. package/kb/rest-conventions.md +458 -0
  59. package/kb/validation-patterns.md +589 -0
  60. package/manifest.json +314 -0
  61. package/package.json +65 -0
  62. package/skills/artifact-validator/SKILL.md +226 -0
  63. package/skills/docs-guardian/SKILL.md +230 -0
  64. package/skills/kb-lookup/SKILL.md +257 -0
  65. package/skills/phase-gate-evaluator/SKILL.md +274 -0
  66. package/skills/release/SKILL.md +239 -0
  67. package/skills/release/release.sh +491 -0
  68. package/skills/smoke-test/SKILL.md +195 -0
  69. package/skills/workflow-status/SKILL.md +322 -0
  70. package/workflows/bug-fix.json +74 -0
  71. package/workflows/feature-development.json +88 -0
  72. package/workflows/legacy-analysis.json +304 -0
  73. package/workflows/refactoring.json +74 -0
@@ -0,0 +1,322 @@
1
+ ---
2
+ name: workflow-status
3
+ description: Consulta status detalhado do workflow atual incluindo fase, artefatos, gates e proximos passos. Use para verificar progresso ou diagnosticar problemas.
4
+ allowed-tools: Read, Grep, Glob
5
+ ---
6
+
7
+ # Workflow Status Skill
8
+
9
+ ## Descricao
10
+
11
+ Esta skill fornece informacoes detalhadas sobre o status atual do workflow de orquestracao, incluindo fase atual, artefatos gerados, gates avaliados e proximos passos.
12
+
13
+ ## Quando Usar
14
+
15
+ Use esta skill quando:
16
+ - Precisar saber o status atual do workflow
17
+ - Verificar quais artefatos foram gerados
18
+ - Consultar progresso por fase
19
+ - Identificar proximos passos
20
+ - Verificar checkpoints disponiveis
21
+ - Diagnosticar problemas no fluxo
22
+
23
+ ## Invocacao
24
+
25
+ Exemplos de como invocar esta skill:
26
+
27
+ ```
28
+ "Qual o status atual do workflow?"
29
+
30
+ "Mostre o progresso da implementacao"
31
+
32
+ "Quais artefatos ja foram gerados?"
33
+
34
+ "Em qual fase estamos?"
35
+
36
+ "Quais sao os proximos passos?"
37
+
38
+ "Liste os checkpoints disponiveis"
39
+ ```
40
+
41
+ ## Parametros
42
+
43
+ | Parametro | Tipo | Obrigatorio | Descricao |
44
+ |-----------|------|-------------|-----------|
45
+ | `workflowId` | string | Nao | ID do workflow (usa atual se omitido) |
46
+ | `detail_level` | enum | Nao | summary, standard, detailed |
47
+ | `include_artifacts` | boolean | Nao | Incluir lista de artefatos |
48
+ | `include_checkpoints` | boolean | Nao | Incluir lista de checkpoints |
49
+ | `include_gates` | boolean | Nao | Incluir status dos gates |
50
+
51
+ ### Valores de detail_level
52
+
53
+ - **summary**: Apenas fase atual e status geral
54
+ - **standard** (default): Fase, status, ultimos artefatos, proximo passo
55
+ - **detailed**: Tudo incluindo historico completo
56
+
57
+ ## Output
58
+
59
+ A skill retorna informacoes estruturadas:
60
+
61
+ ```json
62
+ {
63
+ "success": true,
64
+ "workflow": {
65
+ "id": "wf-123",
66
+ "type": "feature_development",
67
+ "feature": "OAuth2 Authentication",
68
+ "status": "in_progress",
69
+ "startedAt": "2025-12-09T10:00:00Z",
70
+ "updatedAt": "2025-12-09T14:30:00Z"
71
+ },
72
+
73
+ "currentPhase": {
74
+ "name": "implement",
75
+ "status": "in_progress",
76
+ "startedAt": "2025-12-09T14:00:00Z",
77
+ "progress": {
78
+ "totalTasks": 10,
79
+ "completedTasks": 6,
80
+ "percentage": 60
81
+ }
82
+ },
83
+
84
+ "phases": [
85
+ {
86
+ "name": "research",
87
+ "status": "completed",
88
+ "duration": "45m",
89
+ "artifacts": ["research-context.md"]
90
+ },
91
+ {
92
+ "name": "specify",
93
+ "status": "completed",
94
+ "duration": "1h",
95
+ "artifacts": ["spec.md"]
96
+ },
97
+ {
98
+ "name": "plan",
99
+ "status": "completed",
100
+ "duration": "1h 30m",
101
+ "artifacts": ["plan.md"]
102
+ },
103
+ {
104
+ "name": "tasks",
105
+ "status": "completed",
106
+ "duration": "45m",
107
+ "artifacts": ["tasks.md"]
108
+ },
109
+ {
110
+ "name": "implement",
111
+ "status": "in_progress",
112
+ "duration": "2h (ongoing)",
113
+ "artifacts": ["impl-001.md", "impl-002.md"]
114
+ }
115
+ ],
116
+
117
+ "artifacts": [
118
+ {
119
+ "id": "art-001",
120
+ "type": "research",
121
+ "path": ".orchestrator/artifacts/research/research-context.md",
122
+ "status": "validated",
123
+ "createdAt": "2025-12-09T10:45:00Z"
124
+ },
125
+ {
126
+ "id": "art-002",
127
+ "type": "specification",
128
+ "path": ".orchestrator/artifacts/specify/spec.md",
129
+ "status": "validated",
130
+ "createdAt": "2025-12-09T11:45:00Z"
131
+ }
132
+ ],
133
+
134
+ "gates": {
135
+ "research": { "passed": true, "evaluatedAt": "2025-12-09T10:50:00Z" },
136
+ "specify": { "passed": true, "evaluatedAt": "2025-12-09T11:50:00Z" },
137
+ "plan": { "passed": true, "evaluatedAt": "2025-12-09T13:20:00Z" },
138
+ "tasks": { "passed": true, "evaluatedAt": "2025-12-09T14:00:00Z" },
139
+ "implement": { "passed": false, "pending": true }
140
+ },
141
+
142
+ "checkpoints": [
143
+ {
144
+ "id": "chk-001",
145
+ "phase": "specify",
146
+ "message": "[orchestrator] specify: specification validated",
147
+ "gitRef": "abc123",
148
+ "createdAt": "2025-12-09T11:50:00Z"
149
+ },
150
+ {
151
+ "id": "chk-002",
152
+ "phase": "plan",
153
+ "message": "[orchestrator] plan: technical plan approved",
154
+ "gitRef": "def456",
155
+ "createdAt": "2025-12-09T13:20:00Z"
156
+ }
157
+ ],
158
+
159
+ "nextSteps": [
160
+ "Completar TASK-007: Implementar middleware de autenticacao",
161
+ "Executar testes de integracao",
162
+ "Avaliar gate de implement para concluir workflow"
163
+ ],
164
+
165
+ "metrics": {
166
+ "totalDuration": "4h 30m",
167
+ "estimatedRemaining": "2h",
168
+ "artifactsGenerated": 6,
169
+ "gatesPassed": 4,
170
+ "checkpointsCreated": 4
171
+ }
172
+ }
173
+ ```
174
+
175
+ ## Formato de Output para Usuario
176
+
177
+ Quando invocada, a skill formata output amigavel:
178
+
179
+ ```markdown
180
+ ## Status do Workflow
181
+
182
+ **ID**: wf-123
183
+ **Tipo**: feature_development
184
+ **Feature**: OAuth2 Authentication
185
+ **Status**: 🟡 Em Progresso
186
+
187
+ ### Fase Atual: IMPLEMENT
188
+
189
+ ```
190
+ [████████░░░░░░░░░░░░] 60% (6/10 tasks)
191
+ ```
192
+
193
+ ### Progresso por Fase
194
+
195
+ | Fase | Status | Duracao | Artefatos |
196
+ |------|--------|---------|-----------|
197
+ | research | ✅ Completo | 45m | 1 |
198
+ | specify | ✅ Completo | 1h | 1 |
199
+ | plan | ✅ Completo | 1h 30m | 1 |
200
+ | tasks | ✅ Completo | 45m | 1 |
201
+ | implement | 🟡 Em Progresso | 2h | 2 |
202
+
203
+ ### Gates
204
+
205
+ - [x] research-complete
206
+ - [x] specification-complete
207
+ - [x] plan-complete
208
+ - [x] tasks-complete
209
+ - [ ] implementation-complete (pendente)
210
+
211
+ ### Proximos Passos
212
+
213
+ 1. Completar TASK-007: Implementar middleware de autenticacao
214
+ 2. Executar testes de integracao
215
+ 3. Avaliar gate de implement para concluir workflow
216
+
217
+ ### Metricas
218
+
219
+ - **Tempo Total**: 4h 30m
220
+ - **Estimativa Restante**: 2h
221
+ - **Artefatos**: 6
222
+ - **Checkpoints**: 4
223
+ ```
224
+
225
+ ## Integracao com TypeScript
226
+
227
+ Esta skill invoca o handler TypeScript:
228
+
229
+ ```typescript
230
+ // src/presentation/skills/WorkflowStatusSkill.ts
231
+
232
+ export class WorkflowStatusSkillHandler extends SkillHandler {
233
+ name = 'workflow-status';
234
+ description = 'Consulta status detalhado do workflow';
235
+
236
+ async execute(input: WorkflowStatusInput): Promise<SkillResult> {
237
+ // 1. Obtem workflow atual ou por ID
238
+ // 2. Carrega orchestrator-index.json
239
+ // 3. Coleta informacoes de fases
240
+ // 4. Coleta status de gates
241
+ // 5. Lista artefatos e checkpoints
242
+ // 6. Calcula metricas
243
+ // 7. Formata output
244
+ }
245
+ }
246
+ ```
247
+
248
+ ## Casos de Uso
249
+
250
+ ### Verificar Status Rapido
251
+ ```
252
+ User: "Status do workflow?"
253
+ Skill: workflow-status com detail_level=summary
254
+ Output: Fase atual, status, progresso percentual
255
+ ```
256
+
257
+ ### Relatorio Detalhado
258
+ ```
259
+ User: "Me de um relatorio completo do progresso"
260
+ Skill: workflow-status com detail_level=detailed, todos includes=true
261
+ Output: Relatorio completo com historico
262
+ ```
263
+
264
+ ### Verificar Artefatos
265
+ ```
266
+ User: "Quais artefatos ja temos?"
267
+ Skill: workflow-status com include_artifacts=true
268
+ Output: Lista de artefatos com status e paths
269
+ ```
270
+
271
+ ### Diagnostico de Problema
272
+ ```
273
+ User: "Por que o workflow esta travado?"
274
+ Skill: workflow-status com include_gates=true
275
+ Output: Status detalhado mostrando gate pendente
276
+ ```
277
+
278
+ ## Comportamento em Casos Especiais
279
+
280
+ ### Nenhum Workflow Ativo
281
+ ```json
282
+ {
283
+ "success": false,
284
+ "error": {
285
+ "code": "NO_ACTIVE_WORKFLOW",
286
+ "message": "Nenhum workflow ativo encontrado",
287
+ "suggestion": "Use 'orchestrate start' para iniciar um novo workflow"
288
+ }
289
+ }
290
+ ```
291
+
292
+ ### Workflow Nao Encontrado
293
+ ```json
294
+ {
295
+ "success": false,
296
+ "error": {
297
+ "code": "WORKFLOW_NOT_FOUND",
298
+ "message": "Workflow 'wf-xyz' nao encontrado",
299
+ "suggestion": "Verifique o ID ou use sem parametro para workflow atual"
300
+ }
301
+ }
302
+ ```
303
+
304
+ ### Index Corrompido
305
+ ```json
306
+ {
307
+ "success": false,
308
+ "error": {
309
+ "code": "INDEX_CORRUPTED",
310
+ "message": "orchestrator-index.json esta corrompido ou invalido",
311
+ "suggestion": "Execute 'orchestrator config validate' para diagnosticar"
312
+ }
313
+ }
314
+ ```
315
+
316
+ ## Notas Importantes
317
+
318
+ 1. Esta skill e **read-only** - apenas consulta, nao modifica estado
319
+ 2. Dados vem de `orchestrator-index.json` e artefatos
320
+ 3. Metricas de tempo sao calculadas a partir de timestamps
321
+ 4. Progresso de tarefas requer leitura de tasks.md
322
+ 5. Cache de 30 segundos para evitar leituras repetidas
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "bug-fix",
3
+ "type": "bug_fix",
4
+ "displayName": "Bug Fix",
5
+ "description": "Workflow for fixing bugs and issues",
6
+ "version": "1.0.0",
7
+ "triggers": [
8
+ "bug",
9
+ "fix",
10
+ "issue",
11
+ "error",
12
+ "broken",
13
+ "crash",
14
+ "problem"
15
+ ],
16
+ "phases": [
17
+ {
18
+ "name": "ANALYZE",
19
+ "displayName": "Analysis",
20
+ "agent": "researcher",
21
+ "artifact": "bug-analysis.md",
22
+ "gates": []
23
+ },
24
+ {
25
+ "name": "REPRODUCE",
26
+ "displayName": "Reproduction",
27
+ "agent": "implementer",
28
+ "artifact": "reproduction-steps.md",
29
+ "gates": [
30
+ {
31
+ "type": "artifact",
32
+ "config": {
33
+ "required": true
34
+ }
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "FIX",
40
+ "displayName": "Fix Implementation",
41
+ "agent": "implementer",
42
+ "artifact": "fix-report.md",
43
+ "requiresApproval": true,
44
+ "gates": [
45
+ {
46
+ "type": "tests",
47
+ "config": {
48
+ "mustPass": true
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "name": "VERIFY",
55
+ "displayName": "Verification",
56
+ "agent": "reviewer",
57
+ "artifact": "verification-report.md",
58
+ "gates": [
59
+ {
60
+ "type": "tests",
61
+ "config": {
62
+ "mustPass": true
63
+ }
64
+ },
65
+ {
66
+ "type": "artifact",
67
+ "config": {
68
+ "required": true
69
+ }
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "feature-development",
3
+ "type": "feature_development",
4
+ "displayName": "Feature Development",
5
+ "description": "Standard workflow for implementing new features",
6
+ "version": "1.0.0",
7
+ "triggers": [
8
+ "feature",
9
+ "new feature",
10
+ "implement",
11
+ "create",
12
+ "add",
13
+ "build"
14
+ ],
15
+ "phases": [
16
+ {
17
+ "name": "RESEARCH",
18
+ "displayName": "Research",
19
+ "agent": "researcher",
20
+ "artifact": "research-context.md",
21
+ "optional": true,
22
+ "gates": []
23
+ },
24
+ {
25
+ "name": "SPECIFY",
26
+ "displayName": "Specification",
27
+ "agent": "specifier",
28
+ "artifact": "spec.md",
29
+ "gates": [
30
+ {
31
+ "type": "artifact",
32
+ "config": {
33
+ "required": true
34
+ }
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "PLAN",
40
+ "displayName": "Technical Plan",
41
+ "agent": "planner",
42
+ "artifact": "plan.md",
43
+ "gates": [
44
+ {
45
+ "type": "artifact",
46
+ "config": {
47
+ "required": true
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "TASKS",
54
+ "displayName": "Task Generation",
55
+ "agent": "task-generator",
56
+ "artifact": "tasks.md",
57
+ "gates": [
58
+ {
59
+ "type": "artifact",
60
+ "config": {
61
+ "required": true
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "IMPLEMENT",
68
+ "displayName": "Implementation",
69
+ "agent": "implementer",
70
+ "artifact": "implementation-report.md",
71
+ "requiresApproval": true,
72
+ "gates": [
73
+ {
74
+ "type": "tests",
75
+ "config": {
76
+ "mustPass": true
77
+ }
78
+ },
79
+ {
80
+ "type": "coverage",
81
+ "config": {
82
+ "minimum": 80
83
+ }
84
+ }
85
+ ]
86
+ }
87
+ ]
88
+ }