sdd-flow 1.3.3 → 2.0.1

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 (70) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/CONTRIBUTING.md +25 -0
  3. package/LICENSE +21 -21
  4. package/README.md +402 -168
  5. package/README.pt-BR.md +387 -0
  6. package/bin/cli.js +162 -424
  7. package/docs/architecture.md +91 -0
  8. package/docs/distribution.md +64 -0
  9. package/docs/formats.md +215 -0
  10. package/docs/local-testing.pt-BR.md +196 -0
  11. package/docs/methodology.pt-BR.md +139 -0
  12. package/docs/migration.md +76 -0
  13. package/docs/quality-gates.pt-BR.md +160 -0
  14. package/docs/quality.md +56 -0
  15. package/docs/releases.pt-BR.md +105 -0
  16. package/docs/setup-documents.pt-BR.md +120 -0
  17. package/docs/usage.pt-BR.md +310 -0
  18. package/docs/validation.md +101 -0
  19. package/lib/adapters.js +115 -0
  20. package/lib/check.js +221 -0
  21. package/lib/context.js +117 -0
  22. package/lib/documents.js +71 -0
  23. package/lib/handoff.js +81 -0
  24. package/lib/history.js +16 -0
  25. package/lib/install.js +181 -0
  26. package/lib/io.js +119 -0
  27. package/lib/legacy-hashes.json +31 -0
  28. package/lib/markdown.js +71 -0
  29. package/lib/project.js +200 -0
  30. package/lib/quality.js +24 -0
  31. package/lib/revisions.js +79 -0
  32. package/lib/verification.js +267 -0
  33. package/package.json +55 -32
  34. package/templates/AGENTS.md +12 -50
  35. package/templates/QUICKSTART.md +16 -70
  36. package/templates/agents/AGENTS.md +58 -92
  37. package/templates/agents/DECISIONS.md +5 -21
  38. package/templates/agents/POLICIES.md +14 -0
  39. package/templates/agents/PROJECT.md +35 -145
  40. package/templates/agents/QUALITY.md +19 -0
  41. package/templates/agents/RULES.md +24 -132
  42. package/templates/agents/SETUP.md +38 -224
  43. package/templates/agents/config.yaml +13 -0
  44. package/templates/agents/current/_template.md +19 -0
  45. package/templates/agents/decisions/_template.md +22 -0
  46. package/templates/agents/prompts/conventional-commit.md +11 -51
  47. package/templates/agents/prompts/intake.md +23 -0
  48. package/templates/agents/prompts/pr-template.md +12 -21
  49. package/templates/agents/prompts/quality.md +57 -0
  50. package/templates/agents/prompts/rpi-close.md +23 -0
  51. package/templates/agents/prompts/rpi-implement.md +35 -68
  52. package/templates/agents/prompts/rpi-plan.md +87 -117
  53. package/templates/agents/prompts/rpi-research.md +21 -67
  54. package/templates/agents/prompts/rpi-validate.md +40 -103
  55. package/templates/agents/prompts/skill-call.md +11 -29
  56. package/templates/agents/prompts/task-create.md +13 -42
  57. package/templates/agents/skills/_template/SKILL.md +11 -37
  58. package/templates/agents/harness/claude-code/.hooks/guard-delete.sh +0 -22
  59. package/templates/agents/harness/claude-code/.hooks/guard-deps.sh +0 -25
  60. package/templates/agents/harness/claude-code/.hooks/guard-git.sh +0 -24
  61. package/templates/agents/harness/claude-code/commands/sdd-implement.md +0 -3
  62. package/templates/agents/harness/claude-code/commands/sdd-plan.md +0 -3
  63. package/templates/agents/harness/claude-code/commands/sdd-research.md +0 -3
  64. package/templates/agents/harness/claude-code/commands/sdd-validate.md +0 -3
  65. package/templates/agents/harness/claude-code/settings.json +0 -34
  66. package/templates/agents/harness/opencode/commands/sdd-implement.md +0 -3
  67. package/templates/agents/harness/opencode/commands/sdd-plan.md +0 -3
  68. package/templates/agents/harness/opencode/commands/sdd-research.md +0 -3
  69. package/templates/agents/harness/opencode/commands/sdd-validate.md +0 -3
  70. package/templates/agents/harness/opencode/opencode.json +0 -18
@@ -1,24 +0,0 @@
1
- #!/bin/bash
2
- # guard-git.sh
3
- # Asks for confirmation before running git commit.
4
- # git push, tag and branch -d are blocked via permissions.deny in settings.json.
5
- # Exit 0 = allow | Exit 2 = block (Claude Code convention)
6
-
7
- INPUT=$(cat)
8
-
9
- # Extract the bash command from the JSON input sent by Claude Code
10
- COMMAND=$(echo "$INPUT" | grep -o '"command":"[^"]*"' | head -1 | sed 's/"command":"//;s/"//')
11
-
12
- # Intercept only git commit
13
- if echo "$COMMAND" | grep -qE "^git commit"; then
14
- echo "⚠️ Agent wants to run: $COMMAND" >&2
15
- read -r -p "Allow git commit? [y/N] " response < /dev/tty
16
- if [[ "$response" =~ ^[Yy]$ ]]; then
17
- exit 0
18
- else
19
- echo "Blocked by guard-git.sh" >&2
20
- exit 2
21
- fi
22
- fi
23
-
24
- exit 0
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-implement.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-plan.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-research.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-validate.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,34 +0,0 @@
1
- {
2
- "permissions": {
3
- "deny": [
4
- "Bash(git push*)",
5
- "Bash(git tag*)",
6
- "Bash(git branch -d*)"
7
- ]
8
- },
9
- "hooks": {
10
- "PreToolUse": [
11
- {
12
- "matcher": "Bash",
13
- "hooks": [{
14
- "type": "command",
15
- "command": "bash agents/harness/claude-code/.hooks/guard-git.sh"
16
- }]
17
- },
18
- {
19
- "matcher": "Bash",
20
- "hooks": [{
21
- "type": "command",
22
- "command": "bash agents/harness/claude-code/.hooks/guard-delete.sh"
23
- }]
24
- },
25
- {
26
- "matcher": "Bash",
27
- "hooks": [{
28
- "type": "command",
29
- "command": "bash agents/harness/claude-code/.hooks/guard-deps.sh"
30
- }]
31
- }
32
- ]
33
- }
34
- }
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-implement.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-plan.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-research.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,3 +0,0 @@
1
- Read and follow `agents/prompts/rpi-validate.md`.
2
-
3
- Spec: $ARGUMENTS
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "https://opencode.ai/config.json",
3
-
4
- "instructions": [
5
- "agents/AGENTS.md",
6
- "agents/PROJECT.md",
7
- "agents/RULES.md"
8
- ],
9
-
10
- "permission": {
11
- "bash": {
12
- "git commit *": "deny",
13
- "git push *": "deny",
14
- "git tag *": "deny",
15
- "rm -rf *": "ask"
16
- }
17
- }
18
- }