-
Notifications
You must be signed in to change notification settings - Fork 0
feat(skills): enhance TDD skill with native format and MAXSIM integration #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,7 @@ | ||||||||||||||||||
| --- | ||||||||||||||||||
| name: tdd | ||||||||||||||||||
| description: Use when implementing any feature or bug fix — requires writing a failing test before any implementation code | ||||||||||||||||||
| context: fork | ||||||||||||||||||
| --- | ||||||||||||||||||
|
|
||||||||||||||||||
| # Test-Driven Development (TDD) | ||||||||||||||||||
|
|
@@ -112,7 +113,35 @@ Cannot check all boxes? You skipped TDD. Start over. | |||||||||||||||||
|
|
||||||||||||||||||
| ## Integration with MAXSIM | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Context Loading | ||||||||||||||||||
|
|
||||||||||||||||||
| When running within a MAXSIM project, load project context: | ||||||||||||||||||
|
|
||||||||||||||||||
| ```bash | ||||||||||||||||||
| node ~/.claude/maxsim/bin/maxsim-tools.cjs skill-context tdd | ||||||||||||||||||
| ``` | ||||||||||||||||||
|
|
||||||||||||||||||
| This returns: current phase, active plan, artifact paths, and recent decisions. Use this to: | ||||||||||||||||||
| - Reference the current plan's `<verify>` blocks when writing tests | ||||||||||||||||||
| - Know which phase you are implementing within | ||||||||||||||||||
| - Check for existing test patterns in the project | ||||||||||||||||||
|
|
||||||||||||||||||
| ### STATE.md Hooks | ||||||||||||||||||
|
|
||||||||||||||||||
| Track TDD metrics in STATE.md via the tools router: | ||||||||||||||||||
| - After each RED→GREEN→REFACTOR cycle, the executor records the cycle in the plan's task completion | ||||||||||||||||||
| - TDD violations (production code before test) are recorded as deviations | ||||||||||||||||||
| - Cycle count is tracked per task for velocity metrics | ||||||||||||||||||
|
Comment on lines
+131
to
+134
|
||||||||||||||||||
| Track TDD metrics in STATE.md via the tools router: | |
| - After each RED→GREEN→REFACTOR cycle, the executor records the cycle in the plan's task completion | |
| - TDD violations (production code before test) are recorded as deviations | |
| - Cycle count is tracked per task for velocity metrics | |
| Track TDD-related work using the existing MAXSIM tooling: | |
| - Use `state record-metric` to capture duration, tasks, and touched files for TDD-focused work. | |
| - Use commit messages and plan/task notes to indicate RED/GREEN/REFACTOR cycles for each `tdd="true"` task. | |
| - If you violate the Iron Law (implementation before a failing test), explicitly note the deviation in `STATE.md` or the relevant plan artifact. |
Copilot
AI
Mar 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The referenced artifact paths don’t match MAXSIM’s documented naming conventions: phase plans and research artifacts are typically *-PLAN.md / *-RESEARCH.md within .planning/phases/<phase-dir>/ (not PLAN.md or RESEARCH.md). Please update these bullets to point to the actual file patterns used in the workflow templates so readers can find the right artifacts.
| - Check `.planning/phases/{current}/PLAN.md` for task-specific test requirements | |
| - Reference `.planning/phases/{current}/RESEARCH.md` for test patterns discovered during research | |
| - Check `.planning/phases/{current}/*-PLAN.md` for task-specific test requirements | |
| - Reference `.planning/phases/{current}/*-RESEARCH.md` for test patterns discovered during research |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxsim-tools.cjs skill-contextdoes not appear to be a valid CLI command (the CLI command registry inpackages/cli/src/cli.tsdoesn’t includeskill-context). As written, this example will error at runtime. Please either change this to an existing command (e.g.,roadmap analyze,state,init execute-phase) or add a supportedskill-contextcommand to maxsim-tools and document its output/flags.