Skip to content

Add prompt-snippets plugin with /ps command#7

Merged
AnExiledDev merged 2 commits intomainfrom
feature/prompt-snippets
Feb 26, 2026
Merged

Add prompt-snippets plugin with /ps command#7
AnExiledDev merged 2 commits intomainfrom
feature/prompt-snippets

Conversation

@AnExiledDev
Copy link
Owner

@AnExiledDev AnExiledDev commented Feb 24, 2026

Summary

New plugin providing quick behavioral mode switches via a single /ps slash command. Derived from session history analysis of 232 user messages across 73 sessions identifying the most frequently typed directives.

  • Single dispatcher skill — one /ps command with $ARGUMENTS lookup, not 8 separate skills
  • 8 snippets: noaction, brief, plan, go, review, ship, deep, hold
  • Composable/ps noaction brief applies multiple snippets
  • Isolateddisable-model-invocation: true keeps it out of auto-suggestion; own plugin with independent enabledPlugins toggle
  • Extensible — add a row to the table to create new snippets

Usage

/ps noaction      → "Investigate and report only. Take no action."
/ps brief         → "Be concise. Short answers, no filler."
/ps go            → "Proceed without confirmation."
/ps noaction brief → Both applied, composable

Files

  • New: plugins/prompt-snippets/ (plugin.json, SKILL.md, README.md)
  • Modified: marketplace.json (register plugin), settings.json (enable plugin), CHANGELOG.md

Test plan

  • Rebuild container and verify /ps appears as a slash command
  • Test /ps noaction — Claude acknowledges mode and restricts to investigation
  • Test /ps brief — Claude responds concisely
  • Test /ps with no args — lists available snippets
  • Verify /ps does NOT appear in auto-suggestions during normal prompts
  • Verify plugin can be disabled via enabledPlugins toggle

Summary by CodeRabbit

  • New Features

    • Added Prompt Snippets Plugin with /ps slash command for quick behavioral mode switches
    • Ten available modes: noaction, brief, plan, go, review, ship, deep, hold, recall, wait
    • Supports composable usage to apply multiple snippets simultaneously
    • Plugin is independently toggleable and will not auto-suggest
  • Documentation

    • Added usage guide and examples for /ps, composing snippets, and extending snippet list
  • Chores

    • Plugin enabled by default in runtime configuration

@coderabbitai
Copy link

coderabbitai bot commented Feb 24, 2026

Warning

Rate limit exceeded

@AnExiledDev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 6 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 6feb1e3 and a947776.

📒 Files selected for processing (7)
  • .devcontainer/CHANGELOG.md
  • .devcontainer/CLAUDE.md
  • .devcontainer/config/defaults/settings.json
  • .devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md
📝 Walkthrough

Walkthrough

Adds a new Prompt Snippets Plugin that provides a /ps slash command to inject persistent behavioral directives (examples: noaction, brief, plan, go, review, ship, deep, hold, recall, wait) and allows composing multiple snippets; the plugin is toggleable via runtime settings.

Changes

Cohort / File(s) Summary
Devcontainer config
.devcontainer/config/defaults/settings.json
Enables the prompt-snippets@devs-marketplace plugin in enabledPlugins.
Marketplace registry
.devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json
Appends a new prompt-snippets entry to the marketplace plugin list (metadata: name, description, version, source, category, keywords).
Plugin manifest
.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
Adds plugin descriptor with name, description, and author metadata.
Plugin docs
.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md, .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md
Adds README and SKILL.md documenting /ps usage, available snippets, composition rules, examples, and design constraints (disable-model-invocation, toggleable via settings).
Top-level docs
.devcontainer/CHANGELOG.md, .devcontainer/CLAUDE.md
Adds changelog entry and plugin listing for prompt-snippets.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I nibble a snippet, a hop and a cheer,
/ps whispers modes that stick close and near.
Brief, plan, deep — I stack them with care,
A rabbit's small patch of directive-flavored air. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: introducing a new prompt-snippets plugin with a /ps command.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/prompt-snippets

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
@.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json:
- Around line 1-5: Open the CLAUDE.md Plugins section and add a new Plugins list
item for the plugin named "prompt-snippets": insert the bullet `-
**prompt-snippets** — Quick behavioral mode switches via /ps command` into the
existing Plugins list so the plugin appears alongside the other 11 entries
(ensure spelling and punctuation match the plugin.json name and description).

In @.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md:
- Around line 7-9: The fenced code blocks showing the command examples (the
blocks containing "/ps [snippet-name]" and "/ps noaction brief") need language
specifiers to silence MD040; edit the README.md usage examples and change the
opening triple-backtick from ``` to ```text for both command blocks so they
become fenced as text code blocks.

In
@.devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md:
- Around line 31-33: Add a language tag to the fenced code block containing the
example "/ps noaction brief" so markdownlint MD040 is not triggered; update the
triple-backtick fence that surrounds "/ps noaction brief" to include a language
identifier such as text or shell (e.g., ```text) while leaving the block content
unchanged.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d2ba55e and 5d9d7ad.

📒 Files selected for processing (6)
  • .devcontainer/CHANGELOG.md
  • .devcontainer/config/defaults/settings.json
  • .devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md

@AnExiledDev AnExiledDev force-pushed the feature/prompt-snippets branch 2 times, most recently from 12080a7 to 2c56da3 Compare February 24, 2026 23:24
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.devcontainer/CHANGELOG.md (1)

5-11: LGTM on structure; consider dropping the internal config key from Line 11.

Lines 8–10 are cleanly user-facing. Line 11 leaks the implementation detail disable-model-invocation: true into the changelog. Per the coding guidelines, entries should describe what changed for the user, not how it was implemented.

✏️ Suggested wording
-  - Isolated from skill-engine auto-suggestion (`disable-model-invocation: true`) and independently toggleable via `enabledPlugins`
+  - Does not appear in skill-engine auto-suggestions; can be independently enabled/disabled via `enabledPlugins`

As per coding guidelines: "Write CHANGELOG entries from the user's perspective — what changed, not how it was implemented."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.devcontainer/CHANGELOG.md around lines 5 - 11, The changelog leaks an
internal config key—remove the implementation detail `disable-model-invocation:
true` from the Prompt Snippets Plugin entry and replace it with user-facing
wording that conveys the same behavior (e.g., "isolated from skill-engine
auto-suggestions" or "does not trigger model auto-suggestions"); keep the
user-visible toggle note about `enabledPlugins` if desired and ensure references
to `prompt-snippets` and `/ps` remain unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.devcontainer/CHANGELOG.md:
- Around line 5-11: The changelog leaks an internal config key—remove the
implementation detail `disable-model-invocation: true` from the Prompt Snippets
Plugin entry and replace it with user-facing wording that conveys the same
behavior (e.g., "isolated from skill-engine auto-suggestions" or "does not
trigger model auto-suggestions"); keep the user-visible toggle note about
`enabledPlugins` if desired and ensure references to `prompt-snippets` and `/ps`
remain unchanged.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5d9d7ad and 6feb1e3.

📒 Files selected for processing (7)
  • .devcontainer/CHANGELOG.md
  • .devcontainer/CLAUDE.md
  • .devcontainer/config/defaults/settings.json
  • .devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/skills/ps/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (4)
  • .devcontainer/config/defaults/settings.json
  • .devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/.claude-plugin/plugin.json
  • .devcontainer/plugins/devs-marketplace/plugins/prompt-snippets/README.md

New plugin provides quick behavioral mode switches via a single
dispatcher skill. /ps noaction, /ps brief, /ps go, etc. inject
short directives that persist for the conversation. Snippets are
composable (/ps noaction brief) and isolated from skill-engine
auto-suggestion.
- Add prompt-snippets to Plugins list in CLAUDE.md
- Add `text` language specifier to fenced code blocks (MD040) in README.md and SKILL.md
@AnExiledDev AnExiledDev force-pushed the feature/prompt-snippets branch from 6feb1e3 to a947776 Compare February 26, 2026 02:52
@AnExiledDev AnExiledDev merged commit 104da7f into main Feb 26, 2026
2 checks passed
@AnExiledDev AnExiledDev deleted the feature/prompt-snippets branch February 26, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant