@nockdev/awf 6.2.6 → 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 +2 -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,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "🩺 System doctor: environment diagnostics, runtime checks, config validation, dependency health"
|
|
3
|
+
skills: { required: [], contextual: [auto] }
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 🩺 /doctor — System Doctor Pro
|
|
7
|
+
|
|
8
|
+
> Environment Diagnostics & Fix Recommendations
|
|
9
|
+
> 📚 Runtime Check • Config Validation • Dependency Health • Auto-Fix
|
|
10
|
+
> ℹ️ Complements `/status` (project health); `/doctor` focuses on environment readiness
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## DOCTOR FLOW
|
|
15
|
+
|
|
16
|
+
1. **SCAN** — Detect environment via HSA (`hsa_detect_environment`), identify OS, shell, runtimes, package managers. Show: `[Step 1/4] Scanning environment...`
|
|
17
|
+
2. **VALIDATE** — Check runtime versions, required tools, config files, permissions. Show: `[Step 2/4] Validating 12 checks...`
|
|
18
|
+
3. **DIAGNOSE** — Identify issues, classify severity (🔴 Critical / 🟡 Warning / 🟢 OK). Show: `[Step 3/4] Found 2 issues`
|
|
19
|
+
4. **PRESCRIBE** — Generate fix commands, link docs, offer auto-fix for safe items. Show: `[Step 4/4] Generating prescriptions...`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## COMMANDS
|
|
24
|
+
|
|
25
|
+
| Command | Description |
|
|
26
|
+
| ------------------- | --------------------------------------- |
|
|
27
|
+
| `/doctor` | Full environment diagnostic |
|
|
28
|
+
| `/doctor quick` | Brief summary (🔴 only) |
|
|
29
|
+
| `/doctor fix` | Auto-fix safe issues |
|
|
30
|
+
| `/doctor [runtime]` | Check specific runtime (node/go/python) |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 📋 DIAGNOSTIC CHECKS
|
|
35
|
+
|
|
36
|
+
### Runtime Checks
|
|
37
|
+
|
|
38
|
+
| Check | Command | 🟢 Good | 🟡 Warning | 🔴 Critical |
|
|
39
|
+
| ------- | ------------------ | ------- | ---------- | ---------------- |
|
|
40
|
+
| Node.js | `node -v` | ≥ 18.x | 16.x | < 16 / missing |
|
|
41
|
+
| npm | `npm -v` | ≥ 9.x | 7-8.x | < 7 / missing |
|
|
42
|
+
| Go | `go version` | ≥ 1.22 | 1.20-1.21 | < 1.20 / missing |
|
|
43
|
+
| Python | `python --version` | ≥ 3.11 | 3.9-3.10 | < 3.9 / missing |
|
|
44
|
+
| Git | `git --version` | ≥ 2.40 | 2.30-2.39 | < 2.30 / missing |
|
|
45
|
+
| Docker | `docker --version` | ≥ 24.x | 20-23.x | < 20 / missing |
|
|
46
|
+
|
|
47
|
+
### Config Validation
|
|
48
|
+
|
|
49
|
+
| Check | What | Auto-fix |
|
|
50
|
+
| ---------------------- | ------------------------------- | ----------- |
|
|
51
|
+
| `.env` exists | Required env vars present | ⚠️ Template |
|
|
52
|
+
| `tsconfig.json` | Strict mode enabled | ✅ Yes |
|
|
53
|
+
| `package.json` engines | Node version constraint | ✅ Yes |
|
|
54
|
+
| `.gitignore` | Sensitive files excluded | ✅ Yes |
|
|
55
|
+
| Lock file | Consistent with package manager | ❌ No |
|
|
56
|
+
|
|
57
|
+
### Dependency Health
|
|
58
|
+
|
|
59
|
+
| Check | Command | Action |
|
|
60
|
+
| ------------------ | ------------------------------- | ----------------- |
|
|
61
|
+
| Outdated deps | `npm outdated` | Show update plan |
|
|
62
|
+
| Security vulns | `npm audit` | Show fix commands |
|
|
63
|
+
| Peer dep conflicts | `npm ls --all` | Show resolution |
|
|
64
|
+
| Unused deps | Analyze imports vs package.json | Suggest removal |
|
|
65
|
+
|
|
66
|
+
### HSA Engine Health
|
|
67
|
+
|
|
68
|
+
| Check | Tool | Expected |
|
|
69
|
+
| ----------- | ---------------------- | ---------------- |
|
|
70
|
+
| HSA running | `hsa_status` | Engine healthy |
|
|
71
|
+
| Index built | `hsa_status` (verbose) | BM25 + Vector OK |
|
|
72
|
+
| Cache warm | `hsa_status` (verbose) | Hit rate > 50% |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 📊 REPORT FORMAT
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
🩺 System Doctor Report
|
|
80
|
+
|
|
81
|
+
Environment: Windows 11 | PowerShell 7.5 | VS Code
|
|
82
|
+
Project: my-app (TypeScript + React)
|
|
83
|
+
|
|
84
|
+
Runtime Version Status Fix
|
|
85
|
+
──────────────────────────────────────────
|
|
86
|
+
Node.js 22.4.0 🟢 OK
|
|
87
|
+
npm 10.8.2 🟢 OK
|
|
88
|
+
Git 2.45.1 🟢 OK
|
|
89
|
+
Docker — 🟡 Not installed
|
|
90
|
+
|
|
91
|
+
Config Status Fix
|
|
92
|
+
──────────────────────────────────
|
|
93
|
+
.env 🟢 OK
|
|
94
|
+
tsconfig.json 🟡 strict: false → /doctor fix
|
|
95
|
+
.gitignore 🟢 OK
|
|
96
|
+
|
|
97
|
+
Dependencies Status Action
|
|
98
|
+
──────────────────────────────────
|
|
99
|
+
Outdated 🟡 3 minor → npm update
|
|
100
|
+
Security 🟢 0 vulns
|
|
101
|
+
Unused 🟡 2 found → npm uninstall lodash dayjs
|
|
102
|
+
|
|
103
|
+
HSA Engine Status
|
|
104
|
+
──────────────────────
|
|
105
|
+
Engine 🟢 Healthy (uptime: 2h)
|
|
106
|
+
Index 🟢 1,234 docs indexed
|
|
107
|
+
Cache 🟡 Hit rate: 45%
|
|
108
|
+
|
|
109
|
+
Score: 85/100 (🟢 Good)
|
|
110
|
+
Quick fix: `/doctor fix` (2 auto-fixable issues)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## ⛔ SAFETY
|
|
116
|
+
|
|
117
|
+
- Auto-fix only applies to safe items (config formatting, gitignore)
|
|
118
|
+
- Never auto-install system dependencies without confirmation
|
|
119
|
+
- Never modify .env files (only create templates)
|
|
120
|
+
- Show exact commands before executing
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
_DOMYH Awesome Code • System Doctor Pro • Environment Diagnostics_
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "🏗️ Feature lifecycle: scaffold docs, implement with traceability, enforce SDLC phases"
|
|
3
|
+
skills: { required: [coding-rules], contextual: [auto] }
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 🏗️ /feature — Feature Lifecycle Pro
|
|
7
|
+
|
|
8
|
+
> Spec-Driven Feature Development with Phase Gates
|
|
9
|
+
> 📚 Requirements → Design → Plan → Implement → Test → Ship
|
|
10
|
+
> ⭐ Traceability: AC → Task → Code → Test (full chain)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## FEATURE FLOW
|
|
15
|
+
|
|
16
|
+
1. **PHASE 0: CONTEXT** — Detect stack via HSA (`hsa_detect_stack`), gather codebase context (`hsa_get_context`), repo map (`hsa_get_repo_map`), understand existing patterns
|
|
17
|
+
2. **PHASE 1: REQUIREMENTS** — Define problem, user stories (INVEST), acceptance criteria (AC-xxx), constraints, out-of-scope → Scaffold `docs/features/{slug}/requirements.md` → ⛔ STOP for user approval
|
|
18
|
+
3. **PHASE 2: DESIGN** — Architecture decisions (ADR-xxx format), data models, API contracts, risk matrix → Create `design.md` with decision records → ⛔ STOP if breaking changes
|
|
19
|
+
4. **PHASE 3: PLANNING** — Task breakdown with traceability (T-xxx → AC-xxx), effort estimation (XS-XXL), dependency graph, RICE scoring → Create `planning.md` → ⛔ STOP for user approval
|
|
20
|
+
5. **PHASE 4: IMPLEMENTATION** — Execute tasks per plan, log decisions in `implementation.md`, `hsa_check_changes` after each milestone. Each code change references task ID (T-xxx)
|
|
21
|
+
6. **PHASE 5: TESTING** — Write tests per `testing.md` strategy, run coverage check, validate all ACs met → Update test results
|
|
22
|
+
7. **PHASE 6: SHIP** — Create summary, update `implementation.md` with final status, verify all phase docs complete, run `/verify` for final gate
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## COMMANDS
|
|
27
|
+
|
|
28
|
+
| Command | Description |
|
|
29
|
+
| --------------------------- | --------------------------------- |
|
|
30
|
+
| `/feature [name]` | Full lifecycle (Phase 0-6) |
|
|
31
|
+
| `/feature spec [name]` | Spec-only (Phase 0-3, no code) |
|
|
32
|
+
| `/feature implement [slug]` | Resume from existing spec |
|
|
33
|
+
| `/feature status [slug]` | Show phase progress |
|
|
34
|
+
| `/feature list` | List features in `docs/features/` |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## FEATURE OUTPUT
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
output:
|
|
42
|
+
base: "docs/features/"
|
|
43
|
+
structure: "{feature-slug}/"
|
|
44
|
+
files:
|
|
45
|
+
requirements.md: "Problem statement, user stories, ACs (Phase 1)"
|
|
46
|
+
design.md: "Architecture, ADRs, data models (Phase 2)"
|
|
47
|
+
planning.md: "Task breakdown, effort, dependencies (Phase 3)"
|
|
48
|
+
implementation.md: "Code log, decisions, file changes (Phase 4)"
|
|
49
|
+
testing.md: "Test strategy, cases, coverage results (Phase 5)"
|
|
50
|
+
naming:
|
|
51
|
+
slug: "kebab-case from feature name, max 30 chars"
|
|
52
|
+
example: "docs/features/jwt-auth/"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## PHASE GATES
|
|
58
|
+
|
|
59
|
+
> Spec-driven development: requirements MUST be approved before code starts
|
|
60
|
+
|
|
61
|
+
| Gate | Trigger | Requires | Blocks |
|
|
62
|
+
| ---- | -------------------- | ------------- | ----------- |
|
|
63
|
+
| G1 | After Phase 1 (Req) | User approval | Phase 4,5,6 |
|
|
64
|
+
| G2 | After Phase 3 (Plan) | User approval | Phase 4 |
|
|
65
|
+
| G3 | After Phase 5 (Test) | All ACs pass | Phase 6 |
|
|
66
|
+
|
|
67
|
+
### Gate Rules
|
|
68
|
+
|
|
69
|
+
- G1 (mandatory): Cannot write feature code without approved requirements
|
|
70
|
+
- G2 (recommended): Skip with `/feature --no-plan-gate`
|
|
71
|
+
- G3 (automated): ACs verified by test results
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## TRACEABILITY MATRIX
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
AC-001 ←→ T-001 ←→ file:50 ←→ TC-001
|
|
79
|
+
↓ ↓ ↓ ↓
|
|
80
|
+
Requirement Task Implementation Test Case
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| Source | Links To | Format |
|
|
84
|
+
| ------ | ----------------- | ------------------ |
|
|
85
|
+
| AC-xxx | T-xxx, TC-xxx | `Ref: AC-001` |
|
|
86
|
+
| T-xxx | AC-xxx, file:line | `Task: T-001` |
|
|
87
|
+
| DD-xxx | AC-xxx | `Decision: DD-001` |
|
|
88
|
+
| TC-xxx | AC-xxx | `Covers: AC-001` |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## EFFORT ESTIMATION
|
|
93
|
+
|
|
94
|
+
| Size | Time | Examples |
|
|
95
|
+
| ------- | ----- | --------------------------- |
|
|
96
|
+
| **XS** | < 1h | Config change, copy fix |
|
|
97
|
+
| **S** | 1-4h | Simple endpoint, UI tweak |
|
|
98
|
+
| **M** | 4h-2d | Feature with tests |
|
|
99
|
+
| **L** | 2-5d | Multi-component feature |
|
|
100
|
+
| **XL** | 1-2w | Cross-cutting feature |
|
|
101
|
+
| **XXL** | 2w+ | **Needs breakdown → /plan** |
|
|
102
|
+
|
|
103
|
+
> Include: testing (20-30%), buffer (10-20%), review time
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## INTEGRATION
|
|
108
|
+
|
|
109
|
+
| Related Command | When to Use |
|
|
110
|
+
| --------------- | --------------------------------- |
|
|
111
|
+
| `/plan` | Complex planning (RICE scoring) |
|
|
112
|
+
| `/scaffold` | Generate boilerplate files |
|
|
113
|
+
| `/code` | Implementation (Phase 4) |
|
|
114
|
+
| `/test` | Test writing (Phase 5) |
|
|
115
|
+
| `/verify` | Final verification gate (Phase 6) |
|
|
116
|
+
| `/review` | Code review before merge |
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## ⛔ SAFETY
|
|
121
|
+
|
|
122
|
+
- Never skip Phase 1 gate (requirements approval)
|
|
123
|
+
- Never overwrite existing feature docs without confirmation
|
|
124
|
+
- Warn if feature scope exceeds XL (suggest breakdown)
|
|
125
|
+
- All code changes must reference task IDs
|
|
126
|
+
- Log all architecture decisions in design.md
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
_DOMYH Awesome Code • Feature Lifecycle Pro • Spec-Driven Development_
|
package/.agent/workflows/help.md
CHANGED
|
@@ -25,11 +25,12 @@ skills: { required: [], contextual: [] }
|
|
|
25
25
|
|
|
26
26
|
### Planning & Design
|
|
27
27
|
|
|
28
|
-
| Command | Description
|
|
29
|
-
| ------------------- |
|
|
30
|
-
| `/plan [feature]` | 📋 Feature planning
|
|
31
|
-
| `/
|
|
32
|
-
| `/
|
|
28
|
+
| Command | Description | Example |
|
|
29
|
+
| ------------------- | -------------------- | ---------------------- |
|
|
30
|
+
| `/plan [feature]` | 📋 Feature planning | `/plan shopping cart` |
|
|
31
|
+
| `/feature [name]` | 🏗️ Feature lifecycle | `/feature jwt-auth` |
|
|
32
|
+
| `/think [topic]` | 💡 Brainstorming | `/think architecture` |
|
|
33
|
+
| `/visualize [page]` | 🖼️ UI/UX mockups | `/visualize dashboard` |
|
|
33
34
|
|
|
34
35
|
### Quality & Ops
|
|
35
36
|
|
|
@@ -54,6 +55,7 @@ skills: { required: [], contextual: [] }
|
|
|
54
55
|
| Command | Description | Example |
|
|
55
56
|
| ---------- | --------------------- | -------------- |
|
|
56
57
|
| `/status` | 📊 Project health | `/status` |
|
|
58
|
+
| `/doctor` | 🩺 Environment check | `/doctor` |
|
|
57
59
|
| `/recap` | 📖 Session summary | `/recap` |
|
|
58
60
|
| `/upgrade` | 📦 Update deps | `/upgrade` |
|
|
59
61
|
| `/env` | 🔐 Environment config | `/env scan` |
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nockdev/awf",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.7",
|
|
4
4
|
"description": "DOMYH Awesome Code - AI Development Assistant with 82 Skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"configs"
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@nockdev/cli": "1.0.
|
|
16
|
+
"@nockdev/cli": "1.0.3"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@clack/prompts": "^0.11.0",
|