sumulige-claude 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.claude/AGENTS.md +42 -0
  2. package/.claude/README.md +142 -0
  3. package/.claude/rag/skill-index.json +15 -0
  4. package/.claude/settings.local.json +36 -0
  5. package/.claude/skills/api-tester/SKILL.md +61 -0
  6. package/.claude/skills/api-tester/examples/basic.md +3 -0
  7. package/.claude/skills/api-tester/metadata.yaml +30 -0
  8. package/.claude/skills/api-tester/templates/default.md +3 -0
  9. package/AGENTS.md +33 -0
  10. package/README.md +857 -0
  11. package/cli.js +814 -0
  12. package/development/todos/INDEX.md +114 -0
  13. package/development/todos/active/_README.md +49 -0
  14. package/development/todos/active/todo-system.md +37 -0
  15. package/development/todos/archived/_README.md +11 -0
  16. package/development/todos/backlog/_README.md +11 -0
  17. package/development/todos/backlog/mcp-integration.md +35 -0
  18. package/development/todos/completed/_README.md +11 -0
  19. package/development/todos/completed/boris-optimizations.md +39 -0
  20. package/package.json +35 -0
  21. package/template/.claude/CLAUDE-template.md +138 -0
  22. package/template/.claude/README.md +142 -0
  23. package/template/.claude/boris-optimizations.md +167 -0
  24. package/template/.claude/commands/commit-push-pr.md +59 -0
  25. package/template/.claude/commands/commit.md +53 -0
  26. package/template/.claude/commands/pr.md +76 -0
  27. package/template/.claude/commands/review.md +61 -0
  28. package/template/.claude/commands/sessions.md +62 -0
  29. package/template/.claude/commands/skill-create.md +131 -0
  30. package/template/.claude/commands/test.md +56 -0
  31. package/template/.claude/commands/todos.md +99 -0
  32. package/template/.claude/commands/verify-work.md +63 -0
  33. package/template/.claude/hooks/code-formatter.cjs +187 -0
  34. package/template/.claude/hooks/multi-session.cjs +181 -0
  35. package/template/.claude/hooks/project-kickoff.cjs +114 -0
  36. package/template/.claude/hooks/rag-skill-loader.cjs +159 -0
  37. package/template/.claude/hooks/session-end.sh +61 -0
  38. package/template/.claude/hooks/sync-to-log.sh +83 -0
  39. package/template/.claude/hooks/thinking-silent.cjs +145 -0
  40. package/template/.claude/hooks/tl-summary.sh +54 -0
  41. package/template/.claude/hooks/todo-manager.cjs +248 -0
  42. package/template/.claude/hooks/verify-work.cjs +134 -0
  43. package/template/.claude/rag/skill-index.json +135 -0
  44. package/template/.claude/settings.json +33 -0
  45. package/template/.claude/skills/SKILLS.md +145 -0
  46. package/template/.claude/skills/examples/README.md +47 -0
  47. package/template/.claude/skills/examples/basic-task.md +67 -0
  48. package/template/.claude/skills/examples/bug-fix-workflow.md +92 -0
  49. package/template/.claude/skills/examples/feature-development.md +81 -0
  50. package/template/.claude/skills/manus-kickoff/SKILL.md +128 -0
  51. package/template/.claude/skills/manus-kickoff/examples/basic.md +84 -0
  52. package/template/.claude/skills/manus-kickoff/metadata.yaml +33 -0
  53. package/template/.claude/skills/manus-kickoff/templates/PROJECT_KICKOFF.md +89 -0
  54. package/template/.claude/skills/manus-kickoff/templates/PROJECT_PROPOSAL.md +227 -0
  55. package/template/.claude/skills/manus-kickoff/templates/TASK_PLAN.md +121 -0
  56. package/template/.claude/skills/template/SKILL.md +61 -0
  57. package/template/.claude/skills/template/metadata.yaml +30 -0
  58. package/template/.claude/templates/PROJECT_KICKOFF.md +89 -0
  59. package/template/.claude/templates/PROJECT_PROPOSAL.md +227 -0
  60. package/template/.claude/templates/TASK_PLAN.md +121 -0
  61. package/template/.claude/thinking-routes/QUICKREF.md +98 -0
  62. package/template/CLAUDE-template.md +114 -0
  63. package/template/README.md +148 -0
  64. package/template/development/todos/INDEX.md +63 -0
  65. package/template/development/todos/active/_README.md +49 -0
  66. package/template/development/todos/archived/_README.md +11 -0
  67. package/template/development/todos/backlog/_README.md +11 -0
  68. package/template/development/todos/completed/_README.md +11 -0
  69. package/template/init.sh +150 -0
  70. package/template/project-paradigm.md +313 -0
  71. package/template/prompts/how-to-find.md +163 -0
  72. package/template/thinkinglens-silent.md +138 -0
@@ -0,0 +1,248 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * TODO Manager - AI 自动任务管理系统
4
+ *
5
+ * 功能:
6
+ * - 自动追踪项目任务
7
+ * - 生成可点击的任务索引
8
+ * - 维护任务状态流转
9
+ * - 静默运行,不打扰工作流
10
+ *
11
+ * 目录结构:
12
+ * development/todos/
13
+ * ├── INDEX.md # 任务总览
14
+ * ├── active/ # 进行中的任务
15
+ * ├── completed/ # 已完成的任务
16
+ * ├── backlog/ # 待办任务
17
+ * └── archived/ # 已归档任务
18
+ */
19
+
20
+ const fs = require('fs');
21
+ const path = require('path');
22
+
23
+ const PROJECT_DIR = process.env.CLAUDE_PROJECT_DIR || process.cwd();
24
+ const TODOS_DIR = path.join(PROJECT_DIR, 'development', 'todos');
25
+ const INDEX_FILE = path.join(TODOS_DIR, 'INDEX.md');
26
+ const STATE_FILE = path.join(TODOS_DIR, '.state.json');
27
+
28
+ // 任务状态
29
+ const STATUS = {
30
+ ACTIVE: 'active',
31
+ COMPLETED: 'completed',
32
+ BACKLOG: 'backlog',
33
+ ARCHIVED: 'archived'
34
+ };
35
+
36
+ // 确保目录存在
37
+ function ensureDirectories() {
38
+ [TODOS_DIR, STATUS.ACTIVE, STATUS.COMPLETED, STATUS.BACKLOG, STATUS.ARCHIVED].forEach(dir => {
39
+ const fullPath = dir.startsWith('/') ? dir : path.join(TODOS_DIR, dir);
40
+ try { fs.mkdirSync(fullPath, { recursive: true }); } catch (e) {}
41
+ });
42
+ }
43
+
44
+ // 扫描任务文件
45
+ function scanTasks() {
46
+ const tasks = {
47
+ active: [],
48
+ completed: [],
49
+ backlog: [],
50
+ archived: []
51
+ };
52
+
53
+ for (const [key, dirName] of Object.entries(STATUS)) {
54
+ const dir = path.join(TODOS_DIR, dirName);
55
+ if (!fs.existsSync(dir)) continue;
56
+
57
+ const files = fs.readdirSync(dir)
58
+ .filter(f => f.endsWith('.md') && f !== '_README.md');
59
+
60
+ tasks[dirName] = files.map(f => {
61
+ const filePath = path.join(dir, f);
62
+ const content = fs.readFileSync(filePath, 'utf-8');
63
+ const titleMatch = content.match(/^#\s+(.+)$/m);
64
+ const statusMatch = content.match(/\*\*状态\*\*:\s*([\u{1F300}-\u{1F9FF}\s]+)/u);
65
+ const priorityMatch = content.match(/\*\*优先级\*\*:\s*(P[0-3])/);
66
+ const branchMatch = content.match(/\*\*分支\*\*:\s*`([^`]+)`/);
67
+
68
+ return {
69
+ file: f,
70
+ title: titleMatch ? titleMatch[1] : path.basename(f, '.md'),
71
+ status: statusMatch ? statusMatch[1].trim() : '🚧 进行中',
72
+ priority: priorityMatch ? priorityMatch[1] : 'P2',
73
+ branch: branchMatch ? branchMatch[1] : null,
74
+ path: `${dirName}/${f}`
75
+ };
76
+ });
77
+ }
78
+
79
+ return tasks;
80
+ }
81
+
82
+ // 生成任务索引
83
+ function generateIndex(tasks) {
84
+ const now = new Date().toISOString().split('T')[0];
85
+
86
+ let md = `# 项目任务追踪系统
87
+
88
+ > 本目录由 AI 自动维护,记录项目开发任务和进度
89
+
90
+ **最后更新**: ${now}
91
+
92
+ @version: 1.0.0
93
+
94
+ ## 目录结构
95
+
96
+ \`\`\`
97
+ development/todos/
98
+ ├── INDEX.md # 本文件 - 任务总览
99
+ ├── active/ # 进行中的任务 (${tasks.active.length})
100
+ ├── completed/ # 已完成的任务 (${tasks.completed.length})
101
+ ├── backlog/ # 待规划的任务 (${tasks.backlog.length})
102
+ └── archived/ # 已归档的任务 (${tasks.archived.length})
103
+ \`\`\`
104
+
105
+ ## 快速跳转
106
+
107
+ `;
108
+
109
+ // 进行中的任务
110
+ md += `## 🚧 进行中的任务 (${tasks.active.length})\n\n`;
111
+ if (tasks.active.length > 0) {
112
+ tasks.active.forEach(t => {
113
+ md += `- [${t.priority}] [${t.title}](./${t.path}) - ${t.status}${t.branch ? ` \`branch: ${t.branch}\`` : ''}\n`;
114
+ });
115
+ } else {
116
+ md += `*暂无进行中的任务*\n`;
117
+ }
118
+ md += `\n`;
119
+
120
+ // 最近完成的任务(最多5个)
121
+ md += `## ✅ 最近完成的任务\n\n`;
122
+ const recentCompleted = tasks.completed.slice(0, 5);
123
+ if (recentCompleted.length > 0) {
124
+ recentCompleted.forEach(t => {
125
+ md += `- [${t.title}](./${t.path})\n`;
126
+ });
127
+ if (tasks.completed.length > 5) {
128
+ md += `- ...还有 ${tasks.completed.length - 5} 个已完成任务\n`;
129
+ }
130
+ } else {
131
+ md += `*暂无已完成的任务*\n`;
132
+ }
133
+ md += `\n`;
134
+
135
+ // 待办任务
136
+ md += `## 📋 待办任务 (${tasks.backlog.length})\n\n`;
137
+ if (tasks.backlog.length > 0) {
138
+ tasks.backlog.slice(0, 10).forEach(t => {
139
+ md += `- [${t.priority}] [${t.title}](./${t.path})\n`;
140
+ });
141
+ if (tasks.backlog.length > 10) {
142
+ md += `- ...还有 ${tasks.backlog.length - 10} 个待办任务\n`;
143
+ }
144
+ } else {
145
+ md += `*暂无待办任务*\n`;
146
+ }
147
+ md += `\n`;
148
+
149
+ // 全部目录链接
150
+ md += `## 全部目录\n\n`;
151
+ md += `- [🚧 所有进行中的任务](./active/) - 当前开发重点\n`;
152
+ md += `- [✅ 所有已完成的任务](./completed/) - 完整历史\n`;
153
+ md += `- [📋 所有待办任务](./backlog/) - 待规划\n`;
154
+ md += `- [📦 所有已归档任务](./archived/) - 历史记录\n`;
155
+ md += `\n`;
156
+
157
+ // 使用说明
158
+ md += `## 使用方式\n\n`;
159
+ md += `### 查看任务\n`;
160
+ md += `点击上方链接跳转到对应目录,或使用:\n`;
161
+ md += `\`\`\`bash\n`;
162
+ md += `# 查看进行中的任务\n`;
163
+ md += `cat development/todos/active/*.md\n\n`;
164
+ md += `# 查看特定任务\n`;
165
+ md += `cat development/todos/active/feature-name.md\n`;
166
+ md += `\`\`\`\n\n`;
167
+ md += `### 创建新任务\n`;
168
+ md += `在 Claude Code 中:\n`;
169
+ md += `\`\`\`\n`;
170
+ md += `创建一个新任务:实现用户登录功能\n`;
171
+ md += `\`\`\`\n\n`;
172
+ md += `AI 会自动在 \`active/\` 目录创建对应的任务文件。\n\n`;
173
+ md += `### 更新任务状态\n`;
174
+ md += `\`\`\`\n`;
175
+ md += `将 [任务名] 标记为完成\n`;
176
+ md += `\`\`\`\n\n`;
177
+ md += `AI 会自动将任务移动到 \`completed/\` 目录。\n\n`;
178
+
179
+ md += `---\n\n`;
180
+ md += `> **维护说明**: 本系统由 AI 自动维护,请勿手动编辑(除非你知道自己在做什么)\n`;
181
+
182
+ return md;
183
+ }
184
+
185
+ // 更新索引
186
+ function updateIndex() {
187
+ try {
188
+ ensureDirectories();
189
+ const tasks = scanTasks();
190
+ const index = generateIndex(tasks);
191
+
192
+ // 检查是否需要更新 - 比较任务总数
193
+ let needsUpdate = true;
194
+ if (fs.existsSync(INDEX_FILE)) {
195
+ const existing = fs.readFileSync(INDEX_FILE, 'utf-8');
196
+ // 从现有索引中提取任务数量
197
+ const activeMatch = existing.match(/## 🚧 进行中的任务 \((\d+)\)/);
198
+ const completedMatch = existing.match(/## ✅ 最近完成的任务/);
199
+ const existingActive = activeMatch ? parseInt(activeMatch[1], 10) : 0;
200
+ const newActive = tasks.active.length;
201
+
202
+ // 如果活跃任务数量相同且没有完成任务内容变化,则不更新
203
+ if (existingActive === newActive && tasks.completed.length === 0) {
204
+ // 检查现有索引是否已有完成任务
205
+ const hasCompletedInExisting = existing.includes('[completed/') || existing.includes('./completed/');
206
+ const hasCompletedNow = tasks.completed.length > 0;
207
+ needsUpdate = hasCompletedInExisting !== hasCompletedNow;
208
+ }
209
+ }
210
+
211
+ if (needsUpdate) {
212
+ fs.writeFileSync(INDEX_FILE, index);
213
+ }
214
+
215
+ return { tasks, updated: needsUpdate };
216
+ } catch (e) {
217
+ return { tasks: { active: [], completed: [], backlog: [], archived: [] }, updated: false };
218
+ }
219
+ }
220
+
221
+ // 主函数
222
+ function main() {
223
+ const result = updateIndex();
224
+
225
+ // 在 AgentStop 或特定事件时输出摘要
226
+ const eventType = process.env.CLAUDE_EVENT_TYPE || '';
227
+ if (eventType === 'AgentStop') {
228
+ const { active, completed } = result.tasks;
229
+ if (active.length > 0) {
230
+ console.log(`\n📋 [任务追踪] ${active.length} 个进行中, ${completed.length} 个已完成`);
231
+ console.log(` 查看: development/todos/INDEX.md\n`);
232
+ }
233
+ }
234
+
235
+ process.exit(0);
236
+ }
237
+
238
+ // 如果直接运行,强制更新索引
239
+ if (require.main === module) {
240
+ if (process.argv[2] === '--force') {
241
+ updateIndex();
242
+ console.log('✅ Task index updated');
243
+ } else {
244
+ main();
245
+ }
246
+ } else {
247
+ main();
248
+ }
@@ -0,0 +1,134 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Verify Work Hook - 验证反馈循环
4
+ *
5
+ * 根据 Boris Cherny 的最佳实践,这是获得高质量结果的关键。
6
+ * 在重要任务完成后自动触发验证流程,能让最终质量提升 2-3 倍。
7
+ *
8
+ * 触发时机:
9
+ * - AgentStop 事件(会话结束时)
10
+ * - 检测到关键操作完成(如 commit、push 等)
11
+ */
12
+
13
+ const fs = require('fs');
14
+ const path = require('path');
15
+
16
+ const PROJECT_DIR = process.env.CLAUDE_PROJECT_DIR || process.cwd();
17
+ const VERIFY_DIR = path.join(PROJECT_DIR, '.claude/verify');
18
+ const VERIFY_PENDING_FILE = path.join(VERIFY_DIR, '.pending-verify.json');
19
+ const VERIFY_LOG_FILE = path.join(VERIFY_DIR, 'verify-log.md');
20
+
21
+ // 确保目录存在
22
+ try { fs.mkdirSync(VERIFY_DIR, { recursive: true }); } catch (e) {}
23
+
24
+ // 检测是否需要验证
25
+ function shouldVerify(toolName, toolInput) {
26
+ // 在这些操作后建议验证
27
+ const verifyAfterOps = [
28
+ 'git commit',
29
+ 'git push',
30
+ 'deploy',
31
+ 'build',
32
+ 'test',
33
+ 'release'
34
+ ];
35
+
36
+ const lowerInput = toolInput.toLowerCase();
37
+ return verifyAfterOps.some(op => lowerInput.includes(op));
38
+ }
39
+
40
+ // 获取待验证任务
41
+ function getPendingVerifies() {
42
+ if (!fs.existsSync(VERIFY_PENDING_FILE)) {
43
+ return [];
44
+ }
45
+ try {
46
+ return JSON.parse(fs.readFileSync(VERIFY_PENDING_FILE, 'utf-8'));
47
+ } catch (e) {
48
+ return [];
49
+ }
50
+ }
51
+
52
+ // 保存待验证任务
53
+ function savePendingVerifies(tasks) {
54
+ fs.writeFileSync(VERIFY_PENDING_FILE, JSON.stringify(tasks, null, 2));
55
+ }
56
+
57
+ // 添加验证提示到输出
58
+ function addVerifyHint(toolInput) {
59
+ const hints = {
60
+ 'git commit': '建议运行测试套件验证更改是否破坏现有功能',
61
+ 'git push': '建议在 CI/CD 中确认所有检查通过',
62
+ 'deploy': '建议在预发布环境验证关键用户流程',
63
+ 'build': '建议运行构建产物检查是否有警告',
64
+ 'test': '建议检查测试覆盖率是否满足要求',
65
+ 'release': '建议进行完整的回归测试'
66
+ };
67
+
68
+ for (const [key, hint] of Object.entries(hints)) {
69
+ if (toolInput.toLowerCase().includes(key)) {
70
+ return hint;
71
+ }
72
+ }
73
+ return '建议验证核心功能是否正常工作';
74
+ }
75
+
76
+ // 记录验证日志
77
+ function logVerify(action, hint) {
78
+ const timestamp = new Date().toISOString();
79
+ const logEntry = `\n## ${timestamp}\n**操作**: ${action}\n**验证建议**: ${hint}\n`;
80
+
81
+ if (!fs.existsSync(VERIFY_LOG_FILE)) {
82
+ fs.writeFileSync(VERIFY_LOG_FILE, `# 验证日志\n\n此文件记录所有建议验证的操作。\n${logEntry}`);
83
+ } else {
84
+ fs.appendFileSync(VERIFY_LOG_FILE, logEntry);
85
+ }
86
+ }
87
+
88
+ // 主函数
89
+ function main() {
90
+ try {
91
+ const toolName = process.env.CLAUDE_TOOL_NAME || '';
92
+ const toolInput = process.env.CLAUDE_TOOL_INPUT || '';
93
+ const eventType = process.env.CLAUDE_EVENT_TYPE || '';
94
+
95
+ // 检查是否需要验证
96
+ if (shouldVerify(toolName, toolInput)) {
97
+ const hint = addVerifyHint(toolInput);
98
+
99
+ // 保存到待验证列表
100
+ const pending = getPendingVerifies();
101
+ pending.push({
102
+ time: new Date().toISOString(),
103
+ action: toolName + ': ' + toolInput.slice(0, 100),
104
+ hint
105
+ });
106
+ savePendingVerifies(pending);
107
+
108
+ // 记录到日志
109
+ logVerify(toolName, hint);
110
+
111
+ // 输出验证提示(仅在非 PostToolUse 事件,避免重复)
112
+ if (eventType !== 'PostToolUse') {
113
+ console.log(`\n🔍 [验证提醒] ${hint}`);
114
+ console.log(`使用 /verify-work 查看待验证任务列表\n`);
115
+ }
116
+ }
117
+
118
+ // AgentStop 时显示待验证任务摘要
119
+ if (eventType === 'AgentStop') {
120
+ const pending = getPendingVerifies();
121
+ if (pending.length > 0) {
122
+ console.log(`\n🔍 [待验证任务] 还有 ${pending.length} 个任务待验证`);
123
+ console.log(`使用 /verify-work 查看详情并标记完成\n`);
124
+ }
125
+ }
126
+
127
+ } catch (e) {
128
+ // 静默处理错误
129
+ }
130
+
131
+ process.exit(0);
132
+ }
133
+
134
+ main();
@@ -0,0 +1,135 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "last_updated": "2026-01-11",
4
+ "skills": [
5
+ {
6
+ "name": "frontend-design",
7
+ "keywords": ["frontend", "ui", "react", "vue", "svelte", "design", "interface", "component", "web", "styling", "tailwind", "css"],
8
+ "description": "Create distinctive, production-grade frontend interfaces with high design quality",
9
+ "trigger": "when user asks to build web components, pages, artifacts, posters, or applications"
10
+ },
11
+ {
12
+ "name": "docx",
13
+ "keywords": ["docx", "word", "document", "office", "microsoft", "doc", "editing", "tracked changes", "comments"],
14
+ "description": "Comprehensive document creation, editing, and analysis with support for tracked changes and comments",
15
+ "trigger": "when working with .docx files for creating, editing, or analyzing documents"
16
+ },
17
+ {
18
+ "name": "pdf",
19
+ "keywords": ["pdf", "form", "fill", "extract", "merge", "split", "acrobat", "fillable"],
20
+ "description": "Comprehensive PDF manipulation toolkit for extracting text, creating new PDFs, and handling forms",
21
+ "trigger": "when working with PDF forms, extraction, or programmatic processing"
22
+ },
23
+ {
24
+ "name": "pptx",
25
+ "keywords": ["pptx", "powerpoint", "slide", "presentation", "deck", "microsoft", "office"],
26
+ "description": "Presentation creation, editing, and analysis with layout support",
27
+ "trigger": "when working with presentations (.pptx files)"
28
+ },
29
+ {
30
+ "name": "xlsx",
31
+ "keywords": ["xlsx", "excel", "spreadsheet", "csv", "tsv", "formula", "chart", "data analysis"],
32
+ "description": "Comprehensive spreadsheet creation, editing, and analysis with formula support",
33
+ "trigger": "when working with spreadsheets for reading, analyzing, or creating data"
34
+ },
35
+ {
36
+ "name": "canvas-design",
37
+ "keywords": ["art", "design", "canvas", "poster", "visual", "creative", "generative", "algorithmic"],
38
+ "description": "Create beautiful visual art in .png and .pdf documents using design philosophy",
39
+ "trigger": "when user asks to create a poster, piece of art, design, or other static visual piece"
40
+ },
41
+ {
42
+ "name": "mcp-builder",
43
+ "keywords": ["mcp", "api", "server", "integration", "tool", "model context protocol", "external service"],
44
+ "description": "Guide for creating high-quality MCP servers that enable LLMs to interact with external services",
45
+ "trigger": "when building MCP servers to integrate external APIs or services"
46
+ },
47
+ {
48
+ "name": "webapp-testing",
49
+ "keywords": ["test", "testing", "playwright", "browser", "automation", "e2e", "screenshot"],
50
+ "description": "Toolkit for interacting with and testing local web applications using Playwright",
51
+ "trigger": "when testing frontend functionality, debugging UI behavior, or capturing browser screenshots"
52
+ },
53
+ {
54
+ "name": "orchestration",
55
+ "keywords": ["agent", "multi-agent", "workflow", "coordination", "parallel", "distributed"],
56
+ "description": "Multi-agent orchestration with cc-mirror tasks and domain-specific workflows",
57
+ "trigger": "when coordinating multiple agents or workflows for complex tasks"
58
+ },
59
+ {
60
+ "name": "algorithmic-art",
61
+ "keywords": ["p5.js", "generative", "algorithmic", "art", "creative", "random", "flow field", "particle"],
62
+ "description": "Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration",
63
+ "trigger": "when user requests creating art using code, generative art, or algorithmic art"
64
+ },
65
+ {
66
+ "name": "slack-gif-creator",
67
+ "keywords": ["gif", "slack", "animated", "animation", "meme", "visual"],
68
+ "description": "Knowledge and utilities for creating animated GIFs optimized for Slack",
69
+ "trigger": "when user requests animated GIFs for Slack"
70
+ },
71
+ {
72
+ "name": "theme-factory",
73
+ "keywords": ["theme", "style", "color", "typography", "branding", "design system"],
74
+ "description": "Toolkit for styling artifacts with a theme - 10 pre-set themes with colors/fonts",
75
+ "trigger": "when applying consistent theming to documents, slides, or web pages"
76
+ },
77
+ {
78
+ "name": "skill-creator",
79
+ "keywords": ["skill", "create skill", "custom skill", "extend", "workflow"],
80
+ "description": "Guide for creating effective skills that extend Claude's capabilities",
81
+ "trigger": "when user wants to create a new skill or update an existing skill"
82
+ },
83
+ {
84
+ "name": "doc-coauthoring",
85
+ "keywords": ["documentation", "doc", "proposal", "spec", "technical spec", "decision doc", "writing"],
86
+ "description": "Guide users through structured workflow for co-authoring documentation",
87
+ "trigger": "when user wants to write documentation, proposals, technical specs, or decision docs"
88
+ },
89
+ {
90
+ "name": "brand-guidelines",
91
+ "keywords": ["brand", "anthropic", "color", "typography", "style", "guidelines"],
92
+ "description": "Applies Anthropic's official brand colors and typography to artifacts",
93
+ "trigger": "when brand colors or style guidelines apply to the artifact"
94
+ },
95
+ {
96
+ "name": "internal-comms",
97
+ "keywords": ["internal", "communication", "status report", "newsletter", "faq", "company", "update"],
98
+ "description": "Resources for writing internal communications in company-preferred formats",
99
+ "trigger": "when asked to write internal communications like status reports or newsletters"
100
+ },
101
+ {
102
+ "name": "web-artifacts-builder",
103
+ "keywords": ["artifact", "html", "react", "complex", "state", "routing", "shadcn"],
104
+ "description": "Tools for creating elaborate, multi-component HTML artifacts using modern frontend web technologies",
105
+ "trigger": "for complex artifacts requiring state management, routing, or shadcn/ui components"
106
+ },
107
+ {
108
+ "name": "dev-browser",
109
+ "keywords": ["browser", "scraping", "automation", "puppet", "playwright", "web"],
110
+ "description": "Browser automation with persistent state for testing and scraping",
111
+ "trigger": "when needing browser automation or web scraping capabilities"
112
+ },
113
+ {
114
+ "name": "zai-cli",
115
+ "keywords": ["z.ai", "vision", "search", "github", "exploration", "analysis"],
116
+ "description": "Z.AI vision, search, and GitHub exploration CLI tools",
117
+ "trigger": "when needing vision analysis, web search, or GitHub repository exploration"
118
+ },
119
+ {
120
+ "name": "gastown",
121
+ "keywords": ["gastown", "multi-agent", "orchestrator", "coordination"],
122
+ "description": "Multi-agent orchestrator for complex task coordination",
123
+ "trigger": "when orchestrating multiple agents for complex workflows"
124
+ }
125
+ ],
126
+ "auto_load": {
127
+ "enabled": true,
128
+ "confidence_threshold": 0.7,
129
+ "max_skills_per_task": 3
130
+ },
131
+ "fallback": {
132
+ "enabled": true,
133
+ "skill": "frontend-design"
134
+ }
135
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "matcher": "UserPromptSubmit|PreToolUse|PostToolUse|AgentStop",
3
+ "hooks": [
4
+ {
5
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/project-kickoff.cjs",
6
+ "timeout": 1
7
+ },
8
+ {
9
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/thinking-silent.cjs",
10
+ "timeout": 1
11
+ },
12
+ {
13
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/rag-skill-loader.cjs",
14
+ "timeout": 1
15
+ },
16
+ {
17
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/code-formatter.cjs",
18
+ "timeout": 5
19
+ },
20
+ {
21
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/verify-work.cjs",
22
+ "timeout": 1
23
+ },
24
+ {
25
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/multi-session.cjs",
26
+ "timeout": 1
27
+ },
28
+ {
29
+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/todo-manager.cjs",
30
+ "timeout": 1
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,145 @@
1
+ # 技能索引 (Skills Index)
2
+
3
+ > Oh My Claude 技能库总览
4
+
5
+ @version: 1.0.0
6
+
7
+ ## 目录
8
+
9
+ - [内置技能](#内置技能)
10
+ - [示例技能](#示例技能)
11
+ - [技能模板](#技能模板)
12
+ - [创建新技能](#创建新技能)
13
+
14
+ ---
15
+
16
+ ## 内置技能
17
+
18
+ ### 工作流类
19
+
20
+ | 技能 | 说明 | 难度 |
21
+ |------|------|------|
22
+ | [manus-kickoff](./manus-kickoff/) | Manus 风格项目启动流程 | 中级 |
23
+
24
+ ### 开发类
25
+
26
+ *(待补充)*
27
+
28
+ ### 设计类
29
+
30
+ *(待补充)*
31
+
32
+ ---
33
+
34
+ ## 示例技能
35
+
36
+ | 技能 | 说明 | 难度 |
37
+ |------|------|------|
38
+ | [basic-task](./examples/basic-task.md) | 基础任务处理模板 | 初级 |
39
+ | [feature-development](./examples/feature-development.md) | 功能开发工作流 | 中级 |
40
+ | [bug-fix-workflow](./examples/bug-fix-workflow.md) | Bug 修复流程 | 中级 |
41
+
42
+ ---
43
+
44
+ ## 技能模板
45
+
46
+ ### 标准技能结构
47
+
48
+ ```
49
+ skill-name/
50
+ ├── SKILL.md # 技能定义(必需)
51
+ ├── metadata.yaml # 技能元数据(必需)
52
+ ├── templates/ # 模板文件(可选)
53
+ │ └── default.md
54
+ └── examples/ # 示例文件(可选)
55
+ └── basic.md
56
+ ```
57
+
58
+ ### SKILL.md 模板
59
+
60
+ 参考 [template/SKILL.md](./template/SKILL.md)
61
+
62
+ ### metadata.yaml 模板
63
+
64
+ ```yaml
65
+ name: skill-name
66
+ version: 1.0.0
67
+ author: @username
68
+ description: 技能描述
69
+
70
+ tags:
71
+ - category1
72
+ - category2
73
+
74
+ triggers:
75
+ - keyword1
76
+ - keyword2
77
+
78
+ dependencies: [] # 依赖的其他技能
79
+
80
+ difficulty: beginner # beginner | intermediate | advanced
81
+ ```
82
+
83
+ ---
84
+
85
+ ## 创建新技能
86
+
87
+ ### 使用 CLI 命令
88
+
89
+ ```bash
90
+ oh-my-claude skill:create my-skill
91
+ ```
92
+
93
+ ### 手动创建
94
+
95
+ 1. 复制模板:
96
+ ```bash
97
+ cp -r .claude/skills/template .claude/skills/my-skill
98
+ ```
99
+
100
+ 2. 编辑 SKILL.md
101
+
102
+ 3. 更新 metadata.yaml
103
+
104
+ 4. 更新本索引
105
+
106
+ ---
107
+
108
+ ## 技能依赖管理
109
+
110
+ ### 定义依赖
111
+
112
+ 在 metadata.yaml 中声明:
113
+
114
+ ```yaml
115
+ dependencies:
116
+ - manus-kickoff
117
+ - code-review
118
+ ```
119
+
120
+ ### 依赖解析
121
+
122
+ 当使用技能时,系统会:
123
+ 1. 检查依赖是否已安装
124
+ 2. 按顺序加载依赖技能
125
+ 3. 提示缺失的依赖
126
+
127
+ ### 循环依赖检测
128
+
129
+ 系统会自动检测并警告循环依赖。
130
+
131
+ ---
132
+
133
+ ## RAG 集成
134
+
135
+ 技能会自动注册到 RAG 索引中 (`.claude/rag/skill-index.json`),实现智能发现。
136
+
137
+ ---
138
+
139
+ ## 更新日志
140
+
141
+ ### 1.0.0 (2026-01-11)
142
+ - 初始版本
143
+ - 添加 Manus Kickoff 技能
144
+ - 添加 3 个示例技能
145
+ - 添加技能模板