foliko 1.0.74 → 1.0.76
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.
- package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
- package/.agent/ARCHITECTURE.md +288 -0
- package/.agent/agents/ambient-agent.md +57 -0
- package/.agent/agents/debugger.md +55 -0
- package/.agent/agents/email-assistant.md +49 -0
- package/.agent/agents/file-manager.md +42 -0
- package/.agent/agents/python-developer.md +60 -0
- package/.agent/agents/scheduler.md +59 -0
- package/.agent/agents/web-developer.md +45 -0
- package/.agent/data/default.json +29 -0
- package/.agent/data/plugins-state.json +255 -0
- package/.agent/mcp_config.json +4 -0
- package/.agent/mcp_config_updated.json +12 -0
- package/.agent/plugins.json +5 -0
- package/.agent/rules/GEMINI.md +273 -0
- package/.agent/rules/allow-rule.md +77 -0
- package/.agent/rules/log-rule.md +83 -0
- package/.agent/rules/security-rule.md +93 -0
- package/.agent/scripts/auto_preview.py +148 -0
- package/.agent/scripts/checklist.py +217 -0
- package/.agent/scripts/session_manager.py +120 -0
- package/.agent/scripts/verify_all.py +327 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/frontend-design/SKILL.md +418 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +81 -0
- package/.agent/workflows/simple-test.md +42 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/structured-orchestrate.md +180 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/.claude/settings.local.json +11 -1
- package/.editorconfig +56 -0
- package/.husky/pre-commit +4 -0
- package/.lintstagedrc +7 -0
- package/.prettierignore +29 -0
- package/.prettierrc +11 -0
- package/CLAUDE.md +2 -0
- package/README.md +64 -55
- package/SPEC.md +102 -61
- package/cli/bin/foliko.js +11 -11
- package/cli/src/commands/chat.js +143 -141
- package/cli/src/commands/list.js +93 -90
- package/cli/src/index.js +75 -75
- package/cli/src/ui/chat-ui.js +201 -199
- package/cli/src/utils/ansi.js +40 -40
- package/cli/src/utils/markdown.js +292 -296
- package/docker-compose.yml +1 -1
- package/docs/ai-sdk-optimization.md +655 -643
- package/docs/features.md +80 -80
- package/docs/quick-reference.md +49 -46
- package/docs/user-manual.md +411 -380
- package/examples/ambient-example.js +194 -196
- package/examples/basic.js +50 -45
- package/examples/bootstrap.js +121 -112
- package/examples/mcp-example.js +19 -16
- package/examples/skill-example.js +20 -20
- package/examples/test-chat.js +137 -135
- package/examples/test-mcp.js +85 -79
- package/examples/test-reload.js +59 -61
- package/examples/test-telegram.js +50 -50
- package/examples/test-tg-bot.js +45 -42
- package/examples/test-tg-simple.js +47 -46
- package/examples/test-tg.js +62 -62
- package/examples/test-think.js +43 -37
- package/examples/test-web-plugin.js +103 -98
- package/examples/test-weixin-feishu.js +103 -100
- package/examples/workflow.js +158 -158
- package/package.json +37 -3
- package/plugins/ai-plugin.js +102 -100
- package/plugins/ambient-agent/EventWatcher.js +113 -0
- package/plugins/ambient-agent/ExplorerLoop.js +640 -0
- package/plugins/ambient-agent/GoalManager.js +197 -0
- package/plugins/ambient-agent/Reflector.js +95 -0
- package/plugins/ambient-agent/StateStore.js +90 -0
- package/plugins/ambient-agent/constants.js +101 -0
- package/plugins/ambient-agent/index.js +579 -0
- package/plugins/audit-plugin.js +187 -187
- package/plugins/default-plugins.js +662 -649
- package/plugins/email/constants.js +64 -0
- package/plugins/email/handlers.js +461 -0
- package/plugins/email/index.js +278 -0
- package/plugins/email/monitor.js +269 -0
- package/plugins/email/parser.js +138 -0
- package/plugins/email/reply.js +151 -0
- package/plugins/email/utils.js +124 -0
- package/plugins/feishu-plugin.js +481 -477
- package/plugins/file-system-plugin.js +826 -476
- package/plugins/install-plugin.js +199 -197
- package/plugins/python-executor-plugin.js +367 -365
- package/plugins/python-plugin-loader.js +481 -479
- package/plugins/rules-plugin.js +294 -292
- package/plugins/scheduler-plugin.js +691 -689
- package/plugins/session-plugin.js +369 -367
- package/plugins/shell-executor-plugin.js +197 -197
- package/plugins/storage-plugin.js +240 -238
- package/plugins/subagent-plugin.js +845 -785
- package/plugins/telegram-plugin.js +482 -475
- package/plugins/think-plugin.js +345 -343
- package/plugins/tools-plugin.js +196 -194
- package/plugins/web-plugin.js +606 -604
- package/plugins/weixin-plugin.js +545 -538
- package/reports/system-health-report-20260401.md +79 -0
- package/skills/ambient-agent/SKILL.md +49 -39
- package/skills/foliko-dev/AGENTS.md +64 -61
- package/skills/foliko-dev/SKILL.md +125 -119
- package/skills/mcp-usage/SKILL.md +19 -17
- package/skills/python-plugin-dev/SKILL.md +16 -15
- package/skills/skill-guide/SKILL.md +12 -12
- package/skills/subagent-guide/SKILL.md +237 -0
- package/skills/workflow-guide/SKILL.md +90 -45
- package/skills/workflow-troubleshooting/DEBUGGING.md +36 -21
- package/skills/workflow-troubleshooting/SKILL.md +156 -79
- package/src/capabilities/index.js +11 -11
- package/src/capabilities/skill-manager.js +609 -595
- package/src/capabilities/workflow-engine.js +1109 -1195
- package/src/core/agent-chat.js +882 -735
- package/src/core/agent.js +892 -688
- package/src/core/framework.js +465 -431
- package/src/core/index.js +19 -19
- package/src/core/plugin-base.js +219 -219
- package/src/core/plugin-manager.js +863 -767
- package/src/core/provider.js +114 -111
- package/src/core/sub-agent-config.js +264 -0
- package/src/core/system-prompt-builder.js +120 -0
- package/src/core/tool-registry.js +517 -134
- package/src/core/tool-router.js +297 -216
- package/src/executors/executor-base.js +12 -12
- package/src/executors/mcp-executor.js +741 -729
- package/src/index.js +25 -37
- package/src/utils/circuit-breaker.js +301 -0
- package/src/utils/error-boundary.js +363 -0
- package/src/utils/error.js +374 -0
- package/src/utils/event-emitter.js +97 -97
- package/src/utils/id.js +133 -0
- package/src/utils/index.js +217 -3
- package/src/utils/logger.js +181 -0
- package/src/utils/plugin-helpers.js +90 -0
- package/src/utils/retry.js +122 -0
- package/src/utils/sandbox.js +292 -0
- package/test/tool-registry-validation.test.js +218 -0
- package/test_report.md +70 -0
- package/website/docs/api.html +169 -107
- package/website/docs/configuration.html +296 -144
- package/website/docs/plugin-development.html +154 -85
- package/website/docs/project-structure.html +110 -109
- package/website/docs/skill-development.html +117 -61
- package/website/index.html +209 -205
- package/website/script.js +136 -133
- package/website/styles.css +1 -1
- package/plugins/ambient-agent-plugin.js +0 -1565
- package/plugins/email.js +0 -1142
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scheduler
|
|
3
|
+
description: 定时任务管理专家。用于设置提醒、定时任务、Cron表达式、任务调度等任务。触发关键词:定时、提醒、调度、任务、计划、Cron。
|
|
4
|
+
tools: schedule_task, schedule_list, schedule_cancel, cron_examples
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 定时任务管理专家
|
|
9
|
+
|
|
10
|
+
你是一个专业的定时任务管理专家,擅长设置和管理各种定时任务。
|
|
11
|
+
|
|
12
|
+
## 核心能力
|
|
13
|
+
|
|
14
|
+
1. **定时提醒**:设置一次性或重复的提醒
|
|
15
|
+
2. **Cron任务**:使用Cron表达式创建复杂调度
|
|
16
|
+
3. **任务管理**:列出、取消、管理定时任务
|
|
17
|
+
4. **时间查询**:获取常用Cron表达式示例
|
|
18
|
+
|
|
19
|
+
## 工具使用
|
|
20
|
+
|
|
21
|
+
### 任务管理
|
|
22
|
+
- `schedule_task`: 创建定时任务,支持多种时间格式
|
|
23
|
+
- `schedule_list`: 列出所有定时任务
|
|
24
|
+
- `schedule_cancel`: 取消指定的定时任务
|
|
25
|
+
|
|
26
|
+
### 辅助功能
|
|
27
|
+
- `cron_examples`: 获取常用Cron表达式示例
|
|
28
|
+
|
|
29
|
+
## 时间格式支持
|
|
30
|
+
|
|
31
|
+
### 相对时间
|
|
32
|
+
- `"1 minute"` - 1分钟后
|
|
33
|
+
- `"2 hours"` - 2小时后
|
|
34
|
+
- `"1 day"` - 1天后
|
|
35
|
+
|
|
36
|
+
### 具体时间
|
|
37
|
+
- `"12:00"` - 今天12:00
|
|
38
|
+
- `"14:30"` - 今天14:30
|
|
39
|
+
|
|
40
|
+
### Cron表达式
|
|
41
|
+
- `"* * * * *"` - 每分钟
|
|
42
|
+
- `"*/5 * * * *"` - 每5分钟
|
|
43
|
+
- `"0 * * * *"` - 每小时
|
|
44
|
+
- `"0 0 * * *"` - 每天午夜
|
|
45
|
+
|
|
46
|
+
## 参数说明
|
|
47
|
+
|
|
48
|
+
- `name`: 任务名称(可选)
|
|
49
|
+
- `message`: 提醒消息内容
|
|
50
|
+
- `repeat`: 是否重复执行(默认false)
|
|
51
|
+
- `cronExpression`: Cron表达式(repeat为true时使用)
|
|
52
|
+
- `llm`: 是否需要LLM处理(自动检测)
|
|
53
|
+
|
|
54
|
+
## 最佳实践
|
|
55
|
+
|
|
56
|
+
1. 清晰描述提醒内容
|
|
57
|
+
2. 合理设置重复周期
|
|
58
|
+
3. 使用有意义的任务名称
|
|
59
|
+
4. 记得保存任务ID以便取消
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: web-developer
|
|
3
|
+
description: Web开发专家。用于HTTP请求、Web服务、API调用、网页数据抓取等任务。触发关键词:HTTP、API、请求、Web、网页、抓取、网络。
|
|
4
|
+
tools: fetch, web_request, web_start, web_stop, web_register_route, web_register_webhook, web_register_static, web_list_routes
|
|
5
|
+
skills: api-patterns
|
|
6
|
+
model: inherit
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Web开发专家
|
|
10
|
+
|
|
11
|
+
你是一个专业的Web开发专家,擅长处理HTTP请求、API开发和Web服务相关任务。
|
|
12
|
+
|
|
13
|
+
## 核心能力
|
|
14
|
+
|
|
15
|
+
1. **HTTP请求**:GET/POST/PUT/DELETE等各类请求
|
|
16
|
+
2. **API开发**:RESTful API设计、Webhook开发
|
|
17
|
+
3. **数据抓取**:网页内容获取、API数据采集
|
|
18
|
+
4. **Web服务**:启动服务、注册路由、处理请求
|
|
19
|
+
|
|
20
|
+
## 工具使用
|
|
21
|
+
|
|
22
|
+
### HTTP请求
|
|
23
|
+
- `fetch`: 获取远程数据,支持代理重试
|
|
24
|
+
- `web_request`: 发送HTTP请求到指定路径
|
|
25
|
+
|
|
26
|
+
### Web服务
|
|
27
|
+
- `web_start`: 启动Web服务(默认端口3000)
|
|
28
|
+
- `web_register_route`: 注册HTTP路由处理函数
|
|
29
|
+
- `web_register_webhook`: 注册Webhook接收外部请求
|
|
30
|
+
- `web_register_static`: 注册静态资源文件夹
|
|
31
|
+
- `web_list_routes`: 列出所有已注册路由
|
|
32
|
+
|
|
33
|
+
## 工作流程
|
|
34
|
+
|
|
35
|
+
1. **分析需求**:确定是客户端请求还是服务端开发
|
|
36
|
+
2. **选择工具**:根据任务选择合适的HTTP工具
|
|
37
|
+
3. **处理响应**:解析返回数据,处理错误
|
|
38
|
+
4. **结果返回**:提供清晰的执行结果
|
|
39
|
+
|
|
40
|
+
## 最佳实践
|
|
41
|
+
|
|
42
|
+
1. 请求失败时自动使用代理重试
|
|
43
|
+
2. 设置合理的超时时间
|
|
44
|
+
3. 正确处理JSON响应格式
|
|
45
|
+
4. Webhook提示词要描述清楚数据处理逻辑
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default:email_config": {
|
|
3
|
+
"value": {
|
|
4
|
+
"smtp_host": "smtp.163.com",
|
|
5
|
+
"smtp_port": 465,
|
|
6
|
+
"smtp_secure": true,
|
|
7
|
+
"smtp_user": "chnak@163.com",
|
|
8
|
+
"smtp_pass": "YZj27T7dudR6aCUP",
|
|
9
|
+
"imap_host": "imap.163.com",
|
|
10
|
+
"imap_port": 993,
|
|
11
|
+
"imap_user": "chnak@163.com",
|
|
12
|
+
"imap_pass": "YZj27T7dudR6aCUP",
|
|
13
|
+
"from_email": "chnak@163.com"
|
|
14
|
+
},
|
|
15
|
+
"updatedAt": "2026-03-23T10:51:31.727Z"
|
|
16
|
+
},
|
|
17
|
+
"default:email_auto_reply": {
|
|
18
|
+
"value": "{\"enabled\": true, \"interval\": 30, \"smart_reply\": true, \"notify_system\": true, \"last_check\": \"2026-03-27T06:41:24Z\", \"last_unread_count\": 5}",
|
|
19
|
+
"updatedAt": "2026-03-27T06:42:14.904Z"
|
|
20
|
+
},
|
|
21
|
+
"default:pending_replies": {
|
|
22
|
+
"value": "[{\"uid\": 54, \"subject\": \"Re: 测试\", \"from\": \"he cheng <chnak@yandex.ru>\", \"to\": \"chnak@foliko.com\", \"date\": \"2026-03-28T03:35:37.000Z\", \"original_content\": \"续保\", \"draft\": \"收到!关于续保的事,请把具体信息发给我,比如是什么类型的保险、什么时候到期,我好帮你查一下。\", \"generated_at\": \"2026-03-28T03:38:00.000Z\"}]",
|
|
23
|
+
"updatedAt": "2026-03-28T03:37:37.693Z"
|
|
24
|
+
},
|
|
25
|
+
"default:pending_reply_56": {
|
|
26
|
+
"value": "{\"uid\":56,\"from\":\"he cheng <chnak@yandex.ru>\",\"subject\":\"Re: 测试\",\"originalContent\":\"十分士大夫\",\"replyDraft\":\"收到,老表!看起来像是测试邮件,通讯正常。有什么其他需要帮助的随时说。\",\"createdAt\":\"2026-03-28T03:42:22.000Z\"}",
|
|
27
|
+
"updatedAt": "2026-03-28T03:45:07.814Z"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaults": {
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"config": {}
|
|
5
|
+
},
|
|
6
|
+
"install": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"config": {}
|
|
9
|
+
},
|
|
10
|
+
"ai": {
|
|
11
|
+
"enabled": true
|
|
12
|
+
},
|
|
13
|
+
"storage": {
|
|
14
|
+
"enabled": true,
|
|
15
|
+
"config": {
|
|
16
|
+
"type": "json",
|
|
17
|
+
"path": ".agent/data",
|
|
18
|
+
"namespace": "default"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"tools": {
|
|
22
|
+
"enabled": true,
|
|
23
|
+
"config": {}
|
|
24
|
+
},
|
|
25
|
+
"workflow": {
|
|
26
|
+
"enabled": true,
|
|
27
|
+
"config": {}
|
|
28
|
+
},
|
|
29
|
+
"skill-manager": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"config": {}
|
|
32
|
+
},
|
|
33
|
+
"mcp-executor": {
|
|
34
|
+
"enabled": true,
|
|
35
|
+
"config": {}
|
|
36
|
+
},
|
|
37
|
+
"shell-executor": {
|
|
38
|
+
"enabled": true,
|
|
39
|
+
"config": {
|
|
40
|
+
"timeout": 60000,
|
|
41
|
+
"workingDir": "D:\\code\\vb-agent"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"python-executor": {
|
|
45
|
+
"enabled": true,
|
|
46
|
+
"config": {
|
|
47
|
+
"pythonPath": "python",
|
|
48
|
+
"timeout": 120000,
|
|
49
|
+
"baseDir": ".agent/python-scripts",
|
|
50
|
+
"pipPath": null
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"session": {
|
|
54
|
+
"enabled": true,
|
|
55
|
+
"config": {
|
|
56
|
+
"sessionTTL": 1800000,
|
|
57
|
+
"maxSessions": 100,
|
|
58
|
+
"maxHistoryLength": 150,
|
|
59
|
+
"autoCleanup": true,
|
|
60
|
+
"cleanupInterval": 300000
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"audit": {
|
|
64
|
+
"enabled": true,
|
|
65
|
+
"config": {
|
|
66
|
+
"maxLogs": 1000,
|
|
67
|
+
"retentionDays": 30,
|
|
68
|
+
"logDir": ".agent/logs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"rules": {
|
|
72
|
+
"enabled": true,
|
|
73
|
+
"config": {
|
|
74
|
+
"rulesDir": ".agent/rules",
|
|
75
|
+
"autoLoad": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"scheduler": {
|
|
79
|
+
"enabled": true,
|
|
80
|
+
"config": {
|
|
81
|
+
"checkInterval": 1000,
|
|
82
|
+
"persistencePath": ".agent/data/scheduler"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"file-system": {
|
|
86
|
+
"enabled": true,
|
|
87
|
+
"config": {}
|
|
88
|
+
},
|
|
89
|
+
"think": {
|
|
90
|
+
"enabled": true,
|
|
91
|
+
"config": {
|
|
92
|
+
"autoReflect": false,
|
|
93
|
+
"reflectDelay": 2000,
|
|
94
|
+
"maxReflectDepth": 3,
|
|
95
|
+
"enableContinuous": false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"python-plugin-loader": {
|
|
99
|
+
"enabled": true,
|
|
100
|
+
"config": {}
|
|
101
|
+
},
|
|
102
|
+
"telegram": {
|
|
103
|
+
"enabled": false,
|
|
104
|
+
"config": {
|
|
105
|
+
"botToken": "1980700161:AAHQQxKRAyg6-MuOTZDIj7x9WjEdIaGhK5I",
|
|
106
|
+
"allowedChats": [],
|
|
107
|
+
"groupMode": false,
|
|
108
|
+
"prefix": "/",
|
|
109
|
+
"systemPrompt": "你是一个有帮助的AI助手。"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"weixin": {
|
|
113
|
+
"enabled": false,
|
|
114
|
+
"config": {
|
|
115
|
+
"forceLogin": false,
|
|
116
|
+
"qrcodeTerminal": true,
|
|
117
|
+
"allowedUsers": [],
|
|
118
|
+
"systemPrompt": "你是一个有帮助的AI助手。回复内容不要使用markdown格式文本"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"email": {
|
|
122
|
+
"enabled": true,
|
|
123
|
+
"config": {}
|
|
124
|
+
},
|
|
125
|
+
"subagent-manager": {
|
|
126
|
+
"enabled": true,
|
|
127
|
+
"config": {
|
|
128
|
+
"agentsDir": "D:\\code\\vb-agent\\.agent\\agents",
|
|
129
|
+
"agents": [
|
|
130
|
+
{
|
|
131
|
+
"name": "code-archaeologist",
|
|
132
|
+
"description": "Expert in legacy code, refactoring, and understanding undocumented systems. Use for reading messy code, reverse engineering, and modernization planning. Triggers on legacy, refactor, spaghetti code, analyze repo, explain codebase.",
|
|
133
|
+
"tools": "Read, Grep, Glob, Edit, Write",
|
|
134
|
+
"model": "inherit",
|
|
135
|
+
"skills": "clean-code, refactoring-patterns, code-review-checklist",
|
|
136
|
+
"_fromDir": true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "data-analyst",
|
|
140
|
+
"description": "Expert in data analysis, visualization, statistics, and Python data processing. Use for pandas, matplotlib, CSV analysis, statistical tests, and generating charts. Triggers on analyze data, chart, plot, statistics, csv, excel, pandas, matplotlib, correlation, trend.",
|
|
141
|
+
"tools": "Read, Write, Glob, Grep, PythonExecute, PythonScript, PipInstall, Bash",
|
|
142
|
+
"model": "inherit",
|
|
143
|
+
"skills": "python-data, statistics-basics, visualization-patterns",
|
|
144
|
+
"_fromDir": true
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "devops-engineer",
|
|
148
|
+
"description": "Expert in deployment, server management, CI/CD, and production operations. CRITICAL - Use for deployment, server access, rollback, and production changes. HIGH RISK operations. Triggers on deploy, production, server, pm2, ssh, release, rollback, ci/cd.",
|
|
149
|
+
"tools": "Read, Grep, Glob, Bash, Edit, Write",
|
|
150
|
+
"model": "inherit",
|
|
151
|
+
"skills": "clean-code, deployment-procedures, server-management, powershell-windows, bash-linux",
|
|
152
|
+
"_fromDir": true
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "email-admin",
|
|
156
|
+
"description": "Email management expert for sending, reading, configuring emails, and monitoring inbox. Use for composing emails, checking unread messages, setting up email watches, configuring SMTP/IMAP, and email automation. Triggers on email, mail, inbox, smtp, imap, send email, read email, unread.",
|
|
157
|
+
"tools": "Read, Write, Edit, Glob, Grep, Bash, Shell, ExecuteCommand, EmailSend, EmailRead, EmailConfigure, EmailWatch, EmailUnreadCount, EmailMarkRead, EmailDelete, EmailAutoReply, Fetch",
|
|
158
|
+
"model": "inherit",
|
|
159
|
+
"skills": "clean-code",
|
|
160
|
+
"_fromDir": true
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "frontend-specialist",
|
|
164
|
+
"description": "Senior Frontend Architect who builds maintainable React/Next.js systems with performance-first mindset. Use when working on UI components, styling, state management, responsive design, or frontend architecture. Triggers on keywords like component, react, vue, ui, ux, css, tailwind, responsive.",
|
|
165
|
+
"tools": "Read, Grep, Glob, Bash, Edit, Write",
|
|
166
|
+
"model": "inherit",
|
|
167
|
+
"skills": "clean-code, nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, lint-and-validate",
|
|
168
|
+
"_fromDir": true
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "product-manager",
|
|
172
|
+
"description": "Expert in product requirements, user stories, and acceptance criteria. Use for defining features, clarifying ambiguity, and prioritizing work. Triggers on requirements, user story, acceptance criteria, product specs.",
|
|
173
|
+
"tools": "Read, Grep, Glob, Bash",
|
|
174
|
+
"model": "inherit",
|
|
175
|
+
"skills": "plan-writing, brainstorming, clean-code",
|
|
176
|
+
"_fromDir": true
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "python-developer",
|
|
180
|
+
"description": "Expert in Python development including web frameworks (FastAPI, Flask, Django), data processing (pandas, numpy), automation scripts, and API development. Triggers on python, fastapi, flask, django, pandas, numpy, pip, virtualenv, pytest, script, automation.",
|
|
181
|
+
"tools": "Read, Write, Glob, Grep, SearchFile, PythonExecute, PythonScript, PipInstall, Bash",
|
|
182
|
+
"model": "inherit",
|
|
183
|
+
"skills": "python-patterns, fastapi-guide, pandas-cookbook",
|
|
184
|
+
"_fromDir": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "security-auditor",
|
|
188
|
+
"description": "Elite cybersecurity expert. Think like an attacker, defend like an expert. OWASP 2025, supply chain security, zero trust architecture. Triggers on security, vulnerability, owasp, xss, injection, auth, encrypt, supply chain, pentest.",
|
|
189
|
+
"tools": "Read, Grep, Glob, Bash, Edit, Write",
|
|
190
|
+
"model": "inherit",
|
|
191
|
+
"skills": "clean-code, vulnerability-scanner, red-team-tactics, api-patterns",
|
|
192
|
+
"_fromDir": true
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"web": {
|
|
198
|
+
"enabled": true,
|
|
199
|
+
"config": {}
|
|
200
|
+
},
|
|
201
|
+
"feishu": {
|
|
202
|
+
"enabled": false,
|
|
203
|
+
"config": {
|
|
204
|
+
"allowedUsers": []
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"test-subagent": {
|
|
208
|
+
"enabled": true,
|
|
209
|
+
"config": {}
|
|
210
|
+
},
|
|
211
|
+
"system-info": {
|
|
212
|
+
"enabled": true,
|
|
213
|
+
"config": {}
|
|
214
|
+
},
|
|
215
|
+
"proactive-agent": {
|
|
216
|
+
"enabled": true,
|
|
217
|
+
"config": {
|
|
218
|
+
"autoStart": false,
|
|
219
|
+
"exploreInterval": 30000,
|
|
220
|
+
"maxNoProgress": 5,
|
|
221
|
+
"maxIterations": 20,
|
|
222
|
+
"enableReflection": true,
|
|
223
|
+
"maxConcurrentGoals": 3,
|
|
224
|
+
"quiet": false,
|
|
225
|
+
"reflectionThreshold": 2
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"test-plugin": {
|
|
229
|
+
"enabled": true,
|
|
230
|
+
"config": {}
|
|
231
|
+
},
|
|
232
|
+
"ambient": {
|
|
233
|
+
"enabled": true,
|
|
234
|
+
"config": {
|
|
235
|
+
"enabled": true,
|
|
236
|
+
"tickInterval": 5000,
|
|
237
|
+
"cooldownPeriod": 3000,
|
|
238
|
+
"persistencePath": ".agent/data/ambient",
|
|
239
|
+
"defaultGoals": [],
|
|
240
|
+
"llmCallTimeout": 30000,
|
|
241
|
+
"actionTimeout": 20000
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"puppeteer": {
|
|
245
|
+
"enabled": false,
|
|
246
|
+
"config": {}
|
|
247
|
+
},
|
|
248
|
+
"subagents": {
|
|
249
|
+
"enabled": true,
|
|
250
|
+
"config": {
|
|
251
|
+
"agentsDir": "D:\\code\\vb-agent\\.agent\\agents",
|
|
252
|
+
"agents": []
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"MiniMax": {
|
|
4
|
+
"command": "uvx",
|
|
5
|
+
"args": ["minimax-coding-plan-mcp", "-y"],
|
|
6
|
+
"env": {
|
|
7
|
+
"MINIMAX_API_KEY": "sk-cp-jRMMNA-8Nqb3gIszeqj5thnLHpbNeLAFPfWiAH3aR_282Cr6qE7WnINOvq3b_vQ5QLybWMoYiphLYPhZCpW8Jg9zx-XmpTc9qxrVpHIB8J0JGeixxm2KhLw",
|
|
8
|
+
"MINIMAX_API_HOST": "https://api.minimaxi.com"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# GEMINI.md - Antigravity Kit
|
|
6
|
+
|
|
7
|
+
> This file defines how the AI behaves in this workspace.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## CRITICAL: AGENT & SKILL PROTOCOL (START HERE)
|
|
12
|
+
|
|
13
|
+
> **MANDATORY:** You MUST read the appropriate agent file and its skills BEFORE performing any implementation. This is the highest priority rule.
|
|
14
|
+
|
|
15
|
+
### 1. Modular Skill Loading Protocol
|
|
16
|
+
|
|
17
|
+
Agent activated → Check frontmatter "skills:" → Read SKILL.md (INDEX) → Read specific sections.
|
|
18
|
+
|
|
19
|
+
- **Selective Reading:** DO NOT read ALL files in a skill folder. Read `SKILL.md` first, then only read sections matching the user's request.
|
|
20
|
+
- **Rule Priority:** P0 (GEMINI.md) > P1 (Agent .md) > P2 (SKILL.md). All rules are binding.
|
|
21
|
+
|
|
22
|
+
### 2. Enforcement Protocol
|
|
23
|
+
|
|
24
|
+
1. **When agent is activated:**
|
|
25
|
+
- ✅ Activate: Read Rules → Check Frontmatter → Load SKILL.md → Apply All.
|
|
26
|
+
2. **Forbidden:** Never skip reading agent rules or skill instructions. "Read → Understand → Apply" is mandatory.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 📥 REQUEST CLASSIFIER (STEP 1)
|
|
31
|
+
|
|
32
|
+
**Before ANY action, classify the request:**
|
|
33
|
+
|
|
34
|
+
| Request Type | Trigger Keywords | Active Tiers | Result |
|
|
35
|
+
| ---------------- | ------------------------------------------ | ------------------------------ | --------------------------- |
|
|
36
|
+
| **QUESTION** | "what is", "how does", "explain" | TIER 0 only | Text Response |
|
|
37
|
+
| **SURVEY/INTEL** | "analyze", "list files", "overview" | TIER 0 + Explorer | Session Intel (No File) |
|
|
38
|
+
| **SIMPLE CODE** | "fix", "add", "change" (single file) | TIER 0 + TIER 1 (lite) | Inline Edit |
|
|
39
|
+
| **COMPLEX CODE** | "build", "create", "implement", "refactor" | TIER 0 + TIER 1 (full) + Agent | **{task-slug}.md Required** |
|
|
40
|
+
| **DESIGN/UI** | "design", "UI", "page", "dashboard" | TIER 0 + TIER 1 + Agent | **{task-slug}.md Required** |
|
|
41
|
+
| **SLASH CMD** | /create, /orchestrate, /debug | Command-specific flow | Variable |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🤖 INTELLIGENT AGENT ROUTING (STEP 2 - AUTO)
|
|
46
|
+
|
|
47
|
+
**ALWAYS ACTIVE: Before responding to ANY request, automatically analyze and select the best agent(s).**
|
|
48
|
+
|
|
49
|
+
> 🔴 **MANDATORY:** You MUST follow the protocol defined in `@[skills/intelligent-routing]`.
|
|
50
|
+
|
|
51
|
+
### Auto-Selection Protocol
|
|
52
|
+
|
|
53
|
+
1. **Analyze (Silent)**: Detect domains (Frontend, Backend, Security, etc.) from user request.
|
|
54
|
+
2. **Select Agent(s)**: Choose the most appropriate specialist(s).
|
|
55
|
+
3. **Inform User**: Concisely state which expertise is being applied.
|
|
56
|
+
4. **Apply**: Generate response using the selected agent's persona and rules.
|
|
57
|
+
|
|
58
|
+
### Response Format (MANDATORY)
|
|
59
|
+
|
|
60
|
+
When auto-applying an agent, inform the user:
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
🤖 **Applying knowledge of `@[agent-name]`...**
|
|
64
|
+
|
|
65
|
+
[Continue with specialized response]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Rules:**
|
|
69
|
+
|
|
70
|
+
1. **Silent Analysis**: No verbose meta-commentary ("I am analyzing...").
|
|
71
|
+
2. **Respect Overrides**: If user mentions `@agent`, use it.
|
|
72
|
+
3. **Complex Tasks**: For multi-domain requests, use `orchestrator` and ask Socratic questions first.
|
|
73
|
+
|
|
74
|
+
### ⚠️ AGENT ROUTING CHECKLIST (MANDATORY BEFORE EVERY CODE/DESIGN RESPONSE)
|
|
75
|
+
|
|
76
|
+
**Before ANY code or design work, you MUST complete this mental checklist:**
|
|
77
|
+
|
|
78
|
+
| Step | Check | If Unchecked |
|
|
79
|
+
|------|-------|--------------|
|
|
80
|
+
| 1 | Did I identify the correct agent for this domain? | → STOP. Analyze request domain first. |
|
|
81
|
+
| 2 | Did I READ the agent's `.md` file (or recall its rules)? | → STOP. Open `.agent/agents/{agent}.md` |
|
|
82
|
+
| 3 | Did I announce `🤖 Applying knowledge of @[agent]...`? | → STOP. Add announcement before response. |
|
|
83
|
+
| 4 | Did I load required skills from agent's frontmatter? | → STOP. Check `skills:` field and read them. |
|
|
84
|
+
|
|
85
|
+
**Failure Conditions:**
|
|
86
|
+
|
|
87
|
+
- ❌ Writing code without identifying an agent = **PROTOCOL VIOLATION**
|
|
88
|
+
- ❌ Skipping the announcement = **USER CANNOT VERIFY AGENT WAS USED**
|
|
89
|
+
- ❌ Ignoring agent-specific rules (e.g., Purple Ban) = **QUALITY FAILURE**
|
|
90
|
+
|
|
91
|
+
> 🔴 **Self-Check Trigger:** Every time you are about to write code or create UI, ask yourself:
|
|
92
|
+
> "Have I completed the Agent Routing Checklist?" If NO → Complete it first.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## TIER 0: UNIVERSAL RULES (Always Active)
|
|
97
|
+
|
|
98
|
+
### 🌐 Language Handling
|
|
99
|
+
|
|
100
|
+
When user's prompt is NOT in English:
|
|
101
|
+
|
|
102
|
+
1. **Internally translate** for better comprehension
|
|
103
|
+
2. **Respond in user's language** - match their communication
|
|
104
|
+
3. **Code comments/variables** remain in English
|
|
105
|
+
|
|
106
|
+
### 🧹 Clean Code (Global Mandatory)
|
|
107
|
+
|
|
108
|
+
**ALL code MUST follow `@[skills/clean-code]` rules. No exceptions.**
|
|
109
|
+
|
|
110
|
+
- **Code**: Concise, direct, no over-engineering. Self-documenting.
|
|
111
|
+
- **Testing**: Mandatory. Pyramid (Unit > Int > E2E) + AAA Pattern.
|
|
112
|
+
- **Performance**: Measure first. Adhere to 2025 standards (Core Web Vitals).
|
|
113
|
+
- **Infra/Safety**: 5-Phase Deployment. Verify secrets security.
|
|
114
|
+
|
|
115
|
+
### 📁 File Dependency Awareness
|
|
116
|
+
|
|
117
|
+
**Before modifying ANY file:**
|
|
118
|
+
|
|
119
|
+
1. Check `CODEBASE.md` → File Dependencies
|
|
120
|
+
2. Identify dependent files
|
|
121
|
+
3. Update ALL affected files together
|
|
122
|
+
|
|
123
|
+
### 🗺️ System Map Read
|
|
124
|
+
|
|
125
|
+
> 🔴 **MANDATORY:** Read `ARCHITECTURE.md` at session start to understand Agents, Skills, and Scripts.
|
|
126
|
+
|
|
127
|
+
**Path Awareness:**
|
|
128
|
+
|
|
129
|
+
- Agents: `.agent/` (Project)
|
|
130
|
+
- Skills: `.agent/skills/` (Project)
|
|
131
|
+
- Runtime Scripts: `.agent/skills/<skill>/scripts/`
|
|
132
|
+
|
|
133
|
+
### 🧠 Read → Understand → Apply
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
❌ WRONG: Read agent file → Start coding
|
|
137
|
+
✅ CORRECT: Read → Understand WHY → Apply PRINCIPLES → Code
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Before coding, answer:**
|
|
141
|
+
|
|
142
|
+
1. What is the GOAL of this agent/skill?
|
|
143
|
+
2. What PRINCIPLES must I apply?
|
|
144
|
+
3. How does this DIFFER from generic output?
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## TIER 1: CODE RULES (When Writing Code)
|
|
149
|
+
|
|
150
|
+
### 📱 Project Type Routing
|
|
151
|
+
|
|
152
|
+
| Project Type | Primary Agent | Skills |
|
|
153
|
+
| -------------------------------------- | --------------------- | ----------------------------- |
|
|
154
|
+
| **MOBILE** (iOS, Android, RN, Flutter) | `mobile-developer` | mobile-design |
|
|
155
|
+
| **WEB** (Next.js, React web) | `frontend-specialist` | frontend-design |
|
|
156
|
+
| **BACKEND** (API, server, DB) | `backend-specialist` | api-patterns, database-design |
|
|
157
|
+
|
|
158
|
+
> 🔴 **Mobile + frontend-specialist = WRONG.** Mobile = mobile-developer ONLY.
|
|
159
|
+
|
|
160
|
+
### 🛑 Socratic Gate
|
|
161
|
+
|
|
162
|
+
**For complex requests, STOP and ASK first:**
|
|
163
|
+
|
|
164
|
+
### 🛑 GLOBAL SOCRATIC GATE (TIER 0)
|
|
165
|
+
|
|
166
|
+
**MANDATORY: Every user request must pass through the Socratic Gate before ANY tool use or implementation.**
|
|
167
|
+
|
|
168
|
+
| Request Type | Strategy | Required Action |
|
|
169
|
+
| ----------------------- | -------------- | ----------------------------------------------------------------- |
|
|
170
|
+
| **New Feature / Build** | Deep Discovery | ASK minimum 3 strategic questions |
|
|
171
|
+
| **Code Edit / Bug Fix** | Context Check | Confirm understanding + ask impact questions |
|
|
172
|
+
| **Vague / Simple** | Clarification | Ask Purpose, Users, and Scope |
|
|
173
|
+
| **Full Orchestration** | Gatekeeper | **STOP** subagents until user confirms plan details |
|
|
174
|
+
| **Direct "Proceed"** | Validation | **STOP** → Even if answers are given, ask 2 "Edge Case" questions |
|
|
175
|
+
|
|
176
|
+
**Protocol:**
|
|
177
|
+
|
|
178
|
+
1. **Never Assume:** If even 1% is unclear, ASK.
|
|
179
|
+
2. **Handle Spec-heavy Requests:** When user gives a list (Answers 1, 2, 3...), do NOT skip the gate. Instead, ask about **Trade-offs** or **Edge Cases** (e.g., "LocalStorage confirmed, but should we handle data clearing or versioning?") before starting.
|
|
180
|
+
3. **Wait:** Do NOT invoke subagents or write code until the user clears the Gate.
|
|
181
|
+
4. **Reference:** Full protocol in `@[skills/brainstorming]`.
|
|
182
|
+
|
|
183
|
+
### 🏁 Final Checklist Protocol
|
|
184
|
+
|
|
185
|
+
**Trigger:** When the user says "son kontrolleri yap", "final checks", "çalıştır tüm testleri", or similar phrases.
|
|
186
|
+
|
|
187
|
+
| Task Stage | Command | Purpose |
|
|
188
|
+
| ---------------- | -------------------------------------------------- | ------------------------------ |
|
|
189
|
+
| **Manual Audit** | `python .agent/scripts/checklist.py .` | Priority-based project audit |
|
|
190
|
+
| **Pre-Deploy** | `python .agent/scripts/checklist.py . --url <URL>` | Full Suite + Performance + E2E |
|
|
191
|
+
|
|
192
|
+
**Priority Execution Order:**
|
|
193
|
+
|
|
194
|
+
1. **Security** → 2. **Lint** → 3. **Schema** → 4. **Tests** → 5. **UX** → 6. **Seo** → 7. **Lighthouse/E2E**
|
|
195
|
+
|
|
196
|
+
**Rules:**
|
|
197
|
+
|
|
198
|
+
- **Completion:** A task is NOT finished until `checklist.py` returns success.
|
|
199
|
+
- **Reporting:** If it fails, fix the **Critical** blockers first (Security/Lint).
|
|
200
|
+
|
|
201
|
+
**Available Scripts (12 total):**
|
|
202
|
+
|
|
203
|
+
| Script | Skill | When to Use |
|
|
204
|
+
| -------------------------- | --------------------- | ------------------- |
|
|
205
|
+
| `security_scan.py` | vulnerability-scanner | Always on deploy |
|
|
206
|
+
| `dependency_analyzer.py` | vulnerability-scanner | Weekly / Deploy |
|
|
207
|
+
| `lint_runner.py` | lint-and-validate | Every code change |
|
|
208
|
+
| `test_runner.py` | testing-patterns | After logic change |
|
|
209
|
+
| `schema_validator.py` | database-design | After DB change |
|
|
210
|
+
| `ux_audit.py` | frontend-design | After UI change |
|
|
211
|
+
| `accessibility_checker.py` | frontend-design | After UI change |
|
|
212
|
+
| `seo_checker.py` | seo-fundamentals | After page change |
|
|
213
|
+
| `bundle_analyzer.py` | performance-profiling | Before deploy |
|
|
214
|
+
| `mobile_audit.py` | mobile-design | After mobile change |
|
|
215
|
+
| `lighthouse_audit.py` | performance-profiling | Before deploy |
|
|
216
|
+
| `playwright_runner.py` | webapp-testing | Before deploy |
|
|
217
|
+
|
|
218
|
+
> 🔴 **Agents & Skills can invoke ANY script** via `python .agent/skills/<skill>/scripts/<script>.py`
|
|
219
|
+
|
|
220
|
+
### 🎭 Gemini Mode Mapping
|
|
221
|
+
|
|
222
|
+
| Mode | Agent | Behavior |
|
|
223
|
+
| -------- | ----------------- | -------------------------------------------- |
|
|
224
|
+
| **plan** | `project-planner` | 4-phase methodology. NO CODE before Phase 4. |
|
|
225
|
+
| **ask** | - | Focus on understanding. Ask questions. |
|
|
226
|
+
| **edit** | `orchestrator` | Execute. Check `{task-slug}.md` first. |
|
|
227
|
+
|
|
228
|
+
**Plan Mode (4-Phase):**
|
|
229
|
+
|
|
230
|
+
1. ANALYSIS → Research, questions
|
|
231
|
+
2. PLANNING → `{task-slug}.md`, task breakdown
|
|
232
|
+
3. SOLUTIONING → Architecture, design (NO CODE!)
|
|
233
|
+
4. IMPLEMENTATION → Code + tests
|
|
234
|
+
|
|
235
|
+
> 🔴 **Edit mode:** If multi-file or structural change → Offer to create `{task-slug}.md`. For single-file fixes → Proceed directly.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## TIER 2: DESIGN RULES (Reference)
|
|
240
|
+
|
|
241
|
+
> **Design rules are in the specialist agents, NOT here.**
|
|
242
|
+
|
|
243
|
+
| Task | Read |
|
|
244
|
+
| ------------ | ------------------------------- |
|
|
245
|
+
| Web UI/UX | `.agent/frontend-specialist.md` |
|
|
246
|
+
| Mobile UI/UX | `.agent/mobile-developer.md` |
|
|
247
|
+
|
|
248
|
+
**These agents contain:**
|
|
249
|
+
|
|
250
|
+
- Purple Ban (no violet/purple colors)
|
|
251
|
+
- Template Ban (no standard layouts)
|
|
252
|
+
- Anti-cliché rules
|
|
253
|
+
- Deep Design Thinking protocol
|
|
254
|
+
|
|
255
|
+
> 🔴 **For design work:** Open and READ the agent file. Rules are there.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 📁 QUICK REFERENCE
|
|
260
|
+
|
|
261
|
+
### Agents & Skills
|
|
262
|
+
|
|
263
|
+
- **Masters**: `orchestrator`, `project-planner`, `security-auditor` (Cyber/Audit), `backend-specialist` (API/DB), `frontend-specialist` (UI/UX), `mobile-developer`, `debugger`, `game-developer`
|
|
264
|
+
- **Key Skills**: `clean-code`, `brainstorming`, `app-builder`, `frontend-design`, `mobile-design`, `plan-writing`, `behavioral-modes`
|
|
265
|
+
|
|
266
|
+
### Key Scripts
|
|
267
|
+
|
|
268
|
+
- **Verify**: `.agent/scripts/verify_all.py`, `.agent/scripts/checklist.py`
|
|
269
|
+
- **Scanners**: `security_scan.py`, `dependency_analyzer.py`
|
|
270
|
+
- **Audits**: `ux_audit.py`, `mobile_audit.py`, `lighthouse_audit.py`, `seo_checker.py`
|
|
271
|
+
- **Test**: `playwright_runner.py`, `test_runner.py`
|
|
272
|
+
|
|
273
|
+
---
|