plugin-prompt-injection-reuse

Community

Reuse plugin prompt sections for consistent prompts.

Authorliuyu520
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Reuse existing pluginPromptSections registry, systemPromptSection cache wrapper, and plugin enable/disable flows to standardize prompt injection from plugins across builtin and marketplace plugins, ensuring consistent prompts.

Core Features & Use Cases

  • Central registry for plugin prompt sections with deduplication and plugin-scoped names
  • Cached system prompt sections to minimize recomputation and preserve prompt integrity
  • Lifecycle-aware registration: enable registers sections, disable removes them, and refresh clears stale entries for marketplace plugins
  • Dynamic content support for builtin plugins (functions) and static content for marketplace plugins, with safe fallbacks

Quick Start

To begin, register a builtin plugin with systemPromptSections and verify that its sections are registered on enable and removed on disable.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: plugin-prompt-injection-reuse
Download link: https://github.com/liuyu520/cc_source/archive/main.zip#plugin-prompt-injection-reuse

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.