-
Notifications
You must be signed in to change notification settings - Fork 2
Add prompt-snippets plugin with /ps command #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
5 changes: 5 additions & 0 deletions
5
.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "prompt-snippets", | ||
| "description": "Quick behavioral mode switches via /ps command.", | ||
| "author": { "name": "AnExiledDev" } | ||
| } | ||
52 changes: 52 additions & 0 deletions
52
.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Prompt Snippets Plugin | ||
|
|
||
| Quick behavioral mode switches via a single `/ps` slash command. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```text | ||
| /ps [snippet-name] | ||
| ``` | ||
|
|
||
| Type `/ps` followed by a snippet name to inject a behavioral directive for the remainder of the conversation. | ||
|
|
||
| ### Available Snippets | ||
|
|
||
| | Snippet | What it does | | ||
| |---------|-------------| | ||
| | `noaction` | Investigate and report only — no edits, no commands | | ||
| | `brief` | Concise answers, no filler | | ||
| | `plan` | Plan first, don't implement until approved | | ||
| | `go` | Proceed without confirmation prompts | | ||
| | `review` | Audit only — report findings, don't modify | | ||
| | `ship` | Commit, push, and create a PR | | ||
| | `deep` | Thorough investigation, leave no stone unturned | | ||
| | `hold` | Do the work but don't commit or push | | ||
| | `recall` | Search session history with ccms for prior context | | ||
| | `wait` | When done, stop — no suggestions or follow-ups | | ||
|
|
||
| ### Composing | ||
|
|
||
| Combine snippets by listing multiple names: | ||
|
|
||
| ```text | ||
| /ps noaction brief | ||
| ``` | ||
|
|
||
| ## Design | ||
|
|
||
| This plugin contains a single skill (`/ps`) that uses `$ARGUMENTS` as a lookup key into a snippet table. It is: | ||
|
|
||
| - **Not auto-suggested** — `disable-model-invocation: true` keeps it out of the skill engine's auto-suggestion system | ||
| - **Independently toggleable** — disable via `enabledPlugins` in `settings.json` without affecting other skills | ||
| - **Extensible** — add a row to the table in `skills/ps/SKILL.md` to create new snippets | ||
|
|
||
| ## Adding Custom Snippets | ||
|
|
||
| Edit `skills/ps/SKILL.md` and add a row to the "Available Snippets" table: | ||
|
|
||
| ```markdown | ||
| | `mysnippet` | Your custom instruction here. | | ||
| ``` | ||
|
|
||
| No other files need to change. |
37 changes: 37 additions & 0 deletions
37
.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| name: ps | ||
| description: Inject a behavioral prompt snippet by name. | ||
| disable-model-invocation: true | ||
| argument-hint: "[snippet-name]" | ||
| --- | ||
|
|
||
| # /ps — Prompt Snippets | ||
|
|
||
| Apply the prompt snippet matching `$ARGUMENTS` from the table below. Follow its instruction for the **remainder of this conversation** unless the user explicitly overrides it. | ||
|
|
||
| If `$ARGUMENTS` does not match any snippet name, list all available snippets and ask the user to pick one. | ||
|
|
||
| ## Available Snippets | ||
|
|
||
| | Snippet | Instruction | | ||
| |---------|-------------| | ||
| | `noaction` | Investigate and report only. Take no action — no edits, no commands, no file writes. | | ||
| | `brief` | Be concise. Short answers, no filler, no preamble. Answer the question and stop. | | ||
| | `plan` | Build a plan before taking any action. Do not implement until the plan is explicitly approved. | | ||
| | `go` | Proceed without asking for confirmation. Use your best judgment on all decisions. | | ||
| | `review` | Review and audit only. Report findings with specific file paths and line numbers. Do not modify anything. | | ||
| | `ship` | Commit all staged changes, push to remote, and create a pull request. | | ||
| | `deep` | Be thorough and comprehensive. Investigate in depth, consider edge cases, leave no stone unturned. | | ||
| | `hold` | Complete the current task but do not commit, push, or publish. Await my review before any git operations. | | ||
| | `recall` | Search past session history with `ccms --no-color --project "$(pwd)"` to find prior decisions, discussions, and context relevant to the current task. Summarize what you find before proceeding. | | ||
| | `wait` | When done, stop. Do not suggest next steps, ask follow-up questions, or continue with related work. Await further instructions. | | ||
|
|
||
| ## Composing Snippets | ||
|
|
||
| Multiple snippets can be applied in one invocation by separating names with spaces: | ||
|
|
||
| ```text | ||
| /ps noaction brief | ||
| ``` | ||
|
|
||
| Apply all matching snippets. If instructions conflict, the **last snippet wins** for that specific behavior. |
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.
Uh oh!
There was an error while loading. Please reload this page.