| name | database-schema-and-storage-migration | |||||
|---|---|---|---|---|---|---|
| description | Workflow command scaffold for database-schema-and-storage-migration in periscope. | |||||
| allowed_tools |
|
Use this workflow when working on database-schema-and-storage-migration in periscope.
Adds or modifies database tables, triggers, or storage logic, including migrations and related Go code/tests.
internal/db/schema.sqlinternal/db/*.gointernal/db/*_test.gointernal/artifact/*.gointernal/artifact/*_test.gointernal/parser/*.go
- 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 internal/db/schema.sql or equivalent Go migration logic
- Update or add Go files in internal/db/ (e.g., artifact_publication.go, sessions.go, usage_events.go)
- Update or add related test files in internal/db/
- Edit or add storage logic in internal/artifact/ or internal/parser/ as needed
- Update docs/specs or plans if schema or storage design changes
- Treat this as a scaffold, not a hard-coded script.
- Update the command if the workflow evolves materially.