@drafthq/draft 2.8.3 → 3.1.5

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 (68) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +5 -5
  4. package/bin/README.md +10 -0
  5. package/core/methodology.md +17 -18
  6. package/core/shared/condensation.md +9 -9
  7. package/core/shared/draft-context-loading.md +7 -9
  8. package/core/shared/graph-query.md +38 -31
  9. package/core/shared/graph-usage-report.md +1 -1
  10. package/core/shared/pattern-learning.md +2 -2
  11. package/core/shared/red-flags.md +3 -3
  12. package/core/templates/ai-context.md +2 -1
  13. package/core/templates/ai-profile.md +1 -0
  14. package/core/templates/architecture.md +4 -3
  15. package/core/templates/dependency-graph.md +2 -2
  16. package/core/templates/discovery.md +1 -0
  17. package/core/templates/guardrails.md +1 -0
  18. package/core/templates/hld.md +1 -0
  19. package/core/templates/lld.md +1 -0
  20. package/core/templates/plan.md +1 -0
  21. package/core/templates/product.md +1 -0
  22. package/core/templates/rca.md +1 -0
  23. package/core/templates/root-architecture.md +3 -3
  24. package/core/templates/root-product.md +2 -2
  25. package/core/templates/root-tech-stack.md +2 -2
  26. package/core/templates/service-index.md +3 -3
  27. package/core/templates/spec.md +1 -0
  28. package/core/templates/tech-matrix.md +2 -2
  29. package/core/templates/tech-stack.md +1 -0
  30. package/core/templates/workflow.md +1 -0
  31. package/integrations/agents/AGENTS.md +276 -1037
  32. package/integrations/copilot/.github/copilot-instructions.md +276 -1037
  33. package/package.json +1 -1
  34. package/scripts/lib.sh +2 -1
  35. package/scripts/tools/adr-index.sh +2 -2
  36. package/scripts/tools/check-scope-conflicts.sh +2 -2
  37. package/scripts/tools/check-skill-line-caps.sh +2 -2
  38. package/scripts/tools/cycle-detect.sh +5 -1
  39. package/scripts/tools/diff-templates-vs-tracks.sh +2 -2
  40. package/scripts/tools/fix-whitespace.sh +15 -9
  41. package/scripts/tools/graph-arch.sh +72 -0
  42. package/scripts/tools/graph-impact.sh +1 -0
  43. package/scripts/tools/graph-init.sh +187 -0
  44. package/scripts/tools/graph-snapshot.sh +52 -46
  45. package/scripts/tools/hotspot-rank.sh +2 -0
  46. package/scripts/tools/manage-symlinks.sh +1 -1
  47. package/scripts/tools/parse-reports.sh +1 -1
  48. package/scripts/tools/skill-caps.conf +0 -1
  49. package/scripts/tools/verify-doc-anchors.sh +2 -2
  50. package/scripts/tools/verify-graph-binary.sh +1 -1
  51. package/skills/GRAPH.md +9 -12
  52. package/skills/bughunt/SKILL.md +14 -1
  53. package/skills/debug/SKILL.md +3 -3
  54. package/skills/decompose/SKILL.md +5 -5
  55. package/skills/deep-review/SKILL.md +2 -2
  56. package/skills/deploy-checklist/SKILL.md +2 -2
  57. package/skills/discover/SKILL.md +2 -4
  58. package/skills/draft/SKILL.md +2 -2
  59. package/skills/draft/intent-mapping.md +3 -2
  60. package/skills/graph/SKILL.md +3 -3
  61. package/skills/implement/SKILL.md +1 -1
  62. package/skills/init/SKILL.md +102 -43
  63. package/skills/init/references/architecture-spec.md +17 -16
  64. package/skills/learn/SKILL.md +5 -5
  65. package/skills/quick-review/SKILL.md +3 -3
  66. package/skills/review/SKILL.md +7 -7
  67. package/skills/tech-debt/SKILL.md +2 -2
  68. package/skills/index/SKILL.md +0 -848
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  project: "{PROJECT_NAME}"
3
3
  module: "root"
4
- generated_by: "draft:index"
4
+ generated_by: "draft:init"
5
5
  generated_at: "{ISO_TIMESTAMP}"
6
6
  ---
7
7
 
@@ -16,7 +16,7 @@ generated_at: "{ISO_TIMESTAMP}"
16
16
 
17
17
  > Synthesized from [X] service contexts.
18
18
  > This is a **system-of-systems** view. For service internals, see individual service contexts.
19
- > Re-running `/draft:index` will update auto-generated sections but preserve manual edits.
19
+ > Re-running `/draft:init` will update auto-generated sections but preserve manual edits.
20
20
 
21
21
  ---
22
22
 
@@ -123,5 +123,5 @@ sequenceDiagram
123
123
  ## Notes
124
124
 
125
125
  - For detailed service architecture, navigate to individual service contexts via the Details column
126
- - This file is regenerable via `/draft:index`
126
+ - This file is regenerable via `/draft:init`
127
127
  - Manual edits between `<!-- MANUAL START -->` and `<!-- MANUAL END -->` are preserved
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  project: "{PROJECT_NAME}"
3
3
  module: "root"
4
- generated_by: "draft:index"
4
+ generated_by: "draft:init"
5
5
  generated_at: "{ISO_TIMESTAMP}"
6
6
  ---
7
7
 
@@ -16,7 +16,7 @@ generated_at: "{ISO_TIMESTAMP}"
16
16
 
17
17
  > Synthesized from [X] service contexts.
18
18
  > Edit this file to refine the overall product vision.
19
- > Re-running `/draft:index` will update auto-generated sections but preserve manual edits.
19
+ > Re-running `/draft:init` will update auto-generated sections but preserve manual edits.
20
20
 
21
21
  ---
22
22
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  project: "{PROJECT_NAME}"
3
3
  module: "root"
4
- generated_by: "draft:index"
4
+ generated_by: "draft:init"
5
5
  generated_at: "{ISO_TIMESTAMP}"
6
6
  ---
7
7
 
@@ -16,7 +16,7 @@ generated_at: "{ISO_TIMESTAMP}"
16
16
 
17
17
  > Synthesized from [X] service contexts.
18
18
  > This defines **org-wide standards**. Service-specific additions are in their local tech-stack.md.
19
- > Re-running `/draft:index` will update auto-generated sections but preserve manual edits.
19
+ > Re-running `/draft:init` will update auto-generated sections but preserve manual edits.
20
20
 
21
21
  ---
22
22
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  project: "{PROJECT_NAME}"
3
3
  module: "root"
4
- generated_by: "draft:index"
4
+ generated_by: "draft:init"
5
5
  generated_at: "{ISO_TIMESTAMP}"
6
6
  ---
7
7
 
@@ -15,7 +15,7 @@ generated_at: "{ISO_TIMESTAMP}"
15
15
  | **Synced To** | `{FULL_SHA}` |
16
16
 
17
17
  > Auto-generated. Do not edit directly.
18
- > Re-run `/draft:index` to update.
18
+ > Re-run `/draft:init` to update.
19
19
 
20
20
  ---
21
21
 
@@ -42,7 +42,7 @@ The following services have not been initialized with `/draft:init`:
42
42
 
43
43
  - `[path/to/service]/`
44
44
 
45
- Run `/draft:index --init-missing` or initialize individually with:
45
+ Initialize each one by running `/draft:init` inside its directory — it links the module's graph up to the root spine:
46
46
  ```bash
47
47
  cd [path/to/service] && /draft:init
48
48
  ```
@@ -1,4 +1,5 @@
1
1
  ---
2
+ type: Spec
2
3
  project: "{PROJECT_NAME}"
3
4
  module: "root"
4
5
  track_id: "{TRACK_ID}"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  project: "{PROJECT_NAME}"
3
3
  module: "root"
4
- generated_by: "draft:index"
4
+ generated_by: "draft:init"
5
5
  generated_at: "{ISO_TIMESTAMP}"
6
6
  ---
7
7
 
@@ -15,7 +15,7 @@ generated_at: "{ISO_TIMESTAMP}"
15
15
  | **Synced To** | `{FULL_SHA}` |
16
16
 
17
17
  > Auto-generated. Do not edit directly.
18
- > Re-run `/draft:index` to update.
18
+ > Re-run `/draft:init` to update.
19
19
 
20
20
  ---
21
21
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ type: TechStack
2
3
  project: "{PROJECT_NAME}"
3
4
  module: "root"
4
5
  generated_by: "draft:init"
@@ -1,4 +1,5 @@
1
1
  ---
2
+ type: Workflow
2
3
  project: "{PROJECT_NAME}"
3
4
  module: "root"
4
5
  generated_by: "draft:init"