savepoint 1.0.1 → 1.0.3
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/.claude/settings.local.json +15 -1
- package/.golangci.yml +11 -0
- package/.savepoint/Design.md +52 -46
- package/.savepoint/releases/v1/epics/E01-go-setup/tasks/T001-init-module.md +1 -1
- package/.savepoint/releases/v1/epics/E03-board-tui-core/tasks/T005-layout.md +1 -1
- package/.savepoint/releases/v1/epics/E04-board-components/tasks/T002-card.md +1 -1
- package/.savepoint/releases/v1/epics/E04-board-components/tasks/T006-help-overlay.md +1 -1
- package/.savepoint/releases/v1/epics/E06-atari-noir-layout/{Design.md → E06-Detail.md} +5 -3
- package/.savepoint/releases/v1/epics/E06-atari-noir-layout/tasks/T002-header-and-dividers.md +1 -1
- package/.savepoint/releases/v1/epics/E06-atari-noir-layout/tasks/T003-footer-status-bar.md +1 -1
- package/.savepoint/releases/v1/epics/E06-atari-noir-layout/tasks/T004-component-refinement.md +1 -1
- package/.savepoint/releases/v1/epics/E06-atari-noir-layout/tasks/T010-auto-refresh-watcher.md +2 -0
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/{Design.md → E01-Detail.md} +9 -1
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/{T007-next-activity-header.md → T001-next-activity-header.md} +13 -12
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T002-rename-epic-design-files.md +9 -9
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T003-rename-release-prd.md +2 -2
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T004-update-instruction-files.md +13 -12
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T005-update-cross-references.md +14 -13
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T006-column-and-detail-scrolling.md +25 -15
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T007-column-focus-border-stability.md +57 -0
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/E02-Audit.md +124 -0
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/{Design.md → E02-Detail.md} +12 -3
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/tasks/T001-fix-makefile.md +11 -8
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/tasks/T002-linux-build-target.md +12 -7
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/tasks/T003-macos-build-target.md +9 -5
- package/.savepoint/releases/v1.1/epics/E02-cross-platform-compatibility/tasks/T004-smoke-tests-and-artifacts.md +30 -9
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/E03-Audit.md +195 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/E03-Detail.md +45 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/tasks/T001-border-resize-fix.md +40 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/tasks/T002-next-activity-below-header.md +64 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/tasks/T003-checkbox-rendering-fix.md +56 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/tasks/T005-unify-status-glyphs.md +65 -0
- package/.savepoint/releases/v1.1/epics/E03-ui-visual-refinement/tasks/T006-forced-256-color-profile.md +36 -0
- package/.savepoint/releases/v1.1/epics/E04-epic-navigation/E04-Audit.md +167 -0
- package/.savepoint/releases/v1.1/epics/E04-epic-navigation/E04-Detail.md +51 -0
- package/.savepoint/releases/v1.1/epics/E04-epic-navigation/tasks/T001-sidebar-focusable-navigation.md +65 -0
- package/.savepoint/releases/v1.1/epics/E04-epic-navigation/tasks/T002-epic-detail-overlay.md +73 -0
- package/.savepoint/releases/v1.1/epics/E04-epic-navigation/tasks/T003-epic-status-glyphs.md +73 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/E05-Audit.md +237 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/E05-Detail.md +54 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T001-update-agents-md.md +45 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T002-update-router-md.md +40 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T003-update-design-md.md +47 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T004-implement-m-hotkey.md +98 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T005-update-help-overlay.md +33 -0
- package/.savepoint/releases/v1.1/epics/E05-tasking-permissions/tasks/T006-tests-and-quality-gates.md +62 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/E06-Audit.md +56 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/E06-Detail.md +63 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T005-proposals.md +44 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T007-apply-close.md +35 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T009-integration.md +40 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T010-audit-file-migration.md +45 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T011-model-tab-state.md +26 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T012-epic-audit-render.md +33 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T013-handle-tab-keys.md +34 -0
- package/.savepoint/releases/v1.1/epics/E06-audit-command/tasks/T014-tab-indicator.md +33 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/E07-Audit.md +336 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/E07-Detail.md +61 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T001-cli-entrypoint.md +37 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T002-target-validation.md +28 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T003-scaffold-writer.md +46 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T004-atomic-writes.md +27 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T005-magic-prompt.md +25 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T006-clipboard.md +26 -0
- package/.savepoint/releases/v1.1/epics/E07-init-command/tasks/T007-integration-test.md +26 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/E08-Audit.md +333 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/E08-Detail.md +68 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T001-cli-entrypoint.md +26 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T002-non-tty-fallback.md +27 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T003-tui-app-shell.md +28 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T004-board-model.md +29 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T005-detail-pane.md +27 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T006-status-transitions.md +29 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T007-theme-fallbacks.md +29 -0
- package/.savepoint/releases/v1.1/epics/E08-board-command/tasks/T008-integration-test.md +27 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/E09-Audit.md +207 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/E09-Detail.md +65 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T001-cli-entrypoint.md +24 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T002-config-router-validation.md +28 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T003-structure-checks.md +29 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T004-dependency-checks.md +27 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T005-audit-orphan-checks.md +28 -0
- package/.savepoint/releases/v1.1/epics/E09-doctor-command/tasks/T006-quality-gates-report.md +31 -0
- package/.savepoint/releases/v1.1/epics/E11-board-refresh-fix/E11-Detail.md +36 -0
- package/.savepoint/releases/v1.1/epics/E11-board-refresh-fix/tasks/T001-debug-logging.md +25 -0
- package/.savepoint/releases/v1.1/epics/E11-board-refresh-fix/tasks/T002-increase-debounce.md +21 -0
- package/.savepoint/releases/v1.1/epics/E11-board-refresh-fix/tasks/T003-error-handling.md +22 -0
- package/.savepoint/releases/v1.1/epics/E11-board-refresh-fix/tasks/T004-test-verify.md +29 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/E12-Audit.md +444 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/E12-Detail.md +45 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/tasks/T001-default-phase.md +35 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/tasks/T002-default-status.md +19 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/tasks/T003-better-errors.md +29 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/tasks/T004-validate-on-write.md +25 -0
- package/.savepoint/releases/v1.1/epics/E12-validation-fix/tasks/T005-tests.md +37 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/E13-Audit.md +118 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/E13-Detail.md +73 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T001-safe-cleanup.md +66 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T002-bug-fixes.md +35 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T003-centralize-duplication.md +60 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T004-infrastructure.md +33 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T005-decompose-update.md +37 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T006-async-io.md +40 -0
- package/.savepoint/releases/v1.1/epics/E13-audit-remediation/tasks/T007-test-coverage.md +37 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/E14-Audit.md +267 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/E14-Detail.md +54 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T001-group-model.md +39 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T002-data-interfaces.md +42 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T003-discover-orphans.md +33 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T004-epic-panel-headings.md +35 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T005-shell-tokenization.md +27 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T006-unify-enums.md +29 -0
- package/.savepoint/releases/v1.1/epics/E14-structural-improvements/tasks/T007-testutil-package.md +28 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/E15-Detail.md +43 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T001-benchmarks.md +31 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T002-fuzz-targets.md +28 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T003-debug-flag.md +30 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T004-dist-checksums.md +27 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T005-windows-targets.md +28 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T006-abbreviation-splitting.md +26 -0
- package/.savepoint/releases/v1.1/epics/E15-hardening/tasks/T007-root-test-allowlist.md +28 -0
- package/.savepoint/releases/v1.1/epics/_archived/T001-cli-entrypoint.md +25 -0
- package/.savepoint/releases/v1.1/epics/_archived/T002-quality-gates.md +27 -0
- package/.savepoint/releases/v1.1/epics/_archived/T003-snapshot.md +27 -0
- package/.savepoint/releases/v1.1/epics/_archived/T004-ai-reconcile.md +29 -0
- package/.savepoint/releases/v1.1/epics/_archived/T006-tui-review.md +31 -0
- package/.savepoint/releases/v1.1/epics/_archived/T008-skip-handling.md +34 -0
- package/.savepoint/releases/v1.1/v1.1-PRD.md +139 -0
- package/.savepoint/router.md +29 -108
- package/AGENTS.md +69 -111
- package/Makefile +19 -3
- package/README.md +6 -6
- package/agent-skills/savepoint-audit/SKILL.md +87 -35
- package/agent-skills/savepoint-build-task/SKILL.md +9 -4
- package/agent-skills/savepoint-create-plan/SKILL.md +10 -5
- package/agent-skills/savepoint-create-task/SKILL.md +44 -31
- package/agent-skills/savepoint-draft-prd/SKILL.md +8 -3
- package/agent-skills/savepoint-system-design/SKILL.md +8 -3
- package/agent_skills_test.go +91 -0
- package/cmd/board.go +59 -0
- package/cmd/board_test.go +137 -0
- package/cmd/doctor.go +53 -0
- package/cmd/doctor_test.go +146 -0
- package/cmd/init.go +63 -0
- package/cmd/init_test.go +104 -0
- package/internal/board/board.go +69 -49
- package/internal/board/board_test.go +83 -67
- package/internal/board/card.go +71 -20
- package/internal/board/card_test.go +141 -12
- package/internal/board/column.go +77 -11
- package/internal/board/column_test.go +63 -13
- package/internal/board/detail.go +107 -72
- package/internal/board/detail_test.go +117 -26
- package/internal/board/epic_panel.go +211 -18
- package/internal/board/epic_panel_test.go +637 -14
- package/internal/board/help.go +1 -0
- package/internal/board/help_test.go +1 -0
- package/internal/board/integration_test.go +266 -0
- package/internal/board/interfaces.go +65 -0
- package/internal/board/interfaces_test.go +114 -0
- package/internal/board/io.go +93 -0
- package/internal/board/layout.go +12 -2
- package/internal/board/layout_test.go +17 -0
- package/internal/board/model.go +130 -52
- package/internal/board/plain.go +88 -0
- package/internal/board/plain_test.go +117 -0
- package/internal/board/release.go +1 -9
- package/internal/board/release_test.go +6 -6
- package/internal/board/render_policy_test.go +77 -0
- package/internal/board/status.go +23 -0
- package/internal/board/theme.go +24 -0
- package/internal/board/theme_test.go +31 -0
- package/internal/board/transitions.go +113 -88
- package/internal/board/transitions_test.go +164 -141
- package/internal/board/tui.go +32 -0
- package/internal/board/update.go +472 -94
- package/internal/board/update_test.go +447 -0
- package/internal/board/util.go +76 -0
- package/internal/board/view.go +139 -22
- package/internal/board/view_test.go +171 -3
- package/internal/board/watch.go +57 -9
- package/internal/buildtool/main.go +211 -0
- package/internal/buildtool/main_test.go +46 -0
- package/internal/data/config.go +17 -3
- package/internal/data/config_test.go +49 -0
- package/internal/data/discover.go +26 -0
- package/internal/data/discover_test.go +34 -10
- package/internal/data/errors.go +4 -0
- package/internal/data/lifecycle.go +13 -6
- package/internal/data/lifecycle_test.go +14 -11
- package/internal/data/parser.go +29 -6
- package/internal/data/parser_test.go +66 -7
- package/internal/data/task.go +1 -0
- package/internal/data/write.go +85 -11
- package/internal/data/write_test.go +167 -0
- package/internal/doctor/checks.go +567 -0
- package/internal/doctor/checks_test.go +716 -0
- package/internal/doctor/gates.go +193 -0
- package/internal/doctor/gates_test.go +166 -0
- package/internal/doctor/interfaces.go +64 -0
- package/internal/doctor/interfaces_test.go +104 -0
- package/internal/doctor/repairs.go +80 -0
- package/internal/doctor/repairs_test.go +81 -0
- package/internal/doctor/report.go +157 -0
- package/internal/doctor/report_test.go +89 -0
- package/internal/init/clipboard.go +146 -0
- package/internal/init/clipboard_test.go +74 -0
- package/internal/init/install.go +16 -0
- package/internal/init/integration_test.go +197 -0
- package/internal/init/prompt.go +14 -0
- package/internal/init/prompt_test.go +77 -0
- package/internal/init/scaffold.go +59 -0
- package/internal/init/scaffold_test.go +179 -0
- package/internal/init/template_freshness_test.go +56 -0
- package/internal/init/validate.go +85 -0
- package/internal/init/validate_test.go +141 -0
- package/internal/init/write.go +73 -0
- package/internal/init/write_test.go +91 -0
- package/internal/styles/palette.go +3 -3
- package/internal/styles/styles.go +39 -12
- package/internal/styles/styles_test.go +133 -0
- package/internal/testutil/fixture.go +113 -0
- package/internal/testutil/fs.go +26 -0
- package/main.go +107 -1
- package/package.json +2 -2
- package/project-audit/audit_report_glm_5.1.md +411 -0
- package/project-audit/audit_report_opus_4.6 +406 -0
- package/project-audit/consolidated-audit-report.md +456 -0
- package/savepoint +0 -0
- package/templates/project/.savepoint/Design.md +2 -2
- package/templates/project/.savepoint/router.md +15 -14
- package/templates/project/AGENTS.md +56 -98
- package/templates/project/agent-skills/savepoint-audit/SKILL.md +87 -0
- package/templates/project/agent-skills/savepoint-build-task/SKILL.md +44 -0
- package/templates/project/agent-skills/savepoint-create-plan/SKILL.md +33 -0
- package/templates/project/agent-skills/savepoint-create-task/SKILL.md +44 -0
- package/templates/project/agent-skills/savepoint-draft-prd/SKILL.md +37 -0
- package/templates/project/agent-skills/savepoint-system-design/SKILL.md +38 -0
- package/templates/prompts/audit-reconciliation.prompt.md +35 -30
- package/templates/prompts/design.prompt.md +3 -1
- package/templates/prompts/epic-design.prompt.md +3 -3
- package/templates/prompts/task-breakdown.prompt.md +1 -1
- package/templates/prompts/task-building.prompt.md +1 -1
- package/templates/prompts/task-planning.prompt.md +1 -1
- package/.savepoint/audit/E01-go-setup/proposals.md +0 -166
- package/.savepoint/audit/E01-go-setup/snapshot.md +0 -71
- package/.savepoint/audit/E01-scaffolding/proposals/AGENTS.md +0 -66
- package/.savepoint/audit/E01-scaffolding/proposals/Design.md +0 -210
- package/.savepoint/audit/E01-scaffolding/proposals/epic-Design.md +0 -117
- package/.savepoint/audit/E01-scaffolding/proposals/quality-review.md +0 -101
- package/.savepoint/audit/E01-scaffolding/snapshot.md +0 -54
- package/.savepoint/audit/E02-data-model/snapshot.md +0 -128
- package/.savepoint/audit/E02-data-readers/proposals.md +0 -123
- package/.savepoint/audit/E02-data-readers/snapshot.md +0 -54
- package/.savepoint/audit/E03-board-tui-core/proposals.md +0 -146
- package/.savepoint/audit/E03-board-tui-core/snapshot.md +0 -57
- package/.savepoint/audit/E03-cli-foundation/snapshot.md +0 -106
- package/.savepoint/audit/E04-board-components/proposals.md +0 -118
- package/.savepoint/audit/E04-board-components/snapshot.md +0 -77
- package/.savepoint/audit/E04-templates-and-prompts/snapshot.md +0 -115
- package/.savepoint/audit/E05-init-command/snapshot.md +0 -125
- package/.savepoint/audit/E05-phase-transitions/proposals.md +0 -83
- package/.savepoint/audit/E05-phase-transitions/snapshot.md +0 -36
- package/.savepoint/audit/E06-atari-noir-layout/proposals.md +0 -130
- package/.savepoint/audit/E06-atari-noir-layout/snapshot.md +0 -84
- package/.savepoint/audit/E06-tui-board/snapshot.md +0 -64
- package/.savepoint/audit/E07-audit-pipeline/snapshot.md +0 -165
- package/.savepoint/audit/E08-board-workflow-cleanup/snapshot.md +0 -65
- package/.savepoint/releases/v1.1/epics/E01-tui-optimisation/tasks/T001-border-resize-fix.md +0 -36
- package/ink-cli-ui-design.zip +0 -0
- package/main.exe +0 -0
- package/savepoint.exe +0 -0
- /package/.savepoint/releases/v1/epics/E01-go-setup/{Design.md → E01-Detail.md} +0 -0
- /package/.savepoint/releases/v1/epics/E02-data-readers/{Design.md → E02-Detail.md} +0 -0
- /package/.savepoint/releases/v1/epics/E03-board-tui-core/{Design.md → E03-Detail.md} +0 -0
- /package/.savepoint/releases/v1/epics/E04-board-components/{Design.md → E04-Detail.md} +0 -0
- /package/.savepoint/releases/v1/epics/E05-phase-transitions/{Design.md → E05-Detail.md} +0 -0
- /package/.savepoint/releases/v1/{PRD.md → v1-PRD.md} +0 -0
|
@@ -1,130 +1,88 @@
|
|
|
1
1
|
# Agents Guide
|
|
2
2
|
|
|
3
|
-
Welcome, AI agent. This project (`{{PROJECT_NAME}}`) uses Savepoint to manage its build.
|
|
4
|
-
|
|
5
3
|
## Workflow
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
When you read `.savepoint/router.md`, you MUST activate the corresponding agent skill for the current state before taking any action. Use the `activate_skill` tool (or equivalent) for the appropriate phase:
|
|
11
|
-
- `state: draft-prd` -> Activate the `draft-prd` skill.
|
|
12
|
-
- `state: design` -> Activate the `system-design` skill.
|
|
13
|
-
- `state: planning` -> Activate the `create-plan` skill.
|
|
14
|
-
- `state: task-breakdown` -> Activate the `create-task` skill.
|
|
15
|
-
- `state: in-progress` -> Activate the `build-task` skill.
|
|
16
|
-
- `state: audit-pending` -> Activate the `audit` skill.
|
|
17
|
-
|
|
18
|
-
When you are about to write code, you must first read, in order:
|
|
19
|
-
|
|
20
|
-
1. `.savepoint/router.md` — current state and next action
|
|
21
|
-
2. The active epic Design: `.savepoint/releases/v{{RELEASE_NUMBER}}/epics/{E##-epic}/Design.md`
|
|
22
|
-
3. The active task file: `.savepoint/releases/v{{RELEASE_NUMBER}}/epics/{E##-epic}/tasks/{T###}-*.md`
|
|
23
|
-
4. Directly touched source/test files
|
|
24
|
-
|
|
25
|
-
Read `.savepoint/PRD.md` only for project vision changes, major scope questions, or when the router explicitly asks for it.
|
|
26
|
-
Read `.savepoint/Design.md` only when the task changes architecture or audit state. Read `.savepoint/releases/v{{RELEASE_NUMBER}}/PRD.md` only when planning epics, changing release scope, or resolving epic order.
|
|
27
|
-
|
|
28
|
-
**Conditional read (token discipline):** if your active task touches **Ink/TUI implementation**, also read `agent-skills/ink-tui-design/SKILL.md` after Design.md as the execution guide. If it touches **TUI rendering, theme, or visual design**, also read `.savepoint/visual-identity.md` as the visual guardrails. Otherwise skip the extra files — they are tokens you do not need.
|
|
29
|
-
|
|
30
|
-
**Do not load files outside the current task scope** unless the task requires it. Token discipline is the wedge of this product; we honor it on ourselves.
|
|
31
|
-
|
|
32
|
-
Planning and implementation are separate handoffs:
|
|
33
|
-
|
|
34
|
-
- Epic task breakdown and detailed task planning happen together in one pass by one planning agent.
|
|
35
|
-
- Each task file must be independently buildable, objective-led, include explicit `depends_on` IDs, contain `## Acceptance Criteria` (observable outcomes) before `## Implementation Plan` (build checklist), and include a `## Context Log` for files read, estimated input tokens, and notes.
|
|
36
|
-
- Implementation happens one task at a time and may be handed to any agent. Clear context between tasks by default; rehydrate only from the router, active epic Design, active task file, and directly touched source/test files.
|
|
37
|
-
- During implementation, run focused tests for the touched behavior first; reserve the full quality-gate suite for task closeout.
|
|
38
|
-
|
|
39
|
-
- After all tasks in an epic are `done`, hand the epic back for audit.
|
|
40
|
-
- Any explicit audit request overrides the normal handoff timing for that epic. Persist the audit to `.savepoint/audit/{E##-epic}/snapshot.md` and `.savepoint/audit/{E##-epic}/proposals.md` before replying; do not stop at chat-only findings.
|
|
5
|
+
1. Read `.savepoint/router.md` — state + next action
|
|
6
|
+
2. Activate skill per table below
|
|
7
|
+
3. Read: router → epic → task → source files
|
|
41
8
|
|
|
42
|
-
##
|
|
9
|
+
## Skill Activation
|
|
43
10
|
|
|
44
|
-
|
|
11
|
+
| State | Skill |
|
|
12
|
+
|-------|-------|
|
|
13
|
+
| pre-implementation | savepoint-draft-prd |
|
|
14
|
+
| epic-design | savepoint-system-design |
|
|
15
|
+
| epic-task-breakdown | savepoint-create-task |
|
|
16
|
+
| task-building | savepoint-build-task |
|
|
17
|
+
| audit-pending | savepoint-audit |
|
|
45
18
|
|
|
46
|
-
|
|
19
|
+
Use the `skill` tool when the listed skill is available. If the agent says the skill is not found, read `agent-skills/{skill}/SKILL.md` directly and follow it as the active skill.
|
|
47
20
|
|
|
48
|
-
|
|
21
|
+
Read `.savepoint/PRD.md` only for vision changes, `.savepoint/Design.md` only for architecture/audit.
|
|
49
22
|
|
|
50
|
-
## Task
|
|
23
|
+
## Task Status
|
|
51
24
|
|
|
52
|
-
|
|
25
|
+
- `status`: only `planned`, `in_progress`, or `done`
|
|
26
|
+
- `stage` (build/test/audit): **required** when `status: in_progress` — omitting it is a parse error
|
|
27
|
+
- Never: todo, doing, blocked, review, audit
|
|
28
|
+
- Agents may set a task to `status: in_progress` when starting implementation.
|
|
29
|
+
- Only the user may set a task to `status: done` or retreat a task to an earlier status.
|
|
53
30
|
|
|
54
|
-
|
|
55
|
-
2. Tick all checkboxes in the `## Implementation Plan`.
|
|
56
|
-
3. Fill the `## Context Log` (files read, estimated input tokens, notes).
|
|
57
|
-
4. Run the full quality-gate suite (`npm run build && npm run typecheck && npm run lint && npm run format:check && npm test`). Record the result in the Context Log.
|
|
58
|
-
5. If any gate fails, fix it or document the blocker in the task file before setting `status: done`.
|
|
59
|
-
6. Set the task frontmatter to `status: done`.
|
|
60
|
-
7. Update `router.md` with the next action (next unblocked task, or `audit-pending` if all tasks done).
|
|
61
|
-
8. **Stop. Prompt the user:**
|
|
62
|
-
> "Task {id} is done. Quality gates: {pass/fail list}. Router updated to {next_action}. Review the changes, then tell me to continue."
|
|
31
|
+
## Implementation
|
|
63
32
|
|
|
64
|
-
|
|
33
|
+
1. Read task's `## Context Files` using `Read` tool — one call per file, no explore, no glob
|
|
34
|
+
2. Read task's `## Acceptance Criteria` + `## Implementation Plan`
|
|
35
|
+
3. When starting implementation, set task frontmatter to `status: in_progress` + `stage: build` (both required together)
|
|
36
|
+
4. After setting `in_progress`, press `p` in the TUI to mark the focused task as router priority
|
|
37
|
+
5. Execute in order, tick checkboxes
|
|
38
|
+
6. Verify every AC has passing test/outcome
|
|
39
|
+
7. Run quality gates (build + test)
|
|
40
|
+
8. Update router.md: next task or `audit-pending`
|
|
41
|
+
9. **Stop. Prompt user before continuing.**
|
|
65
42
|
|
|
66
|
-
##
|
|
43
|
+
## Drift Check
|
|
67
44
|
|
|
68
|
-
|
|
45
|
+
- New files/modules not in Codebase Map?
|
|
46
|
+
- Architecture changed from Design.md?
|
|
69
47
|
|
|
70
|
-
|
|
71
|
-
- Did this task change the architecture from what `.savepoint/Design.md` describes?
|
|
48
|
+
If yes → append `## Drift Notes` to task file.
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
- `Drift: {file} added, not yet in Codebase Map.`
|
|
75
|
-
- `Drift: {section} in Design.md may need update.`
|
|
50
|
+
## Audit Handoff
|
|
76
51
|
|
|
77
|
-
|
|
52
|
+
The agent that builds an epic **must not audit it**. Start a fresh session.
|
|
78
53
|
|
|
79
|
-
## Audit
|
|
54
|
+
## Audit File Structure
|
|
80
55
|
|
|
81
|
-
|
|
56
|
+
- Audit is agent-led via `savepoint-audit`, not a `savepoint audit` CLI pipeline.
|
|
57
|
+
- Write exactly one `.savepoint/releases/{release}/epics/{E##-slug}/E##-Audit.md`.
|
|
58
|
+
- The TUI Audit tab renders `## Main Findings` and `## Code Style Review` only.
|
|
59
|
+
- Keep file-specific `### Target File` / `### Replace` / `### With` blocks under `## Proposed Changes` so admin apply details do not appear in the Epic Detail panel.
|
|
60
|
+
- During audit apply/close, update the same `E##-Audit.md` visible sections so `## Main Findings` and `## Code Style Review` describe the applied outcome, not stale pre-apply blockers.
|
|
82
61
|
|
|
83
|
-
|
|
84
|
-
1. Update `router.md` to `state: audit-pending` for that epic.
|
|
85
|
-
2. Stop. Tell the user: "Epic {id} is complete. Start a new agent session for the audit."
|
|
86
|
-
3. The user starts a fresh session. The new agent reads `router.md`, sees `audit-pending`, and follows the audit-reconciliation instructions.
|
|
87
|
-
|
|
88
|
-
**If you are in the same session that built the epic, you must not audit it.**
|
|
62
|
+
## Code Style
|
|
89
63
|
|
|
90
|
-
|
|
64
|
+
- **One job per file** — split files when responsibilities mix.
|
|
65
|
+
- **One job per function** — small, named, testable units.
|
|
66
|
+
- **Test branches** — cover meaningful conditionals and edge cases.
|
|
67
|
+
- **Types document intent** — prefer explicit types over comments.
|
|
68
|
+
- **Build only what is needed** — no speculative abstractions.
|
|
69
|
+
- **Handle errors at boundaries** — validate inputs, APIs, IO, and external data.
|
|
70
|
+
- **One source of truth** — no duplicated rules, constants, state, or config.
|
|
71
|
+
- **Comments explain why** — not what the code already says.
|
|
72
|
+
- **Content lives in data** — keep copy/config out of logic.
|
|
73
|
+
- **Small diffs** — minimal, reviewable, behaviour-preserving changes.
|
|
91
74
|
|
|
92
|
-
|
|
75
|
+
## Build
|
|
93
76
|
|
|
94
77
|
```bash
|
|
95
|
-
|
|
96
|
-
npm run typecheck # type check
|
|
97
|
-
npm run lint # lint
|
|
98
|
-
npm run format:check # format check
|
|
99
|
-
npm test # test suite
|
|
78
|
+
make build && make test
|
|
100
79
|
```
|
|
101
80
|
|
|
102
|
-
## Code Style
|
|
103
|
-
|
|
104
|
-
1. **One job per file.** If a file does two things, split it.
|
|
105
|
-
2. **One-sentence rule.** If you can't describe a function in one sentence, refactor.
|
|
106
|
-
3. **Test what branches.** Logic with if/else/switch gets a test. Pure rendering: skip.
|
|
107
|
-
4. **Types are documentation.** No `any`. Let the compiler help.
|
|
108
|
-
5. **Build, don't speculate.** No code for hypothetical futures.
|
|
109
|
-
6. **Errors at boundaries.** Handle failure where data enters or leaves the system.
|
|
110
|
-
7. **One source of truth.** State lives in one place. No syncing copies.
|
|
111
|
-
8. **Comments explain WHY,** not what. If removing the comment wouldn't confuse a future reader, delete it.
|
|
112
|
-
9. **Content in data files.** Markdown/JSON/YAML, not strings in code.
|
|
113
|
-
10. **Small diffs.** Each task touches as few files as possible.
|
|
114
|
-
|
|
115
81
|
## Codebase Map
|
|
116
82
|
|
|
117
|
-
<!-- AUTO-GENERATED BY savepoint audit. Do not edit manually. -->
|
|
118
|
-
|
|
119
83
|
| Module | Epic | Purpose |
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<!-- END AUTO-GENERATED -->
|
|
84
|
+
|--------|------|---------|
|
|
123
85
|
|
|
124
|
-
## CLI
|
|
86
|
+
## CLI Rules
|
|
125
87
|
|
|
126
88
|
**Never run `savepoint` commands.** The CLI is for the human. Edit files directly.
|
|
127
|
-
|
|
128
|
-
## Recommended planning models
|
|
129
|
-
|
|
130
|
-
For PRD/Design/Task planning, this workflow assumes a top-tier model: Claude Opus, Gemini 2.5 Pro, GPT-5.5, or equivalent. Lighter models may not follow embedded prompt instructions reliably. If you are not one of those, advise the user before proceeding with planning steps.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-audit
|
|
3
|
+
description: Performs Savepoint audit-pending work for a completed epic, reviewing implementation against task acceptance criteria and writing the required E##-Audit.md handoff file.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: Audit (`audit`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
At the end of an epic, review the implemented code against the Epic objectives and Task Acceptance Criteria, and reconcile any documentation "Drift".
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
The Audit Gate is Savepoint's wedge. It prevents projects from degrading into chaos. The `audit` agent acts as the Quality Assurance and Documentation Lead. It reviews the work of the `build-task` agent with "fresh eyes," ensuring that the `Design.md` and the `AGENTS.md` Codebase Map reflect the actual reality of the codebase before the next Epic begins.
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `audit-pending`.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- `.savepoint/releases/{release}/epics/{E##-slug}/E##-Detail.md` (the epic design).
|
|
19
|
+
- `.savepoint/Design.md` (project architecture).
|
|
20
|
+
- `AGENTS.md` (agent guide and codebase map).
|
|
21
|
+
- The source and test files modified during the Epic.
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
1. **Fresh Eyes Check:** If you are the exact same agent session that just built the `build-task` code for this Epic, you MUST STOP. Tell the user: "Epic complete. Start a new agent session for the audit."
|
|
26
|
+
2. **Verify ACs:** Review the completed tasks for the Epic. Ensure the Acceptance Criteria were actually met by the committed code. Also confirm each task file has a `## Context Files` section — flag any missing ones under `## Main Findings` as a process gap.
|
|
27
|
+
3. **Process Drift Notes (Reconciliation):** Read every task file in the Epic and look for `## Drift Notes`.
|
|
28
|
+
4. **Draft Audit File:** Based on the code changes and the Drift Notes, write exactly ONE file: `.savepoint/releases/{release}/epics/{E##-slug}/E##-Audit.md`. It must use this format:
|
|
29
|
+
````md
|
|
30
|
+
---
|
|
31
|
+
type: audit-findings
|
|
32
|
+
audited: YYYY-MM-DD
|
|
33
|
+
---
|
|
34
|
+
# Audit Findings: E## {Epic Name}
|
|
35
|
+
|
|
36
|
+
## Main Findings
|
|
37
|
+
[human-readable audit summary only: AC verification, important drift, and notable risks. Do not include per-file replacement blocks here.]
|
|
38
|
+
|
|
39
|
+
## Code Style Review
|
|
40
|
+
- [ ] One job per file
|
|
41
|
+
- [ ] One-sentence functions
|
|
42
|
+
- [ ] Test branches
|
|
43
|
+
- [ ] Types are documentation
|
|
44
|
+
- [ ] Build, don't speculate
|
|
45
|
+
- [ ] Errors at boundaries
|
|
46
|
+
- [ ] One source of truth
|
|
47
|
+
- [ ] Comments explain WHY
|
|
48
|
+
- [ ] Content in data files
|
|
49
|
+
- [ ] Small diffs
|
|
50
|
+
|
|
51
|
+
## Proposed Changes
|
|
52
|
+
### Target File
|
|
53
|
+
path/to/file.md
|
|
54
|
+
|
|
55
|
+
### Replace
|
|
56
|
+
```
|
|
57
|
+
exact old text
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### With
|
|
61
|
+
```
|
|
62
|
+
replacement text
|
|
63
|
+
```
|
|
64
|
+
````
|
|
65
|
+
The TUI Audit tab renders only `## Main Findings` and `## Code Style Review`. Keep `## Proposed Changes` as admin/apply metadata so the Epic Detail panel does not show stale file-change blocks.
|
|
66
|
+
5. **Review Format:** Use `### Target File`, `### Replace`, and `### With` formatting only inside `## Proposed Changes`. Include proposals for:
|
|
67
|
+
* **Design.md:** Merge the epic's architectural changes into the project-level `Design.md`.
|
|
68
|
+
* **AGENTS.md:** Refresh the Codebase Map table with new or changed modules.
|
|
69
|
+
* **Epic E##-Detail.md:** Add "Implemented as:" notes showing where reality deviated from the original plan.
|
|
70
|
+
* **Implementation fixes:** Include any must-fix code or test changes found during audit.
|
|
71
|
+
6. **Handoff:** Do not apply the proposals yourself. Do not mark the epic audited. Stop and prompt the user to review `.savepoint/releases/{release}/epics/{E##-slug}/E##-Audit.md` (via the TUI Audit tab). Tell them: "Review the audit tab. When ready, say 'apply audit' to apply proposals and close the epic."
|
|
72
|
+
7. **Apply + Close** (only when the user approves by saying "apply audit" or equivalent):
|
|
73
|
+
1. Read `E##-Audit.md` — extract every `### Target File` / `### Replace` / `### With` block from `## Proposed Changes`.
|
|
74
|
+
2. For each pair, apply the replacement to the target file named in the preceding `### Target File` line.
|
|
75
|
+
3. Update `E##-Audit.md` visible sections: rewrite `## Main Findings` and `## Code Style Review` so the TUI Audit tab reflects the applied outcome, resolved findings, remaining risks if any, and final code-style status. Keep `## Proposed Changes` intact as admin/apply trace unless the user asks to remove it.
|
|
76
|
+
4. Update `E##-Detail.md` frontmatter: set `status: audited`.
|
|
77
|
+
5. Update `.savepoint/Design.md` frontmatter: set `last_audited: {release}/{E##-slug}`.
|
|
78
|
+
6. Read `.savepoint/router.md` current state. Advance:
|
|
79
|
+
- If more epics remain in the release: set `state: epic-design`, `epic: {next-epic-slug}`, `task: ""`, `next_action: "Draft epic design"`.
|
|
80
|
+
- If no more epics: set `state: epic-design`, `epic: ""`, `next_action: "Plan next epic"`.
|
|
81
|
+
7. Print apply summary: "Applied X proposals. Updated audit findings. Epic {E##} closed as audited. Router → {new state}."
|
|
82
|
+
|
|
83
|
+
## Constraints
|
|
84
|
+
- **Do not write product code.** You are an auditor.
|
|
85
|
+
- **Do not apply the changes immediately.** Write the proposals document first.
|
|
86
|
+
- **One proposals file.** Do not create multiple proposal files.
|
|
87
|
+
- **No CLI audit pipeline.** Savepoint audit is agent-led and skill-driven; do not invoke or design around a `savepoint audit` command.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-build-task
|
|
3
|
+
description: Executes Savepoint task-building work when .savepoint/router.md state is task-building, including implementing one active task, checking acceptance criteria, running quality gates, and stopping for user review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: Build Task (`build-task`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
Act as a disciplined coding agent that strictly follows Savepoint's implementation loop.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
The `build-task` skill is the execution engine. It reads the detailed task plan, writes the code, and proves that the Acceptance Criteria (ACs) have been met. It is strictly constrained to the scope of the single active task. It does not rewrite architecture, and it does not fix unrelated bugs.
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `task-building` and points to a specific task file.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- `.savepoint/router.md` (Current state).
|
|
19
|
+
- The active epic E##-Detail.md: `.savepoint/releases/v1/epics/{E##-epic}/E##-Detail.md`.
|
|
20
|
+
- The active task file: `.savepoint/releases/v1/epics/{E##-epic}/tasks/{T###}-*.md`.
|
|
21
|
+
- Directly touched source/test files.
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
1. **Read the Task Plan:** Review the `## Acceptance Criteria` and the `## Implementation Plan`.
|
|
26
|
+
2. **Test-First Implementation:** If testing is part of the project constraints, write the focused tests for the required behavior first.
|
|
27
|
+
3. **Execute:** Write the code to check off every item in the `## Implementation Plan`.
|
|
28
|
+
4. **Validate ACs:** You must verify that every single item in the `## Acceptance Criteria` has been met. A task is not done just because the code is written; it is done when the ACs are demonstrably true.
|
|
29
|
+
5. **Run Quality Gates:** Run the project's build, lint, and test commands (e.g., `npm run build && npm test` or `go test ./...`).
|
|
30
|
+
6. **Log Context:** Fill out the `## Context Log` at the bottom of the task file:
|
|
31
|
+
* List files read/edited.
|
|
32
|
+
* Estimate tokens used.
|
|
33
|
+
* Record the result of the quality gates.
|
|
34
|
+
7. **Log Drift Notes:** **CRITICAL STEP.** Ask yourself:
|
|
35
|
+
* Did I add new source files, modules, or exports not listed in the `AGENTS.md` Codebase Map?
|
|
36
|
+
* Did I change the architecture from what `.savepoint/Design.md` describes?
|
|
37
|
+
* If YES to either, append a `## Drift Notes` section to the bottom of the task file explaining what changed. DO NOT edit `Design.md` or `AGENTS.md` yourself. The `audit` agent will handle that later.
|
|
38
|
+
8. **Status Update:** Change the task frontmatter to `status: done`.
|
|
39
|
+
9. **Handoff:** Update `router.md` to point to the next unblocked task. If all tasks in the Epic are done, update it to `state: audit-pending`.
|
|
40
|
+
10. **Stop:** Prompt the user: "Task {id} is done. Quality gates passed. Review the changes, then tell me to continue." Do not start the next task automatically.
|
|
41
|
+
|
|
42
|
+
## Constraints
|
|
43
|
+
- **Stay in scope:** Do not touch files outside of what is required for the Acceptance Criteria.
|
|
44
|
+
- **Do not edit architecture documents.** If you must deviate from the plan, write the code and log a "Drift Note" in the task file.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-create-plan
|
|
3
|
+
description: Creates Savepoint release epics from the PRD and Design documents when the router is in pre-implementation planning.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: Create Plan (`create-plan`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
Turn the Product Requirements Document (PRD) and the architectural `Design.md` into Epics (logical slices of work) and high-level tasks that can be implemented independently.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
Savepoint enforces small scopes to prevent AI agents from "wandering." The `create-plan` skill acts as the Technical Project Manager. It takes the grand vision and the architectural blueprint and slices it into a sequence of achievable, testable milestones (Epics).
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `pre-implementation`.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- `.savepoint/PRD.md` (Vision and constraints)
|
|
19
|
+
- `.savepoint/Design.md` (Architecture and layout)
|
|
20
|
+
- `.savepoint/releases/v1/v1-PRD.md` (Optional: Release-scoped PRD)
|
|
21
|
+
|
|
22
|
+
## Workflow
|
|
23
|
+
|
|
24
|
+
1. **Read the Context:** Consume the PRD and Design documents to understand the scope and technical constraints.
|
|
25
|
+
2. **Define Epics:** Group the work into high-level features or milestones. Name them clearly (e.g., `E01-scaffolding`, `E02-database`, `E03-auth`). Each Epic must represent a deliverable slice of value.
|
|
26
|
+
3. **Draft Epic Designs:** For each Epic, create a shell `E##-Detail.md` inside `.savepoint/releases/v1/epics/{E##-epic-name}/E##-Detail.md`. This file should describe the *delta* (what this specific epic adds to the overall architecture).
|
|
27
|
+
4. **Breakdown Tasks (High Level):** Inside each Epic folder, list out the high-level tasks required to complete it. Do not write full implementation plans yet—just identify the discrete chunks of work (e.g., `T001-setup-repo.md`, `T002-init-db.md`).
|
|
28
|
+
5. **Order and Dependency:** Ensure the Epics and tasks are ordered logically. You cannot build the frontend auth UI (E03) before the database models (E02) exist.
|
|
29
|
+
6. **Handoff:** Update `.savepoint/router.md` to `state: task-breakdown` and point it at the first Epic. Prompt the user to review the Epic list.
|
|
30
|
+
|
|
31
|
+
## Constraints
|
|
32
|
+
- **Do not write code.**
|
|
33
|
+
- **Do not write detailed implementation steps.** That is the job of the `create-task` skill. Keep the task outlines high-level at this stage.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-create-task
|
|
3
|
+
description: Plans Savepoint task files during epic-task-breakdown by writing acceptance criteria, implementation checklists, dependencies, and context-log shells.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: Create Task (`create-task`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
Take high-level tasks identified during the planning phase and build detailed, actionable task plans with strict Acceptance Criteria.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
A task plan is a contract between the planner and the builder. If the task plan is vague, the resulting code will be buggy. The `create-task` skill acts as a Senior Engineer writing tickets for a Junior Developer (the `build-task` agent). It must define exactly *what* constitutes success and *how* to achieve it, without actually writing the code.
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `epic-task-breakdown` and the router points to a specific epic.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- `.savepoint/releases/v1/epics/{E##-epic}/E##-Detail.md` (The active Epic's design).
|
|
19
|
+
- The high-level task markdown file (e.g., `.savepoint/releases/v1/epics/{E##-epic}/tasks/T001-slug.md`).
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
1. **Read Context:** Understand the goal of the specific task within the context of its parent Epic.
|
|
24
|
+
2. **Define Acceptance Criteria (ACs):** This is the most critical step. Write explicit, observable outcomes. (e.g., "Running `npm test` passes 5 tests for the auth module" or "The `/login` route returns a 200 OK with a valid JWT"). Do not use subjective language like "looks good."
|
|
25
|
+
3. **Draft Implementation Plan:** Create a step-by-step checklist for the `build-task` agent to follow.
|
|
26
|
+
* List which files need to be created or modified.
|
|
27
|
+
* Specify which functions or components need to be written.
|
|
28
|
+
* Include instructions to write tests *first* if applicable.
|
|
29
|
+
4. **Populate Context Files:** Add a `## Context Files` section listing the exact file paths the build agent must read before coding. Pull these from the epic's Components table — only the files this task actually touches or depends on. Example:
|
|
30
|
+
```markdown
|
|
31
|
+
## Context Files
|
|
32
|
+
- `internal/board/board.go`
|
|
33
|
+
- `internal/board/model.go`
|
|
34
|
+
- `internal/data/config.go`
|
|
35
|
+
```
|
|
36
|
+
No globs. No directories. Exact paths only.
|
|
37
|
+
5. **Add Context Log Shell:** Ensure the bottom of the task file includes a `## Context Log` section with placeholders for `Files read:`, `Estimated input tokens:`, and `Notes:`.
|
|
38
|
+
5. **Define Dependencies:** If this task relies on another task being completed first, explicitly declare it in the YAML frontmatter (e.g., `depends_on: [T001-setup]`).
|
|
39
|
+
6. **Status Update:** Change the task frontmatter to `status: planned`.
|
|
40
|
+
7. **Handoff:** Update `.savepoint/router.md` to `state: in-progress` and ensure it points to the newly planned task. Prompt the user to approve the task plan before building begins.
|
|
41
|
+
|
|
42
|
+
## Constraints
|
|
43
|
+
- **Do not write code.** Your job is to plan the work, not execute it.
|
|
44
|
+
- **Keep it isolated:** The task plan should touch as few files as possible. If a task plan requires modifying 15 files, it is too large and should be broken down further.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-draft-prd
|
|
3
|
+
description: Guides Savepoint PRD drafting and refinement before implementation, interviewing the user until the product scope is clear enough for design.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: Draft PRD (`draft-prd`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
Help the user write a structured, sufficiently detailed Product Requirements Document (PRD) before any design or planning occurs.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
In the Savepoint workflow, the PRD is the absolute source of truth. If the PRD is a vague brain-dump, the resulting architecture and code will be a mess. Your job as the `draft-prd` agent is to act as a strict Product Manager. You do not write code. You interrogate the user's idea until it is crisp enough to build a V1.
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `pre-implementation` or when the user explicitly asks you to help them write or refine their PRD.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- The user's initial idea, brain-dump, or `.txt` file outline.
|
|
19
|
+
- The template located at `.savepoint/PRD.md`.
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
1. **Read the Template:** Review the current state of `.savepoint/PRD.md`. If it is the default template (mostly comments), prepare to interview the user.
|
|
24
|
+
2. **Interrogation (The Grill):** Do not immediately overwrite the file with guesses. If the user's input lacks:
|
|
25
|
+
* A specific core mechanic.
|
|
26
|
+
* A defined target user.
|
|
27
|
+
* Clear V1 constraints (e.g., tech stack).
|
|
28
|
+
* Explicit "Out of scope" items.
|
|
29
|
+
...you MUST ask them questions. Force them to define boundaries.
|
|
30
|
+
3. **Synthesis:** Once you have sufficient detail, synthesize the conversation into the `.savepoint/PRD.md` file, strictly adhering to its markdown structure. Remove the instructional HTML comments as you fill in each section.
|
|
31
|
+
4. **The V1 Gate:** Review the final document. If the scope still feels too large for a rapid MVP (e.g., "Build a full clone of Jira with AI"), warn the user. Suggest moving features to the "Out of Scope" section for V1.
|
|
32
|
+
5. **Handoff:** Once the PRD is solid and approved by the user, update `.savepoint/router.md` to `state: design`. Instruct the user to review the PRD and then prompt the agent to continue to the design phase.
|
|
33
|
+
|
|
34
|
+
## Constraints
|
|
35
|
+
- **Do not write code.**
|
|
36
|
+
- **Do not plan Epics.** That is the job of the `create-plan` skill.
|
|
37
|
+
- **Do not make technical architectural decisions.** That is the job of the `system-design` skill. Your focus is strictly on *what* and *why*, not *how*.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: savepoint-system-design
|
|
3
|
+
description: Produces Savepoint system or epic design documents from the PRD when the router is in epic-design or the user asks for architectural design.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Savepoint Skill: System Design (`system-design`)
|
|
7
|
+
|
|
8
|
+
## Objective
|
|
9
|
+
Translate the Product Requirements Document (PRD) into the initial architectural blueprint (`Design.md`) before the planning phase breaks the work down into Epics.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
Before any tasks can be planned, the project needs a high-level technical direction. The `system-design` skill acts as the Staff Engineer. It reads the vision and constraints from the PRD and makes authoritative technical decisions regarding architecture, directory layout, dependency strategies, and workflow rules.
|
|
13
|
+
|
|
14
|
+
## Trigger
|
|
15
|
+
This skill is activated when the `.savepoint/router.md` state is `epic-design` or when the user explicitly asks to design the system based on the PRD.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
- `.savepoint/PRD.md` (The source of truth for "what" and "why").
|
|
19
|
+
- Any existing template or shell in `.savepoint/Design.md`.
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
1. **Read the PRD:** Analyze `.savepoint/PRD.md` to understand the goal, constraints (e.g., tech stack, budget), and what is out of scope.
|
|
24
|
+
2. **Architectural Mapping:** Make firm, opinionated technical decisions that solve the PRD's goals. Do not offer options unless absolutely necessary; pick a path and justify it briefly.
|
|
25
|
+
3. **Draft `.savepoint/Design.md`:** Write or update the architectural design document. It must include:
|
|
26
|
+
* **Architecture Model:** The core pattern (e.g., "File-only state machine," "Client-side React with Firebase," "CLI Tool").
|
|
27
|
+
* **Directory Layout:** A clear, visual tree mapping out the structure of the project (`src/`, `test/`, etc.).
|
|
28
|
+
* **Hierarchy Semantics:** Definitions of what constitutes an Epic vs. a Task.
|
|
29
|
+
* **Status Model & Gates:** How work moves from `planned` to `done`.
|
|
30
|
+
* **Dependencies:** How modules or tasks rely on each other.
|
|
31
|
+
* **CLI Surface/API Contract:** If applicable, define the boundary interactions.
|
|
32
|
+
4. **Review Against Constraints:** Ensure your design strictly adheres to the constraints and out-of-scope items listed in the PRD. If the PRD says "no database," do not add a database to the architecture.
|
|
33
|
+
5. **Handoff:** Update `.savepoint/router.md` to `state: planning`. Instruct the user to review the `Design.md` and then prompt the agent to start the epic breakdown.
|
|
34
|
+
|
|
35
|
+
## Constraints
|
|
36
|
+
- **Do not write code.**
|
|
37
|
+
- **Do not break down tasks.** That is the job of the `create-plan` skill.
|
|
38
|
+
- **Maintain Token Discipline:** Keep the `Design.md` concise. It is meant to be read by AI agents on every turn. Rambling design docs destroy context windows.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Prompt: Audit Reconciliation
|
|
2
2
|
|
|
3
|
-
<!-- AGENT: Produce one
|
|
3
|
+
<!-- AGENT: Produce one epic-local audit findings file. Prefer delta-only edits. Do not write separate proposal files. -->
|
|
4
4
|
|
|
5
5
|
You are reconciling an epic after its last task is done. The epic is `status: audit-pending`.
|
|
6
6
|
|
|
@@ -8,60 +8,65 @@ You are reconciling an epic after its last task is done. The epic is `status: au
|
|
|
8
8
|
|
|
9
9
|
## Input
|
|
10
10
|
|
|
11
|
-
- `.savepoint/
|
|
12
|
-
- `.savepoint/releases/
|
|
11
|
+
- `.savepoint/releases/{release}/epics/{E##-slug}/E##-Detail.md` — the epic design (may have deltas from the original plan).
|
|
12
|
+
- `.savepoint/releases/{release}/epics/{E##-slug}/tasks/*.md` — task plans, ACs, and drift notes.
|
|
13
13
|
- `.savepoint/Design.md` — project architecture.
|
|
14
14
|
- `AGENTS.md` — agent guide and codebase map.
|
|
15
|
-
-
|
|
15
|
+
- Source and test files in the epic scope.
|
|
16
16
|
|
|
17
17
|
## Output
|
|
18
18
|
|
|
19
|
-
One file: `.savepoint/
|
|
19
|
+
One file: `.savepoint/releases/{release}/epics/{E##-slug}/E##-Audit.md`
|
|
20
20
|
|
|
21
|
-
The
|
|
21
|
+
The audit file must contain these sections in order:
|
|
22
22
|
|
|
23
|
-
1. **
|
|
24
|
-
2. **
|
|
25
|
-
3. **
|
|
26
|
-
4. **Quality Review section** — semantic-review findings against the project's code style rules.
|
|
23
|
+
1. **Main Findings** — user-facing summary only: AC verification, important drift, and notable risks. Do not include per-file replacement blocks here.
|
|
24
|
+
2. **Code Style Review** — checklist against the 10 AGENTS.md code style rules.
|
|
25
|
+
3. **Proposed Changes** — admin/apply metadata only. This section may contain `### Target File`, `### Replace`, and `### With` blocks.
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
The TUI Audit tab renders only `## Main Findings` and `## Code Style Review`. Keep all file-specific proposal blocks under `## Proposed Changes` so the panel does not show stale admin details.
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
## File Format
|
|
31
30
|
|
|
32
31
|
```md
|
|
33
|
-
|
|
32
|
+
---
|
|
33
|
+
type: audit-findings
|
|
34
|
+
audited: YYYY-MM-DD
|
|
35
|
+
---
|
|
36
|
+
# Audit Findings: E## Epic Name
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
## Main Findings
|
|
36
39
|
|
|
37
|
-
##
|
|
40
|
+
## Code Style Review
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## With
|
|
42
|
-
|
|
43
|
-
<new content>
|
|
42
|
+
## Proposed Changes
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
```md
|
|
49
|
-
## Must Fix Before Close
|
|
45
|
+
Use this shape for every proposed change inside `## Proposed Changes`:
|
|
50
46
|
|
|
51
|
-
|
|
47
|
+
````md
|
|
48
|
+
### Target File
|
|
49
|
+
path/to/file.md
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
### Replace
|
|
52
|
+
```
|
|
53
|
+
<exact old heading, marker, or section>
|
|
54
|
+
```
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
### With
|
|
57
|
+
```
|
|
58
|
+
<new content>
|
|
56
59
|
```
|
|
60
|
+
````
|
|
57
61
|
|
|
58
62
|
## Rules
|
|
59
63
|
|
|
60
|
-
1. **One
|
|
64
|
+
1. **One audit file only.** Do not create `proposal-1.md`, `proposal-2.md`, `.savepoint/audit/...`, or any other separate audit files.
|
|
61
65
|
2. **Prefer delta-only edits.** Use `## Replace` anchored to exact existing text. Do not quote and replace entire large sections unless the whole section genuinely changed.
|
|
62
66
|
3. **Do not apply changes yourself.** Write the proposals; the user reviews them in the TUI before commit.
|
|
63
67
|
4. **Track context.** Count only intentional audit context reads, and keep notes short.
|
|
64
68
|
5. **Stop after proposals.** Do not update the router, do not mark the epic audited, and do not commit.
|
|
65
|
-
6. **Be honest about deviations.** If the implementation diverged from the design, document why in the epic-
|
|
66
|
-
7. **Never stop at chat-only findings.** Persist `.savepoint/
|
|
69
|
+
6. **Be honest about deviations.** If the implementation diverged from the design, document why in the epic-E##-Detail.md section.
|
|
70
|
+
7. **Never stop at chat-only findings.** Persist `.savepoint/releases/{release}/epics/{E##-slug}/E##-Audit.md` before you report the audit result back to the user.
|
|
67
71
|
8. **Carry-forwards must be actionable.** If an item is "Must Fix Before Next Epic," explain what the next epic's agent should verify. Vague carry-forwards are rejected.
|
|
72
|
+
9. **No CLI audit pipeline.** Savepoint audit is agent-led and skill-driven; do not invoke or design around a `savepoint audit` command.
|
|
@@ -28,7 +28,7 @@ last_audited: never
|
|
|
28
28
|
## 4. Status model & gates
|
|
29
29
|
## 5. Dependencies
|
|
30
30
|
## 6. CLI surface
|
|
31
|
-
## 7.
|
|
31
|
+
## 7. Agent audit workflow
|
|
32
32
|
## 8. Testing strategy
|
|
33
33
|
## 9. Release versioning
|
|
34
34
|
```
|
|
@@ -41,3 +41,5 @@ last_audited: never
|
|
|
41
41
|
4. **CLI surface is optional.** If the project has no CLI, state that explicitly.
|
|
42
42
|
5. **Do not write epics or tasks.** The Design is architecture only.
|
|
43
43
|
6. **Keep visual identity separate.** If the project has UI/TUI/theme concerns, note that `.savepoint/visual-identity.md` will carry them.
|
|
44
|
+
7. **Audit is agent-led.** Do not design a `savepoint audit` CLI pipeline. The audit gate is performed by a fresh agent using the audit skill, producing one epic-local `E##-Audit.md` file.
|
|
45
|
+
8. **Audit file structure is fixed.** `E##-Audit.md` user-facing sections are `## Main Findings` and `## Code Style Review`; file-specific replacement blocks belong under `## Proposed Changes` as admin/apply metadata and should not be rendered in the Epic Detail Audit tab.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Prompt: Epic Design Creation
|
|
2
2
|
|
|
3
|
-
<!-- AGENT: You have a release PRD and a project Design. Write one epic
|
|
3
|
+
<!-- AGENT: You have a release PRD and a project Design. Write one epic E##-Detail.md. Stop when that single epic design is complete. -->
|
|
4
4
|
|
|
5
5
|
You are designing one epic for a Savepoint-managed release.
|
|
6
6
|
|
|
7
7
|
## Input
|
|
8
8
|
|
|
9
|
-
- `.savepoint/releases/
|
|
9
|
+
- `.savepoint/releases/{release}/{release}-PRD.md` — release scope and epic list.
|
|
10
10
|
- `.savepoint/Design.md` — project architecture and constraints.
|
|
11
11
|
- The epic name and one-sentence purpose from the release PRD table.
|
|
12
12
|
|
|
13
13
|
## Output
|
|
14
14
|
|
|
15
|
-
A single markdown file at `.savepoint/releases/
|
|
15
|
+
A single markdown file at `.savepoint/releases/{release}/epics/{E##-slug}/E##-Detail.md`:
|
|
16
16
|
|
|
17
17
|
```
|
|
18
18
|
---
|
|
@@ -6,7 +6,7 @@ You are breaking an approved epic into a set of tasks that agents can build one
|
|
|
6
6
|
|
|
7
7
|
## Input
|
|
8
8
|
|
|
9
|
-
- `.savepoint/releases/v{N}/epics/{E##-slug}/
|
|
9
|
+
- `.savepoint/releases/v{N}/epics/{E##-slug}/E##-Detail.md` — the epic to break down.
|
|
10
10
|
- `.savepoint/Design.md` — project architecture (for boundary checks).
|
|
11
11
|
|
|
12
12
|
## Output
|