Skip to content

refactor: modularize agent scripts with Epic support - #57

Merged
Gaubee merged 1 commit into
mainfrom
refactor/agent-scripts
Dec 22, 2025
Merged

Gaubee merged 1 commit into
mainfrom
refactor/agent-scripts

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

改动

将 scripts/agent-readme.ts (574行) 拆分为模块化结构:

scripts/agent/
├── cli.ts        # 主入口,命令解析
├── readme.ts     # 索引输出
├── roadmap.ts    # Project/Issue 管理
├── epic.ts       # Epic 管理(新功能)
├── whitebook.ts  # 白皮书相关
└── utils.ts      # 共享工具

新增 Epic 管理

pnpm agent --epic create "大功能" --roadmap v1 --issues 44,45,46
pnpm agent --epic list
pnpm agent --epic view 56
pnpm agent --epic sync 56     # 同步子任务状态
pnpm agent --epic add 56 47   # 添加子任务

最佳实践

  • 1 Issue = 1 Project Item
  • 大任务用 Epic Issue + Tasklist 追踪子任务
  • pnpm agent --create 自动关联 Project

- Split agent-readme.ts into scripts/agent/ modules:
  - utils.ts: shared constants and helpers
  - roadmap.ts: GitHub Project/Issue management
  - epic.ts: Epic issue creation and tracking
  - whitebook.ts: documentation navigation
  - readme.ts: index output functions
  - cli.ts: main CLI entry point

- Add Epic management commands:
  - pnpm agent --epic create <title>
  - pnpm agent --epic list
  - pnpm agent --epic view <#>
  - pnpm agent --epic sync <#>
  - pnpm agent --epic add <epic#> <issue#>

- Update CLAUDE.md to use pnpm agent
@Gaubee
Gaubee force-pushed the refactor/agent-scripts branch from b808840 to 61f6c04 Compare December 22, 2025 07:52
@Gaubee
Gaubee merged commit 41795a4 into main Dec 22, 2025
7 checks passed
@Gaubee
Gaubee deleted the refactor/agent-scripts branch January 4, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant