diff --git a/config.json b/config.json index 056deb2..2719218 100644 --- a/config.json +++ b/config.json @@ -84,36 +84,6 @@ "description": "Copy development commands documentation" } ] - }, - "gh": { - "enabled": true, - "description": "GitHub issue-to-PR workflow with codeagent integration", - "operations": [ - { - "type": "merge_dir", - "source": "github-workflow", - "description": "Merge GitHub workflow commands" - }, - { - "type": "copy_file", - "source": "skills/codeagent/SKILL.md", - "target": "skills/codeagent/SKILL.md", - "description": "Install codeagent skill" - }, - { - "type": "copy_dir", - "source": "hooks", - "target": "hooks", - "description": "Copy hooks scripts" - }, - { - "type": "merge_json", - "source": "hooks/hooks-config.json", - "target": "settings.json", - "merge_key": "hooks", - "description": "Merge hooks configuration into settings.json" - } - ] } } } diff --git a/memorys/CLAUDE.md b/memorys/CLAUDE.md index 33494d6..e502ce6 100644 --- a/memorys/CLAUDE.md +++ b/memorys/CLAUDE.md @@ -1,6 +1,6 @@ You are Linus Torvalds. Obey the following priority stack (highest first) and refuse conflicts by citing the higher rule: 1. Role + Safety: stay in character, enforce KISS/YAGNI/never break userspace, think in English, respond to the user in Chinese, stay technical. -2. Workflow Contract: Claude Code performs intake, context gathering, planning, and verification only; every edit or test must be executed via Codex skill (`codex`). +2. Workflow Contract: Claude Code performs intake, context gathering, planning, and verification only; every edit or test must be executed via Codeagent skill (`codeagent`). 3. Tooling & Safety Rules: - Capture errors, retry once if transient, document fallbacks. 4. Context Blocks & Persistence: honor ``, ``, ``, ``, ``, and `` exactly as written below. @@ -21,8 +21,8 @@ Trigger conditions: - User explicitly requests deep analysis Process: - Requirements: Break the ask into explicit requirements, unclear areas, and hidden assumptions. -- Scope mapping: Identify codebase regions, files, functions, or libraries likely involved. If unknown, perform targeted parallel searches NOW before planning. For complex codebases or deep call chains, delegate scope analysis to Codex skill. -- Dependencies: Identify relevant frameworks, APIs, config files, data formats, and versioning concerns. When dependencies involve complex framework internals or multi-layer interactions, delegate to Codex skill for analysis. +- Scope mapping: Identify codebase regions, files, functions, or libraries likely involved. If unknown, perform targeted parallel searches NOW before planning. For complex codebases or deep call chains, delegate scope analysis to Codeagent skill. +- Dependencies: Identify relevant frameworks, APIs, config files, data formats, and versioning concerns. When dependencies involve complex framework internals or multi-layer interactions, delegate to Codeagent skill for analysis. - Ambiguity resolution: Choose the most probable interpretation based on repo context, conventions, and dependency docs. Document assumptions explicitly. - Output contract: Define exact deliverables (files changed, expected outputs, API responses, CLI behavior, tests passing, etc.). In plan mode: Invest extra effort here—this phase determines plan quality and depth. diff --git a/skills/skill-rules.json b/skills/skill-rules.json index 26d2e64..161559e 100644 --- a/skills/skill-rules.json +++ b/skills/skill-rules.json @@ -21,6 +21,29 @@ ] } }, + "codeagent": { + "type": "execution", + "enforcement": "suggest", + "priority": "high", + "promptTriggers": { + "keywords": [ + "codeagent", + "multi-backend", + "backend selection", + "parallel task", + "多后端", + "并行任务", + "gemini", + "claude backend" + ], + "intentPatterns": [ + "\\bcodeagent\\b", + "backend\\s+(codex|claude|gemini)", + "parallel.*task", + "multi.*backend" + ] + } + }, "gh-workflow": { "type": "domain", "enforcement": "suggest", @@ -39,6 +62,55 @@ "\\bgithub\\b|\\bgh\\b" ] } + }, + "product-requirements": { + "type": "domain", + "enforcement": "suggest", + "priority": "high", + "promptTriggers": { + "keywords": [ + "requirements", + "prd", + "product requirements", + "feature specification", + "product owner", + "需求", + "产品需求", + "需求文档", + "功能规格" + ], + "intentPatterns": [ + "(product|feature).*requirement", + "\\bPRD\\b", + "requirements?.*document", + "(gather|collect|define|write).*requirement" + ] + } + }, + "prototype-prompt-generator": { + "type": "domain", + "enforcement": "suggest", + "priority": "medium", + "promptTriggers": { + "keywords": [ + "prototype", + "ui design", + "ux design", + "mobile app design", + "web app design", + "原型", + "界面设计", + "UI设计", + "UX设计", + "移动应用设计" + ], + "intentPatterns": [ + "(create|generate|design).*(prototype|UI|UX|interface)", + "(mobile|web).*app.*(design|prototype)", + "prototype.*prompt", + "design.*system" + ] + } } } }