Initial commit
This commit is contained in:
15
.claude-plugin/plugin.json
Normal file
15
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "backup-strategy-implementor",
|
||||||
|
"description": "Implement backup strategies for databases and applications",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"author": {
|
||||||
|
"name": "Claude Code Plugins",
|
||||||
|
"email": "[email protected]"
|
||||||
|
},
|
||||||
|
"skills": [
|
||||||
|
"./skills"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"./commands"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# backup-strategy-implementor
|
||||||
|
|
||||||
|
Implement backup strategies for databases and applications
|
||||||
25
commands/backup-strategy.md
Normal file
25
commands/backup-strategy.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
description: $(echo "$description" | cut -d' ' -f1-5)
|
||||||
|
---
|
||||||
|
|
||||||
|
# $(echo "$name" | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
||||||
|
|
||||||
|
$(echo "$description")
|
||||||
|
|
||||||
|
## Key Features
|
||||||
|
|
||||||
|
- Production-ready configurations
|
||||||
|
- Best practices implementation
|
||||||
|
- Security-first approach
|
||||||
|
- Scalable architecture
|
||||||
|
- Comprehensive documentation
|
||||||
|
- Multi-platform support
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
This plugin generates complete configurations for your DevOps needs.
|
||||||
|
Specify your requirements and get production-ready code instantly.
|
||||||
|
|
||||||
|
## When Invoked
|
||||||
|
|
||||||
|
Generate configurations and setup code based on your specific requirements and infrastructure needs.
|
||||||
61
plugin.lock.json
Normal file
61
plugin.lock.json
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||||
|
"pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/devops/backup-strategy-implementor",
|
||||||
|
"normalized": {
|
||||||
|
"repo": null,
|
||||||
|
"ref": "refs/tags/v20251128.0",
|
||||||
|
"commit": "eef5be74393361700df0da2a2527277af5907e6b",
|
||||||
|
"treeHash": "c1f19c78416272b8d90e49c455e919c5286a1293d1432ac566cf52dd0755467c",
|
||||||
|
"generatedAt": "2025-11-28T10:18:10.981680Z",
|
||||||
|
"toolVersion": "publish_plugins.py@0.2.0"
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||||
|
"branch": "master",
|
||||||
|
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||||
|
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||||
|
},
|
||||||
|
"manifest": {
|
||||||
|
"name": "backup-strategy-implementor",
|
||||||
|
"description": "Implement backup strategies for databases and applications",
|
||||||
|
"version": "1.0.0"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"sha256": "dcf098fe15f6513b5d5e629809717e61b312b12079a9a65baca2377117adc5a6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": ".claude-plugin/plugin.json",
|
||||||
|
"sha256": "ec78eff28c50be2e97f8d5a184299932d3790e68fd55ba0e8b5f18fa639a0785"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/backup-strategy.md",
|
||||||
|
"sha256": "353f80054a90cda1e6716da3628115ce829307fbbb83a15b64f1d37c96224a99"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/backup-strategy-implementor/SKILL.md",
|
||||||
|
"sha256": "c8e7f1d550515234cf130556dd9e39ed00a20e8d02b0a1540fd09a6d43371c65"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/backup-strategy-implementor/references/README.md",
|
||||||
|
"sha256": "4f888b1d88f1ad42d43b60fd3a723aaa0dc078e66cddd90c5eafa8f9e68c42d1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/backup-strategy-implementor/scripts/README.md",
|
||||||
|
"sha256": "d299ac976d0bbb66afbecb9f2bccfb6b980cd48e8513fe9d5d8f59b97a3e61b7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/backup-strategy-implementor/assets/README.md",
|
||||||
|
"sha256": "40d365e16b0a37be2615d36d8903be423c7764a93ead7037a4db603af263681c"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dirSha256": "c1f19c78416272b8d90e49c455e919c5286a1293d1432ac566cf52dd0755467c"
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"scannedAt": null,
|
||||||
|
"scannerVersion": null,
|
||||||
|
"flags": []
|
||||||
|
}
|
||||||
|
}
|
||||||
53
skills/backup-strategy-implementor/SKILL.md
Normal file
53
skills/backup-strategy-implementor/SKILL.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
name: implementing-backup-strategies
|
||||||
|
description: |
|
||||||
|
This skill implements backup strategies for databases and applications. It generates configuration files and setup code to ensure data protection and disaster recovery. Use this skill when the user requests to "implement backup strategy", "configure backups", "setup data recovery", or needs help with "backup automation". The skill provides production-ready configurations, best practices, and multi-platform support for database and application backups. It focuses on security and scalability.
|
||||||
|
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||||
|
version: 1.0.0
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This skill empowers Claude to generate and implement robust backup strategies for databases and applications. It provides ready-to-use configurations and setup scripts, streamlining the process of data protection and disaster recovery.
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
1. **Analyzing Requirements**: The skill analyzes the user's specific requirements, including database type, application architecture, and desired backup frequency.
|
||||||
|
2. **Generating Configuration**: Based on the requirements, the skill generates optimized configuration files for the chosen backup solution.
|
||||||
|
3. **Creating Setup Code**: The skill creates setup code (e.g., scripts, commands) to automate the backup process and ensure its consistency.
|
||||||
|
|
||||||
|
## When to Use This Skill
|
||||||
|
|
||||||
|
This skill activates when you need to:
|
||||||
|
- Implement a new backup strategy for a database or application.
|
||||||
|
- Automate existing backup processes.
|
||||||
|
- Configure backups for disaster recovery purposes.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1: Setting up daily backups for a PostgreSQL database.
|
||||||
|
|
||||||
|
User request: "Implement daily backups for my PostgreSQL database named 'users_db' to an AWS S3 bucket."
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Generate a `pg_dump` script configured to backup the 'users_db' database and upload it to the specified S3 bucket.
|
||||||
|
2. Provide instructions for scheduling the script to run daily using `cron`.
|
||||||
|
|
||||||
|
### Example 2: Configuring application-level backups for a Dockerized application.
|
||||||
|
|
||||||
|
User request: "Configure application-level backups for my Dockerized application. I want to backup the application's data directory every hour."
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Generate a Docker Compose configuration that includes a volume for the application's data directory.
|
||||||
|
2. Create a backup script to copy the volume's contents to a backup location.
|
||||||
|
3. Provide instructions for scheduling the backup script using a Docker container and `cron`.
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
- **Security**: Always encrypt backup data, both in transit and at rest.
|
||||||
|
- **Retention**: Implement a well-defined backup retention policy to manage storage costs and meet compliance requirements.
|
||||||
|
- **Testing**: Regularly test backup and restore procedures to ensure their effectiveness.
|
||||||
|
|
||||||
|
## Integration
|
||||||
|
|
||||||
|
This skill can be integrated with other tools and plugins, such as infrastructure-as-code tools (e.g., Terraform, CloudFormation) to automate the deployment and configuration of backup infrastructure. It can also work with monitoring tools to provide alerts on backup failures.
|
||||||
8
skills/backup-strategy-implementor/assets/README.md
Normal file
8
skills/backup-strategy-implementor/assets/README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Assets
|
||||||
|
|
||||||
|
Bundled resources for backup-strategy-implementor skill
|
||||||
|
|
||||||
|
- [ ] backup_configuration_template.yaml Template for backup configuration files
|
||||||
|
- [ ] restore_configuration_template.yaml Template for restore configuration files
|
||||||
|
- [ ] example_backup_script.sh Example backup script for a specific database system
|
||||||
|
- [ ] example_restore_script.sh Example restore script for a specific database system
|
||||||
9
skills/backup-strategy-implementor/references/README.md
Normal file
9
skills/backup-strategy-implementor/references/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# References
|
||||||
|
|
||||||
|
Bundled resources for backup-strategy-implementor skill
|
||||||
|
|
||||||
|
- [ ] database_backup_best_practices.md Document outlining best practices for database backups
|
||||||
|
- [ ] application_backup_best_practices.md Document outlining best practices for application backups
|
||||||
|
- [ ] disaster_recovery_plan_template.md Template for creating a disaster recovery plan
|
||||||
|
- [ ] supported_database_systems.md List of supported database systems and their specific backup procedures
|
||||||
|
- [ ] supported_application_platforms.md List of supported application platforms and their specific backup procedures
|
||||||
8
skills/backup-strategy-implementor/scripts/README.md
Normal file
8
skills/backup-strategy-implementor/scripts/README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Bundled resources for backup-strategy-implementor skill
|
||||||
|
|
||||||
|
- [ ] backup_database.sh Script to automate database backup based on provided configuration
|
||||||
|
- [ ] restore_database.sh Script to automate database restoration based on provided configuration
|
||||||
|
- [ ] validate_backup.py Python script to validate the integrity of the backup files
|
||||||
|
- [ ] configure_backup_agent.py Python script to configure a backup agent on the application server
|
||||||
Reference in New Issue
Block a user