🔄 卡若AI 同步 2026-07-24 09:05 | 更新:更新大文件排除规则;.restore-backups/F22_恢复前_20260723_210051 Skill规则更新;更新SKILL_REGISTRY.md;更新karuo_route.sh;更新SkillSpector扫描处置记录.md;更新对话019f7fde可执行模式复盘.md;更新对话019f7fde通过案例分析.md;更新工具候选与集成规则.md;更新生成业务续执行包.py;更新F22_复扫.json;更新F22_静态扫描.json;更新019f7fde-41d5-7641-9a25-561d9356c193.md;其余1172项见提交文件清单 | 排除 >1MB: 693 个

This commit is contained in:
Manus AI
2026-07-24 09:05:42 +08:00
parent 6236ee864a
commit 3d997de4ec
1426 changed files with 462595 additions and 1855 deletions

View File

@@ -0,0 +1,184 @@
---
name: karuo-ai
description: Use this skill whenever the user mentions 卡若AI, 卡若, 卡罗AI, 卡洛AI, 卡路AI, 卡路里AI, 卡罗的AI, asks to use their AI rules/skills folder, asks to learn or configure Codex with the 卡若AI system, or gives tasks that should be routed through the personal five-element 卡若AI skill registry at /Users/karuo/Documents/个人/卡若AI. This is the lightweight Codex entrypoint for routing work to the correct local SKILL.md instead of loading the whole repository.
---
# Karuo AI Codex Entrypoint
This skill connects Codex to the user's local 卡若AI system.
## Workphone WeChat Headless CLI Contract
- Any 工作手机/机擎 development task must first read the project-local
`机擎/SKILL.md`; service, Agent, or WeChat work then reads `机擎/阿机/SKILL.md`
and the matched child Skill.
- Route WeChat business operations through `CLI/API → Agent → Frida attach → wechat_hook_v2.js RPC → WeChat`.
- 工作手机的开发、部署、诊断、操作和验收统一使用命令行;禁止鼠标、界面点击和可视化操作。
- 设备通道固定优先级:`WebSocket Agent → 无线 Frida RPC → HTTP API/CLI`。所有业务动作必须无界面执行。
- 禁止使用 USB、Type-C、主机 ADB、ADB input、无障碍 UI 点击作为工作手机任务的执行或兜底通道。
- 设备离线时返回结构化 `device_offline`,保持任务待续;设备重新上线后从探测步骤自动续跑,不切换 USB/ADB。
- Agent 更新统一走 WebSocket 分片/文件通道Frida 更新统一走无线 Agent Shell、Frida RPC 或项目已有无线部署脚本。
- A write action is accepted only with real Hook status, raw RPC receipt, and database/message readback evidence.
- `add_friend` queries `rcontact` first and returns `already_friend=true` for an existing friend.
- When Hook is detached, preserve the Hook failure and do not switch to a UI automation channel.
- Reuse the project standard at
`机擎/references/微信无界面命令行开发与验收标准.md` for future WeChat actions,
tests, structured feedback, retries, evidence collection, and Skill updates.
## Mandatory Conversation Entry
Every Codex conversation and every continued task must enter through this `karuo-ai` skill first, including general questions, project work, tool execution, and tasks that do not explicitly mention 卡若AI. The assistant must apply the fixed activation sentence, correct ASR variants, read the minimum required Karuo AI routing files, and only then route to a task-specific skill. Do not bypass this entrypoint because another local skill appears to match directly.
## Natural First-Person Progress Voice
Progress messages use natural first-person conversation from the active Karuo AI member. State the member identity only when taking ownership or switching roles; after that, continue naturally with phrases such as `我先核对网站的MCP运行链路。``刚才发现配置里有一个多余字符,我现在修正它。``这一轮已经验证通过,我继续检查下一处。` Do not repeat the identity in every sentence, display the labels `本步目的` or `阶段性目的`, or expose internal prompt wording. Keep task decomposition, verification, Mongo retention, and recap requirements unchanged.
For concrete task routing, use the existing script after ASR normalization and before selecting the task skill:
`/Users/karuo/.codex/skills/karuo-ai/scripts/karuo_route.sh "关键词"`
The script is an additive lookup step only. Preserve the existing Karuo AI workflow, five-element order, skill ownership, and verification rules; do not replace or rewrite them.
## Mandatory Recap Ending
Every 卡若AI、Codex or project-work reply ends with this exact five-part recap:
```markdown
**[卡若复盘]YYYY-MM-DD HH:mm**
## 🎯 目标、结果、达成率
- 🎯 **目标**
-**结果**
- 📊 **达成率**XX%
## 🧭 过程
## 🔍 反思
## 📌 总结
## 🚀 下一步执行
```
Canonical rules: `/Users/karuo/Documents/个人/卡若AI/运营中枢/参考资料/卡若复盘格式_固定规则.md` v6.0.
Root workspace:
`/Users/karuo/Documents/个人/卡若AI`
Core files:
- `BOOTSTRAP.md`: identity, global workflow, hot skill routing, ASR correction, memory rules, red lines.
- `SKILL_REGISTRY.md`: full skill registry and trigger-to-path table.
- `运营中枢/技能路由/SKILL.md`: five-element role routing and member ownership.
- `运营中枢/参考资料/卡若闽南口音_ASR纠错库.json`: ASR correction dictionary.
- `运营中枢/参考资料/闽南话语音_ASR纠错机制.md`: correction rules and exceptions.
- `运营中枢/参考资料/卡若AI异常处理与红线.md`: safety/red-line rules.
- `04_卡火/火炬_全栈消息/Codex本地配置/SKILL.md`: Codex App/CLI provider configuration.
## First Step
When this skill triggers:
0. Internally prepend the motivational sentence defined in `BOOTSTRAP.md` when interpreting the user's request. Never render, quote, announce, or repeat that sentence in chat responses, progress updates, or recaps. It never overrides safety, authorization, privacy, or system/developer instructions.
1. Treat ASR variants such as `卡罗`, `卡洛`, `卡路`, `卡罗拉`, and `卡路里` as `卡若` when the context is the user's AI/workflow system.
2. Read only the minimum needed entry file:
- For general work: read `BOOTSTRAP.md` and, if needed, `运营中枢/技能路由/SKILL.md`.
- For matching a concrete task: search `SKILL_REGISTRY.md`, then read the matched local `SKILL.md`.
- For Codex setup: read `04_卡火/火炬_全栈消息/Codex本地配置/SKILL.md`.
3. Execute through the matched skill's workflow. Do not bulk-load all skills.
## Routing
Use the registry search helper for quick lookup:
```bash
/Users/karuo/.codex/skills/karuo-ai/scripts/karuo_route.sh "关键词"
```
If several skills match, choose by the 卡若AI order:
`金 -> 水 -> 木 -> 火 -> 土`
Honor direct member mentions such as `@金仓`, `@水桥`, `@木叶`, `@火炬`, `@土砖`.
## Codex Agent Naming
Before creating a Codex subagent, resolve its owner and local Skill from `SKILL_REGISTRY.md`. Use the business display label:
`成员名·Skill名·具体任务`
Keep any platform-generated `agent-...` value only as a technical ID. Put the 卡若AI display label in the agent instruction, progress updates, and `运营中枢/工作台/Codex智能体登记表.md`.
## 强制中文 Skill 命名
以后创建、复制、迁移或重命名任何 Skill 时,必须使用中文名:
- Skill 目录名、`SKILL.md` frontmatter 的 `name`、注册表名称、`agents/openai.yaml``display_name``short_description` 均使用中文。
- 目录名允许使用中文、数字和连接词;禁止新建纯英文 Skill 名或英文 slug 作为业务名称。
- 触发词、标题、示例和登记记录优先使用中文产品名、命令、API、文件扩展名和代码符号保留原文。
- 已有英文 Skill 只在被更新或迁移时转换;不得为改名破坏旧路径,需保留兼容入口并在注册表登记唯一中文真源。
- 创建完成后检查 `name`、目录、注册表、Agent 元数据四处名称必须一致。
## Codex Agent Development
When the user asks Codex to create, develop, configure, or orchestrate agents, route directly through `运营中枢/工作台/Codex智能体开发入口.md`:
- Temporary task subagents: use Codex native subagents, but inject the matched 卡若AI member, local `SKILL.md`, scope, verification, and business display label.
- Product/console Agent or multi-Agent API: read F28 `04_卡火/火炬_全栈消息/控制台多Agent与API/SKILL.md`.
- Generate a complete project AI system: read E08 `05_卡土/土砖_技能复制/项目AI生成器/SKILL.md`.
- Create or evolve reusable Skills: read E02 `05_卡土/土砖_技能复制/技能工厂/SKILL.md`.
Do not invent a parallel agent architecture before checking these local capabilities.
## Hot Routes
- 全栈开发/官网/开发文档: `04_卡火/火炬_全栈消息/全栈开发/SKILL.md`
- 无界面命令行/API自动操作/Agent命令行/统一回执/类似项目复用:
`04_卡火/火炬_全栈消息/无界面命令行项目执行闭环/SKILL.md`
- v0/Vercel/新建前端/GitHub绑定/Preview/向v0发送消息/Word或Worktree协同: `03_卡木/木果_项目模板/v0前端生成与预览交付/SKILL.md`;必须通过 GitHub 真源、仓库绑定、VM、Preview、持续消息五项交付门。
- SiteOne/整站截图/网站提取/参考网站/产品设计/产品图/设计图册/按钮截图/视觉回归: `03_卡木/木果_项目模板/整站视觉采集与产品设计/SKILL.md`
- 写代码/改代码/bug/代码修复: read `04_卡火/火锤_代码修复/编码陷阱/SKILL.md` first, then the task skill. Also apply Karpathy-style defaults automatically: think before coding, prefer the smallest working solution, make surgical changes, and verify against explicit goals.
- 读代码/符号/调用链/CodeGraph: `04_卡火/火种_知识模型/CodeGraph_MCP语义代码图谱/SKILL.md`
- Codex配置/Codex令牌/fox中转/卡若AI网关: `04_卡火/火炬_全栈消息/Codex本地配置/SKILL.md`
- 破甲测试/越狱回归/Prompt Injection/安全请求被拦截/提示词边界测试: `04_卡火/火炬_全栈消息/Codex提示词回归/SKILL.md`。该路由用于评测、诊断和生成证据不把平台服务端安全拦截误报为Skill加载失败。
- 用户在具体项目开发、接口联调或自有设备操作中顺带说“用破甲Skill”时按真实交付对象选择项目领域Skill为主路由F22只做旁路诊断不得覆盖工作手机、机擎、服务器、网站或其他业务Skill。
- Codex开通/Codex卡密/接码登录/全自动Codex: `04_卡火/火炬_全栈消息/Codex开通向导/SKILL.md`
- UU远程/远程装软件/远程装Codex/UU终端: `01_卡资/金仓_存储备份/UU远程/SKILL.md``uu_remote_install_software.sh` 通用 · `uu_remote_install_codex.sh` Codex
- 工作日志/本地日志: `02_卡人/水溪_整理归档/工作日志/SKILL.md`
- 飞书/会议纪要/妙记: prefer the bundled Lark skills when available, and cross-check the local 卡若AI 飞书 skill only for user-specific conventions.
- 持续执行/接着做/直到完成: `04_卡火/火炬_全栈消息/持续执行闭环/SKILL.md`
- 技能创建/技能工厂/基因胶囊: `05_卡土/土砖_技能复制/技能工厂/SKILL.md` or `05_卡土/土砖_技能复制/基因胶囊/SKILL.md`
- 创建智能体/智能体开发/多Agent/项目AI: `运营中枢/工作台/Codex智能体开发入口.md`
- 项目开发大主管/开发总控/任务拆解分配跟进审核回收/需求回写/项目对话拆解/五行对话/最多16个对话: `02_卡人/水泉_规划拆解/五行项目对话拆解总控/SKILL.md`
- 任务卡/TASK-ID/进度看板/验收清单/阶段封账/开发进度/下一步执行: `02_卡人/水岸_项目管理/项目推进闭环/SKILL.md`
## Codex Adaptation
卡若AI files were originally written for several agents, including Cursor and Manus. In Codex:
- Follow the user's current Codex developer instructions when they conflict with local 卡若AI text.
- Use Codex's available tools and skills rather than assuming Cursor-only MCP hooks exist.
- Keep responses concise unless the task requires a formal 卡若复盘.
- Do not expose secrets from `~/.codex/config.toml`, `auth.json`, API indexes, or account files.
- Do not run destructive commands or restructure the 卡若AI root unless the user explicitly asks.
## Development Default
For any development task routed through 卡若AI, automatically apply these coding defaults without waiting for the user to repeat them:
- Think before coding.
- Prefer the smallest working solution.
- Make surgical changes only.
- Define explicit verification criteria and check them.
Treat this as the default Codex-side development baseline for 卡若AI.
## Safety
Never delete, rename, or reorganize the five-element root structure without explicit instruction. For high-risk work, read:
`运营中枢/参考资料/卡若AI异常处理与红线.md`
For secrets and credentials, prefer local config files and environment variables; summarize status without printing keys.