goalbuddy 0.2.21 → 0.3.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 (51) hide show
  1. package/CONTRIBUTING.md +14 -5
  2. package/README.md +68 -55
  3. package/goalbuddy/SKILL.md +44 -14
  4. package/goalbuddy/agents/README.md +15 -8
  5. package/goalbuddy/extend/github-projects/README.md +105 -0
  6. package/goalbuddy/extend/github-projects/examples/goal-board-sync/state.yaml +63 -0
  7. package/goalbuddy/extend/github-projects/extension.yaml +43 -0
  8. package/goalbuddy/extend/github-projects/scripts/lib/github-projects.mjs +728 -0
  9. package/goalbuddy/extend/github-projects/scripts/lib/goal-state.mjs +362 -0
  10. package/goalbuddy/extend/github-projects/scripts/sync-github-project.mjs +193 -0
  11. package/goalbuddy/extend/github-projects/test/github-projects.test.mjs +267 -0
  12. package/goalbuddy/extend/local-goal-board/README.md +75 -0
  13. package/goalbuddy/extend/local-goal-board/assets/goalbuddy-mark.png +0 -0
  14. package/goalbuddy/extend/local-goal-board/examples/sample-goal/notes/T001-scout.md +3 -0
  15. package/goalbuddy/extend/local-goal-board/examples/sample-goal/state.yaml +124 -0
  16. package/goalbuddy/extend/local-goal-board/extension.yaml +37 -0
  17. package/goalbuddy/extend/local-goal-board/scripts/lib/goal-board.mjs +1225 -0
  18. package/goalbuddy/extend/local-goal-board/scripts/local-goal-board.mjs +258 -0
  19. package/goalbuddy/extend/local-goal-board/test/local-goal-board.test.mjs +146 -0
  20. package/goalbuddy/scripts/check-goal-state.mjs +24 -9
  21. package/goalbuddy/templates/state.yaml +18 -3
  22. package/internal/assets/goalbuddy-live-board.jpg +0 -0
  23. package/internal/cli/goal-maker.mjs +424 -31
  24. package/internal/cli/postinstall.mjs +3 -3
  25. package/package.json +7 -2
  26. package/plugins/goalbuddy/.claude-plugin/plugin.json +24 -0
  27. package/plugins/goalbuddy/.codex-plugin/plugin.json +5 -4
  28. package/plugins/goalbuddy/README.md +23 -13
  29. package/plugins/goalbuddy/agents/goal-judge.md +27 -0
  30. package/plugins/goalbuddy/agents/goal-scout.md +24 -0
  31. package/plugins/goalbuddy/agents/goal-worker.md +26 -0
  32. package/plugins/goalbuddy/commands/goal-prep.md +12 -0
  33. package/plugins/goalbuddy/skills/goalbuddy/SKILL.md +44 -14
  34. package/plugins/goalbuddy/skills/goalbuddy/agents/README.md +15 -8
  35. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/README.md +105 -0
  36. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/examples/goal-board-sync/state.yaml +63 -0
  37. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/extension.yaml +43 -0
  38. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/scripts/lib/github-projects.mjs +728 -0
  39. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/scripts/lib/goal-state.mjs +362 -0
  40. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/scripts/sync-github-project.mjs +193 -0
  41. package/plugins/goalbuddy/skills/goalbuddy/extend/github-projects/test/github-projects.test.mjs +267 -0
  42. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/README.md +75 -0
  43. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/assets/goalbuddy-mark.png +0 -0
  44. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/examples/sample-goal/notes/T001-scout.md +3 -0
  45. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/examples/sample-goal/state.yaml +124 -0
  46. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/extension.yaml +37 -0
  47. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/scripts/lib/goal-board.mjs +1225 -0
  48. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/scripts/local-goal-board.mjs +258 -0
  49. package/plugins/goalbuddy/skills/goalbuddy/extend/local-goal-board/test/local-goal-board.test.mjs +146 -0
  50. package/plugins/goalbuddy/skills/goalbuddy/scripts/check-goal-state.mjs +24 -9
  51. package/plugins/goalbuddy/skills/goalbuddy/templates/state.yaml +18 -3
@@ -0,0 +1,43 @@
1
+ id: github-projects
2
+ name: GitHub Projects
3
+ kind: integration
4
+ version: 0.1.1
5
+ source_of_truth: local
6
+ description: Mirror GoalBuddy state.yaml tasks into GitHub Projects with dry-run planning, ProjectV2 fields, draft issue upserts, and one Goal Board view.
7
+ local_use_prompt: Run the bundled GitHub Projects sync script for docs/goals/<slug>/state.yaml. Use --dry-run first unless the user has approved live GitHub writes, then run the same script with GITHUB_TOKEN or GH_TOKEN and --project-id or --owner plus --project-number. Do not use Computer Use, browser automation, the GitHub web UI, or gh project as a fallback.
8
+ use_when:
9
+ - A long-running GoalBuddy board needs stakeholder visibility in GitHub Projects.
10
+ - The team wants one-way sync from state.yaml into ProjectV2 draft issues.
11
+ - The PM needs a safe dry-run plan before using GitHub credentials.
12
+ - GoalBuddy receipts, verification commands, allowed files, owners, role/agent fields, credential gates, and dependencies should appear in a GitHub board.
13
+ activation: publish_handoff
14
+ outputs:
15
+ - GitHub Projects dry-run plan
16
+ - GitHub ProjectV2 draft issue sync
17
+ - Goal Board ProjectV2 view
18
+ requires_approval: true
19
+ safe_by_default: false
20
+ reads:
21
+ - docs/goals/<slug>/state.yaml
22
+ - GITHUB_PROJECT_ID
23
+ - GITHUB_PROJECT_OWNER
24
+ - GITHUB_PROJECT_NUMBER
25
+ writes:
26
+ - GitHub ProjectV2 draft issues
27
+ - GitHub ProjectV2 fields
28
+ - GitHub ProjectV2 Goal Board view
29
+ side_effects:
30
+ - Live sync creates or updates GitHub Project draft issues, fields, and views.
31
+ agent_instructions:
32
+ - Use the bundled sync script for all live GitHub Projects writes.
33
+ - Do not use Computer Use, browser automation, or the GitHub web UI to create or repair Project views.
34
+ - Do not replace the bundled script with gh project commands; the script uses GraphQL plus the REST Project views endpoint.
35
+ - Do not claim ProjectV2 board views are UI-only; the GitHub REST Project views API supports creating board-layout views.
36
+ auth:
37
+ env:
38
+ - GITHUB_TOKEN
39
+ supports:
40
+ dry_run: true
41
+ live_github_projects: true
42
+ credentials_required: true
43
+ one_way_sync: true