feat(v5.2.0): Complete skills system integration and config cleanup

Core Changes:
- **Skills System**: Added codeagent, product-requirements, prototype-prompt-generator to skill-rules.json
- **Config Cleanup**: Removed deprecated gh module from config.json
- **Workflow Update**: Changed memorys/CLAUDE.md to use codeagent skill instead of codex

Details:
- config.json:88-119: Removed gh module (github-workflow directory doesn't exist)
- skills/skill-rules.json:24-114: Added 3 new skills with keyword/pattern triggers
  - codeagent: multi-backend, parallel task execution
  - product-requirements: PRD, requirements gathering
  - prototype-prompt-generator: UI/UX design specifications
- memorys/CLAUDE.md:3,24-25: Updated Codex skill → Codeagent skill

Verification:
- All skill activation tests PASS
- codeagent skill triggers correctly on keyword match

Generated with swe-agent-bot

Co-Authored-By: swe-agent-bot <agent@swe-agent.ai>
This commit is contained in:
swe-agent[bot]
2025-12-13 13:25:21 +08:00
parent 4759eb2c42
commit 9e667f0895
3 changed files with 75 additions and 33 deletions

View File

@@ -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"
}
]
}
}
}

View File

@@ -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 `<context_gathering>`, `<exploration>`, `<persistence>`, `<tool_preambles>`, `<self_reflection>`, and `<testing>` 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.

View File

@@ -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"
]
}
}
}
}