feat: print suggested next steps after mutating commands#157
Merged
angeloashmore merged 6 commits intomainfrom Apr 18, 2026
Merged
feat: print suggested next steps after mutating commands#157angeloashmore merged 6 commits intomainfrom
angeloashmore merged 6 commits intomainfrom
Conversation
After create/add commands complete, print a hint about the next logical action to help users discover related commands. Resolves #149 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
angeloashmore
commented
Apr 18, 2026
Member
Author
angeloashmore
left a comment
There was a problem hiding this comment.
Use natural language in the suggested next steps. Something like:
Run `prismic slice view call_to_action` to view the updated slice
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f99df37. Configure here.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use PRISMIC_ACCESS_TOKEN for read tokens and PRISMIC_WRITE_TOKEN for write tokens. Fix token-create tests to extract the token from only the first output line. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Resolves: #149
Description
After mutating commands (create/add) complete, prints a hint about the next logical action. This helps discoverability so users don't need to know the full command tree.
Checklist
Preview
How to QA 1
Run any mutating command and verify the next-step hint appears after the success message. For example:
prismic type create "Test"should suggestprismic field addandprismic type viewprismic field add text title --to-type testshould suggestprismic type view testNote
Low Risk
Low risk: changes are limited to additional CLI output strings and minor plumbing to determine whether the target is a slice vs custom type; no API behavior or data mutation logic changes.
Overview
After successful mutating CLI commands, the CLI now prints suggested next actions to improve discoverability (e.g.
init,repo create,type create,slice create,preview add,webhook create).All
field add ...commands now print a follow-up message pointing toprismic slice viewvsprismic type viewdepending on the target; this is centralized via newgetPostFieldAddMessage()inmodels.tsand requiresresolveModel()callers to consume the returnedmodelKind.token createnow prints the created token once plus a.envsnippet (PRISMIC_ACCESS_TOKEN/PRISMIC_WRITE_TOKEN), and the token-create tests were updated to parse the token from the new multi-line output.Reviewed by Cursor Bugbot for commit 73976d5. Bugbot is set up for automated code reviews on this repo. Configure here.
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩