Skip to content

Conversation

@simuleite
Copy link
Contributor

What type of PR is this?

docs + feat

Check the PR title.

  • This PR title match the format: (optional scope):
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level.

(Optional) Translate the PR title into Chinese.

添加 Claude Code 配置以优化 ABCoder 工作流,并改进 MCP 工具提示词

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:

This PR consists of two commits that improve the ABCoder MCP workflow:

Commit 1: Optimized MCP tool prompts and error messages

  • Restructured tool descriptions with clear hierarchy: [DISCOVERY] level1/4 → [STRUCTURE] level2/4/3/4 → [ANALYSIS] level4/4
  • Enhanced parameter descriptions to explicitly state input sources (e.g., "output of list_repos tool")
  • Improved error messages to guide users to correct tool usage workflow

Commit 2: Added Claude Code configuration for ABCoder workflow

  • CLAUDE.md: Defines AST-Driven Coder role with MCP tool usage guidelines and SOP
  • README.md: Comprehensive configuration documentation with directory structure and workflow diagrams
  • hooks/: Auto-detection and reminder system (parse.sh, prompt.sh, reminder.sh)
  • commands/: Slash commands (/task, /schd, /recheck) for standardized development workflow
  • tmpls/CODE_TASK.md: Task template emphasizing "direct-use principle" for SubAgent execution

zh(optional):

本 PR 包含两个提交,用于优化 ABCoder MCP 工作流:

提交 1:优化 MCP 工具提示词和错误消息

  • 重构工具描述,明确层次结构:[DISCOVERY] level1/4 → [STRUCTURE] level2/4/3/4 → [ANALYSIS] level4/4
  • 增强参数描述,明确说明输入来源(如 "output of list_repos tool")
  • 改进错误消息,引导用户正确使用工具链

提交 2:添加 Claude Code 配置以支持 ABCoder 工作流

  • CLAUDE.md:定义 AST-Driven Coder 角色,包含 MCP 工具使用指南和 SOP
  • README.md:完整的配置文档,包含目录结构和工作流图
  • hooks/:自动检测和提醒系统(parse.sh, prompt.sh, reminder.sh)
  • commands/:斜杠命令(/task, /schd, /recheck)用于标准化开发工作流
  • tmpls/CODE_TASK.md:任务模板,强调"直接使用原则"以便 SubAgent 直接执行

Before (Grep/Read First):

OriginMCP1080.mp4

After (ABCoder First):

EnhanceMCP1080.mp4

Example For Slash Commands:
/schd

Schd.mp4

/task <TaskName>

Task.mp4

/recheck

Recheck1080.mp4

Execute CODE_TASK: Accurate Modify with AST Context, "First-Try success, no rewind needed."

Execute1080.mp4

(Optional) Which issue(s) this PR fixes:

@CLAassistant
Copy link

CLAassistant commented Dec 31, 2025

CLA assistant check
All committers have signed the CLA.

@welkeyever
Copy link
Member

可以更新下项目的根 README,作为入口提及一下这部分内容(和 Claude Code 本地化集成也是一个亮点)

@simuleite simuleite force-pushed the feat/more_accurate_prompt branch from 30e4295 to 9ba7bc0 Compare January 1, 2026 02:10
@welkeyever
Copy link
Member

README 中有个 conflict,rebase 一下哈

Copy link
Member

@welkeyever welkeyever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks~

@welkeyever welkeyever changed the title docs: More Accurate MCP Tool Schema and Claude Code System Prompt, Commands, Hooks for Better ABCoder Workflow Usage feat: introduce Claude Code integration Jan 8, 2026
@welkeyever welkeyever merged commit ba7a7c0 into cloudwego:main Jan 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants