
Plugin Settings
Generate a local Claude plugin preferences file so a project can enable the plugin and pick strict, standard, or lenient validation without hand-editing YAML frontmatter.
Install
npx skills add https://github.com/anthropics/claude-plugins-official --skill plugin-settingsWhat is this skill?
- Three-step flow: AskUserQuestion for prefs, parse answers, Write the settings file
- Captures enable/disable and validation_mode (strict, standard, lenient)
- Outputs `.claude/my-plugin.local.md` with YAML frontmatter
- Allowed tools limited to Write and AskUserQuestion per skill definition
Adoption & trust: 3k installs on skills.sh; 29.6k GitHub stars; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Plugin configuration lands in the build phase when you wire agent tooling and Claude project conventions before day-to-day coding. The skill writes `.claude/my-plugin.local.md`, which is agent-tooling scaffolding specific to Claude Code plugin workflows.
Common Questions / FAQ
Is Plugin Settings safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Plugin Settings
# Create Plugin Settings This command helps users create a `.claude/my-plugin.local.md` settings file. ## Steps ### Step 1: Ask User for Preferences Use AskUserQuestion to gather configuration: ```json { "questions": [ { "question": "Enable plugin for this project?", "header": "Enable Plugin", "multiSelect": false, "options": [ { "label": "Yes", "description": "Plugin will be active" }, { "label": "No", "description": "Plugin will be disabled" } ] }, { "question": "Validation mode?", "header": "Mode", "multiSelect": false, "options": [ { "label": "Strict", "description": "Maximum validation and security checks" }, { "label": "Standard", "description": "Balanced validation (recommended)" }, { "label": "Lenient", "description": "Minimal validation only" } ] } ] } ``` ### Step 2: Parse Answers Extract answers from AskUserQuestion result: - answers["0"]: enabled (Yes/No) - answers["1"]: mode (Strict/Standard/Lenient) ### Step 3: Create Settings File Use Write tool to create `.claude/my-plugin.local.md`: ```markdown --- enabled: <true if Yes, false if No> validation_mode: <strict, standard, or lenient> max_file_size: 1000000 notify_on_errors: true --- # Plugin Configuration Your plugin is configured with <mode> validation mode. To modify settings, edit this file and restart Claude Code. ``` ### Step 4: Inform User Tell the user: - Settings file created at `.claude/my-plugin.local.md` - Current configuration summary - How to edit manually if needed - Reminder: Restart Claude Code for changes to take effect - Settings file is gitignored (won't be committed) ## Implementation Notes Always validate user input before writing: - Check mode is valid - Validate numeric fields are numbers - Ensure paths don't have traversal attempts - Sanitize any free-text fields # Example Plugin Settings File ## Template: Basic Configuration **.claude/my-plugin.local.md:** ```markdown --- enabled: true mode: standard --- # My Plugin Configuration Plugin is active in standard mode. ``` ## Template: Advanced Configuration **.claude/my-plugin.local.md:** ```markdown --- enabled: true strict_mode: false max_file_size: 1000000 allowed_extensions: [".js", ".ts", ".tsx"] enable_logging: true notification_level: info retry_attempts: 3 timeout_seconds: 60 custom_path: "/path/to/data" --- # My Plugin Advanced Configuration This project uses custom plugin configuration with: - Standard validation mode - 1MB file size limit - JavaScript/TypeScript files allowed - Info-level logging - 3 retry attempts ## Additional Notes Contact @team-lead with questions about this configuration. ``` ## Template: Agent State File **.claude/multi-agent-swarm.local.md:** ```markdown --- agent_name: database-implementation task_number: 4.2 pr_number: 5678 coordinator_session: team-leader enabled: true dependencies: ["Task 3.5", "Task 4.1"] additional_instructions: "Use PostgreSQL, not MySQL" --- # Task Assignment: Database Schema Implementation Implement the database schema for the new features module. ## Requirements - Create migration files - Add indexes for performance - Write tests for constraints - Document schema in README ## Success Criteria - Migrations run successfully - All tests pass - PR created with CI green - Schema documented ## Coordination Depends on: - Task 3.5: API endpoint definitions - Task 4.1: Data model design Report status to coordinator session 'team-leader'. ``` ## Template: Feature Flag Pattern **.claude/experimental-features.local.md:** ```markdown --- enabled: true features: - ai_suggestions - auto_formatting - advanced_refactoring exp