fix: broken cross-references, version sync, and enhanced command validator

- Fix /build-and-fix → /build-fix in tdd.md, plan.md (+ cursor, zh-CN)
- Fix non-existent explorer agent → planner in orchestrate.md (+ cursor, zh-CN, zh-TW)
- Fix /python-test → /tdd in python-review.md (+ cursor, zh-CN)
- Sync package.json version from 1.0.0 to 1.4.1 to match plugin.json
- Enhance validate-commands.js with cross-reference checking:
  command refs, agent path refs, skill dir refs, workflow diagrams
- Strip fenced code blocks before scanning to avoid false positives
- Skip hypothetical "Creates:" lines in evolve.md examples
- Add 46 new tests (suggest-compact, session-manager, utils, hooks)
This commit is contained in:
Affaan Mustafa
2026-02-12 16:19:04 -08:00
parent 8ff54d8b06
commit bc0520c6c1
19 changed files with 398 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ planner -> tdd-guide -> code-reviewer -> security-reviewer
错误调查与修复工作流:
```
explorer -> tdd-guide -> code-reviewer
planner -> tdd-guide -> code-reviewer
```
### refactor

View File

@@ -107,7 +107,7 @@ Agent (planner):
计划之后:
* 使用 `/tdd` 以测试驱动开发的方式实施
* 如果出现构建错误,使用 `/build-and-fix`
* 如果出现构建错误,使用 `/build-fix`
* 使用 `/code-review` 审查已完成的实施
## 相关代理

View File

@@ -189,7 +189,7 @@ with open("config.json") as f: # Good
## Integration with Other Commands
- Use `/python-test` first to ensure tests pass
- Use `/tdd` first to ensure tests pass
- Use `/code-review` for non-Python specific concerns
- Use `/python-review` before committing
- Use `/build-fix` if static analysis tools fail

View File

@@ -315,7 +315,7 @@ Never skip the RED phase. Never write code before tests.
- Use `/plan` first to understand what to build
- Use `/tdd` to implement with tests
- Use `/build-and-fix` if build errors occur
- Use `/build-fix` if build errors occur
- Use `/code-review` to review implementation
- Use `/test-coverage` to verify coverage

View File

@@ -17,7 +17,7 @@ planner -> tdd-guide -> code-reviewer -> security-reviewer
### bugfix
Bug 調查和修復工作流程:
```
explorer -> tdd-guide -> code-reviewer
planner -> tdd-guide -> code-reviewer
```
### refactor