create-quiver 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.claude/settings.local.json +45 -0
  2. package/.github/workflows/ci.yml +9 -32
  3. package/AGENTS.md.template +41 -0
  4. package/BACKLOG.md +139 -0
  5. package/CHANGELOG.md +17 -0
  6. package/README.md +68 -14
  7. package/README_FOR_AI.md +48 -16
  8. package/ROADMAP.md +100 -0
  9. package/docs/AI_CONTEXT.md.template +19 -26
  10. package/docs/AI_ONBOARDING_PROMPT.md.template +16 -0
  11. package/docs/COMMANDS.md.template +25 -0
  12. package/docs/CONTEXTO.md.template +4 -17
  13. package/docs/DECISIONS.md.template +18 -0
  14. package/docs/DEEP.md.template +34 -0
  15. package/docs/DOCUMENTATION_GUIDE.md.template +9 -7
  16. package/docs/GITFLOW_PR_GUIDE.md.template +7 -0
  17. package/docs/INDEX.md.template +11 -0
  18. package/docs/QUICK.md.template +27 -0
  19. package/docs/STANDARD.md.template +49 -0
  20. package/docs/STATUS.md.template +2 -2
  21. package/docs/SUPPORT_MATRIX.md.template +16 -4
  22. package/docs/TESTING_GUIDE_FOR_AI.md.template +4 -3
  23. package/docs/TROUBLESHOOTING.md.template +14 -0
  24. package/docs/WORKFLOW.md.template +21 -4
  25. package/docs/examples/graph.md.template +62 -0
  26. package/docs/examples/next.md.template +27 -0
  27. package/docs/examples/plan.md.template +28 -0
  28. package/package.json +6 -2
  29. package/package.template.json +16 -0
  30. package/scripts/check-slice-readiness.sh +6 -4
  31. package/scripts/cleanup-slice.sh +2 -172
  32. package/scripts/init-docs.sh +147 -26
  33. package/scripts/package-quiver.sh +5 -0
  34. package/scripts/start-slice.sh +3 -425
  35. package/specs/[project-name]/EVIDENCE_REPORT.md.template +3 -1
  36. package/specs/[project-name]/HANDOFF.md.template +37 -0
  37. package/specs/[project-name]/slices/slice-template/slice.json +7 -2
  38. package/specs/quiver-v08-agent-onboarding-analysis/slices/slice-01-project-scan-command/slice.json +1 -1
  39. package/specs/quiver-v08-agent-onboarding-analysis/slices/slice-02-ai-onboarding-prompt/slice.json +1 -1
  40. package/specs/quiver-v08-agent-onboarding-analysis/slices/slice-03-doctor-readme-adoption-flow/slice.json +1 -1
  41. package/specs/quiver-v12-cross-platform-native-runtime/EVIDENCE_REPORT.md +30 -0
  42. package/specs/quiver-v12-cross-platform-native-runtime/SPEC.md +86 -0
  43. package/specs/quiver-v12-cross-platform-native-runtime/STATUS.md +29 -0
  44. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-01-cross-platform-support-contract/slice.json +69 -0
  45. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-02-node-init-docs-runtime/slice.json +76 -0
  46. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-03-node-migrate-analyze-doctor-flow/slice.json +74 -0
  47. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-04-node-slice-lifecycle-commands/slice.json +81 -0
  48. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-05-generated-project-scripts-and-migration/slice.json +78 -0
  49. package/specs/quiver-v12-cross-platform-native-runtime/slices/slice-06-cross-platform-ci-release-readiness/slice.json +74 -0
  50. package/specs/quiver-v13-token-efficient-ai-context/EVIDENCE_REPORT.md +28 -0
  51. package/specs/quiver-v13-token-efficient-ai-context/SPEC.md +68 -0
  52. package/specs/quiver-v13-token-efficient-ai-context/STATUS.md +26 -0
  53. package/specs/quiver-v13-token-efficient-ai-context/slices/slice-01-token-efficient-ai-modes-guidance/slice.json +65 -0
  54. package/specs/quiver-v13-token-efficient-ai-context/slices/slice-02-decision-log-context-checkpoint/slice.json +64 -0
  55. package/specs/quiver-v13-token-efficient-ai-context/slices/slice-03-project-map-reading-order/slice.json +66 -0
  56. package/specs/quiver-v14-tiered-context-pack/EVIDENCE_REPORT.md +42 -0
  57. package/specs/quiver-v14-tiered-context-pack/SPEC.md +116 -0
  58. package/specs/quiver-v14-tiered-context-pack/STATUS.md +35 -0
  59. package/specs/quiver-v14-tiered-context-pack/slices/slice-01-tiered-context-pack/slice.json +77 -0
  60. package/specs/quiver-v14-tiered-context-pack/slices/slice-02-agents-md-router/slice.json +74 -0
  61. package/specs/quiver-v14-tiered-context-pack/slices/slice-03-active-slice-lifecycle/slice.json +74 -0
  62. package/specs/quiver-v14-tiered-context-pack/slices/slice-04-dedup-frontmatter/slice.json +83 -0
  63. package/specs/quiver-v14-tiered-context-pack/slices/slice-05-doctor-smokes-tiered-pack/slice.json +84 -0
  64. package/specs/quiver-v15-init-required-before-migrate/EVIDENCE_REPORT.md +26 -0
  65. package/specs/quiver-v15-init-required-before-migrate/SPEC.md +66 -0
  66. package/specs/quiver-v15-init-required-before-migrate/STATUS.md +26 -0
  67. package/specs/quiver-v15-init-required-before-migrate/slices/slice-01-migrate-initialization-precondition/slice.json +65 -0
  68. package/specs/quiver-v15-init-required-before-migrate/slices/slice-02-doctor-not-initialized-guidance/slice.json +61 -0
  69. package/specs/quiver-v15-init-required-before-migrate/slices/slice-03-docs-smokes-init-before-migrate/slice.json +64 -0
  70. package/specs/quiver-v16-handoff-contract/EVIDENCE_REPORT.md +26 -0
  71. package/specs/quiver-v16-handoff-contract/SPEC.md +68 -0
  72. package/specs/quiver-v16-handoff-contract/STATUS.md +26 -0
  73. package/specs/quiver-v16-handoff-contract/slices/slice-01-handoff-template-and-contract/slice.json +66 -0
  74. package/specs/quiver-v16-handoff-contract/slices/slice-02-check-handoff-command/slice.json +70 -0
  75. package/specs/quiver-v16-handoff-contract/slices/slice-03-handoff-scaffold-optional/slice.json +67 -0
  76. package/specs/quiver-v17-orchestration-foundation/EVIDENCE_REPORT.md +32 -0
  77. package/specs/quiver-v17-orchestration-foundation/SPEC.md +79 -0
  78. package/specs/quiver-v17-orchestration-foundation/STATUS.md +31 -0
  79. package/specs/quiver-v17-orchestration-foundation/slices/slice-01-ci-matrix-verified/slice.json +68 -0
  80. package/specs/quiver-v17-orchestration-foundation/slices/slice-02-slice-graph-library/slice.json +65 -0
  81. package/specs/quiver-v17-orchestration-foundation/slices/slice-03-depends-on-validation/slice.json +72 -0
  82. package/specs/quiver-v18-slice-orchestration/EVIDENCE_REPORT.md +38 -0
  83. package/specs/quiver-v18-slice-orchestration/SPEC.md +91 -0
  84. package/specs/quiver-v18-slice-orchestration/STATUS.md +33 -0
  85. package/specs/quiver-v18-slice-orchestration/slices/slice-01-plan-command/slice.json +79 -0
  86. package/specs/quiver-v18-slice-orchestration/slices/slice-02-graph-mvp-tree/slice.json +75 -0
  87. package/specs/quiver-v18-slice-orchestration/slices/slice-03-graph-extended-formats/slice.json +70 -0
  88. package/specs/quiver-v18-slice-orchestration/slices/slice-04-next-command/slice.json +73 -0
  89. package/specs/quiver-v18-stabilization/EVIDENCE_REPORT.md +26 -0
  90. package/specs/quiver-v18-stabilization/SPEC.md +62 -0
  91. package/specs/quiver-v18-stabilization/STATUS.md +30 -0
  92. package/specs/quiver-v18-stabilization/slices/slice-01-fix-legacy-dependency-resolution/CLOSURE_BRIEF.md +29 -0
  93. package/specs/quiver-v18-stabilization/slices/slice-01-fix-legacy-dependency-resolution/EXECUTION_BRIEF.md +134 -0
  94. package/specs/quiver-v18-stabilization/slices/slice-01-fix-legacy-dependency-resolution/slice.json +56 -0
  95. package/specs/quiver-v18-stabilization/slices/slice-02-roadmap-and-branch-cleanup/CLOSURE_BRIEF.md +29 -0
  96. package/specs/quiver-v18-stabilization/slices/slice-02-roadmap-and-branch-cleanup/EXECUTION_BRIEF.md +118 -0
  97. package/specs/quiver-v18-stabilization/slices/slice-02-roadmap-and-branch-cleanup/slice.json +57 -0
  98. package/specs/quiver-v18-stabilization/slices/slice-03-publish-drafts-branch/CLOSURE_BRIEF.md +23 -0
  99. package/specs/quiver-v18-stabilization/slices/slice-03-publish-drafts-branch/EXECUTION_BRIEF.md +73 -0
  100. package/specs/quiver-v18-stabilization/slices/slice-03-publish-drafts-branch/slice.json +49 -0
  101. package/src/create-quiver/commands/graph.js +97 -0
  102. package/src/create-quiver/commands/next.js +134 -0
  103. package/src/create-quiver/commands/plan.js +205 -0
  104. package/src/create-quiver/index.js +476 -123
  105. package/src/create-quiver/lib/analyze.js +9 -0
  106. package/src/create-quiver/lib/doctor.js +212 -0
  107. package/src/create-quiver/lib/git.js +154 -0
  108. package/src/create-quiver/lib/handoff.js +104 -0
  109. package/src/create-quiver/lib/init-docs.js +674 -0
  110. package/src/create-quiver/lib/json.js +14 -0
  111. package/src/create-quiver/lib/lifecycle.js +479 -0
  112. package/src/create-quiver/lib/paths.js +19 -0
  113. package/src/create-quiver/lib/readiness.js +354 -0
  114. package/src/create-quiver/lib/renderers/dot.js +129 -0
  115. package/src/create-quiver/lib/renderers/mermaid.js +119 -0
  116. package/src/create-quiver/lib/renderers/tree.js +116 -0
  117. package/src/create-quiver/lib/scope.js +5 -0
  118. package/src/create-quiver/lib/slice-graph.js +453 -0
  119. package/src/create-quiver/lib/slice.js +195 -0
  120. package/src/create-quiver/lib/state.js +139 -0
@@ -1,9 +1,6 @@
1
1
  # {{PROJECT_NAME}} AI Context Pack
2
2
 
3
- **Date:** {{FECHA}}
4
- **Status:** {{ESTADO}}
5
-
6
- This file is the first stop for any AI agent working in this project. It compresses the working contract into one place and points to the canonical docs when deeper context is required.
3
+ This file is the main context pack after `AGENTS.md` and `docs/PROJECT_MAP.md`. It compresses the working contract into one place and points to the canonical docs when deeper context is required.
7
4
 
8
5
  ## What This Project Is
9
6
 
@@ -11,14 +8,23 @@ This file is the first stop for any AI agent working in this project. It compres
11
8
 
12
9
  ## Read First
13
10
 
14
- 1. `docs/INDEX.md`
15
- 2. `docs/AI_CONTEXT.md`
16
- 3. `docs/CONTEXTO.md`
17
- 4. `docs/WORKFLOW.md`
18
- 5. `docs/SUPPORT_MATRIX.md`
19
- 6. `docs/TROUBLESHOOTING.md`
20
- 7. `specs/{{PROJECT_SLUG}}/SPEC.md`
21
- 8. `specs/{{PROJECT_SLUG}}/slices/[slice-id]/slice.json`
11
+ 1. `docs/PROJECT_MAP.md`
12
+ 2. `docs/INDEX.md`
13
+ 3. `docs/AI_ONBOARDING_PROMPT.md`
14
+ 4. `docs/DECISIONS.md`
15
+ 5. `docs/CONTEXTO.md`
16
+ 6. `docs/WORKFLOW.md`
17
+ 7. `docs/SUPPORT_MATRIX.md`
18
+ 8. `docs/TROUBLESHOOTING.md`
19
+ 9. `specs/{{PROJECT_SLUG}}/SPEC.md`
20
+ 10. `specs/{{PROJECT_SLUG}}/slices/[slice-id]/slice.json`
21
+
22
+ ## Why This Pack Exists
23
+
24
+ - Project Map: `docs/PROJECT_MAP.md` is the single source of truth for stack, package manager, commands, and file hints.
25
+ - `docs/AI_ONBOARDING_PROMPT.md` is the handoff after analysis.
26
+ - `docs/DECISIONS.md` tracks durable choices so agents do not re-litigate them.
27
+ - `docs/STATUS.md` tracks progress, blockers, and the current slice.
22
28
 
23
29
  ## Critical Rules
24
30
 
@@ -30,19 +36,6 @@ This file is the first stop for any AI agent working in this project. It compres
30
36
  - Never overwrite user-authored content without checking whether the file is meant to be preserved.
31
37
  - If a command or path is ambiguous, prefer the local project root and the generated docs.
32
38
 
33
- ## Common Commands
34
-
35
- ```bash
36
- cd /path/to/project
37
- npx create-quiver --name "Project Name"
38
- npx create-quiver migrate --dir .
39
- npx create-quiver analyze --dir .
40
- npx create-quiver doctor --dir .
41
- bash tools/scripts/start-slice.sh <slice.json>
42
- bash tools/scripts/check-slice-readiness.sh <slice.json>
43
- bash tools/scripts/check-pr-readiness.sh <slice.json>
44
- ```
45
-
46
39
  ## What To Update After A Slice
47
40
 
48
41
  - `specs/{{PROJECT_SLUG}}/STATUS.md`
@@ -52,7 +45,7 @@ bash tools/scripts/check-pr-readiness.sh <slice.json>
52
45
 
53
46
  ## If You Need More Context
54
47
 
55
- Read `docs/CONTEXTO.md` for the human project overview and `docs/WORKFLOW.md` for the execution contract.
48
+ Read `docs/DECISIONS.md` for durable choices, `docs/CONTEXTO.md` for the human project overview, and `docs/WORKFLOW.md` for the execution contract. When you need stack details or command references, open `docs/PROJECT_MAP.md`.
56
49
 
57
50
  ## If The Environment Fails
58
51
 
@@ -15,14 +15,30 @@ You are the onboarding agent for this project. Your job is to analyze the genera
15
15
  6. `specs/{{PROJECT_SLUG}}/SPEC.md`
16
16
  7. `specs/{{PROJECT_SLUG}}/STATUS.md`
17
17
  8. `specs/{{PROJECT_SLUG}}/EVIDENCE_REPORT.md`
18
+ 9. `specs/{{PROJECT_SLUG}}/HANDOFF.md` if this work was explicitly transferred through a handoff artifact
19
+ 10. `npx create-quiver new-handoff <spec-slug>` if a new handoff artifact needs to be scaffolded before validation
18
20
 
19
21
  ## Mission
20
22
 
21
23
  - Use the analyzer outputs to understand the repository instead of guessing.
24
+ - Treat `docs/PROJECT_MAP.md` as the single source of truth for stack, package manager, commands, and file hints.
22
25
  - Complete or refine Quiver context docs so future agents can work safely.
26
+ - If a handoff artifact exists, treat it as the transfer brief for the current work and validate it against the requested change.
27
+ - If a handoff artifact does not exist yet but the work needs one, scaffold it with `npx create-quiver new-handoff <spec-slug>` and then validate it.
23
28
  - Preserve Quiver workflow invariants: one slice = one commit, one spec = one PR.
24
29
  - Ask for confirmation before making product-code changes.
25
30
 
31
+ ## Mode Selection
32
+
33
+ Use the least context that still solves the task:
34
+
35
+ - **Onboarding:** rely on maps and metadata first. Read `docs/PROJECT_SCAN.json` and `docs/PROJECT_MAP.md` before any source files, then use `docs/AI_CONTEXT.md` and `docs/CONTEXTO.md` to fill gaps.
36
+ - **Implementation:** start from `specs/{{PROJECT_SLUG}}/slices/<slice-id>/slice.json`, then read the declared files, nearby tests, and only then adjacent source.
37
+ - **Review:** start from `git diff` and the slice scope before opening full files.
38
+ - **Debug:** start from the command, exit code, first relevant error, stacktrace, and the nearest changed code before reading long logs.
39
+
40
+ Prefer summaries, deltas, and metadata over full file reads when they are sufficient.
41
+
26
42
  ## Hard Constraints
27
43
 
28
44
  - Do not read or expose secret values from `.env`, credential files, tokens, SSH keys, or private config.
@@ -0,0 +1,25 @@
1
+ # Commands
2
+
3
+ **Project:** {{PROJECT_NAME}}
4
+ **Last updated:** {{FECHA}}
5
+
6
+ This document is the canonical command reference for the orchestration roadmap.
7
+ It is intentionally small at v0.18: only the plan and graph rows are reserved for now, but `quiver:graph` already supports tree, Mermaid, and DOT output modes.
8
+
9
+ ## Command Table
10
+
11
+ | Command | Purpose | OS | Since | Example |
12
+ |---------|---------|----|-------|---------|
13
+ | `quiver:plan` | Sequential orchestration planning command | macOS, Linux, Windows | v0.18 | [docs/examples/plan.md](./examples/plan.md) |
14
+ | `quiver:graph` | Parallel-level orchestration tree command | macOS, Linux, Windows | v0.18 | [docs/examples/graph.md](./examples/graph.md) |
15
+ | `quiver:next` | Ready-slice suggestion command | macOS, Linux, Windows | v0.18 | [docs/examples/next.md](./examples/next.md) |
16
+
17
+ ## Notes
18
+
19
+ - Add new rows here only when a command is officially shipped.
20
+ - Keep the table concise and cross-platform.
21
+ - Shared graph library: `src/create-quiver/lib/slice-graph.js`.
22
+ - `quiver:graph --format mermaid` is the PR-friendly export; `--format dot` is for Graphviz consumers.
23
+ - `quiver:next` prints the next ready slice and can auto-start it behind a confirmation prompt.
24
+ - `check-slice` now validates optional `depends_on` targets and requires `parallel_safe_reason` when `parallel_safe` is set to `never`.
25
+ - Cross-platform authoring rules live in `docs/SUPPORT_MATRIX.md`.
@@ -1,8 +1,5 @@
1
1
  # {{PROJECT_NAME}} Context
2
2
 
3
- **Date:** {{FECHA}}
4
- **Status:** {{ESTADO}}
5
-
6
3
  ## What Is {{PROJECT_NAME}}?
7
4
 
8
5
  [One or two paragraphs that explain the project.]
@@ -15,25 +12,15 @@
15
12
 
16
13
  [Describe the primary user.]
17
14
 
18
- ## Technical Stack
19
-
20
- ```text
21
- Frontend:
22
- ├── [Framework]
23
- ├── [Language]
24
- └── [UI library]
25
-
26
- Backend:
27
- ├── [Framework]
28
- ├── [Database]
29
- └── [Deploy target]
30
- ```
31
-
32
15
  ## Current Focus
33
16
 
34
17
  - [Current goal 1]
35
18
  - [Current goal 2]
36
19
 
20
+ ## Where The Stack Lives
21
+
22
+ The stack, package manager, and command surface are generated in `docs/PROJECT_MAP.md` after analysis. Keep this file focused on the human summary.
23
+
37
24
  ## Security and Privacy
38
25
 
39
26
  - [Sensitive data that is never stored]
@@ -0,0 +1,18 @@
1
+ # {{PROJECT_NAME}} Decision Log
2
+
3
+ **Date:** {{FECHA}}
4
+ **Status:** {{ESTADO}}
5
+
6
+ This file records durable project decisions so AI agents do not re-litigate choices that were already made.
7
+
8
+ ## Log
9
+
10
+ | Date | Decision | Reason | Alternatives | Impact |
11
+ |------|----------|--------|--------------|--------|
12
+
13
+ ## Rules
14
+
15
+ - Record one decision per row.
16
+ - Keep entries short and specific.
17
+ - Prefer the decision outcome, not the full discussion history.
18
+ - Add a new row when a choice would otherwise be re-opened during future work.
@@ -0,0 +1,34 @@
1
+ # {{PROJECT_NAME}} Deep Context
2
+
3
+ **Date:** {{FECHA}}
4
+ **Status:** {{ESTADO}}
5
+
6
+ Use this file for history, decisions, and context that does not belong in the default pack.
7
+
8
+ ## What Belongs Here
9
+
10
+ - Project history and major milestones
11
+ - Durable decisions that explain why the workflow exists
12
+ - Cultural notes and team preferences
13
+ - Legacy migrations and compatibility caveats
14
+ - Edge cases that keep coming back
15
+
16
+ ## What Not To Repeat
17
+
18
+ - Do not duplicate `docs/QUICK.md`
19
+ - Do not duplicate `docs/STANDARD.md`
20
+ - Do not restate stack or command tables; link to `docs/PROJECT_MAP.md`
21
+ - Keep the deep pack additive, not repetitive
22
+
23
+ ## Suggested Sections
24
+
25
+ - Background
26
+ - Key Decisions
27
+ - Migration Notes
28
+ - Open Questions
29
+ - Lessons Learned
30
+ - Archived Context
31
+
32
+ ## Notes
33
+
34
+ Add longer narratives only when they help future planning models avoid re-discovering old decisions.
@@ -7,13 +7,14 @@
7
7
 
8
8
  1. `docs/INDEX.md`
9
9
  2. `docs/AI_CONTEXT.md`
10
- 3. `docs/CONTEXTO.md`
11
- 4. `docs/STATUS.md`
12
- 5. `docs/WORKFLOW.md`
13
- 6. `docs/SUPPORT_MATRIX.md`
14
- 7. `docs/TROUBLESHOOTING.md`
15
- 8. `specs/{{PROJECT_SLUG}}/SPEC.md`
16
- 9. `specs/{{PROJECT_SLUG}}/slices/[slice-id]/slice.json`
10
+ 3. `docs/DECISIONS.md`
11
+ 4. `docs/CONTEXTO.md`
12
+ 5. `docs/STATUS.md`
13
+ 6. `docs/WORKFLOW.md`
14
+ 7. `docs/SUPPORT_MATRIX.md`
15
+ 8. `docs/TROUBLESHOOTING.md`
16
+ 9. `specs/{{PROJECT_SLUG}}/SPEC.md`
17
+ 10. `specs/{{PROJECT_SLUG}}/slices/[slice-id]/slice.json`
17
18
 
18
19
  ## Update Rules
19
20
 
@@ -25,6 +26,7 @@
25
26
 
26
27
  - Project overview: `docs/CONTEXTO.md`
27
28
  - Agent context pack: `docs/AI_CONTEXT.md`
29
+ - Decisions: `docs/DECISIONS.md`
28
30
  - Progress: `docs/STATUS.md`
29
31
  - Implementation workflow: `docs/WORKFLOW.md`
30
32
  - Support contract: `docs/SUPPORT_MATRIX.md`
@@ -16,6 +16,13 @@ This guide explains how to open and review spec PRs without breaking the canonic
16
16
  - Open and merge the documentation PR before the first slice starts execution
17
17
  - Do not open the spec PR before the documentation PR is merged
18
18
 
19
+ ## Review Guidance
20
+
21
+ - Start with `git diff` and the slice scope before opening full files.
22
+ - Use the diff to confirm what changed, then open full files only for gaps, regressions, or unclear context.
23
+ - For debugging reviews, inspect the first relevant error, stacktrace, or failing command before reading large logs.
24
+ - Keep review notes anchored to the changed lines and the slice acceptance criteria.
25
+
19
26
  ## Required PR Headings
20
27
 
21
28
  All spec PR notes must use:
@@ -4,16 +4,22 @@
4
4
 
5
5
  ## Start Here
6
6
 
7
+ - **Project Map** - `./PROJECT_MAP.md`
7
8
  - **Context** - `./CONTEXTO.md`
8
9
  - **AI Context** - `./AI_CONTEXT.md`
10
+ - **Decision Log** - `./DECISIONS.md`
9
11
  - **AI Onboarding Prompt** - `./AI_ONBOARDING_PROMPT.md`
10
12
  - **Workflow** - `./WORKFLOW.md`
13
+ - **Commands** - `./COMMANDS.md`
11
14
  - **Support Matrix** - `./SUPPORT_MATRIX.md`
12
15
  - **Troubleshooting** - `./TROUBLESHOOTING.md`
13
16
  - **Multi-agent workflow** - `./MULTI_AGENT_WORKFLOW.md`
14
17
 
15
18
  ## AI Configuration
16
19
 
20
+ - **QUICK** - `./ai/QUICK.md`
21
+ - **STANDARD** - `./ai/STANDARD.md`
22
+ - **DEEP** - `./ai/DEEP.md`
17
23
  - **Principles** - `./ai/PRINCIPLES.md`
18
24
  - **Rules** - `./ai/RULES.yaml`
19
25
  - **Lessons** - `./ai/LESSONS.md`
@@ -31,10 +37,15 @@
31
37
  docs/
32
38
  ├── INDEX.md
33
39
  ├── AI_CONTEXT.md
40
+ ├── DECISIONS.md
41
+ ├── ai/QUICK.md
42
+ ├── ai/STANDARD.md
43
+ ├── ai/DEEP.md
34
44
  ├── AI_ONBOARDING_PROMPT.md
35
45
  ├── CONTEXTO.md
36
46
  ├── STATUS.md
37
47
  ├── WORKFLOW.md
48
+ ├── COMMANDS.md
38
49
  ├── SUPPORT_MATRIX.md
39
50
  ├── TROUBLESHOOTING.md
40
51
  ├── MULTI_AGENT_WORKFLOW.md
@@ -0,0 +1,27 @@
1
+ # {{PROJECT_NAME}} Quick Context
2
+
3
+ Minimum viable briefing for execution agents.
4
+
5
+ ## Snapshot
6
+
7
+ - Project: {{PROJECT_NAME}}
8
+ - Project map: `docs/PROJECT_MAP.md`
9
+ - Focus: unknown until analyze
10
+
11
+ ## Where Commands Live
12
+
13
+ Use `docs/PROJECT_MAP.md` for the package manager, project stack, test commands, and Quiver command surface.
14
+
15
+ ## Hard Rules
16
+
17
+ - One slice = one commit.
18
+ - One spec = one PR.
19
+ - Read `./STANDARD.md` for workflow details.
20
+ - Read `./DEEP.md` for history and context.
21
+ - Do not edit files outside the active slice.
22
+ - Prefer project-root commands over global installs.
23
+
24
+ ## Read Next
25
+
26
+ - `./STANDARD.md`
27
+ - `./DEEP.md`
@@ -0,0 +1,49 @@
1
+ # {{PROJECT_NAME}} Standard Context
2
+
3
+ **Date:** {{FECHA}}
4
+ **Status:** {{ESTADO}}
5
+
6
+ This is the default context pack for everyday AI work.
7
+
8
+ ## Reading Order
9
+
10
+ 1. `./QUICK.md`
11
+ 2. `docs/PROJECT_MAP.md`
12
+ 3. `docs/AI_CONTEXT.md`
13
+ 4. `docs/DECISIONS.md`
14
+ 5. `docs/CONTEXTO.md`
15
+ 6. `docs/WORKFLOW.md`
16
+
17
+ ## Conventions
18
+
19
+ - Use maps, metadata, and diffs before opening full source files.
20
+ - Keep scope inside the active slice.
21
+ - Make one commit per slice.
22
+ - Open one PR per spec.
23
+ - Record durable decisions in `docs/DECISIONS.md`.
24
+ - Treat `docs/PROJECT_MAP.md` as the single source of truth for stack, package manager, and command references.
25
+
26
+ ## Workflow Overview
27
+
28
+ - Onboarding starts from `docs/PROJECT_SCAN.json` and `docs/PROJECT_MAP.md`.
29
+ - Implementation starts from `specs/{{PROJECT_SLUG}}/slices/<slice-id>/slice.json`.
30
+ - Review starts from `git diff` and the slice scope.
31
+ - Debugging starts from the command, exit code, first relevant error, and stacktrace.
32
+
33
+ ## Testing Expectations
34
+
35
+ - Validate the active slice before merging.
36
+ - Prefer focused smoke tests over large manual walkthroughs.
37
+ - Preserve existing user-authored content during migration.
38
+ - Keep secret-safe paths and generated heavy folders out of the read path.
39
+
40
+ ## V13 Mode Guidance
41
+
42
+ - Onboarding: read maps and metadata first.
43
+ - Implementation: read `slice.json` and declared files first.
44
+ - Review: inspect `git diff` before full files.
45
+ - Debug: inspect the error signal before long logs.
46
+
47
+ ## Read Next
48
+
49
+ - `./DEEP.md`
@@ -1,7 +1,6 @@
1
1
  # {{PROJECT_NAME}} Status
2
2
 
3
- **Last updated:** {{FECHA}}
4
- **Next update:** {{FECHA_PROXIMA}}
3
+ This page tracks progress, blockers, and the current slice. Stack and command details live in `docs/PROJECT_MAP.md`.
5
4
 
6
5
  ## Overall Status
7
6
 
@@ -24,3 +23,4 @@
24
23
  ## Notes
25
24
 
26
25
  - Update this file after each completed slice.
26
+ - Keep stack and command changes in `docs/PROJECT_MAP.md`, not here.
@@ -9,13 +9,23 @@ Quiver is intentionally opinionated about the first-run environment. If your set
9
9
 
10
10
  | Area | Supported | Notes |
11
11
  |------|-----------|-------|
12
- | Operating systems | macOS and Linux | Windows is not supported in this workflow. |
13
- | Git | Git 2.40+ | Must support worktrees and standard branch refs. |
14
- | Node.js | Node 22.x LTS | Used for date handling and JSON validation. |
12
+ | Operating systems | macOS, Linux, and Windows | Windows native support is verified only when the cross-platform CI matrix is green. |
13
+ | Shells | Terminal, bash-compatible shells, PowerShell, and CMD | Bash is a legacy compatibility path, not a required runtime dependency. |
14
+ | Git | Git 2.40+ | Must support worktrees and standard branch refs on every supported OS. |
15
+ | Node.js | Node 22.x LTS | Required on every supported OS. |
15
16
  | Base branches | `develop` or `main` | Local base branches are preferred; `origin` is optional. |
16
17
  | Worktree state | Clean worktree | Slice execution and PR checks expect no unrelated local changes. |
17
18
  | Path handling | Canonical filesystem paths | Use the physical path to the repo and slice files, not a symlinked alias. |
18
19
 
20
+ ## Cross-Platform Authoring Rules
21
+
22
+ - No shell invocations for logic: use Node.js `fs`, `path`, and `child_process` with `shell: false`.
23
+ - Build paths with `path.join` and `path.sep`; normalize to `/` only for human-readable output.
24
+ - Write files with `\n`; read files tolerating `\r\n`.
25
+ - `--json` is the primary contract; human output is courtesy and may vary.
26
+ - Colors are TTY-aware and suppressed with `NO_COLOR`; Unicode is opt-in unless UTF-8 is available.
27
+ - Optional external tools such as `gh` and `graphviz` should be probed and skipped gracefully if missing.
28
+
19
29
  ## Remote Modes
20
30
 
21
31
  | Mode | Supported | Notes |
@@ -26,6 +36,8 @@ Quiver is intentionally opinionated about the first-run environment. If your set
26
36
 
27
37
  ## What This Means
28
38
 
29
- - You can bootstrap a slice on macOS or Linux without changing the scripts.
39
+ - You can bootstrap and run Quiver on macOS, Linux, and Windows native shells once the runtime slices land and the CI matrix is green.
40
+ - Windows native usage should target PowerShell or CMD instead of Bash.
41
+ - Quiver should not auto-install Bash, Git Bash, MSYS2, or WSL.
30
42
  - You do not need a remote to begin work if a local base branch already exists.
31
43
  - If the environment is outside the matrix, fix the machine first instead of working around the scripts.
@@ -31,9 +31,10 @@
31
31
 
32
32
  ## Evidence
33
33
 
34
- - Logs
35
- - Screenshots
36
- - Diff output
34
+ - Prefer summarized command evidence over pasted long logs.
35
+ - Capture the command, exit code, first relevant error, and stacktrace when available.
36
+ - Record the log path or artifact path instead of dumping full logs inline.
37
+ - Use screenshots or diff output only when they are the smallest useful proof.
37
38
 
38
39
  ## If Something Fails
39
40
 
@@ -68,3 +68,17 @@ Use this guide when a first-run bootstrap or gate check fails. The recovery path
68
68
  1. Commit or stash unrelated changes first.
69
69
  2. Re-run the gate from the slice branch.
70
70
  3. Make sure the PR body lives in `pr.md` beside the slice.
71
+
72
+ ## Windows Shell Fallback
73
+
74
+ ### Symptom
75
+
76
+ - You are on Windows and the cross-platform runtime is not yet verified by CI
77
+ - A command expects a Bash-compatible shell before the cross-platform port is complete
78
+
79
+ ### Recovery
80
+
81
+ 1. Prefer PowerShell or CMD once the native runtime slices and CI matrix are complete.
82
+ 2. If you are using an intermediate build and need a temporary bridge, use WSL2 or Git Bash manually.
83
+ 3. Do not expect Quiver to install Bash, WSL, or MSYS2 for you.
84
+ 4. Re-run the command after the cross-platform support slices are merged and the CI matrix is green.
@@ -16,6 +16,19 @@ This document is the canonical implementation workflow for the project.
16
16
  - The support matrix defines the supported OS, git, node, and remote modes.
17
17
  - The troubleshooting guide explains the first-run recovery paths for common bootstrap failures.
18
18
  - The AI onboarding prompt generated after analysis is the handoff for agents that need project context before editing.
19
+ - `specs/<project-slug>/HANDOFF.md` is the exceptional transfer artifact for agents or phases that need bounded context handoff.
20
+ - Scaffold a new handoff only when needed with `npx create-quiver new-handoff <spec-slug>`, then validate it with `npx create-quiver check-handoff specs/<project-slug>/HANDOFF.md`.
21
+
22
+ ## Mode-Aware Context Selection
23
+
24
+ - **Onboarding:** read `PROJECT_SCAN.json`, `PROJECT_MAP.md`, `AI_CONTEXT.md`, and `AI_ONBOARDING_PROMPT.md` before source files.
25
+ - **Implementation:** read `docs/ai/ACTIVE_SLICE.md` first when it exists; otherwise read `slice.json`, declared files, nearby tests, and only then adjacent source.
26
+ - **Handoff:** read `specs/<project-slug>/HANDOFF.md` when the work was explicitly transferred through a handoff artifact.
27
+ - Validate a received handoff with `npx create-quiver check-handoff specs/<project-slug>/HANDOFF.md` before starting execution.
28
+ - **Review:** read `git diff` and the slice scope before opening full files.
29
+ - **Debug:** read the command, exit code, first relevant error, stacktrace, and nearest changed code before long logs.
30
+
31
+ Use maps, metadata, diffs, and summaries first. Open full files only when the smaller context is not enough.
19
32
 
20
33
  ## Planning
21
34
 
@@ -27,21 +40,25 @@ This document is the canonical implementation workflow for the project.
27
40
  6. Read the AI context pack, support matrix, and troubleshooting guide before the first slice if the environment is new or uncertain.
28
41
  7. If the project already existed before this Quiver version, run `migrate` before `analyze`.
29
42
  8. If the project was analyzed, read `AI_ONBOARDING_PROMPT.md` before making documentation updates.
43
+ 9. Prefer the generated `quiver:*` npm scripts for repeatable project workflows once the package has been initialized or migrated.
30
44
 
31
45
  ## Execution
32
46
 
33
- 1. Bootstrap the slice with `start-slice.sh`.
47
+ 1. Bootstrap the slice with `npx create-quiver start-slice <slice.json>` or `npm run quiver:start-slice -- <slice.json>`.
34
48
  - The bootstrap step should work with canonical paths and a local base branch when `origin` is absent.
35
- - Draft slices require `--allow-draft`; otherwise `start-slice.sh` exits before execution.
49
+ - Draft slices require `--allow-draft`; otherwise `npx create-quiver start-slice` exits before execution.
50
+ - Legacy Bash wrappers remain available for compatibility, but generated projects should prefer the Node CLI and `quiver:*` npm scripts.
51
+ - `start-slice` generates `docs/ai/ACTIVE_SLICE.md` and `WORKTREE_CONTEXT.md`; use the active slice brief as the source of truth for execution.
36
52
  2. Implement only what the slice declares.
37
53
  3. Make one commit for that slice.
38
- 4. Validate with `check-slice-readiness.sh`.
54
+ 4. Validate with `npx create-quiver check-slice <slice.json>` or `npm run quiver:check-slice -- <slice.json>`.
39
55
  5. Write evidence.
40
56
  6. Repeat for the next slice until the spec is complete.
41
- 7. Open one PR for the spec and use `check-pr-readiness.sh` as the pre-merge gate.
57
+ 7. Open one PR for the spec and use `npx create-quiver check-pr <slice.json>` or `npm run quiver:check-pr -- <slice.json>` as the pre-merge gate.
42
58
 
43
59
  ## Support Contract
44
60
 
61
+ - `docs/PROJECT_MAP.md` is the source of truth for stack, package manager, and commands.
45
62
  - Support Matrix (`SUPPORT_MATRIX.md`) documents what is supported.
46
63
  - AI Context Pack (`AI_CONTEXT.md`) gives the agent-first project snapshot.
47
64
  - Troubleshooting (`TROUBLESHOOTING.md`) documents how to recover when the first run fails.
@@ -0,0 +1,62 @@
1
+ # Graph Example
2
+
3
+ Use `graph` to inspect the parallel levels and conflict groups before starting implementation work. The default tree view is best for humans, Mermaid is best for PR descriptions, and DOT is best for Graphviz pipelines.
4
+
5
+ ## Input
6
+
7
+ ```bash
8
+ npx create-quiver graph --show-conflicts
9
+ npx create-quiver graph --format mermaid --show-conflicts
10
+ npx create-quiver graph --format dot --show-conflicts
11
+ ```
12
+
13
+ ## Representative Output
14
+
15
+ ### Tree
16
+
17
+ ```text
18
+ Quiver graph
19
+ Level 0 (2 slices, 2 lots)
20
+ +-- spec-a/slice-01-alpha Alpha [draft]
21
+ \-- spec-b/slice-01-beta Beta [draft]
22
+ |
23
+ Level 1 (2 slices, 1 lots)
24
+ +-- ! spec-c/slice-02-gamma Gamma [draft] [docs/shared.md]
25
+ \-- ! spec-d/slice-02-delta Delta [draft] [docs/shared.md]
26
+ ```
27
+
28
+ ### Mermaid
29
+
30
+ ```mermaid
31
+ flowchart TD
32
+ n_spec_a_slice_01_alpha["spec-a/slice-01-alpha<br/>Alpha<br/>2h<br/>[draft]"]
33
+ n_spec_b_slice_01_beta["spec-b/slice-01-beta<br/>Beta<br/>3h<br/>[draft]"]
34
+ n_spec_c_slice_02_gamma["! spec-c/slice-02-gamma<br/>Gamma<br/>4h<br/>[draft]<br/>Files: docs/shared.md"]
35
+ n_spec_d_slice_02_delta["! spec-d/slice-02-delta<br/>Delta<br/>1h<br/>[draft]<br/>Files: docs/shared.md"]
36
+ n_spec_a_slice_01_alpha --> n_spec_c_slice_02_gamma
37
+ n_spec_b_slice_01_beta --> n_spec_d_slice_02_delta
38
+ ```
39
+
40
+ ### DOT
41
+
42
+ ```dot
43
+ digraph QuiverGraph {
44
+ rankdir=TB;
45
+ node [shape=box, style="rounded,filled", fillcolor="#f8f9fa", color="#495057", fontname="Helvetica"];
46
+ edge [color="#6c757d"];
47
+ n_spec_a_slice_01_alpha [label="spec-a/slice-01-alpha\nAlpha\n2h\n[draft]"];
48
+ n_spec_b_slice_01_beta [label="spec-b/slice-01-beta\nBeta\n3h\n[draft]"];
49
+ n_spec_c_slice_02_gamma [label="! spec-c/slice-02-gamma\nGamma\n4h\n[draft]\nFiles: docs/shared.md", fillcolor="#fff3cd", color="#d39e00"];
50
+ n_spec_d_slice_02_delta [label="! spec-d/slice-02-delta\nDelta\n1h\n[draft]\nFiles: docs/shared.md", fillcolor="#fff3cd", color="#d39e00"];
51
+ n_spec_a_slice_01_alpha -> n_spec_c_slice_02_gamma;
52
+ n_spec_b_slice_01_beta -> n_spec_d_slice_02_delta;
53
+ }
54
+ ```
55
+
56
+ ## Notes
57
+
58
+ - GitHub renders Mermaid fenced blocks directly in markdown.
59
+ - DOT output is plain source; render it with Graphviz if you want an image.
60
+ - The exact level grouping depends on the repo's pending dependency graph.
61
+ - Use `--level <n>` to focus on a single level.
62
+ - Use `--json` when another tool needs structured levels and conflict groups.
@@ -0,0 +1,27 @@
1
+ # Next Example
2
+
3
+ Use `next` to ask Quiver what slice is ready right now. The default output gives you one slice and the exact `start-slice` command to copy.
4
+
5
+ ## Input
6
+
7
+ ```bash
8
+ npx create-quiver next
9
+ npx create-quiver next --all-ready
10
+ npx create-quiver next --auto-start
11
+ ```
12
+
13
+ ## Representative Output
14
+
15
+ ```text
16
+ Next ready slice
17
+ Slice: spec-a/slice-01-alpha
18
+ Title: Alpha
19
+ Status: draft
20
+ Start: npx create-quiver start-slice "specs/spec-a/slices/slice-01-alpha/slice.json"
21
+ ```
22
+
23
+ ## Notes
24
+
25
+ - `--all-ready` lists every slice in the first unblocked level.
26
+ - `--auto-start` requires a TTY confirmation before it calls `start-slice`.
27
+ - Use `--json` when another tool needs the next slice payload.
@@ -0,0 +1,28 @@
1
+ # Plan Example
2
+
3
+ Use `plan` to inspect the pending slice order before starting implementation work.
4
+
5
+ ## Input
6
+
7
+ ```bash
8
+ npx create-quiver plan
9
+ ```
10
+
11
+ ## Representative Output
12
+
13
+ ```text
14
+ Quiver plan
15
+ Total hours: 10
16
+ Critical path: spec-a/slice-01-alpha -> spec-a/slice-02-beta -> spec-b/slice-01-delta
17
+
18
+ [N] TICKET SPEC/SLICE TITLE HOURS STATUS
19
+ --- ------- -------------------- -------------------- ----- ------
20
+ [1] QUIVER-1 spec-a/slice-01-alpha Alpha 2 draft
21
+ [2] QUIVER-1 spec-a/slice-02-beta Beta 5 draft
22
+ [3] QUIVER-1 spec-b/slice-01-delta Delta 3 draft
23
+ ```
24
+
25
+ ## Notes
26
+
27
+ - The exact order depends on the repo's current pending graph.
28
+ - Use `--json` when another tool needs the plan, critical path, or total hours.