feat: move all workflows to workflows folder

This commit is contained in:
jinmingyang
2026-01-19 03:09:42 +08:00
parent 8e7a82b713
commit be84779ab9
1290 changed files with 120 additions and 105 deletions
+2 -2
View File
@@ -106,10 +106,10 @@ When used with workflow-creator, download skills to workflow's `.claude/skills/`
```bash
# Create workflow first
python /path/to/workflow-creator/scripts/create_workflow.py my-workflow
python /path/to/workflow-creator/scripts/create_workflow.py my-workflow --path ./workflows
# Then download skills
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./my-workflow/.claude/skills/
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./workflows/my-workflow/.claude/skills/
```
## Skill Sources Reference
+10 -10
View File
@@ -19,7 +19,7 @@ python scripts/create_workflow.py <workflow-name> --path <output-dir>
Creates (with multi-AI tool support):
```
<workflow-name>-workflow/
workflows/<workflow-name>-workflow/
├── README.md # User documentation (English)
├── README_cn.md # User documentation (Chinese)
├── AGENTS.md # AI context (auto-loaded)
@@ -61,22 +61,22 @@ Symlinks enable all AI tools to use the same skills from .claude/skills/.
2. Download each skill using `scripts/download_skill.py`:
```bash
python scripts/download_skill.py <repo-url> <skill-path> --output <workflow>/.claude/skills/
python scripts/download_skill.py <repo-url> <skill-path> --output workflows/<workflow-name>/.claude/skills/
```
**Examples:**
```bash
# Official Anthropic skills
python scripts/download_skill.py https://github.com/anthropics/skills skills/docx --output ./media-workflow/.claude/skills/
python scripts/download_skill.py https://github.com/anthropics/skills skills/docx --output ./workflows/media-workflow/.claude/skills/
# Community skills (root level)
python scripts/download_skill.py https://github.com/gked2121/claude-skills social-repurposer --output ./media-workflow/.claude/skills/
python scripts/download_skill.py https://github.com/gked2121/claude-skills social-repurposer --output ./workflows/media-workflow/.claude/skills/
```
### Step 3: Generate README.md (English)
**CRITICAL: Follow the exact format from `marketing-pro-workflow/README.md`**
**CRITICAL: Follow the exact format from `workflows/marketing-pro-workflow/README.md`**
Required structure:
```markdown
@@ -86,7 +86,7 @@ Required structure:
### **Your AI-Powered [Domain] Team**
[← Back to AI Workflow](../README.md)
[← Back to AI Workflow](../../README.md)
[简体中文](./README_cn.md) | English
@@ -143,7 +143,7 @@ Use `assets/templates/README.template.md` as reference.
Create Chinese version with:
- Same structure as English README
- Professional Chinese terminology
- Link back to `../README_cn.md`
- Link back to `../../README_cn.md`
### Step 5: Generate AGENTS.md
@@ -224,13 +224,13 @@ When the above sources lack needed skills:
```bash
# From GitHub repository
python scripts/download_skill.py https://github.com/<owner>/<repo> <skill-path> --output <workflow>/.claude/skills/
python scripts/download_skill.py https://github.com/<owner>/<repo> <skill-path> --output workflows/<workflow-name>/.claude/skills/
# Example: Download from alirezarezvani
python scripts/download_skill.py https://github.com/alirezarezvani/claude-skills skills/content-creator --output ./content-creator-workflow/.claude/skills/
python scripts/download_skill.py https://github.com/alirezarezvani/claude-skills skills/content-creator --output ./workflows/content-creator-workflow/.claude/skills/
# Example: Download from pluginagentmarketplace
python scripts/download_skill.py https://github.com/pluginagentmarketplace/custom-plugin-product-manager skills/user-research --output ./product-manager-workflow/.claude/skills/
python scripts/download_skill.py https://github.com/pluginagentmarketplace/custom-plugin-product-manager skills/user-research --output ./workflows/product-manager-workflow/.claude/skills/
```
---
@@ -4,7 +4,7 @@
### **{{TAGLINE}}**
[← Back to AI Workflow](../README.md)
[← Back to AI Workflow](../../README.md)
[简体中文](./README_cn.md) | English
@@ -110,6 +110,6 @@ MIT © [nicepkg](https://github.com/nicepkg)
<div align="center">
**[⬆ Back to Main Project](../README.md)**
**[⬆ Back to Main Project](../../README.md)**
</div>
@@ -6,11 +6,11 @@ Usage:
python create_workflow.py <workflow-name> [--path <output-directory>]
Example:
python create_workflow.py media-creator --path ./
python create_workflow.py developer-workflow
python create_workflow.py media-creator --path ./workflows
python create_workflow.py developer-workflow --path ./workflows
Creates:
workflow-name/
workflows/<workflow-name>/
├── README.md
├── AGENTS.md
├── .claude/
@@ -70,7 +70,7 @@ AI_TOOL_SYMLINKS = [
ROOT_SYMLINK = ("skills", ".claude/skills")
def create_workflow(name: str, output_path: str = ".") -> Path:
def create_workflow(name: str, output_path: str = "workflows") -> Path:
"""
Create a new workflow directory with standard structure.
Supports multiple AI tools via symlinks.
@@ -150,8 +150,8 @@ def main():
)
parser.add_argument(
"--path",
default=".",
help="Output directory (default: current directory)"
default="workflows",
help="Output directory (default: workflows)"
)
args = parser.parse_args()
+1 -1
View File
@@ -72,7 +72,7 @@ jobs:
run: |
echo "Checking workflow structures..."
for dir in *-workflow; do
for dir in workflows/*-workflow; do
if [ -d "$dir" ]; then
echo "Checking: $dir"
+6 -5
View File
@@ -19,9 +19,10 @@ ai-workflow/
├── .claude/skills/ # Shared skills for this project
│ ├── workflow-creator/ # Create new workflows
│ └── skill-creator/ # Create new skills
├── content-creator-workflow/ # Example workflow
├── marketing-pro-workflow/ # Example workflow
└── <new-workflow>/ # New workflows created here
├── workflows/
│ ├── content-creator-workflow/ # Example workflow
│ ├── marketing-pro-workflow/ # Example workflow
│ └── <new-workflow>/ # New workflows created here
```
## Available Skills
@@ -44,7 +45,7 @@ Creates new skills following Anthropic's specification.
When user requests a new workflow:
1. **Create directory** using `workflow-creator/scripts/create_workflow.py`
1. **Create directory** using `workflow-creator/scripts/create_workflow.py` (default target: `workflows/`)
2. **Select skills** from `workflow-creator/references/skill-sources.md`
3. **Download skills** using `workflow-creator/scripts/download_skill.py`
4. **Generate README.md** for users
@@ -63,7 +64,7 @@ After creating any workflow, ALWAYS update the project README.md:
### Workflow Directory Structure
```
<name>-workflow/
workflows/<workflow name>/
├── README.md # User documentation
├── AGENTS.md # AI instructions (concise, <500 lines)
├── .claude/
+1 -1
View File
@@ -40,7 +40,7 @@ help:
@echo " make update-all"
@echo ""
@echo "Available workflows:"
@ls -d *-workflow 2>/dev/null | sed 's/-workflow//' | sed 's/^/ - /'
@ls -d workflows/*-workflow 2>/dev/null | sed 's#workflows/##' | sed 's/-workflow//' | sed 's/^/ - /'
# List all workflows and their skills
list:
+13 -13
View File
@@ -44,12 +44,12 @@ One command. 150+ professional skills. Instant productivity boost.
| Workflow | For Who | Skills | Install |
|:---------|:--------|:------:|:--------|
| **[Content Creator](./content-creator-workflow/)** | Bloggers, Writers, SEO Specialists | 32 | `npx add-skill nicepkg/ai-workflow/content-creator-workflow` |
| **[Marketing Pro](./marketing-pro-workflow/)** | Digital Marketers, Growth Hackers, PMMs | 38 | `npx add-skill nicepkg/ai-workflow/marketing-pro-workflow` |
| **[Video Creator](./video-creator-workflow/)** | YouTubers, TikTokers, Video Producers | 29 | `npx add-skill nicepkg/ai-workflow/video-creator-workflow` |
| **[Stock Trader](./stock-trader-workflow/)** | Traders, Investors (US/CN/HK/TW Markets) | 29 | `npx add-skill nicepkg/ai-workflow/stock-trader-workflow` |
| **[Product Manager](./product-manager-workflow/)** | PMs, Product Owners, Head of Product | 23 | `npx add-skill nicepkg/ai-workflow/product-manager-workflow` |
| **[Talk to Slidev](./talk-to-slidev-workflow/)** | Keynote Speakers, Tech Presenters, Educators | 18 | `npx add-skill nicepkg/ai-workflow/talk-to-slidev-workflow` |
| **[Content Creator](./workflows/content-creator-workflow/)** | Bloggers, Writers, SEO Specialists | 32 | `npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow` |
| **[Marketing Pro](./workflows/marketing-pro-workflow/)** | Digital Marketers, Growth Hackers, PMMs | 38 | `npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow` |
| **[Video Creator](./workflows/video-creator-workflow/)** | YouTubers, TikTokers, Video Producers | 29 | `npx add-skill nicepkg/ai-workflow/workflows/video-creator-workflow` |
| **[Stock Trader](./workflows/stock-trader-workflow/)** | Traders, Investors (US/CN/HK/TW Markets) | 29 | `npx add-skill nicepkg/ai-workflow/workflows/stock-trader-workflow` |
| **[Product Manager](./workflows/product-manager-workflow/)** | PMs, Product Owners, Head of Product | 23 | `npx add-skill nicepkg/ai-workflow/workflows/product-manager-workflow` |
| **[Talk to Slidev](./workflows/talk-to-slidev-workflow/)** | Keynote Speakers, Tech Presenters, Educators | 18 | `npx add-skill nicepkg/ai-workflow/workflows/talk-to-slidev-workflow` |
<details>
<summary><b>📦 View All 170+ Skills</b></summary>
@@ -82,7 +82,7 @@ One command. 150+ professional skills. Instant productivity boost.
```bash
# Pick your workflow and run ONE command:
npx add-skill nicepkg/ai-workflow/content-creator-workflow
npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow
# That's it! Skills are now active in your AI assistant.
```
@@ -91,23 +91,23 @@ npx add-skill nicepkg/ai-workflow/content-creator-workflow
```bash
# Install just what you need
npx add-skill nicepkg/ai-workflow/stock-trader-workflow --skill a-share-analysis
npx add-skill nicepkg/ai-workflow/workflows/stock-trader-workflow --skill a-share-analysis
# List available skills first
npx add-skill nicepkg/ai-workflow/marketing-pro-workflow --list
npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow --list
```
### Advanced Options
```bash
# Install globally (available in all projects)
npx add-skill nicepkg/ai-workflow/video-creator-workflow --global
npx add-skill nicepkg/ai-workflow/workflows/video-creator-workflow --global
# Install to specific AI tools only
npx add-skill nicepkg/ai-workflow/content-creator-workflow -a claude-code -a cursor
npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow -a claude-code -a cursor
# Non-interactive mode (for CI/CD)
npx add-skill nicepkg/ai-workflow/marketing-pro-workflow -y
npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow -y
```
---
@@ -169,7 +169,7 @@ The AI will automatically:
### Manual Creation
```
my-workflow/
workflows/my-workflow/
└── .claude/skills/
└── my-skill/
└── SKILL.md # Skill definition
+13 -13
View File
@@ -44,12 +44,12 @@
| 工作流 | 适合谁 | 技能数 | 一键安装 |
|:-------|:------|:------:|:---------|
| **[内容创作者](./content-creator-workflow/README_cn.md)** | 博主、写手、SEO 专家 | 32 | `npx add-skill nicepkg/ai-workflow/content-creator-workflow` |
| **[营销专家](./marketing-pro-workflow/README_cn.md)** | 数字营销、增长黑客、PMM | 38 | `npx add-skill nicepkg/ai-workflow/marketing-pro-workflow` |
| **[视频创作者](./video-creator-workflow/README_cn.md)** | YouTuber、抖音/TikTok博主 | 29 | `npx add-skill nicepkg/ai-workflow/video-creator-workflow` |
| **[股票交易员](./stock-trader-workflow/README_cn.md)** | 交易员、投资者(美股/A股/港股/台股) | 29 | `npx add-skill nicepkg/ai-workflow/stock-trader-workflow` |
| **[产品经理](./product-manager-workflow/README_cn.md)** | PM、产品负责人、产品总监 | 23 | `npx add-skill nicepkg/ai-workflow/product-manager-workflow` |
| **[Talk to Slidev](./talk-to-slidev-workflow/README_cn.md)** | 主题演讲者、技术大会讲者、讲师 | 18 | `npx add-skill nicepkg/ai-workflow/talk-to-slidev-workflow` |
| **[内容创作者](./workflows/content-creator-workflow/README_cn.md)** | 博主、写手、SEO 专家 | 32 | `npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow` |
| **[营销专家](./workflows/marketing-pro-workflow/README_cn.md)** | 数字营销、增长黑客、PMM | 38 | `npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow` |
| **[视频创作者](./workflows/video-creator-workflow/README_cn.md)** | YouTuber、抖音/TikTok博主 | 29 | `npx add-skill nicepkg/ai-workflow/workflows/video-creator-workflow` |
| **[股票交易员](./workflows/stock-trader-workflow/README_cn.md)** | 交易员、投资者(美股/A股/港股/台股) | 29 | `npx add-skill nicepkg/ai-workflow/workflows/stock-trader-workflow` |
| **[产品经理](./workflows/product-manager-workflow/README_cn.md)** | PM、产品负责人、产品总监 | 23 | `npx add-skill nicepkg/ai-workflow/workflows/product-manager-workflow` |
| **[Talk to Slidev](./workflows/talk-to-slidev-workflow/README_cn.md)** | 主题演讲者、技术大会讲者、讲师 | 18 | `npx add-skill nicepkg/ai-workflow/workflows/talk-to-slidev-workflow` |
<details>
<summary><b>📦 查看全部 170+ 技能</b></summary>
@@ -82,7 +82,7 @@
```bash
# 选择你的工作流,运行一条命令即可:
npx add-skill nicepkg/ai-workflow/content-creator-workflow
npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow
# 搞定!技能已在你的 AI 助手中激活。
```
@@ -91,23 +91,23 @@ npx add-skill nicepkg/ai-workflow/content-creator-workflow
```bash
# 只安装需要的技能
npx add-skill nicepkg/ai-workflow/stock-trader-workflow --skill a-share-analysis
npx add-skill nicepkg/ai-workflow/workflows/stock-trader-workflow --skill a-share-analysis
# 先看看有哪些技能
npx add-skill nicepkg/ai-workflow/marketing-pro-workflow --list
npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow --list
```
### 高级选项
```bash
# 全局安装(所有项目可用)
npx add-skill nicepkg/ai-workflow/video-creator-workflow --global
npx add-skill nicepkg/ai-workflow/workflows/video-creator-workflow --global
# 只安装到指定的 AI 工具
npx add-skill nicepkg/ai-workflow/content-creator-workflow -a claude-code -a cursor
npx add-skill nicepkg/ai-workflow/workflows/content-creator-workflow -a claude-code -a cursor
# 非交互模式(适合 CI/CD)
npx add-skill nicepkg/ai-workflow/marketing-pro-workflow -y
npx add-skill nicepkg/ai-workflow/workflows/marketing-pro-workflow -y
```
---
@@ -169,7 +169,7 @@ AI 会自动:
### 手动创建
```
my-workflow/
workflows/my-workflow/
└── .claude/skills/
└── my-skill/
└── SKILL.md # 技能定义文件
+9 -2
View File
@@ -42,9 +42,16 @@ def get_project_root() -> Path:
return Path(__file__).parent.parent
def get_workflows_root() -> Path:
"""Get the workflows root directory."""
root = get_project_root()
workflows_root = root / "workflows"
return workflows_root if workflows_root.exists() else root
def get_workflows() -> list[Path]:
"""Get all workflow directories."""
root = get_project_root()
root = get_workflows_root()
workflows = []
for item in root.iterdir():
if item.is_dir() and item.name.endswith('-workflow'):
@@ -224,7 +231,7 @@ def main():
args = parser.parse_args()
root = get_project_root()
root = get_workflows_root()
# List mode
if args.list:
+9 -2
View File
@@ -42,9 +42,16 @@ def get_project_root() -> Path:
return Path(__file__).parent.parent
def get_workflows_root() -> Path:
"""Get the workflows root directory."""
root = get_project_root()
workflows_root = root / "workflows"
return workflows_root if workflows_root.exists() else root
def get_workflows() -> list[Path]:
"""Get all workflow directories."""
root = get_project_root()
root = get_workflows_root()
workflows = []
for item in root.iterdir():
if item.is_dir() and item.name.endswith('-workflow'):
@@ -385,7 +392,7 @@ def main():
args = parser.parse_args()
root = get_project_root()
root = get_workflows_root()
# Determine workflows to validate
if args.workflow:

Some files were not shown because too many files have changed in this diff Show More