speccrew 0.7.74 → 0.7.75
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/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +6 -149
- package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -59
- package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -64
- package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -75
- package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -70
- package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -381
- package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -369
- package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -362
- package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -304
- package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -294
- package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -204
- package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -173
- package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -169
- package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -173
- package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -251
- package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -254
- package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -748
- package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +6 -105
- package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +6 -33
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +3 -138
- package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +3 -283
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +3 -1014
- package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +4 -343
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +4 -235
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +6 -72
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +3 -534
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +3 -432
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +4 -391
- package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -98
- package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -92
- package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +3 -181
- package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +3 -148
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +3 -330
- package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +6 -159
- package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +3 -142
- package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +3 -568
- package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +3 -180
- package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +3 -154
- package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +3 -176
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -135
- package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +4 -88
- package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +4 -178
- package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -102
- package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +5 -78
- package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +5 -85
- package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +4 -100
- package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +14 -106
- package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +7 -84
- package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +6 -66
- package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +4 -96
- package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +4 -131
- package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +4 -76
- package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +3 -281
- package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +6 -165
- package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +2 -35
- package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +6 -98
- package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +6 -94
- package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -58
- package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -61
- package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +6 -94
- package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -102
- package/.speccrew/skills/speccrew-test-runner/SKILL.md +3 -121
- package/package.json +1 -1
|
@@ -1,161 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: speccrew-agentflow-manager
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
description: AgentFlow definition management - create, validate, and refine AgentFlow XML files
|
|
5
4
|
tools: Read, Write, Task, Bash
|
|
6
5
|
---
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
>
|
|
10
|
-
> **Step 1**: Load XML workflow specification: `${workspace_path}/docs/rules/agentflow-spec.md` — this defines all block types and action-to-tool mappings
|
|
11
|
-
>
|
|
12
|
-
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
|
-
>
|
|
14
|
-
> ```
|
|
15
|
-
> 🏷️ Block [ID] (action=[action]) — [desc]
|
|
16
|
-
> 🔧 Tool: [which IDE tool to call]
|
|
17
|
-
> ✅ Result: [output or status]
|
|
18
|
-
> ```
|
|
19
|
-
>
|
|
20
|
-
> Action-to-tool mapping:
|
|
21
|
-
> - `action="run-script"` → Execute via **Terminal tool** (pass the `<field name="command">` value EXACTLY)
|
|
22
|
-
> - `action="run-skill"` → Invoke via **Skill tool** (pass the `<field name="skill">` value EXACTLY)
|
|
23
|
-
> - `action="read-file"` → Read via **Read tool**
|
|
24
|
-
> - `action="create-file"` → Create via **Write tool** (create_file)
|
|
25
|
-
> - `action="edit-file"` → Edit via **Edit tool** (search_replace)
|
|
26
|
-
> - `action="analyze"` → Perform analysis directly
|
|
27
|
-
> - `action="generate"` → Generate content directly
|
|
28
|
-
> - `action="report"` → Format and output report
|
|
29
|
-
>
|
|
30
|
-
> **Step 3**: Execute ALL blocks sequentially without pausing (only stop at explicit `<event action="confirm">` blocks)
|
|
31
|
-
>
|
|
32
|
-
> **FORBIDDEN**:
|
|
33
|
-
> - Do NOT skip the block announcement format above — every block must be announced before execution
|
|
34
|
-
> - Do NOT run terminal commands as substitute for Skill tool calls
|
|
35
|
-
> - Do NOT skip blocks or improvise your own commands
|
|
7
|
+
# Trigger Scenarios
|
|
36
8
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## Operation Modes
|
|
42
|
-
|
|
43
|
-
| Mode | Description | Required Parameters |
|
|
44
|
-
|------|-------------|---------------------|
|
|
45
|
-
| `create` | Create new AgentFlow from natural language SOP | `description`, `parameters`, `skill_dir` |
|
|
46
|
-
| `validate` | Validate existing .agentflow.xml file | `target_file` |
|
|
47
|
-
| `refine` | Auto-fix validation errors in existing file | `target_file` |
|
|
48
|
-
|
|
49
|
-
## Invocation Method
|
|
50
|
-
|
|
51
|
-
**CRITICAL**: This skill is a **utility skill** — it MUST be loaded directly via Skill tool.
|
|
52
|
-
|
|
53
|
-
```xml
|
|
54
|
-
<block type="task" action="run-skill" desc="Invoke AgentFlow manager">
|
|
55
|
-
<field name="skill">speccrew-agentflow-manager</field>
|
|
56
|
-
<field name="mode">create</field>
|
|
57
|
-
<field name="description">Analyze source code and generate documentation</field>
|
|
58
|
-
<field name="parameters">["source_path", "output_dir"]</field>
|
|
59
|
-
<field name="skill_dir">/path/to/new-skill</field>
|
|
60
|
-
<field name="workspace_path">/path/to/workspace</field>
|
|
61
|
-
</block>
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Input Parameters
|
|
65
|
-
|
|
66
|
-
| Parameter | Type | Required | Description |
|
|
67
|
-
|-----------|------|----------|-------------|
|
|
68
|
-
| `mode` | string | Yes | Operation mode: `create`, `validate`, or `refine` |
|
|
69
|
-
| `description` | string | (create) | Natural language SOP description |
|
|
70
|
-
| `parameters` | array | (create) | Input parameter names (JSON array) |
|
|
71
|
-
| `target_file` | string | (validate/refine) | Path to .agentflow.xml file to validate/refine |
|
|
72
|
-
| `skill_dir` | string | (create) | Target skill directory path for new AgentFlow |
|
|
73
|
-
| `workspace_path` | string | Yes | Current workspace path |
|
|
74
|
-
|
|
75
|
-
## Output
|
|
76
|
-
|
|
77
|
-
- **create mode**: Generated `SKILL.xml` and `SKILL.md` skeleton
|
|
78
|
-
- **validate mode**: Validation report with errors and warnings
|
|
79
|
-
- **refine mode**: Fixed file path and fix summary
|
|
80
|
-
|
|
81
|
-
---
|
|
9
|
+
- User requests creation of a new AgentFlow XML from natural language SOP
|
|
10
|
+
- Existing AgentFlow XML file needs validation or refinement
|
|
11
|
+
- AgentFlow specification compliance check required
|
|
82
12
|
|
|
83
13
|
## AgentFlow Definition
|
|
84
14
|
|
|
85
15
|
<!-- @agentflow: SKILL.xml -->
|
|
86
16
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
## Appendix: Reference
|
|
90
|
-
|
|
91
|
-
### Block Type Quick Reference
|
|
92
|
-
|
|
93
|
-
| Block Type | Purpose | Required Attributes |
|
|
94
|
-
|------------|---------|---------------------|
|
|
95
|
-
| `input` | Define workflow inputs | Must be first block |
|
|
96
|
-
| `output` | Define workflow outputs | Must be last block |
|
|
97
|
-
| `task` | Execute an action | `action` attribute required |
|
|
98
|
-
| `gateway` | Conditional branching | `mode` attribute required |
|
|
99
|
-
| `loop` | Iterate over collection | `over`, `as` attributes required |
|
|
100
|
-
| `checkpoint` | Persist progress | `name` attribute required |
|
|
101
|
-
| `rule` | Declare constraints | `level` attribute required |
|
|
102
|
-
| `event` | Logging/confirmation | `action` attribute required |
|
|
103
|
-
| `error-handler` | Error handling | `try`, `catch` sub-elements |
|
|
104
|
-
|
|
105
|
-
### Action Types
|
|
106
|
-
|
|
107
|
-
| Action | IDE Tool | Usage |
|
|
108
|
-
|--------|----------|-------|
|
|
109
|
-
| `run-skill` | Skill tool | Invoke another skill |
|
|
110
|
-
| `run-script` | Terminal tool | Execute command/script |
|
|
111
|
-
| `read-file` | Read tool | Read file content |
|
|
112
|
-
| `create-file` | Write tool | Create new file |
|
|
113
|
-
| `edit-file` | Edit tool | Modify existing file |
|
|
114
|
-
| `analyze` | Direct execution | Perform analysis |
|
|
115
|
-
| `generate` | Direct execution | Generate content |
|
|
116
|
-
| `report` | Direct execution | Format and output report |
|
|
117
|
-
| `dispatch-to-worker` | Task tool | Create task for worker |
|
|
118
|
-
|
|
119
|
-
### Variable Reference Syntax
|
|
120
|
-
|
|
121
|
-
```xml
|
|
122
|
-
<!-- Simple variable -->
|
|
123
|
-
<field name="path" value="${skill_dir}/SKILL.xml"/>
|
|
124
|
-
|
|
125
|
-
<!-- Object property -->
|
|
126
|
-
<field name="count" value="${validation_result.errors.length}"/>
|
|
127
|
-
|
|
128
|
-
<!-- Array index -->
|
|
129
|
-
<field name="first" value="${parameters[0]}"/>
|
|
130
|
-
|
|
131
|
-
<!-- In condition -->
|
|
132
|
-
<case condition="${mode} == 'create'" next="B1"/>
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Checkpoint Verification
|
|
136
|
-
|
|
137
|
-
```xml
|
|
138
|
-
<block type="checkpoint" id="CP1" name="workflow_created" desc="Verify file was created">
|
|
139
|
-
<field name="file" value="${skill_dir}/SKILL.xml"/>
|
|
140
|
-
<field name="verify" value="file_exists(${skill_dir}/SKILL.xml)"/>
|
|
141
|
-
</block>
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
## Checklist
|
|
147
|
-
|
|
148
|
-
- [ ] XML declaration present: `<?xml version="1.0" encoding="UTF-8"?>`
|
|
149
|
-
- [ ] `<workflow>` root element with id, status, version attributes
|
|
150
|
-
- [ ] `<block type="input">` as first block with all required parameters
|
|
151
|
-
- [ ] `<block type="output">` as last block with result definitions
|
|
152
|
-
- [ ] All block IDs are unique (B1, B2, G1, etc.)
|
|
153
|
-
- [ ] All `next` references point to valid block IDs
|
|
154
|
-
- [ ] All variable references use `${}` syntax
|
|
155
|
-
- [ ] All required fields have `required="true"` attribute
|
|
156
|
-
- [ ] Gateway conditions are valid and cover all cases
|
|
157
|
-
- [ ] Checkpoint verification conditions are valid
|
|
158
|
-
|
|
159
|
-
> **MANDATORY**: All generated AgentFlow XML must strictly comply with the specification in `${workspace_path}/docs/rules/agentflow-spec.md`.
|
|
160
|
-
|
|
161
|
-
<!-- @agentflow: SKILL.xml -->
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|
|
@@ -10,66 +10,9 @@ tools: Read, Bash, Glob
|
|
|
10
10
|
- Deploy Agent needs to verify the application compiles successfully
|
|
11
11
|
- CI/CD pipeline requires a build step verification
|
|
12
12
|
|
|
13
|
-
# Input Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Required | Type | Description |
|
|
16
|
-
|-----------|----------|------|-------------|
|
|
17
|
-
| `platform_id` | Yes | string | Platform identifier (e.g., backend-spring, frontend-react) |
|
|
18
|
-
| `build_cmd` | Yes | string | Build command from conventions-data/build (e.g., `mvn package -DskipTests`) |
|
|
19
|
-
| `project_root` | Yes | string | Absolute path to the project root directory |
|
|
20
|
-
| `iteration_path` | Yes | string | Current iteration directory path |
|
|
21
|
-
|
|
22
13
|
## AgentFlow Definition
|
|
23
14
|
|
|
24
15
|
<!-- @agentflow: SKILL.xml -->
|
|
25
16
|
|
|
26
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
27
|
-
|
|
28
|
-
# Task Completion Report
|
|
29
|
-
|
|
30
|
-
## Success Report
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
## Task Completion Report
|
|
34
|
-
- **Status**: SUCCESS
|
|
35
|
-
- **Platform**: {platform_id}
|
|
36
|
-
- **Project Root**: {project_root}
|
|
37
|
-
- **Build Duration**: {duration_seconds}s
|
|
38
|
-
- **Build Command**: {build_cmd}
|
|
39
|
-
- **Artifact Paths**:
|
|
40
|
-
- {artifact_path_1}
|
|
41
|
-
- {artifact_path_2}
|
|
42
|
-
- ...
|
|
43
|
-
- **Build Log** (last 20 lines):
|
|
44
|
-
```
|
|
45
|
-
{last_20_lines_of_build_output}
|
|
46
|
-
```
|
|
47
|
-
- **Summary**: Build completed successfully with {artifact_count} artifacts generated
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Failure Report
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
## Task Completion Report
|
|
54
|
-
- **Status**: FAILED
|
|
55
|
-
- **Platform**: {platform_id}
|
|
56
|
-
- **Project Root**: {project_root}
|
|
57
|
-
- **Build Command**: {build_cmd}
|
|
58
|
-
- **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR}
|
|
59
|
-
- **Error**: {detailed error description}
|
|
60
|
-
- **Build Log** (last 30 lines):
|
|
61
|
-
```
|
|
62
|
-
{last_30_lines_of_build_output}
|
|
63
|
-
```
|
|
64
|
-
- **Recovery Hint**: {suggestion for resolving the issue}
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
# Key Rules
|
|
68
|
-
|
|
69
|
-
| Rule | Description |
|
|
70
|
-
|------|-------------|
|
|
71
|
-
| **No Hard-coded Commands** | All build commands come from input parameters |
|
|
72
|
-
| **Tool Detection** | Automatically detect and verify build tool availability |
|
|
73
|
-
| **Artifact Verification** | Always verify expected artifacts exist after build |
|
|
74
|
-
| **Duration Tracking** | Record and report build duration |
|
|
75
|
-
| **Log Capture** | Capture and report relevant build output |
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|
|
@@ -10,71 +10,9 @@ tools: Read, Bash, Glob
|
|
|
10
10
|
- Deploy Agent needs to apply pending schema changes
|
|
11
11
|
- CI/CD pipeline requires database migration verification
|
|
12
12
|
|
|
13
|
-
# Input Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Required | Type | Description |
|
|
16
|
-
|-----------|----------|------|-------------|
|
|
17
|
-
| `platform_id` | Yes | string | Platform identifier |
|
|
18
|
-
| `migration_cmd` | Yes | string | Migration execution command from conventions-data (e.g., `mvn flyway:migrate`) |
|
|
19
|
-
| `validation_cmd` | No | string | Migration validation command (e.g., `mvn flyway:validate`) |
|
|
20
|
-
| `migration_scripts` | Yes | string | JSON array of migration scripts: `[{"name":"V001__create_user.sql","path":"...","type":"CREATE TABLE"}]` |
|
|
21
|
-
| `project_root` | Yes | string | Absolute path to the project root directory |
|
|
22
|
-
| `iteration_path` | Yes | string | Current iteration directory path |
|
|
23
|
-
|
|
24
13
|
## AgentFlow Definition
|
|
25
14
|
|
|
26
15
|
<!-- @agentflow: SKILL.xml -->
|
|
27
16
|
|
|
28
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
29
|
-
|
|
30
|
-
# Task Completion Report
|
|
31
|
-
|
|
32
|
-
## Success Report
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
## Task Completion Report
|
|
36
|
-
- **Status**: SUCCESS
|
|
37
|
-
- **Platform**: {platform_id}
|
|
38
|
-
- **Project Root**: {project_root}
|
|
39
|
-
- **Migration Command**: {migration_cmd}
|
|
40
|
-
- **Scripts Executed**: {count}
|
|
41
|
-
- {script_1_name}: {type} ({tables_affected})
|
|
42
|
-
- {script_2_name}: {type} ({tables_affected})
|
|
43
|
-
- ...
|
|
44
|
-
- **Tables Affected**:
|
|
45
|
-
- Created: {table_list}
|
|
46
|
-
- Modified: {table_list}
|
|
47
|
-
- Dropped: {table_list}
|
|
48
|
-
- **Validation Status**: {PASSED | SKIPPED}
|
|
49
|
-
- **Execution Duration**: {duration_seconds}s
|
|
50
|
-
- **Summary**: Database migration completed successfully
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Failure Report
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
## Task Completion Report
|
|
57
|
-
- **Status**: FAILED
|
|
58
|
-
- **Platform**: {platform_id}
|
|
59
|
-
- **Project Root**: {project_root}
|
|
60
|
-
- **Migration Command**: {migration_cmd}
|
|
61
|
-
- **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR}
|
|
62
|
-
- **Error**: {detailed error description}
|
|
63
|
-
- **Scripts Attempted**: {count}
|
|
64
|
-
- **Failed Script**: {script_name} (if applicable)
|
|
65
|
-
- **Migration Output** (last 30 lines):
|
|
66
|
-
```
|
|
67
|
-
{last_30_lines_of_migration_output}
|
|
68
|
-
```
|
|
69
|
-
- **Recovery Hint**: {suggestion for resolving the issue}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
# Key Rules
|
|
73
|
-
|
|
74
|
-
| Rule | Description |
|
|
75
|
-
|------|-------------|
|
|
76
|
-
| **Script Verification** | Always verify migration script files exist before execution |
|
|
77
|
-
| **Optional Validation** | Validation step is optional based on validation_cmd presence |
|
|
78
|
-
| **JSON Parsing** | Parse migration_scripts JSON to extract script metadata |
|
|
79
|
-
| **Table Tracking** | Report tables affected by each migration script |
|
|
80
|
-
| **Duration Tracking** | Record and report migration execution duration |
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|
|
@@ -10,82 +10,9 @@ tools: Read, Bash, Glob
|
|
|
10
10
|
- Deploy Agent needs to validate deployment success
|
|
11
11
|
- Post-deployment verification required
|
|
12
12
|
|
|
13
|
-
# Input Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Required | Type | Description |
|
|
16
|
-
|-----------|----------|------|-------------|
|
|
17
|
-
| `platform_id` | Yes | string | Platform identifier |
|
|
18
|
-
| `base_url` | No | string | Application base URL (e.g., `http://localhost:8080`). Required for `http` mode. |
|
|
19
|
-
| `api_contract_paths` | No | string | Comma-separated paths to API Contract documents. Required for `http` mode. |
|
|
20
|
-
| `iteration_path` | Yes | string | Current iteration directory path |
|
|
21
|
-
| `test_mode` | No | string | Test method: `http` (default, for server apps), `process` (for client apps - verify process runs and exits cleanly), `log` (verify expected log output). Default: `http` |
|
|
22
|
-
| `expected_exit_code` | No | string | Expected process exit code for `process` mode (default: `0`) |
|
|
23
|
-
| `log_file` | No | string | Log file path for `log` mode verification |
|
|
24
|
-
| `expected_log_patterns` | No | string | Comma-separated regex patterns expected in log for `log` mode (e.g., `"DB initialized,UI loaded"`) |
|
|
25
|
-
| `process_name` | No | string | Process name or pattern to check (for `process` mode, e.g., `myapp.exe` or `MyApp`) |
|
|
26
|
-
|
|
27
13
|
## AgentFlow Definition
|
|
28
14
|
|
|
29
15
|
<!-- @agentflow: SKILL.xml -->
|
|
30
16
|
|
|
31
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
32
|
-
|
|
33
|
-
# Task Completion Report
|
|
34
|
-
|
|
35
|
-
## Success Report
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
## Task Completion Report
|
|
39
|
-
- **Status**: SUCCESS
|
|
40
|
-
- **Platform**: {platform_id}
|
|
41
|
-
- **Base URL**: {base_url}
|
|
42
|
-
- **Endpoints Tested**: {total_count}
|
|
43
|
-
- **Pass Rate**: {pass_rate}%
|
|
44
|
-
- **Passed**: {passed_count}
|
|
45
|
-
- **Failed**: {failed_count}
|
|
46
|
-
- **Test Results**:
|
|
47
|
-
|
|
48
|
-
| Endpoint | Method | Expected | Actual | Status |
|
|
49
|
-
|----------|--------|----------|--------|--------|
|
|
50
|
-
| {endpoint_1} | {method} | {expected} | {actual} | PASS |
|
|
51
|
-
| {endpoint_2} | {method} | {expected} | {actual} | PASS |
|
|
52
|
-
| {endpoint_3} | {method} | {expected} | {actual} | FAIL |
|
|
53
|
-
|
|
54
|
-
- **Summary**: Smoke test passed with {pass_rate}% success rate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Failure Report
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
## Task Completion Report
|
|
61
|
-
- **Status**: FAILED
|
|
62
|
-
- **Platform**: {platform_id}
|
|
63
|
-
- **Base URL**: {base_url}
|
|
64
|
-
- **Endpoints Tested**: {total_count}
|
|
65
|
-
- **Pass Rate**: {pass_rate}%
|
|
66
|
-
- **Failed Endpoints**:
|
|
67
|
-
- {endpoint_1}: expected {expected}, got {actual}
|
|
68
|
-
- {endpoint_2}: expected {expected}, got {actual}
|
|
69
|
-
- **Error Category**: {VALIDATION_ERROR | RUNTIME_ERROR}
|
|
70
|
-
- **Error**: {detailed error description}
|
|
71
|
-
- **Recovery Hint**: Verify application is running and API contracts are up to date
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
# Important Notes
|
|
75
|
-
|
|
76
|
-
- **Smoke test is NOT integration testing** — it only verifies service availability and endpoint reachability
|
|
77
|
-
- **Pass rate threshold** — If pass rate < 80% → FAILED
|
|
78
|
-
- **Critical GET endpoints** — If any critical GET endpoint returns 404 → FAILED
|
|
79
|
-
- **No business logic testing** — Smoke test does not validate request/response bodies or business rules
|
|
80
|
-
- **Lightweight verification** — Designed for quick post-deployment validation
|
|
81
|
-
|
|
82
|
-
# Key Rules
|
|
83
|
-
|
|
84
|
-
| Rule | Description |
|
|
85
|
-
|------|-------------|
|
|
86
|
-
| **HTTP Status Only** | Only verify HTTP status codes, not response bodies |
|
|
87
|
-
| **GET Endpoints** | Must return 200 or redirect (301/302) |
|
|
88
|
-
| **Write Endpoints** | Any status except 404 is acceptable |
|
|
89
|
-
| **80% Pass Rate** | Overall pass rate must be >= 80% |
|
|
90
|
-
| **Critical GET 404** | Any critical GET endpoint returning 404 causes failure |
|
|
91
|
-
| **Contract-Based** | Extract endpoints from API Contract documents |
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|
|
@@ -10,77 +10,9 @@ tools: Read, Bash
|
|
|
10
10
|
- Deploy Agent needs to verify application startup
|
|
11
11
|
- Smoke test requires a running application instance
|
|
12
12
|
|
|
13
|
-
# Input Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Required | Type | Description |
|
|
16
|
-
|-----------|----------|------|-------------|
|
|
17
|
-
| `platform_id` | Yes | string | Platform identifier |
|
|
18
|
-
| `start_cmd` | Yes | string | Application start command from conventions-data (e.g., `java -jar target/app.jar`) |
|
|
19
|
-
| `health_url` | No | string | Health check URL (e.g., `http://localhost:8080/actuator/health`). Required for `http` mode. |
|
|
20
|
-
| `health_timeout` | No | string | Health check timeout, default 60s |
|
|
21
|
-
| `project_root` | Yes | string | Absolute path to the project root directory |
|
|
22
|
-
| `iteration_path` | Yes | string | Current iteration directory path |
|
|
23
|
-
| `verification_mode` | No | string | Verification method: `http` (default, for server apps), `process` (for client/desktop apps), `log` (for apps with log output). Default: `http` |
|
|
24
|
-
| `process_name` | No | string | Process name or pattern to check (for `process` mode, e.g., `myapp.exe` or `MyApp`) |
|
|
25
|
-
| `log_file` | No | string | Path to application log file (for `log` mode) |
|
|
26
|
-
| `success_pattern` | No | string | Regex pattern in log that indicates successful startup (for `log` mode, e.g., `"Application started"` or `"Ready"`) |
|
|
27
|
-
|
|
28
13
|
## AgentFlow Definition
|
|
29
14
|
|
|
30
15
|
<!-- @agentflow: SKILL.xml -->
|
|
31
16
|
|
|
32
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
33
|
-
|
|
34
|
-
# Task Completion Report
|
|
35
|
-
|
|
36
|
-
## Success Report
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
## Task Completion Report
|
|
40
|
-
- **Status**: SUCCESS
|
|
41
|
-
- **Platform**: {platform_id}
|
|
42
|
-
- **Project Root**: {project_root}
|
|
43
|
-
- **Service URL**: {service_url}
|
|
44
|
-
- **Health URL**: {health_url}
|
|
45
|
-
- **Health Status**: UP
|
|
46
|
-
- **Startup Duration**: {duration_seconds}s
|
|
47
|
-
- **Process ID (PID)**: {pid}
|
|
48
|
-
- **Start Command**: {start_cmd}
|
|
49
|
-
- **Summary**: Application started successfully and passed health check
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Failure Report
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
## Task Completion Report
|
|
56
|
-
- **Status**: FAILED
|
|
57
|
-
- **Platform**: {platform_id}
|
|
58
|
-
- **Project Root**: {project_root}
|
|
59
|
-
- **Start Command**: {start_cmd}
|
|
60
|
-
- **Health URL**: {health_url}
|
|
61
|
-
- **Error Category**: {DEPENDENCY_MISSING | RUNTIME_ERROR}
|
|
62
|
-
- **Error**: {detailed error description}
|
|
63
|
-
- **Startup Log** (last 30 lines):
|
|
64
|
-
```
|
|
65
|
-
{last_30_lines_of_application_log}
|
|
66
|
-
```
|
|
67
|
-
- **Recovery Hint**: {suggestion for resolving the issue}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
# Important Notes
|
|
71
|
-
|
|
72
|
-
- **Application runs in BACKGROUND** — it must remain running for subsequent smoke test
|
|
73
|
-
- **PID must be reported** — the Deploy Agent uses this for cleanup later
|
|
74
|
-
- **Health check uses curl** — cross-platform availability may vary; ensure curl is available
|
|
75
|
-
- **Default timeout is 60s** — adjust health_timeout parameter for slower-starting applications
|
|
76
|
-
- **Process monitoring** — verify the application process is still running after health check
|
|
77
|
-
|
|
78
|
-
# Key Rules
|
|
79
|
-
|
|
80
|
-
| Rule | Description |
|
|
81
|
-
|------|-------------|
|
|
82
|
-
| **Background Execution** | Application must start in background and continue running |
|
|
83
|
-
| **PID Recording** | Always record and report the process PID |
|
|
84
|
-
| **Health Polling** | Poll health endpoint every 5 seconds until success or timeout |
|
|
85
|
-
| **Timeout Configurable** | health_timeout parameter controls maximum wait time |
|
|
86
|
-
| **Process Verification** | Verify application process is still running after health check |
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|