Define task-specific AI sub-agents in Markdown for any MCP-compatible tool. Operations teams can automate workflows by creating specialized sub-agents that integrate with existing tools and systems. This skill connects to MCP-compatible tools and workflows, enabling efficient task automation.
git clone https://github.com/shinpr/sub-agents-mcp.gitDefine task-specific AI sub-agents in Markdown for any MCP-compatible tool. Operations teams can automate workflows by creating specialized sub-agents that integrate with existing tools and systems. This skill connects to MCP-compatible tools and workflows, enabling efficient task automation.
[{"step":"Identify the specific task to automate (e.g., log parsing, API polling, data validation).","action":"Use the prompt template to generate a sub-agent definition by replacing [TASK_NAME], [MCP_TOOL_NAME], [SPECIFIC_SCENARIO], and [CONSTRAINTS].","tip":"Start with a narrow scope (e.g., 'validate API response format') before expanding to complex workflows."},{"step":"Customize the sub-agent's input/output schema, error handling, and integration steps for your MCP-compatible tools (e.g., database_utils, file_system, or custom APIs).","action":"Modify the Markdown template to include your tool's specific parameters, authentication requirements, and output formats.","tip":"Reference existing MCP tool documentation to ensure compatibility with input/output formats."},{"step":"Deploy the sub-agent to your MCP server and test with sample inputs.","action":"Save the Markdown file to your MCP `sub-agents/` directory, register it with `mcp register`, and invoke it with `mcp invoke`.","tip":"Use the `--dry-run` flag for initial testing to avoid unintended side effects."},{"step":"Integrate the sub-agent into your automation pipeline (e.g., cron jobs, CI/CD workflows, or monitoring systems).","action":"Chain sub-agents together using MCP's workflow capabilities or trigger them via API calls from your existing tools.","tip":"Start with a single sub-agent in a non-critical workflow to validate performance before scaling."},{"step":"Monitor performance and refine the sub-agent based on logs and error reports.","action":"Check MCP server logs for execution details and adjust parameters or error handling as needed.","tip":"Set up alerts for sub-agent failures to proactively address issues."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/shinpr/sub-agents-mcpCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Markdown-formatted sub-agent definition for [TASK_NAME] using [MCP_TOOL_NAME]. The sub-agent should handle [SPECIFIC_SCENARIO] with the following constraints: [CONSTRAINTS]. Include clear inputs, outputs, error handling, and integration steps with existing systems. Format as a complete MCP sub-agent specification ready for deployment.
```markdown
# Sub-Agent: Database Backup Validator
## Purpose
Validates database backups for [COMPANY_NAME]'s production systems to ensure recovery readiness.
## MCP Tool Integration
- **Tool**: `database_utils` (MCP-compatible)
- **Input Parameters**:
- `db_host`: `prod-db-01.cluster.internal`
- `backup_path`: `/backups/daily/2024-05-15`
- `validation_timeout`: `300` (seconds)
## Workflow Steps
1. **Connect**: Establish secure connection to database using stored credentials.
2. **Verify Backup**: Check backup file integrity (size > 10GB, no corruption flags).
3. **Test Restore**: Attempt partial restore of 3 sample tables to staging DB.
4. **Validate Data**: Compare checksums of restored tables against originals.
5. **Generate Report**: Compile validation results with pass/fail status.
## Error Handling
- If backup file missing: Send Slack alert to #db-team with file path.
- If restore fails: Trigger `incident_response` sub-agent with error details.
- If validation timeout exceeded: Log error to Splunk and escalate to DBA on-call.
## Output Format
```json
{
"status": "SUCCESS|FAILURE",
"backup_id": "2024-05-15-0200",
"restore_duration": 142,
"validation_errors": ["table_users checksum mismatch"],
"next_actions": ["re-run backup", "check storage array"]
}
```
## Deployment Steps
1. Save as `backup_validator.md` in `/mcp/sub-agents/`
2. Register with MCP server: `mcp register backup_validator.md`
3. Test with: `mcp invoke backup_validator --params '{"db_host":"prod-db-01.cluster.internal"}'`
## Dependencies
- Access to backup storage (NFS mount `/backups`)
- Database credentials in Vault path `prod/db/backup_user`
- Slack webhook URL in environment variable `SLACK_WEBHOOK`
```Cloud ETL platform for non-technical data integration
IronCalc is a spreadsheet engine and ecosystem
Get more done every day with Microsoft Teams – powered by AI
Customer feedback management made simple
Complete help desk solution for growing teams
The AI automation platform built for everyone
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan