A
Communityprompt
Automate Repetitive Development Tasks
把你描述的重复性开发任务转化为完整自动化脚本,含输入校验、结构化日志、dry-run、退出码、测试用例与 README。
概览安全
一个结构化的工程提示词:先分析任务(步骤、触发方式、输入输出、失败点),再用你指定的语言生成脚本,包含输入校验、可操作的错误信息、结构化日志、dry-run 模式与明确退出码,并附 3–5 条测试用例和简短 README。
# Automate Repetitive Development Tasks
**Category:** AI & Automation
**Source:** GitLab Duo
## Prompt
> I want to automate the following repetitive task:
> [DESCRIBE THE TASK]
>
> Help me build an automation script/workflow with:
>
> ## Analysis
> 1. What are the exact steps being repeated?
> 2. What triggers this task? (manual, schedule, event)
> 3. What are the inputs and expected outputs?
> 4. What could go wrong?
>
> ## Implementation Plan
> Write the automation with these requirements:
> - Input validation before execution
> - Clear error messages with actionable guidance
> - Structured logging (timestamp, step, status, duration)
> - Dry-run mode: show what would happen without making changes
> - Exit codes: 0 = success, 1 = partial failure, 2 = fatal error
>
> ## Script
> Provide the complete script in: [LANGUAGE/TOOL]
>
> ## Test Plan
> List 3–5 test cases covering: happy path, invalid input, partial failure.
>
> ## Documentation
> Write a README block (5–7 lines) explaining what the script does, how to run it, and required permissions.
---
[← Back to AI & Automation](README.md) · [Main index](../../README.md)相关推荐
Coherence Coach
AWeirdDev
监看对话,找出助手可能忽略的上下文,仅在确有必要时给出提醒,否则返回 null。
promptmarkdown
React + Tailwind Product Card Component Prompt
AmirMotefaker
让模型扮演资深前端工程师,生成可用于生产环境、响应式的 React + Tailwind CSS 商品卡片组件(TypeScript)。
promptmarkdown
Secure JWT Authentication Middleware
AmirMotefaker
一个「角色/任务/规则」结构的提示词模板,要求模型为 Node.js + Express 设计安全的 JWT 认证中间件,包含 bcrypt 密码哈希与完整错误处理。
promptmarkdown