| name | add-or-update-database-feature | |||||
|---|---|---|---|---|---|---|
| description | Workflow command scaffold for add-or-update-database-feature in periscope. | |||||
| allowed_tools |
|
Use this workflow when working on add-or-update-database-feature in periscope.
Implements a new database-backed feature or updates existing database logic, including schema changes, new tables, triggers, and related Go logic.
internal/db/schema.sqlinternal/db/*.gointernal/db/*_test.gocmd/agentsview/*_test.godocs/superpowers/specs/*.md
- Understand the current state and failure mode before editing.
- Make the smallest coherent change that satisfies the workflow goal.
- Run the most relevant verification for touched files.
- Summarize what changed and what still needs review.
- Edit or add SQL schema files (e.g., internal/db/schema.sql).
- Update Go code for database access and logic (e.g., internal/db/*.go).
- Add or update trigger DDL and migration logic in Go (e.g., internal/db/db.go).
- Write or update tests for new/changed database logic (e.g., internal/db/_test.go, cmd/agentsview/_test.go).
- Update or add documentation/specs if the feature is significant (e.g., docs/superpowers/specs/...).
- Treat this as a scaffold, not a hard-coded script.
- Update the command if the workflow evolves materially.