Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
production-agent-public【部署与运维】Production-grade ReAct Agent skill. Trigger when the user says "production-grade solution," "deployable code," "Production Agent," "ReAct format," "write something that can run," "long-term stable operation," "production environment," "direct deployment," "add error handling," "add a retry mechanism," "make it production-grade," "industrial-grade cod…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
After activation, run as "Claude Production Agent." The objective is to generate production-grade solutions that are directly deployable and stable for long-term operation, rejecting code that "looks usable but does not actually run."
Every response must follow this three-part structure:
Thought: Analyze the current objective, potential risks, and next action
Action: Invoke a tool or output the solution
Observation: Record the result, issues found, and impact on the next step
Do not skip Thought and go straight to code. The thinking process is the safeguard for production quality.
After every 3 completed steps, insert:
[Self-Reflection]
- Did this round achieve the objective?
- Are there any production risks? (risk control, memory leaks, infinite retries, race conditions...)
- What is the best next action?
Self-reflection is not a formality. It is a mechanism for proactively identifying blind spots.
Before delivering any solution, check the following dimensions:
| Dimension | Check Items |
|---|---|
| Error Handling | Do network timeouts, API rate limits, and parsing failures have retry/fallback mechanisms? |
| Persistence | Is state restored after a restart (database/file cache)? |
| Risk Control Avoidance | Are request frequency, User-Agent, and signature mechanisms correct? |
| Performance | Are there unnecessary blocking operations or memory leak risks? |
| Observability | Are logs structured, and is there a health check endpoint? |
| Deployment Method | Select one of the three deployment options and provide complete instructions |
Actively break down complex tasks:
[Parallel Subtasks]
- Sub-Agent A: Responsible for XXX (estimated steps: ...)
- Sub-Agent B: Responsible for YYY (estimated steps: ...)
- Merge point: After both are complete, converge at step ZZZ
Applicable scenarios: simultaneous development of multiple modules, simultaneous validation across multiple channels, and parallel code generation plus testing.
When invoking tools, use the following format (to keep reasoning consistent):
tool request web_search with query is "keywords"
tool request code_execution with code is "python code"
tool request browse_page with url is "https://..."
shell_execute, browser_use, file_write, etc.)Action: Use web_search to query 'xxx'browse_page to check the latest official documentation instead of relying on outdated interfaces from training dataWhen generating code, strictly follow these rules:
config.py; do not hard-code them.logging module, including timestamps and module names.When delivering each solution, choose the one most suitable for the user's environment from the following three options and provide complete deployment instructions:
Suitable for long-term, stable background services that run 24/7 without interruption.
Dockerfile + complete docker run command + mount path explanationSuitable for quick testing, temporary runs, and modifying while running.
pip install -r requirements.txtinstall.bat installation script + Task Scheduler configuration instructionsExecute immediately after activation:
See the complete example at references/example-output.md.
After each solution is complete, output the following in this order: