Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@

## [v1.14.2] - 2026-02-24

### Added

#### Prompt Snippets Plugin
- **New plugin: `prompt-snippets`** — single `/ps` slash command for quick behavioral mode switches (noaction, brief, plan, go, review, ship, deep, hold, recall, wait)
- Snippets inject short directives that persist for the conversation (e.g., `/ps noaction` → "Investigate and report only. Take no action.")
- Composable: `/ps noaction brief` applies multiple snippets at once
- Isolated from skill-engine auto-suggestion (`disable-model-invocation: true`) and independently toggleable via `enabledPlugins`

### Changed

#### Docs
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Declared in `settings.json` under `enabledPlugins`, auto-activated on start:
- **ticket-workflow** — EARS ticket workflow + auto-linking
- **notify-hook** — Desktop notifications on completion
- **frontend-design** (Anthropic official) — UI/frontend design skill
- **prompt-snippets** — Quick behavioral mode switches via /ps command

## Rules System

Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/config/defaults/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"spec-workflow@devs-marketplace": true,
"session-context@devs-marketplace": true,
"auto-code-quality@devs-marketplace": true,
"workspace-scope-guard@devs-marketplace": true
"workspace-scope-guard@devs-marketplace": true,
"prompt-snippets@devs-marketplace": true
},
"autoUpdatesChannel": "latest"
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
"source": "./plugins/workspace-scope-guard",
"category": "safety",
"keywords": ["safety", "scope", "workspace"]
},
{
"name": "prompt-snippets",
"description": "Quick behavioral mode switches via /ps command",
"version": "1.0.0",
"source": "./plugins/prompt-snippets",
"category": "productivity",
"keywords": ["snippets", "prompts", "modes", "shortcuts"]
}
]
}
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" }
}
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.
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.