feat: 自动化项目丰富 - 添加 CI/CD、实战案例和提示词

## 新增内容

### GitHub Actions 工作流
- ci.yml: Markdown lint、链接检查、项目结构验证
- welcome.yml: 自动欢迎新贡献者
- labeler.yml: PR 自动标签

### Issue 模板
- prompt_contribution.md: 提示词贡献模板
- documentation.md: 文档改进模板
- config.yml: 模板配置(含社区链接)

### 实战案例
- 02-blog-system.md: 个人博客系统(Next.js + MDX)
- 04-cli-tool.md: 命令行工具(Python + Click)
- 05-chrome-extension.md: Chrome 扩展(网页笔记助手)

### 编程提示词
- debug-expert.md: 调试专家提示词
- code-review.md: 代码审查提示词
- architecture-design.md: 架构设计提示词

## 相关 Issues
- #5 完善 Wiki 文档
- #6 添加更多实战案例
- #7 扩充提示词库
- #8 激活社区讨论
This commit is contained in:
tukuaiai
2025-12-18 16:13:40 +08:00
parent bfa0694868
commit 5423dd1fe8
14 changed files with 2049 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: 💬 Telegram 交流群
url: https://t.me/glue_coding
about: 加入我们的 Telegram 群组讨论问题
- name: 📢 Telegram 频道
url: https://t.me/tradecat_ai_channel
about: 关注项目更新和资讯
- name: 📖 在线提示词表格
url: https://docs.google.com/spreadsheets/d/1ngoQOhJqdguwNAilCl1joNwTje7FWWN9WiI2bo5VhpU/edit?gid=2093180351
about: 查看和使用提示词库
+29
View File
@@ -0,0 +1,29 @@
---
name: 文档改进
about: 报告文档问题或建议改进
title: "[Docs]: "
labels: documentation
assignees: ''
---
**文档位置**
请提供需要改进的文档路径或链接。
**问题类型**
- [ ] 内容错误
- [ ] 内容过时
- [ ] 内容缺失
- [ ] 表述不清
- [ ] 链接失效
- [ ] 格式问题
- [ ] 翻译问题
**问题描述**
清晰描述文档存在的问题。
**建议改进**
如果有具体的改进建议,请在此描述。
**附加信息**
任何其他相关信息。
@@ -0,0 +1,38 @@
---
name: 提示词贡献
about: 分享一个有用的提示词
title: "[Prompt]: "
labels: prompts, contribution
assignees: ''
---
**提示词名称**
给这个提示词起一个简洁的名字。
**提示词分类**
- [ ] 系统提示词 (system_prompts)
- [ ] 编程提示词 (coding_prompts)
- [ ] 用户提示词 (user_prompts)
- [ ] 辅助提示词 (assistant_prompts)
- [ ] 元提示词 (meta_prompts)
**提示词内容**
```
在这里粘贴你的提示词内容
```
**使用场景**
描述这个提示词适用于什么场景。
**效果示例**
如果可能,提供使用这个提示词的效果示例或截图。
**适用模型**
- [ ] Claude
- [ ] GPT
- [ ] Gemini
- [ ] 其他: ___
**附加说明**
任何其他需要说明的内容。
+45
View File
@@ -0,0 +1,45 @@
# 文档相关
documentation:
- changed-files:
- any-glob-to-any-file:
- '**/*.md'
- 'docs/**'
- 'i18n/**/documents/**'
# 提示词相关
prompts:
- changed-files:
- any-glob-to-any-file:
- 'i18n/**/prompts/**'
- 'libs/external/prompts-library/**'
# 技能相关
skills:
- changed-files:
- any-glob-to-any-file:
- 'i18n/**/skills/**'
# 工具相关
tools:
- changed-files:
- any-glob-to-any-file:
- 'libs/**'
- 'backups/**'
# 国际化
i18n:
- changed-files:
- any-glob-to-any-file:
- 'i18n/**'
# CI/CD
ci:
- changed-files:
- any-glob-to-any-file:
- '.github/**'
# 中文内容
chinese:
- changed-files:
- any-glob-to-any-file:
- 'i18n/zh/**'
+60
View File
@@ -0,0 +1,60 @@
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
lint-markdown:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Run markdownlint
run: markdownlint '**/*.md' --ignore node_modules --ignore libs/external || true
check-links:
name: Check Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Link Checker
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --no-progress './**/*.md' --exclude-path libs/external
fail: false
validate-structure:
name: Validate Project Structure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check required files
run: |
echo "Checking required files..."
files=("README.md" "LICENSE" "CONTRIBUTING.md" "CODE_OF_CONDUCT.md" "AGENTS.md" "CLAUDE.md")
for file in "${files[@]}"; do
if [ -f "$file" ]; then
echo "✓ $file exists"
else
echo "✗ $file missing"
fi
done
- name: Check i18n structure
run: |
echo "Checking i18n directories..."
for lang in zh en; do
if [ -d "i18n/$lang" ]; then
echo "✓ i18n/$lang exists"
else
echo "✗ i18n/$lang missing"
fi
done
+16
View File
@@ -0,0 +1,16 @@
name: Auto Labeler
on:
pull_request:
types: [opened, synchronize]
jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
+42
View File
@@ -0,0 +1,42 @@
name: Welcome New Contributors
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
welcome:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
👋 感谢您提交第一个 Issue!
我们非常重视您的反馈。请确保:
- 已阅读 [贡献指南](CONTRIBUTING.md)
- 提供了足够的上下文信息
- 如果是 Bug,请提供复现步骤
我们会尽快回复您!🚀
---
Thanks for opening your first issue! We'll get back to you soon.
pr-message: |
🎉 感谢您提交第一个 Pull Request
这是您对本项目的首次贡献,我们非常感激!请确保:
- PR 描述清晰说明了改动内容
- 代码符合项目规范
- 已更新相关文档(如适用)
我们会尽快审核您的代码!💪
---
Thanks for your first PR! We'll review it soon.