@nockdev/awf 6.2.5 → 6.2.7
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/.agent/config.yaml +2 -2
- package/.agent/core/AGENT_BEHAVIOR.md +1 -1
- package/.agent/core/AUDIT_POLICY.md +1 -1
- package/.agent/core/CACHE.md +1 -1
- package/.agent/core/DATA_SAFETY.md +1 -1
- package/.agent/core/MEMORY_PATHS.yaml +2 -2
- package/.agent/core/PERMISSIONS.md +1 -1
- package/.agent/core/README.md +1 -1
- package/.agent/core/VERSION.yaml +4 -4
- package/.agent/core/archive/ACTIVE_MEMORY.yaml +2 -2
- package/.agent/core/archive/CHECKPOINT.yaml +2 -2
- package/.agent/core/archive/CLEANUP_ENGINE.yaml +2 -2
- package/.agent/core/archive/CONTEXT_INJECTOR.yaml +2 -2
- package/.agent/core/archive/CONTEXT_LOADER.yaml +1 -1
- package/.agent/core/archive/CONTEXT_OPTIMIZATION.yaml +1 -1
- package/.agent/core/archive/CONTEXT_PRIORITY.yaml +2 -2
- package/.agent/core/archive/FLOW_ENGINE.yaml +1 -1
- package/.agent/core/archive/GRAPH_MEMORY.yaml +1 -1
- package/.agent/core/archive/HYBRID_ROUTER.yaml +1 -1
- package/.agent/core/archive/INTENT_DETECTION.yaml +1 -1
- package/.agent/core/archive/MEMORY_CONSOLIDATION.yaml +3 -3
- package/.agent/core/archive/MEMORY_ENGINE.yaml +2 -2
- package/.agent/core/archive/MEMORY_UTILS.yaml +1 -1
- package/.agent/core/archive/REFLECTION_ENGINE.yaml +1 -1
- package/.agent/core/archive/ROUTER.yaml +4 -4
- package/.agent/core/archive/SCORING_FORMULA.yaml +2 -2
- package/.agent/core/archive/SEMANTIC_ENGINE.yaml +1 -1
- package/.agent/core/archive/SKILLS_FLOW.yaml +1 -1
- package/.agent/core/archive/STATE_MACHINE.yaml +1 -1
- package/.agent/core/archive/SUMMARIZATION_ENGINE.yaml +2 -2
- package/.agent/core/archive/TOKEN_BUDGETS.yaml +2 -2
- package/.agent/core/archive/TOKEN_LOADING.yaml +2 -2
- package/.agent/core/archive/TOKEN_SUMMARY.yaml +2 -2
- package/.agent/core/reference/CODING_STYLES.yaml +1 -1
- package/.agent/core/reference/LIBRARY_REGISTRY.yaml +1 -1
- package/.agent/core/reference/MCP_TOOLS.yaml +2 -2
- package/.agent/core/reference/PATTERNS.yaml +1 -1
- package/.agent/core/reference/SKILL_SCHEMA.yaml +1 -1
- package/.agent/i18n/en.yaml +6 -6
- package/.agent/i18n/vi.yaml +6 -6
- package/.agent/ide/README.md +1 -1
- package/.agent/ide/amazonq.json +1 -1
- package/.agent/ide/amp.json +1 -1
- package/.agent/ide/antigravity.json +1 -1
- package/.agent/ide/augment.json +1 -1
- package/.agent/ide/claude.json +1 -1
- package/.agent/ide/cline.json +1 -1
- package/.agent/ide/cody.json +1 -1
- package/.agent/ide/continue.json +1 -1
- package/.agent/ide/cursor.json +1 -1
- package/.agent/ide/gemini.json +1 -1
- package/.agent/ide/jetbrains.json +1 -1
- package/.agent/ide/kiro.json +1 -1
- package/.agent/ide/opencode.json +1 -1
- package/.agent/ide/roo.json +1 -1
- package/.agent/ide/tabnine.json +1 -1
- package/.agent/ide/trae.json +1 -1
- package/.agent/ide/vscode.json +1 -1
- package/.agent/ide/windsurf.json +1 -1
- package/.agent/ide/zed.json +1 -1
- package/.agent/manifest.yaml +1 -1
- package/.agent/personas/README.md +1 -1
- package/.agent/personas/architect.md +1 -1
- package/.agent/personas/auditor.md +1 -1
- package/.agent/personas/debugger.md +1 -1
- package/.agent/personas/developer.md +1 -1
- package/.agent/personas/devops.md +1 -1
- package/.agent/personas/documenter.md +1 -1
- package/.agent/personas/orchestrator.md +1 -1
- package/.agent/personas/persona.schema.yaml +1 -1
- package/.agent/personas/planner.md +1 -1
- package/.agent/personas/researcher.md +1 -1
- package/.agent/personas/security.md +1 -1
- package/.agent/personas/tester.md +1 -1
- package/.agent/rules/README.md +1 -1
- package/.agent/rules/archive/constitutional/tier-0-core.yaml +5 -5
- package/.agent/rules/archive/constitutional/tier-1-safety.yaml +5 -5
- package/.agent/rules/archive/constitutional/tier-2-execution.yaml +6 -6
- package/.agent/rules/archive/context-management.yaml +1 -1
- package/.agent/rules/archive/duplication-prevention.md +1 -1
- package/.agent/rules/archive/evidence.yaml +1 -1
- package/.agent/rules/archive/project-detection.md +1 -1
- package/.agent/rules/archive/reflection.yaml +1 -1
- package/.agent/rules/archive/versioning.yaml +5 -5
- package/.agent/rules/data/build-systems.yaml +57 -2
- package/.agent/rules/modules/agent-delegation.yaml +2 -2
- package/.agent/rules/modules/edit-verification.yaml +1 -1
- package/.agent/rules/modules/git-workflow.yaml +1 -1
- package/.agent/rules/modules/language.yaml +1 -1
- package/.agent/rules/modules/online-research.yaml +1 -1
- package/.agent/rules/modules/performance-optimization.yaml +2 -2
- package/.agent/rules/modules/quality.yaml +1 -1
- package/.agent/rules/modules/stop-conditions.yaml +1 -1
- package/.agent/rules/modules/terminal-safety.yaml +1 -1
- package/.agent/rules/modules/yagni.yaml +1 -1
- package/.agent/rules/validation-framework.md +1 -1
- package/.agent/skills/README.md +1 -1
- package/.agent/skills/_categories.yaml +2 -2
- package/.agent/skills/ai-ml/rag-patterns/META.yaml +2 -0
- package/.agent/skills/core/api-design/META.yaml +1 -1
- package/.agent/skills/core/authentication/META.yaml +1 -1
- package/.agent/skills/core/error-handling/META.yaml +1 -1
- package/.agent/skills/core/logging/META.yaml +1 -1
- package/.agent/skills/core/observability/META.yaml +1 -1
- package/.agent/skills/core/security/META.yaml +1 -1
- package/.agent/skills/core/security/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/accessibility/META.yaml +1 -1
- package/.agent/skills/cross-cutting/audit-pro/META.yaml +9 -1
- package/.agent/skills/cross-cutting/audit-pro/SKILL.md +61 -5
- package/.agent/skills/cross-cutting/bun/META.yaml +17 -8
- package/.agent/skills/cross-cutting/bun/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/coding-rules/META.yaml +1 -1
- package/.agent/skills/cross-cutting/database/META.yaml +42 -1
- package/.agent/skills/cross-cutting/database/SKILL.md +44 -628
- package/.agent/skills/cross-cutting/database/references/nosql-patterns.md +194 -0
- package/.agent/skills/cross-cutting/database/references/orms-patterns.md +278 -0
- package/.agent/skills/cross-cutting/database/references/postgresql.md +144 -0
- package/.agent/skills/cross-cutting/deno/META.yaml +19 -10
- package/.agent/skills/cross-cutting/deno/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/domyh-design/META.yaml +1 -1
- package/.agent/skills/cross-cutting/domyh-design/data/desktop-colors.yaml +1 -1
- package/.agent/skills/cross-cutting/electron/SKILL.md +15 -616
- package/.agent/skills/cross-cutting/electron/references/ipc-testing.md +114 -0
- package/.agent/skills/cross-cutting/electron/references/native-integrations.md +216 -0
- package/.agent/skills/cross-cutting/electron/references/performance-accessibility.md +118 -0
- package/.agent/skills/cross-cutting/electron/references/updates-persistence.md +165 -0
- package/.agent/skills/cross-cutting/seo/META.yaml +1 -1
- package/.agent/skills/cross-cutting/skill-creator/META.yaml +37 -0
- package/.agent/skills/cross-cutting/skill-creator/SKILL.md +163 -0
- package/.agent/skills/cross-cutting/skill-creator/references/patterns.md +58 -0
- package/.agent/skills/cross-cutting/skill-creator/references/schema-v2.md +44 -0
- package/.agent/skills/cross-cutting/sql/META.yaml +1 -1
- package/.agent/skills/cross-cutting/sql/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/tailwind/META.yaml +1 -1
- package/.agent/skills/cross-cutting/tailwind/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/tdd-workflow/META.yaml +1 -1
- package/.agent/skills/cross-cutting/testing/META.yaml +7 -1
- package/.agent/skills/cross-cutting/testing/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/testing/data/frameworks.yaml +1 -1
- package/.agent/skills/cross-cutting/web-perf/META.yaml +1 -1
- package/.agent/skills/cross-cutting/web-perf/SKILL.md +1 -1
- package/.agent/skills/devops/aws/META.yaml +1 -1
- package/.agent/skills/devops/aws/SKILL.md +101 -16
- package/.agent/skills/devops/azure/SKILL.md +96 -30
- package/.agent/skills/devops/ci-cd/META.yaml +1 -1
- package/.agent/skills/devops/ci-cd/SKILL.md +114 -8
- package/.agent/skills/devops/docker/META.yaml +1 -1
- package/.agent/skills/devops/docker/SKILL.md +96 -8
- package/.agent/skills/devops/gcp/SKILL.md +106 -30
- package/.agent/skills/devops/kubernetes/META.yaml +1 -1
- package/.agent/skills/devops/kubernetes/SKILL.md +125 -8
- package/.agent/skills/frameworks/angular/META.yaml +1 -1
- package/.agent/skills/frameworks/angular/SKILL.md +1 -1
- package/.agent/skills/frameworks/flutter/META.yaml +1 -1
- package/.agent/skills/frameworks/flutter/SKILL.md +1 -1
- package/.agent/skills/frameworks/nextjs/META.yaml +1 -1
- package/.agent/skills/frameworks/nextjs/SKILL.md +1 -1
- package/.agent/skills/frameworks/nuxt/META.yaml +1 -1
- package/.agent/skills/frameworks/nuxt/SKILL.md +1 -1
- package/.agent/skills/frameworks/react/META.yaml +1 -1
- package/.agent/skills/frameworks/react/SKILL.md +24 -1
- package/.agent/skills/frameworks/react-native/META.yaml +1 -1
- package/.agent/skills/frameworks/react-native/SKILL.md +1 -1
- package/.agent/skills/frameworks/svelte/META.yaml +1 -1
- package/.agent/skills/frameworks/svelte/SKILL.md +1 -1
- package/.agent/skills/frameworks/vue/META.yaml +1 -1
- package/.agent/skills/frameworks/vue/SKILL.md +1 -1
- package/.agent/skills/index.json +2 -2
- package/.agent/skills/languages/asm/META.yaml +1 -1
- package/.agent/skills/languages/asm/SKILL.md +27 -436
- package/.agent/skills/languages/asm/references/advanced-architectures.md +191 -0
- package/.agent/skills/languages/asm/references/build-structure.md +150 -0
- package/.agent/skills/languages/asm/references/simd-programming.md +92 -0
- package/.agent/skills/languages/c/META.yaml +1 -1
- package/.agent/skills/languages/c/SKILL.md +14 -356
- package/.agent/skills/languages/c/references/data-structures.md +63 -0
- package/.agent/skills/languages/c/references/memory-management.md +74 -0
- package/.agent/skills/languages/c/references/platform-headers.md +230 -0
- package/.agent/skills/languages/clojure/META.yaml +1 -1
- package/.agent/skills/languages/clojure/SKILL.md +1 -1
- package/.agent/skills/languages/cpp/META.yaml +1 -1
- package/.agent/skills/languages/cpp/SKILL.md +22 -753
- package/.agent/skills/languages/cpp/references/headers-optimization.md +229 -0
- package/.agent/skills/languages/cpp/references/memory-concurrency.md +85 -0
- package/.agent/skills/languages/cpp/references/modern-cpp-features.md +126 -0
- package/.agent/skills/languages/cpp/references/platform-headers.md +202 -0
- package/.agent/skills/languages/cpp/references/stl-containers.md +57 -0
- package/.agent/skills/languages/crystal/META.yaml +1 -1
- package/.agent/skills/languages/crystal/SKILL.md +1 -1
- package/.agent/skills/languages/csharp/META.yaml +1 -1
- package/.agent/skills/languages/csharp/SKILL.md +1 -1
- package/.agent/skills/languages/elixir/META.yaml +1 -1
- package/.agent/skills/languages/elixir/SKILL.md +1 -1
- package/.agent/skills/languages/fsharp/META.yaml +1 -1
- package/.agent/skills/languages/fsharp/SKILL.md +1 -1
- package/.agent/skills/languages/go/META.yaml +1 -1
- package/.agent/skills/languages/go/SKILL.md +1 -1
- package/.agent/skills/languages/haskell/META.yaml +1 -1
- package/.agent/skills/languages/haskell/SKILL.md +1 -1
- package/.agent/skills/languages/java/META.yaml +1 -1
- package/.agent/skills/languages/java/SKILL.md +1 -1
- package/.agent/skills/languages/javascript/META.yaml +1 -1
- package/.agent/skills/languages/javascript/SKILL.md +1 -1
- package/.agent/skills/languages/julia/META.yaml +1 -1
- package/.agent/skills/languages/julia/SKILL.md +1 -1
- package/.agent/skills/languages/kotlin/META.yaml +1 -1
- package/.agent/skills/languages/kotlin/SKILL.md +1 -1
- package/.agent/skills/languages/lua/META.yaml +1 -1
- package/.agent/skills/languages/lua/SKILL.md +3 -3
- package/.agent/skills/languages/nim/META.yaml +1 -1
- package/.agent/skills/languages/nim/SKILL.md +1 -1
- package/.agent/skills/languages/ocaml/META.yaml +1 -1
- package/.agent/skills/languages/ocaml/SKILL.md +1 -1
- package/.agent/skills/languages/perl/META.yaml +1 -1
- package/.agent/skills/languages/perl/SKILL.md +1 -1
- package/.agent/skills/languages/php/META.yaml +1 -1
- package/.agent/skills/languages/php/SKILL.md +1 -1
- package/.agent/skills/languages/python/META.yaml +1 -1
- package/.agent/skills/languages/python/SKILL.md +1 -1
- package/.agent/skills/languages/r/META.yaml +1 -1
- package/.agent/skills/languages/r/SKILL.md +1 -1
- package/.agent/skills/languages/ruby/META.yaml +1 -1
- package/.agent/skills/languages/ruby/SKILL.md +1 -1
- package/.agent/skills/languages/rust/META.yaml +1 -1
- package/.agent/skills/languages/rust/SKILL.md +1 -1
- package/.agent/skills/languages/scala/META.yaml +1 -1
- package/.agent/skills/languages/scala/SKILL.md +1 -1
- package/.agent/skills/languages/solidity/META.yaml +1 -1
- package/.agent/skills/languages/solidity/SKILL.md +1 -1
- package/.agent/skills/languages/swift/META.yaml +1 -1
- package/.agent/skills/languages/swift/SKILL.md +1 -1
- package/.agent/skills/languages/typescript/META.yaml +19 -1
- package/.agent/skills/languages/typescript/SKILL.md +23 -1
- package/.agent/skills/languages/zig/META.yaml +1 -1
- package/.agent/skills/languages/zig/SKILL.md +1 -1
- package/.agent/templates/README.md +2 -2
- package/.agent/templates/chains/feature/step1-requirements.md +76 -0
- package/.agent/templates/chains/feature/step2-design.md +75 -0
- package/.agent/templates/chains/feature/step3-planning.md +81 -0
- package/.agent/templates/chains/feature/step4-implementation.md +74 -0
- package/.agent/templates/chains/feature/step5-testing.md +81 -0
- package/.agent/templates/debug-report.md +1 -1
- package/.agent/templates/deploy-plan.md +1 -1
- package/.agent/templates/doc-template.md +1 -1
- package/.agent/templates/feature-lifecycle.md +53 -0
- package/.agent/templates/index.yaml +53 -2
- package/.agent/templates/migrate-plan.md +1 -1
- package/.agent/templates/phase-template.md +1 -1
- package/.agent/templates/tasks/audit.yaml +1 -1
- package/.agent/templates/tasks/bug_fix.yaml +1 -1
- package/.agent/templates/tasks/code_implementation.yaml +1 -1
- package/.agent/templates/tasks/feature_development.yaml +89 -0
- package/.agent/templates/tasks/refactor.yaml +1 -1
- package/.agent/templates/test-report.md +1 -1
- package/.agent/workflows/doctor.md +124 -0
- package/.agent/workflows/feature.md +130 -0
- package/.agent/workflows/help.md +7 -5
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Feature Chain — Step 2: Design
|
|
2
|
+
|
|
3
|
+
> Architecture decisions before code
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
Requirements approved. Now design the solution architecture.
|
|
10
|
+
|
|
11
|
+
## Input
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
{{REQUIREMENTS_OUTPUT}}
|
|
15
|
+
{{CODEBASE_CONTEXT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Task
|
|
19
|
+
|
|
20
|
+
### 1. Architecture Overview
|
|
21
|
+
|
|
22
|
+
- How does this feature fit into existing architecture?
|
|
23
|
+
- What patterns to follow? (check existing code via `hsa_get_context`)
|
|
24
|
+
- Any new components or modules needed?
|
|
25
|
+
|
|
26
|
+
### 2. Data Models
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
// Define new or modified data structures
|
|
30
|
+
// Include types, interfaces, DB schemas
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 3. API Design (if applicable)
|
|
34
|
+
|
|
35
|
+
| Method | Endpoint | Request | Response | Auth |
|
|
36
|
+
| ------ | ---------------- | ---------- | ---------- | ---- |
|
|
37
|
+
| POST | `/api/v1/{name}` | `{schema}` | `{schema}` | Yes |
|
|
38
|
+
|
|
39
|
+
### 4. Architecture Decision Records (ADR)
|
|
40
|
+
|
|
41
|
+
| ID | Decision | Rationale | Alternatives Considered |
|
|
42
|
+
| ------ | ------------------ | --------- | ----------------------- |
|
|
43
|
+
| DD-001 | [What was decided] | [Why] | [Other options] |
|
|
44
|
+
|
|
45
|
+
### 5. Risk Assessment
|
|
46
|
+
|
|
47
|
+
| Risk | Impact | Likelihood | Mitigation |
|
|
48
|
+
| ------------- | -------- | ---------- | ---------- |
|
|
49
|
+
| [Description] | High/Med | Med/Low | [Strategy] |
|
|
50
|
+
|
|
51
|
+
## Output Format
|
|
52
|
+
|
|
53
|
+
```yaml
|
|
54
|
+
design:
|
|
55
|
+
architecture: "[Overview]"
|
|
56
|
+
patterns: ["[Pattern 1]", "[Pattern 2]"]
|
|
57
|
+
data_models:
|
|
58
|
+
- name: "[Model]"
|
|
59
|
+
fields: ["[field: type]"]
|
|
60
|
+
apis:
|
|
61
|
+
- method: "POST"
|
|
62
|
+
path: "/api/v1/{name}"
|
|
63
|
+
auth: true
|
|
64
|
+
decisions:
|
|
65
|
+
- id: "DD-001"
|
|
66
|
+
decision: "[Choice]"
|
|
67
|
+
rationale: "[Why]"
|
|
68
|
+
risks:
|
|
69
|
+
- risk: "[Description]"
|
|
70
|
+
mitigation: "[Strategy]"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
_Chain Step 2 of 5 • Output: design_
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Feature Chain — Step 3: Planning
|
|
2
|
+
|
|
3
|
+
> Task breakdown with full traceability
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
Design complete. Break down into executable tasks.
|
|
10
|
+
|
|
11
|
+
## Input
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
{{REQUIREMENTS_OUTPUT}}
|
|
15
|
+
{{DESIGN_OUTPUT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Task
|
|
19
|
+
|
|
20
|
+
### 1. Task Breakdown
|
|
21
|
+
|
|
22
|
+
| ID | Task | Ref | Est. | Deps | Status |
|
|
23
|
+
| ----- | ------------------ | ------ | ---- | ----- | ------ |
|
|
24
|
+
| T-001 | [Task description] | AC-001 | S | — | ⬜ |
|
|
25
|
+
| T-002 | [Task description] | AC-001 | M | T-001 | ⬜ |
|
|
26
|
+
| T-003 | [Task description] | AC-002 | S | — | ⬜ |
|
|
27
|
+
|
|
28
|
+
> Every task MUST reference an AC-xxx. Orphan tasks = scope creep.
|
|
29
|
+
|
|
30
|
+
### 2. Dependency Graph
|
|
31
|
+
|
|
32
|
+
```mermaid
|
|
33
|
+
graph LR
|
|
34
|
+
T-001 --> T-002
|
|
35
|
+
T-002 --> T-004
|
|
36
|
+
T-003 --> T-004
|
|
37
|
+
T-004 --> T-005["Test & Verify"]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 3. Effort Summary
|
|
41
|
+
|
|
42
|
+
| Size | Count | Total Est. |
|
|
43
|
+
| ----- | ----- | ---------- |
|
|
44
|
+
| XS | N | Xh |
|
|
45
|
+
| S | N | Xh |
|
|
46
|
+
| M | N | Xh |
|
|
47
|
+
| **Σ** | | **Xh** |
|
|
48
|
+
|
|
49
|
+
> Include buffer: testing (+20%), review (+10%)
|
|
50
|
+
|
|
51
|
+
### 4. Milestones
|
|
52
|
+
|
|
53
|
+
- [ ] **M1**: Core logic complete (T-001..T-003)
|
|
54
|
+
- [ ] **M2**: Tests passing, coverage met (T-004)
|
|
55
|
+
- [ ] **M3**: Documentation updated (T-005)
|
|
56
|
+
|
|
57
|
+
## Output Format
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
planning:
|
|
61
|
+
tasks:
|
|
62
|
+
- id: "T-001"
|
|
63
|
+
title: "[Task]"
|
|
64
|
+
ref: "AC-001"
|
|
65
|
+
effort: "S"
|
|
66
|
+
deps: []
|
|
67
|
+
- id: "T-002"
|
|
68
|
+
title: "[Task]"
|
|
69
|
+
ref: "AC-001"
|
|
70
|
+
effort: "M"
|
|
71
|
+
deps: ["T-001"]
|
|
72
|
+
total_effort: "Xh"
|
|
73
|
+
milestones:
|
|
74
|
+
- id: "M1"
|
|
75
|
+
name: "[Name]"
|
|
76
|
+
tasks: ["T-001", "T-002", "T-003"]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
_Chain Step 3 of 5 • Output: planning → ⛔ STOP for approval_
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Feature Chain — Step 4: Implementation
|
|
2
|
+
|
|
3
|
+
> Execute with traceability, log every decision
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
Plan approved. Implement tasks following the breakdown.
|
|
10
|
+
|
|
11
|
+
## Input
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
{{PLANNING_OUTPUT}}
|
|
15
|
+
{{DESIGN_OUTPUT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Task
|
|
19
|
+
|
|
20
|
+
### 1. Execute Tasks
|
|
21
|
+
|
|
22
|
+
For each task in the plan:
|
|
23
|
+
|
|
24
|
+
- Reference task ID: `// T-001: [description]`
|
|
25
|
+
- Follow design decisions (DD-xxx)
|
|
26
|
+
- Use existing patterns detected by HSA
|
|
27
|
+
- Run `hsa_check_changes` after each milestone
|
|
28
|
+
|
|
29
|
+
### 2. Log Files Changed
|
|
30
|
+
|
|
31
|
+
| File | Action | Task | Description |
|
|
32
|
+
| ------------------ | ------ | ----- | ---------------------- |
|
|
33
|
+
| `path/to/file.ts` | New | T-001 | [What was created] |
|
|
34
|
+
| `path/to/other.ts` | Modify | T-002 | [What changed and why] |
|
|
35
|
+
|
|
36
|
+
### 3. Decision Log
|
|
37
|
+
|
|
38
|
+
| Date | Decision | Context | Task |
|
|
39
|
+
| ---------- | ------------------ | ------------------- | ----- |
|
|
40
|
+
| YYYY-MM-DD | [What was decided] | [Why at this point] | T-001 |
|
|
41
|
+
|
|
42
|
+
### 4. Progress Tracking
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
████████░░ 80% (8/10 tasks)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- [x] T-001: Completed
|
|
49
|
+
- [x] T-002: Completed
|
|
50
|
+
- [/] T-003: In progress
|
|
51
|
+
- [ ] T-004: Not started
|
|
52
|
+
|
|
53
|
+
## Output Format
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
implementation:
|
|
57
|
+
files_changed:
|
|
58
|
+
- path: "path/to/file.ts"
|
|
59
|
+
action: "new"
|
|
60
|
+
task: "T-001"
|
|
61
|
+
decisions:
|
|
62
|
+
- date: "YYYY-MM-DD"
|
|
63
|
+
decision: "[Choice]"
|
|
64
|
+
task: "T-001"
|
|
65
|
+
progress:
|
|
66
|
+
completed: ["T-001", "T-002"]
|
|
67
|
+
in_progress: ["T-003"]
|
|
68
|
+
remaining: ["T-004"]
|
|
69
|
+
percentage: 80
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
_Chain Step 4 of 5 • Output: implementation log_
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Feature Chain — Step 5: Testing & Ship
|
|
2
|
+
|
|
3
|
+
> Verify all ACs met, then ship
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
Implementation complete. Verify quality and ship.
|
|
10
|
+
|
|
11
|
+
## Input
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
{{IMPLEMENTATION_OUTPUT}}
|
|
15
|
+
{{REQUIREMENTS_OUTPUT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Task
|
|
19
|
+
|
|
20
|
+
### 1. Test Strategy
|
|
21
|
+
|
|
22
|
+
| Type | Scope | Framework | Target |
|
|
23
|
+
| ----------- | --------------------- | ----------- | -------------- |
|
|
24
|
+
| Unit | Core logic | Auto-detect | 80%+ coverage |
|
|
25
|
+
| Integration | Component interaction | Auto-detect | Key paths |
|
|
26
|
+
| E2E | User flows (if UI) | Auto-detect | Critical paths |
|
|
27
|
+
|
|
28
|
+
### 2. Test Cases (Traceable)
|
|
29
|
+
|
|
30
|
+
| ID | Case | Covers | Type | Status |
|
|
31
|
+
| ------ | ------------- | ------ | ----------- | ------ |
|
|
32
|
+
| TC-001 | [Description] | AC-001 | Unit | ⬜ |
|
|
33
|
+
| TC-002 | [Description] | AC-002 | Integration | ⬜ |
|
|
34
|
+
|
|
35
|
+
> Every AC-xxx MUST have at least one TC-xxx. Uncovered AC = incomplete.
|
|
36
|
+
|
|
37
|
+
### 3. Coverage Results
|
|
38
|
+
|
|
39
|
+
| Metric | Target | Actual | Status |
|
|
40
|
+
| --------------- | ------ | ------ | ------ |
|
|
41
|
+
| Line Coverage | 80% | _TBD_ | ⬜ |
|
|
42
|
+
| Branch Coverage | 70% | _TBD_ | ⬜ |
|
|
43
|
+
| AC Coverage | 100% | _TBD_ | ⬜ |
|
|
44
|
+
|
|
45
|
+
### 4. AC Verification Matrix
|
|
46
|
+
|
|
47
|
+
| AC | Test(s) | Pass | Notes |
|
|
48
|
+
| ------ | ------- | ---- | ----------- |
|
|
49
|
+
| AC-001 | TC-001 | ⬜ | [Any notes] |
|
|
50
|
+
| AC-002 | TC-002 | ⬜ | [Any notes] |
|
|
51
|
+
|
|
52
|
+
### 5. Ship Checklist
|
|
53
|
+
|
|
54
|
+
- [ ] All tests pass
|
|
55
|
+
- [ ] All ACs verified
|
|
56
|
+
- [ ] Coverage targets met
|
|
57
|
+
- [ ] Design docs updated with final state
|
|
58
|
+
- [ ] Implementation log complete
|
|
59
|
+
- [ ] No regressions (existing tests still pass)
|
|
60
|
+
- [ ] Run `/verify` for final gate
|
|
61
|
+
|
|
62
|
+
## Output Format
|
|
63
|
+
|
|
64
|
+
```yaml
|
|
65
|
+
testing:
|
|
66
|
+
test_cases:
|
|
67
|
+
- id: "TC-001"
|
|
68
|
+
case: "[Description]"
|
|
69
|
+
covers: "AC-001"
|
|
70
|
+
type: "unit"
|
|
71
|
+
result: "pass"
|
|
72
|
+
coverage:
|
|
73
|
+
line: 85
|
|
74
|
+
branch: 72
|
|
75
|
+
ac: 100
|
|
76
|
+
ship_ready: true
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
_Chain Step 5 of 5 • Output: testing results + ship decision_
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Feature Lifecycle Template — DOMYH v6.2.7
|
|
2
|
+
|
|
3
|
+
> **Mục đích**: Template chuẩn cho feature docs khi sử dụng `/feature`
|
|
4
|
+
> **Tạo bởi**: Agent tự động tạo theo feature workflow
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🏗️ Feature: {{FEATURE_NAME}}
|
|
9
|
+
|
|
10
|
+
**Status**: ⬜ Requirements | 🟡 Design | 🔵 Planning | 🟢 Implementation | ✅ Ship
|
|
11
|
+
**Created**: {{DATE}}
|
|
12
|
+
**Slug**: `{{FEATURE_SLUG}}`
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 📊 Phase Progress
|
|
17
|
+
|
|
18
|
+
| Phase | Status | Gate | Document |
|
|
19
|
+
| ----------------- | ------ | ------------- | ------------------- |
|
|
20
|
+
| 1. Requirements | ⬜ | G1 (Approval) | `requirements.md` |
|
|
21
|
+
| 2. Design | ⬜ | — | `design.md` |
|
|
22
|
+
| 3. Planning | ⬜ | G2 (Approval) | `planning.md` |
|
|
23
|
+
| 4. Implementation | ⬜ | — | `implementation.md` |
|
|
24
|
+
| 5. Testing | ⬜ | G3 (ACs pass) | `testing.md` |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 📋 Traceability
|
|
29
|
+
|
|
30
|
+
| AC | Task(s) | File(s) | Test(s) | Status |
|
|
31
|
+
| ------ | ------- | ----------- | ------- | ------ |
|
|
32
|
+
| AC-001 | T-001 | `file:line` | TC-001 | ⬜ |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📝 Summary
|
|
37
|
+
|
|
38
|
+
{Tóm tắt feature khi hoàn thành}
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 📊 Metrics
|
|
43
|
+
|
|
44
|
+
```yaml
|
|
45
|
+
total_effort: "Xh estimated / Yh actual"
|
|
46
|
+
files_changed: N
|
|
47
|
+
tests_added: N
|
|
48
|
+
coverage: "X%"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
_Feature Lifecycle • DOMYH Awesome Code v6.2.7_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Template Index — HSA Semantic Template Matching
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# DOMYH Awesome Code Agent — Template Registry for HSA
|
|
5
|
-
# version: 6.2.
|
|
5
|
+
# version: 6.2.7
|
|
6
6
|
# =============================================================================
|
|
7
7
|
|
|
8
8
|
templates:
|
|
@@ -114,6 +114,19 @@ templates:
|
|
|
114
114
|
category: testing
|
|
115
115
|
priority: 100
|
|
116
116
|
|
|
117
|
+
# ==========================================================================
|
|
118
|
+
# Feature Lifecycle Templates
|
|
119
|
+
# ==========================================================================
|
|
120
|
+
- id: feature-lifecycle
|
|
121
|
+
file: feature-lifecycle.md
|
|
122
|
+
name: Feature Lifecycle
|
|
123
|
+
description: Full feature lifecycle template with phase tracking and traceability
|
|
124
|
+
keywords:
|
|
125
|
+
[feature, lifecycle, requirements, design, plan, implement, sdlc, spec]
|
|
126
|
+
workflows: ["/feature"]
|
|
127
|
+
category: planning
|
|
128
|
+
priority: 100
|
|
129
|
+
|
|
117
130
|
# =============================================================================
|
|
118
131
|
# Workflow Chains (Multi-Step Prompts)
|
|
119
132
|
# =============================================================================
|
|
@@ -219,6 +232,44 @@ chains:
|
|
|
219
232
|
depends_on: impl-3
|
|
220
233
|
description: Add documentation
|
|
221
234
|
|
|
235
|
+
/feature:
|
|
236
|
+
name: Feature Lifecycle Chain
|
|
237
|
+
description: Spec-driven 5-step feature development with phase gates
|
|
238
|
+
steps:
|
|
239
|
+
- order: 1
|
|
240
|
+
id: feat-1
|
|
241
|
+
name: Requirements
|
|
242
|
+
file: chains/feature/step1-requirements.md
|
|
243
|
+
description: Define problem, user stories, acceptance criteria
|
|
244
|
+
|
|
245
|
+
- order: 2
|
|
246
|
+
id: feat-2
|
|
247
|
+
name: Design
|
|
248
|
+
file: chains/feature/step2-design.md
|
|
249
|
+
depends_on: feat-1
|
|
250
|
+
description: Architecture decisions, data models, API design
|
|
251
|
+
|
|
252
|
+
- order: 3
|
|
253
|
+
id: feat-3
|
|
254
|
+
name: Planning
|
|
255
|
+
file: chains/feature/step3-planning.md
|
|
256
|
+
depends_on: feat-2
|
|
257
|
+
description: Task breakdown with traceability
|
|
258
|
+
|
|
259
|
+
- order: 4
|
|
260
|
+
id: feat-4
|
|
261
|
+
name: Implementation
|
|
262
|
+
file: chains/feature/step4-implementation.md
|
|
263
|
+
depends_on: feat-3
|
|
264
|
+
description: Execute tasks per plan with decision logging
|
|
265
|
+
|
|
266
|
+
- order: 5
|
|
267
|
+
id: feat-5
|
|
268
|
+
name: Testing & Ship
|
|
269
|
+
file: chains/feature/step5-testing.md
|
|
270
|
+
depends_on: feat-4
|
|
271
|
+
description: Verify all ACs met, coverage check, ship
|
|
272
|
+
|
|
222
273
|
# =============================================================================
|
|
223
274
|
# Search Configuration
|
|
224
275
|
# =============================================================================
|
|
@@ -236,4 +287,4 @@ search:
|
|
|
236
287
|
# =============================================================================
|
|
237
288
|
# Footer
|
|
238
289
|
# =============================================================================
|
|
239
|
-
# _DOMYH Awesome Code • Template Index v6.2.
|
|
290
|
+
# _DOMYH Awesome Code • Template Index v6.2.7 • HSA Integration_
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Feature Development Task Template
|
|
2
|
+
|
|
3
|
+
> Structured template for feature lifecycle tasks
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Schema
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
task_type: feature_development
|
|
11
|
+
version: "6.2.7"
|
|
12
|
+
|
|
13
|
+
# Required fields
|
|
14
|
+
feature_name: string # Feature name
|
|
15
|
+
description: string # What to build
|
|
16
|
+
user_stories: list # INVEST user stories
|
|
17
|
+
|
|
18
|
+
# Optional fields
|
|
19
|
+
acceptance_criteria: list # AC-xxx with priorities
|
|
20
|
+
constraints: list # Limitations or requirements
|
|
21
|
+
priority: enum # [P0, P1, P2, P3]
|
|
22
|
+
estimated_effort: string # [XS, S, M, L, XL, XXL]
|
|
23
|
+
design_decisions: list # DD-xxx records
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Example Task
|
|
29
|
+
|
|
30
|
+
```yaml
|
|
31
|
+
task:
|
|
32
|
+
type: feature_development
|
|
33
|
+
|
|
34
|
+
feature_name: "JWT Authentication"
|
|
35
|
+
|
|
36
|
+
description: |
|
|
37
|
+
Implement a complete JWT authentication flow
|
|
38
|
+
with login, logout, token refresh, and role-based access.
|
|
39
|
+
|
|
40
|
+
user_stories:
|
|
41
|
+
- as: "API consumer"
|
|
42
|
+
want: "authenticate with email/password"
|
|
43
|
+
so_that: "I can access protected endpoints"
|
|
44
|
+
- as: "authenticated user"
|
|
45
|
+
want: "refresh my expired token"
|
|
46
|
+
so_that: "I don't need to re-login"
|
|
47
|
+
|
|
48
|
+
acceptance_criteria:
|
|
49
|
+
- id: "AC-001"
|
|
50
|
+
criterion: "Login returns valid JWT on correct credentials"
|
|
51
|
+
priority: P0
|
|
52
|
+
- id: "AC-002"
|
|
53
|
+
criterion: "Invalid credentials return 401"
|
|
54
|
+
priority: P0
|
|
55
|
+
- id: "AC-003"
|
|
56
|
+
criterion: "Expired tokens are rejected and return 401"
|
|
57
|
+
priority: P0
|
|
58
|
+
- id: "AC-004"
|
|
59
|
+
criterion: "Refresh generates new valid token"
|
|
60
|
+
priority: P1
|
|
61
|
+
|
|
62
|
+
constraints:
|
|
63
|
+
- "Use bcrypt for password hashing"
|
|
64
|
+
- "JWT expiry: 24 hours"
|
|
65
|
+
- "Must work with existing User model"
|
|
66
|
+
- "No breaking changes to existing API"
|
|
67
|
+
|
|
68
|
+
priority: P1
|
|
69
|
+
estimated_effort: M
|
|
70
|
+
|
|
71
|
+
design_decisions:
|
|
72
|
+
- id: "DD-001"
|
|
73
|
+
decision: "Use HS256 for JWT signing"
|
|
74
|
+
rationale: "Simpler than RS256 for single-service"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Workflow Integration
|
|
80
|
+
|
|
81
|
+
This task type triggers:
|
|
82
|
+
- **Persona:** Developer → Architect (design) → Tester (verification)
|
|
83
|
+
- **Chain:** feature (1_requirements → 2_design → 3_planning → 4_implementation → 5_testing)
|
|
84
|
+
- **Phase Gates:** G1 (requirements approval), G2 (plan approval), G3 (AC verification)
|
|
85
|
+
- **Reflection:** Pre-output critic check at each gate
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
_DOMYH Awesome Code • Feature Development Task Template_
|