写作与翻译
代码仓库快速上手文档生成
提供代码仓库并填写项目链接和许可证信息,生成包含安装、快速启动和可执行示例的 README。
填空后再复制(中文和原文同时生效)
# README 生成器
## 概述
分析代码仓库,生成一份全面、可复现的 README.md,通过清晰的说明和可执行示例,帮助用户快速了解、配置和使用项目。
## 工作流程
### 1. 分析仓库结构
探索仓库,了解其组织方式和用途:
**需要检查的关键文件**:
- `package.json`、`pyproject.toml`、`Cargo.toml`、`go.mod` - 项目元数据
- `requirements.txt`、`Pipfile`、`pom.xml`、`build.gradle` - 依赖项
- 主要入口文件(`main.py`、`index.js`、`app.py`、`cmd/main.go`)
- 配置文件(`.env.example`、`config.yaml`、`settings.py`)
- 构建/任务文件(`Makefile`、`package.json` 脚本、`tasks.py`)
- 文档(`docs/`、现有的 `README.md`、`CONTRIBUTING.md`)
**需要提取的信息**:
- 项目名称和版本
- 编程语言和框架
- 项目类型(应用程序、库、CLI 工具、研究项目)
- 主要功能和能力
- 依赖项和系统要求
- 入口点和执行方式
### 2. 生成项目介绍
编写清晰、有吸引力的介绍部分:
**标题和徽章**:
```markdown
# Project Name



```
**描述**(2-4 句话):
- 项目做什么
- 为什么创建该项目(它解决的问题)
- 主要功能或能力
- 目标受众或使用场景
**示例**:
```markdown
## About
[Project Name] is a lightweight web framework for building RESTful APIs with minimal boilerplate. It provides automatic request validation, built-in authentication, and OpenAPI documentation generation. Designed for rapid prototyping and production-ready microservices, it reduces API development time by 50% compared to traditional frameworks.
```
### 3. 记录前置要求
列出所有系统要求和依赖项:
**格式**:
```markdown
## Prerequisites
Before you begin, ensure you have the following installed:
- **[Language/Runtime]**: [Version] or higher
- Download: {URL}
- Verify: `[command] --version`
- **[Package Manager]**: [Version] or higher
- Download: {URL}
- Verify: `[command] --version`
- **[Database/Service]** (optional): [Version]
- Required for: [specific features]
- Download: {URL}
- **[System Dependencies]**: [List]
- Install on macOS: `brew install [packages]`
- Install on Ubuntu: `sudo apt-get install [packages]`
- Install on Windows: [instructions]
```
**包含**:
- 所有依赖项的最低版本
- 安装链接或命令
- 检查安装是否成功的验证命令
- 区分可选和必需的依赖项
- 特定平台的要求
### 4. 编写安装/配置说明
提供可复现的分步配置说明:
**格式**:
```markdown
## Installation
### 1. Clone the repository
\`\`\`bash
git clone https://github.com/username/project-name.git
cd project-name
\`\`\`
### 2. Install dependencies
\`\`\`bash
# For Python projects
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# For Node.js projects
npm install
# For Go projects
go mod download
\`\`\`
### 3. Configure environment
\`\`\`bash
# Copy example environment file
cp .env.example .env
# Edit .env with your configuration
# Required variables:
# DATABASE_URL=postgresql://localhost/dbname
# API_KEY=your_api_key_here
\`\`\`
### 4. Initialize database (if applicable)
\`\`\`bash
# Run migrations
npm run migrate
# Or: python manage.py migrate
# Or: make migrate
\`\`\`
### 5. Verify installation
\`\`\`bash
# Run tests to verify setup
npm test
# Or: pytest
# Or: go test ./...
\`\`\`
```
**最佳实践**:
- 清晰地为每个步骤编号
- 提供可直接复制粘贴的准确命令
- 包含不同平台的相应操作
- 添加注释,解释每条命令的作用
- 包含验证步骤
### 5. 编写使用说明
通过可执行示例说明如何运行和使用项目:
**针对应用程序**:
```markdown
## Usage
### Running the application
\`\`\`bash
# Development mode with hot reload
npm run dev
# Production mode
npm start
# With custom port
PORT=8080 npm start
\`\`\`
The application will be available at `http://localhost:3000`
### Basic operations
**Create a new resource**:
\`\`\`bash
curl -X POST http://localhost:3000/api/resources \
-H "Content-Type: application/json" \
-d '{"name": "example", "value": 42}'
\`\`\`
**List all resources**:
\`\`\`bash
curl http://localhost:3000/api/resources
\`\`\`
```
**针对库**:
```markdown
## Usage
### Basic example
\`\`\`python
from project_name import Client
# Initialize client
client = Client(api_key="your_key")
# Perform operation
result = client.fetch_data(query="example")
print(result)
\`\`\`
### Advanced usage
\`\`\`python
# With custom configuration
client = Client(
api_key="your_key",
timeout=30,
retry_count=3
)
# Batch operations
results = client.batch_fetch([
{"query": "item1"},
{"query": "item2"}
])
\`\`\`
```
**针对 CLI 工具**:
```markdown
## Usage
### Basic commands
\`\`\`bash
# Show help
project-cli --help
# Run with default options
project-cli process input.txt
# Run with custom options
project-cli process input.txt --output result.txt --verbose
\`\`\`
### Common workflows
**Workflow 1: Data processing**
\`\`\`bash
# Step 1: Validate input
project-cli validate data.csv
# Step 2: Process data
project-cli process data.csv --format json
# Step 3: Export results
project-cli export results.json --format pdf
\`\`\`
```
### 6. 生成仓库结构
创建可视化目录树,展示代码库的组织方式:
**格式**:
```markdown
## Repository Structure
\`\`\`
project-name/
├── src/ # Source code
│ ├── api/ # API endpoints
│ ├── models/ # Data models
│ ├── services/ # Business logic
│ └── utils/ # Utility functions
├── tests/ # Test files
│ ├── unit/ # Unit tests
│ └── integration/ # Integration tests
├── docs/ # Documentation
├── scripts/ # Build and deployment scripts
├── config/ # Configuration files
├── .env.example # Environment variables template
├── package.json # Project dependencies
├── README.md # This file
└── LICENSE # License information
\`\`\`
### Key directories
- **src/api**: REST API endpoints and route handlers
- **src/models**: Database models and schemas
- **src/services**: Core business logic and external integrations
- **tests**: Comprehensive test suite with >80% coverage
- **docs**: Additional documentation and API specifications
```
**最佳实践**:
- 展示 2-3 层目录
- 添加注释,说明每个主要目录的用途
- 突出重要文件
- 包含带有说明的“关键目录”部分
- 保持简洁(不要列出每个文件)
### 7. 添加其他部分
视情况加入其他有用的部分:
**配置**:
```markdown
## Configuration
The application can be configured via environment variables:
| Variable | Description | Default | Required |
|----------|-------------|---------|----------|
| `DATABASE_URL` | PostgreSQL connection string | - | Yes |
| `API_KEY` | External API key | - | Yes |
| `PORT` | Server port | 3000 | No |
| `LOG_LEVEL` | Logging level (debug/info/error) | info | No |
```
**开发**:
```markdown
## Development
### Running tests
\`\`\`bash
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test file
npm test -- tests/api.test.js
\`\`\`
### Code formatting
\`\`\`bash
# Check formatting
npm run lint
# Auto-fix issues
npm run lint:fix
\`\`\`
```
**故障排除**:
```markdown
## Troubleshooting
### Common issues
**Issue**: `ModuleNotFoundError: No module named 'xyz'`
**Solution**: Ensure virtual environment is activated and dependencies are installed:
\`\`\`bash
source venv/bin/activate
pip install -r requirements.txt
\`\`\`
**Issue**: Database connection fails
**Solution**: Verify DATABASE_URL in .env and ensure PostgreSQL is running:
\`\`\`bash
pg_isready
\`\`\`
```
**许可证和贡献指南**:
```markdown
## License
This project is licensed under the MIT License - see the {LICENSE}(LICENSE) file for details.
## Contributing
Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
```
## README 质量指南
**清晰性**:
- 使用简单、直接的语言
- 除非必要,否则避免使用术语
- 首次使用技术术语时给出定义
- 使用主动语态
**完整性**:
- 包含从克隆到运行所需的全部步骤
- 不要假定读者已有相关知识
- 为常见使用场景提供示例
- 链接到其他文档
**可复现性**:
- 所有命令都应可直接复制粘贴
- 包含确切版本
- 指明环境变量
- 记录平台差异
**可维护性**:
- 保持说明与代码同步更新
- 内部文档使用相对链接
- 版本徽章应与实际版本一致
- 在干净的环境中测试说明
## 提示
- 定稿前在全新环境中测试所有命令
- 使用带语言语法高亮的代码块
- 对界面内容较多的项目提供截图
- 为较长的 README 添加目录
- 为复杂主题链接到详细文档
- 让 README 聚焦于入门
- 发布时更新版本徽章
- 在顶部为有经验的用户加入“快速开始”部分同类提示词
写作与翻译
按叙事节奏拆分短片制作计划
提供短片构想,可补充时长和风格偏好,把故事拆成带开场钩子的场次,明确景别、动作、服装和剪辑节奏。
# 视频策划 使用此技能将用户的短片创意转化为实用的逐场景制作方案。该方案应适用于拍摄、剪辑、AI 视频生成,或与摄影师/剪辑师沟通。 最终方案应使用用户偏好的本地语言撰写。如果用户使用中文,除非明确要求其他语言,否则用中文输出方案。技能说明保持英文,但交付内容的语言应适应用户。 ## 主要目标 制作一份完整的短视频方案,满足以下要求: - 协商或推断总时长。 - 将视频划分为多个场景,每个场景至少为 4 seconds,且不超过 15 seconds。 - 在可行时优先采用 4、9、12 或 15 seconds 的场景时长。 - 使用清晰可
写作与翻译
三十天多渠道营销内容日历
给品牌资料、渠道、月目标和制作资源,按漏斗排三十天主题、发布及行动号召,发布前评分。
# 全球内容日历 > 规划一份为期 30 天的多渠道内容日历,确定漏斗比例、内容支柱和来源类型组合,并在发布前进行 AI 评分。 --- ## 第 0 步——读取上下文文件 生成日历前,读取 `.agents/product-marketing-context-global.md`,了解: - 品牌声音与语气 - 当前运营的渠道及粉丝基础 - 地区(决定最佳发布时间和渠道组合) - 货币(决定涉及金额的行动号召如何表述) 如果文件缺失,请用户先运行 `product-marketing-context-global`。 --- ## 信息
可填 1 项
写作与翻译
单场景分镜图与视频生成脚本
提供要制作的场景,按镜头时长生成分镜图和视频脚本,有现成人物图时沿用其造型。
# 视频分镜 使用此 skill 为特定场景制作一套可直接用于制作的分镜方案: 1. 将分镜图保存到 `storyboard/scene-XX.png`。 2. 将视频生成提示词脚本保存到 `storyboard/scene-XX.md`。 用英文编写 skill 指令,但面向用户的 `.md` 脚本应使用用户偏好的本地语言,除非用户明确要求使用其他语言。 ## 图像生成要求 分镜图必须由图像生成模型生成。不要用代码、SVG、HTML/CSS、canvas、图表、占位画或确定性形状脚本制作分镜画面。这些方法只可用于非视觉元数据或文件操作,绝不能
需参考图
写作与翻译
可灵短视频剧情与图生视频脚本
按单场景或多角色剧情编写生成指令,覆盖动作、运镜和音频;图生视频需上传参考图并说明变化。
# kling-prompter Kling 3.0(可灵 3.0,快手)的三套主流写法:4 部分基础 / 5 层进阶 / 图生视频。 ## 何时不用此 skill - 复杂多镜头分镜叙事(>15s) → 用 [seedance-storyboard](../seedance-storyboard/) - 5/10/15 秒紧凑短片,对原生音频要求不高 → 用 [happyhorse-prompter](../happyhorse-prompter/) - 已有 Seedance 提示词需修问题 → 用 [seedance-debugger](..
需参考图中文原创
写作与翻译
明确交付物和负责人的工作坊
提供工作坊目标与参会情况,围绕一个成果设计议程,安排分组讨论、决策和会后负责人。
# 工作坊设计师 大多数工作坊都以同一种方式失败:讨论了很多,产生了无人记录的“共识”,然后又发出下一场工作坊的日历邀请。这个技能设计的会议以**确定的成果和明确的负责人**收尾,因为只有这样才值得占用参与者一周中的时间。 检验任何工作坊的标准:**这间会议室里会产出什么成果,谁负责下一步?** 如果答不上来,就不要举办工作坊。 --- ## 设计选择 - **只设一个结果,不要三个。** 有三个目标的工作坊一个也达不成。强制排序,确定一个决策或一项成果。 - **先发散,再收敛,绝不同时进行。** 头脑风暴和决策需要不同的思维模式。把两者混在
写作与翻译
视频拍摄与剪辑交付说明
提供口播稿和品牌资料,填写日期并附参考视频,明确前三秒、拍摄、剪辑、字幕和各渠道导出规格。
# 视频剪辑简报(全局) 一份好的视频简报,应让拍摄人员清楚如何布置现场,让剪辑人员知道如何剪辑,无须再打电话解释。开头 three seconds 必须能单独成片。 **与 `04-script-video-global` 的区别:**脚本是口播内容(说什么,按钩子—主体—CTA组织)。这份简报是制作指导(拍什么、怎么剪、用什么音乐、叠加什么内容、如何导出)。如果还没有脚本,先运行 `04-script-video-global`,再将其中的台词粘贴到下方分镜表的“Dialogue / VO”列。 ## 信息收集 阅读 `.agents/pro
可填 1 项