From 197c8a5819b7ef79466f70ec00c2f7855b8424b4 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Sun, 15 Nov 2026 21:22:17 +0100 Subject: [PATCH 1/9] feat: add initial rdat-plan-structure.md Signed-off-by: Kenny Pflug --- .../assets/rdat-plan-structure.md | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 skills/guided-coding-write-plan/assets/rdat-plan-structure.md diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md new file mode 100644 index 0000000..4708668 --- /dev/null +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -0,0 +1,53 @@ +# RDAT Guided Coding Plan Structure + +RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details and describes the main sections of this plan. + +## Plan Structure + +Start with `# Title`, followed by exactly these sections in order. + +### 1. `## Rationale` + +Briefly state the background and the overarching problem this plan is trying to solve. + +### 2. `## Decisions` + +Each plan must have at least one high-level Decision that drives the changes of the plan. Consider Decisions as the main point for communication with superiors on why the plan exists and should be implemented. + +Try to validate each Decision by inspecting the code. Create throwaway probes (throwaway tests or throwaway projects) for further validation if required. If any of your checks fail, try to refine the Decision by yourself, or ask for input if you deem it necessary. + +The last Decision may be an `Out-of-Scope` Decision, defining what the plan will explicitly not address. + +Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. + +Be conservative with the number of Decisions, use as few as the plan needs. + +### 3. `## Acceptance Criteria` + +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. + +Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents for this plan to make an Acceptance Criterion verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. When behavior changes, require automated tests in the Acceptance Criteria. Require benchmarks only when performance is a material risk or requirement. + +Some ACs cannot be automatically verified, e.g., the quality of documentation. It's OK that a human needs to review these ACs. + +Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. + +If a plan requires a missing feedback loop, make this explicit in the Decisions and Acceptance Criteria. + +Each Decision must have at least one AC which provides the means to check whether the Decision has been implemented. List the affected AC at the end in the format `(D1, D3)`. Each AC must reference at least one Decision. + +### 4. `## Technical Details` + +Provide additional information here that doesn't belong in the Decisions or Acceptance Criteria sections. These might be hints on how to implement certain aspects, like Principles or Patterns to follow, which code artifacts to create or extend, performance or threading insights, security aspects, how to structure automated tests and/or documentation. + +Avoid step-by-step instructions and exhaustive listings. Use minimal code samples only when they clarify an important contract, such as an API signature, interface, or DTO shape. Say whether an example is exact or illustrative. Avoid providing finished implementations. + +## How to Keep Plans Short and to the Point + +The main idea is to not repeat information that has already been stated. Decisions shouldn't be repeated in the Acceptance Criteria or Technical Details, they should be referenced instead. Acceptance Criteria statements shouldn't be repeated in the Technical Details. This leads to the principle "a section adds information to the previous sections and avoids duplication". + +The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. + +## One Additional Section: `## Notes for the Guided Learning Teacher` + +When it is known that it is implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skills, a plan might hold this additional section. It usually contains additional instructions for the Coding Agent on further topics it should teach during the Implementing Phase, such as SOLID, TDD, technology internals, etc. From 7d53c4ee6bc4d92fb04d0020c5c813c9e317a117 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 05:24:27 +0100 Subject: [PATCH 2/9] feat: adapt the RDAT plan structure to the evaluation findings Define a Decision by its alternatives, drop the decision-to-criterion reference format, and tighten the Acceptance Criteria and Technical Details rules based on the pre-evaluation and the fresh-start study. Also add the RDAT structure to the generated Claude adapter. Co-Authored-By: Claude Opus 5.5 --- .../write-plan/assets/rdat-plan-structure.md | 54 +++++++++++++++++++ .../assets/rdat-plan-structure.md | 37 ++++++------- 2 files changed, 73 insertions(+), 18 deletions(-) create mode 100644 claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md diff --git a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md new file mode 100644 index 0000000..35cba5e --- /dev/null +++ b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md @@ -0,0 +1,54 @@ +# RDAT Guided Coding Plan Structure + +RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details and describes the main sections of this plan. + +## Plan Structure + +Start with `# Title`, followed by exactly these sections in order. + +### 1. `## Rationale` + +In one or two sentences, state the background and the problem this plan solves. + +### 2. `## Decisions` + +Decisions are the main point for communication with superiors: a reader who reads only this section knows what will be built and why. + +A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. + +Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Be conservative with the number of Decisions, use as few as the plan needs. + +Validate each Decision by inspecting the code, and check the claims of the ticket the same way. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a check contradicts a Decision you made, refine it. If it contradicts a Decision the user made, ask the user. + +The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. + +### 3. `## Acceptance Criteria` + +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. + +Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. + +- When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. +- Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. +- Require benchmarks only when performance is a material risk or requirement. +- Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. +- Some ACs cannot be automatically verified, e.g., the quality of documentation or behavior on another operating system. State what a human checks. +- If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. + +### 4. `## Technical Details` + +Provide only what the implementer, who has not seen the planning conversation, cannot quickly see in the code: where a change goes when it is not obvious, existing code to follow, interactions with other parts of the codebase, pitfalls, performance, threading or security aspects, and how to structure automated tests. Nothing here adds a behavior, a contract, or an exclusion: that is a Decision. + +Avoid step-by-step instructions and exhaustive listings. Use minimal code samples only when they clarify an important contract, such as an API signature, interface, or DTO shape. Say whether an example is exact or illustrative; an exact example must compile. Avoid providing finished implementations. + +## How to Keep Plans Short and to the Point + +State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. This leads to the principle "a section adds information to the previous sections and avoids duplication". + +The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. + +Leave out the history of your investigation and everything the implementer can see in the code. + +## One Additional Section: `## Notes for the Guided Learning Teacher` + +When it is known that it is implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skills, a plan might hold this additional section. It usually contains additional instructions for the Coding Agent on further topics it should teach during the Implementing Phase, such as SOLID, TDD, technology internals, etc. diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md index 4708668..35cba5e 100644 --- a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -8,46 +8,47 @@ Start with `# Title`, followed by exactly these sections in order. ### 1. `## Rationale` -Briefly state the background and the overarching problem this plan is trying to solve. +In one or two sentences, state the background and the problem this plan solves. ### 2. `## Decisions` -Each plan must have at least one high-level Decision that drives the changes of the plan. Consider Decisions as the main point for communication with superiors on why the plan exists and should be implemented. +Decisions are the main point for communication with superiors: a reader who reads only this section knows what will be built and why. -Try to validate each Decision by inspecting the code. Create throwaway probes (throwaway tests or throwaway projects) for further validation if required. If any of your checks fail, try to refine the Decision by yourself, or ask for input if you deem it necessary. +A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. -The last Decision may be an `Out-of-Scope` Decision, defining what the plan will explicitly not address. +Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Be conservative with the number of Decisions, use as few as the plan needs. -Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. +Validate each Decision by inspecting the code, and check the claims of the ticket the same way. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a check contradicts a Decision you made, refine it. If it contradicts a Decision the user made, ask the user. -Be conservative with the number of Decisions, use as few as the plan needs. +The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. -Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents for this plan to make an Acceptance Criterion verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. When behavior changes, require automated tests in the Acceptance Criteria. Require benchmarks only when performance is a material risk or requirement. +Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. -Some ACs cannot be automatically verified, e.g., the quality of documentation. It's OK that a human needs to review these ACs. - -Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. - -If a plan requires a missing feedback loop, make this explicit in the Decisions and Acceptance Criteria. - -Each Decision must have at least one AC which provides the means to check whether the Decision has been implemented. List the affected AC at the end in the format `(D1, D3)`. Each AC must reference at least one Decision. +- When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. +- Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. +- Require benchmarks only when performance is a material risk or requirement. +- Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. +- Some ACs cannot be automatically verified, e.g., the quality of documentation or behavior on another operating system. State what a human checks. +- If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. ### 4. `## Technical Details` -Provide additional information here that doesn't belong in the Decisions or Acceptance Criteria sections. These might be hints on how to implement certain aspects, like Principles or Patterns to follow, which code artifacts to create or extend, performance or threading insights, security aspects, how to structure automated tests and/or documentation. +Provide only what the implementer, who has not seen the planning conversation, cannot quickly see in the code: where a change goes when it is not obvious, existing code to follow, interactions with other parts of the codebase, pitfalls, performance, threading or security aspects, and how to structure automated tests. Nothing here adds a behavior, a contract, or an exclusion: that is a Decision. -Avoid step-by-step instructions and exhaustive listings. Use minimal code samples only when they clarify an important contract, such as an API signature, interface, or DTO shape. Say whether an example is exact or illustrative. Avoid providing finished implementations. +Avoid step-by-step instructions and exhaustive listings. Use minimal code samples only when they clarify an important contract, such as an API signature, interface, or DTO shape. Say whether an example is exact or illustrative; an exact example must compile. Avoid providing finished implementations. ## How to Keep Plans Short and to the Point -The main idea is to not repeat information that has already been stated. Decisions shouldn't be repeated in the Acceptance Criteria or Technical Details, they should be referenced instead. Acceptance Criteria statements shouldn't be repeated in the Technical Details. This leads to the principle "a section adds information to the previous sections and avoids duplication". +State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. This leads to the principle "a section adds information to the previous sections and avoids duplication". The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. +Leave out the history of your investigation and everything the implementer can see in the code. + ## One Additional Section: `## Notes for the Guided Learning Teacher` When it is known that it is implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skills, a plan might hold this additional section. It usually contains additional instructions for the Coding Agent on further topics it should teach during the Implementing Phase, such as SOLID, TDD, technology internals, etc. From d88f4bce335deaba2709506a69fea24ab15d10a7 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 05:27:11 +0100 Subject: [PATCH 3/9] feat: clarify premise checks, AC boundaries and human review in RDAT Apply the first review by GPT-6.1-Sol: check the premises of a Decision instead of the Decision itself and state unverified premises, keep ACs from introducing undecided behavior, name who verifies human-review ACs, stop without Feedback Loops, keep Decision IDs stable, and narrow the rule about leaving out what the code shows. Co-Authored-By: Claude Opus 5.5 --- .../write-plan/assets/rdat-plan-structure.md | 16 ++++++++-------- .../assets/rdat-plan-structure.md | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md index 35cba5e..c008a46 100644 --- a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md +++ b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md @@ -4,7 +4,7 @@ RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details ## Plan Structure -Start with `# Title`, followed by exactly these sections in order. +Start with `# Title`, followed by these four sections in order. Only the optional `## Notes for the Guided Learning Teacher` section described at the end may follow them. ### 1. `## Rationale` @@ -16,23 +16,23 @@ Decisions are the main point for communication with superiors: a reader who read A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. -Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Be conservative with the number of Decisions, use as few as the plan needs. +Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Keep existing Decision IDs when revising the draft. Be conservative with the number of Decisions, use as few as the plan needs. -Validate each Decision by inspecting the code, and check the claims of the ticket the same way. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a check contradicts a Decision you made, refine it. If it contradicts a Decision the user made, ask the user. +Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. -Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. +Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. If no Feedback Loops are listed, stop and report this to the user. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. - Require benchmarks only when performance is a material risk or requirement. - Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. -- Some ACs cannot be automatically verified, e.g., the quality of documentation or behavior on another operating system. State what a human checks. +- Some ACs need human review, e.g., the quality of documentation or platform behavior that the available Feedback Loops do not cover. State what is checked and who verifies it. - If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. ### 4. `## Technical Details` @@ -43,11 +43,11 @@ Avoid step-by-step instructions and exhaustive listings. Use minimal code sample ## How to Keep Plans Short and to the Point -State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. This leads to the principle "a section adds information to the previous sections and avoids duplication". +State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases. Technical Details add how to implement it. This leads to the principle "a section adds information to the previous sections and avoids duplication". The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. -Leave out the history of your investigation and everything the implementer can see in the code. +Leave out the history of your investigation and routine details the implementer can quickly find in the code. ## One Additional Section: `## Notes for the Guided Learning Teacher` diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md index 35cba5e..c008a46 100644 --- a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -4,7 +4,7 @@ RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details ## Plan Structure -Start with `# Title`, followed by exactly these sections in order. +Start with `# Title`, followed by these four sections in order. Only the optional `## Notes for the Guided Learning Teacher` section described at the end may follow them. ### 1. `## Rationale` @@ -16,23 +16,23 @@ Decisions are the main point for communication with superiors: a reader who read A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. -Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Be conservative with the number of Decisions, use as few as the plan needs. +Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Keep existing Decision IDs when revising the draft. Be conservative with the number of Decisions, use as few as the plan needs. -Validate each Decision by inspecting the code, and check the claims of the ticket the same way. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a check contradicts a Decision you made, refine it. If it contradicts a Decision the user made, ask the user. +Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. -Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. +Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. If no Feedback Loops are listed, stop and report this to the user. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. - Require benchmarks only when performance is a material risk or requirement. - Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. -- Some ACs cannot be automatically verified, e.g., the quality of documentation or behavior on another operating system. State what a human checks. +- Some ACs need human review, e.g., the quality of documentation or platform behavior that the available Feedback Loops do not cover. State what is checked and who verifies it. - If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. ### 4. `## Technical Details` @@ -43,11 +43,11 @@ Avoid step-by-step instructions and exhaustive listings. Use minimal code sample ## How to Keep Plans Short and to the Point -State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. This leads to the principle "a section adds information to the previous sections and avoids duplication". +State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases. Technical Details add how to implement it. This leads to the principle "a section adds information to the previous sections and avoids duplication". The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. -Leave out the history of your investigation and everything the implementer can see in the code. +Leave out the history of your investigation and routine details the implementer can quickly find in the code. ## One Additional Section: `## Notes for the Guided Learning Teacher` From 084ec75973c1a46e64e5a8177353e0776941d1ec Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 05:28:32 +0100 Subject: [PATCH 4/9] feat: shorten the RDAT Acceptance Criteria and duplication rules Apply the second review by GPT-6.1-Sol: drop explanations that repeat instructions, while keeping the user's principle and the list of typical Feedback Loops. Co-Authored-By: Claude Opus 5.5 --- .../claude-skills/write-plan/assets/rdat-plan-structure.md | 6 +++--- .../guided-coding-write-plan/assets/rdat-plan-structure.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md index c008a46..22e71b1 100644 --- a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md +++ b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md @@ -24,9 +24,9 @@ The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. -Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. If no Feedback Loops are listed, stop and report this to the user. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. +Choose the Feedback Loops of AGENTS.md and its referenced documents that actually verify an AC's outcome, such as compilers, static code analyzers, automated tests and code coverage, mutation testing, and automated benchmarks. If no Feedback Loops are listed, stop and report this to the user. - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. @@ -43,7 +43,7 @@ Avoid step-by-step instructions and exhaustive listings. Use minimal code sample ## How to Keep Plans Short and to the Point -State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases. Technical Details add how to implement it. This leads to the principle "a section adds information to the previous sections and avoids duplication". +State each fact once: a section adds information to the previous sections and avoids duplication. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases; Technical Details add how to implement it. The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md index c008a46..22e71b1 100644 --- a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -24,9 +24,9 @@ The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). The implementer will use this list later as a major means to verify their changes to the codebase. Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. -Choose the appropriate Feedback Loops of AGENTS.md and its referenced documents to make an AC verifiable in an automated fashion. Typical Feedback Loops run compilers, static code analyzers, automated tests and code coverage, mutation testing, automated benchmarks, etc. If no Feedback Loops are listed, stop and report this to the user. Make sure the Feedback Loop actually checks the outcome; a loop that passes without checking anything verifies nothing. +Choose the Feedback Loops of AGENTS.md and its referenced documents that actually verify an AC's outcome, such as compilers, static code analyzers, automated tests and code coverage, mutation testing, and automated benchmarks. If no Feedback Loops are listed, stop and report this to the user. - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. @@ -43,7 +43,7 @@ Avoid step-by-step instructions and exhaustive listings. Use minimal code sample ## How to Keep Plans Short and to the Point -State each fact once. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases. Technical Details add how to implement it. This leads to the principle "a section adds information to the previous sections and avoids duplication". +State each fact once: a section adds information to the previous sections and avoids duplication. Decisions are not repeated in the Acceptance Criteria or Technical Details; refer to them by their Decision ID instead. An exact contract, such as an error message or a verdict table, appears in one place, and the other sections refer to it. Acceptance Criteria add how an outcome is verified, such as test inputs, expected results, and failure cases; Technical Details add how to implement it. The same goes for general guidance in AGENTS.md or its referenced documents. Refer to them by a link to their section or by their rule ID instead of duplicating their information. From f84d6bcbfafde4d31b512bcec8e72eda26547244 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 05:34:58 +0100 Subject: [PATCH 5/9] feat: polish the wording of the RDAT plan structure Apply the third review by GPT-6.1-Sol: show the Decision ID format by example, smooth the slow-loop example, give the Guided Learning section a clear subject, and drop a redundant explanation. Co-Authored-By: Claude Opus 5.5 --- .../write-plan/assets/rdat-plan-structure.md | 8 ++++---- .../assets/rdat-plan-structure.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md index 22e71b1..5699320 100644 --- a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md +++ b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md @@ -1,6 +1,6 @@ # RDAT Guided Coding Plan Structure -RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details and describes the main sections of this plan. +RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details. ## Plan Structure @@ -16,7 +16,7 @@ Decisions are the main point for communication with superiors: a reader who read A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. -Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Keep existing Decision IDs when revising the draft. Be conservative with the number of Decisions, use as few as the plan needs. +Each Decision gets a **Decision ID**: `D1`, `D2`, etc. Keep existing Decision IDs when revising the draft. Use as few Decisions as the plan needs. Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. @@ -31,7 +31,7 @@ Choose the Feedback Loops of AGENTS.md and its referenced documents that actuall - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. - Require benchmarks only when performance is a material risk or requirement. -- Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. +- Consider how long a Feedback Loop runs and weigh it against its benefits. For slow loops such as mutation testing, the corresponding AC should have a high impact to warrant it. - Some ACs need human review, e.g., the quality of documentation or platform behavior that the available Feedback Loops do not cover. State what is checked and who verifies it. - If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. @@ -51,4 +51,4 @@ Leave out the history of your investigation and routine details the implementer ## One Additional Section: `## Notes for the Guided Learning Teacher` -When it is known that it is implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skills, a plan might hold this additional section. It usually contains additional instructions for the Coding Agent on further topics it should teach during the Implementing Phase, such as SOLID, TDD, technology internals, etc. +When a plan will be implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skill, it may include this additional section. Use it for further topics to teach during the Implementing Phase, such as SOLID, TDD, or technology internals. diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md index 22e71b1..5699320 100644 --- a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -1,6 +1,6 @@ # RDAT Guided Coding Plan Structure -RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details and describes the main sections of this plan. +RDAT stands for Rationale, Decisions, Acceptance Criteria, and Technical Details. ## Plan Structure @@ -16,7 +16,7 @@ Decisions are the main point for communication with superiors: a reader who read A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope, or the dependencies. State the choice, not options left to the implementer, and give a one-sentence reason when the choice is not obvious. Leave routine implementation choices and what stays unchanged out. -Each Decision gets a **Decision ID** in the format `Dx` where `x` is a positive incrementing integer number. Keep existing Decision IDs when revising the draft. Be conservative with the number of Decisions, use as few as the plan needs. +Each Decision gets a **Decision ID**: `D1`, `D2`, etc. Keep existing Decision IDs when revising the draft. Use as few Decisions as the plan needs. Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. @@ -31,7 +31,7 @@ Choose the Feedback Loops of AGENTS.md and its referenced documents that actuall - When behavior changes, require automated tests and name the cases they must cover, including negative and failure cases. - Do not add ACs for checks every change must pass anyway, such as building or running the whole test suite. - Require benchmarks only when performance is a material risk or requirement. -- Consider how long a Feedback Loop runs and weigh it against its benefits. E.g., mutation testing typically takes a long time - the corresponding AC should have a high impact to warrant it. +- Consider how long a Feedback Loop runs and weigh it against its benefits. For slow loops such as mutation testing, the corresponding AC should have a high impact to warrant it. - Some ACs need human review, e.g., the quality of documentation or platform behavior that the available Feedback Loops do not cover. State what is checked and who verifies it. - If a plan requires a missing Feedback Loop, adding it is a Decision with its own AC. @@ -51,4 +51,4 @@ Leave out the history of your investigation and routine details the implementer ## One Additional Section: `## Notes for the Guided Learning Teacher` -When it is known that it is implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skills, a plan might hold this additional section. It usually contains additional instructions for the Coding Agent on further topics it should teach during the Implementing Phase, such as SOLID, TDD, technology internals, etc. +When a plan will be implemented using the `guided-coding-implement-show-me` or the `guided-coding-implement-coach-me` skill, it may include this additional section. Use it for further topics to teach during the Implementing Phase, such as SOLID, TDD, or technology internals. From 4cd495025f45f5c4d69b17b63c8fc1be53efe7ec Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 06:35:24 +0100 Subject: [PATCH 6/9] feat: place unverified premises in their Decision and allow routine docs in RDAT ACs Apply the findings of the structure-3 evaluation: check the behavior of existing code a plan reuses, state a material unverified premise in the affected Decision with its consequence and resolution, and let tests and routine documentation refer to a Decision instead of needing their own. Also add the RDAT structure to the changelog. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 ++ .../claude-skills/write-plan/assets/rdat-plan-structure.md | 4 ++-- skills/guided-coding-write-plan/assets/rdat-plan-structure.md | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98f7ade..e0f2861 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to Guided Coding are documented here. ## [Unreleased] +- Add RDAT (Rationale, Decisions, Acceptance Criteria, Technical Details), an opt-in plan structure next to the default one: numbered Decisions summarize what a reviewer approves, and each section adds information instead of repeating earlier ones. + ## [2.0.0] - 2026-09-27 - Add UTC timestamps to plan and Plan Deviations filenames. diff --git a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md index 5699320..9091a88 100644 --- a/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md +++ b/claude-plugin/claude-skills/write-plan/assets/rdat-plan-structure.md @@ -18,13 +18,13 @@ A Decision is a point where another choice was possible and would change the beh Each Decision gets a **Decision ID**: `D1`, `D2`, etc. Keep existing Decision IDs when revising the draft. Use as few Decisions as the plan needs. -Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. +Check the premises of each Decision against the code, including relevant claims of the ticket and the behavior of existing code you plan to reuse. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a premise that matters remains unverified, state it in the affected Decision, together with its consequence and what would resolve it. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. Tests and routine documentation that verify or explain a Decision refer to it and need no Decision of their own. Choose the Feedback Loops of AGENTS.md and its referenced documents that actually verify an AC's outcome, such as compilers, static code analyzers, automated tests and code coverage, mutation testing, and automated benchmarks. If no Feedback Loops are listed, stop and report this to the user. diff --git a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md index 5699320..9091a88 100644 --- a/skills/guided-coding-write-plan/assets/rdat-plan-structure.md +++ b/skills/guided-coding-write-plan/assets/rdat-plan-structure.md @@ -18,13 +18,13 @@ A Decision is a point where another choice was possible and would change the beh Each Decision gets a **Decision ID**: `D1`, `D2`, etc. Keep existing Decision IDs when revising the draft. Use as few Decisions as the plan needs. -Check the premises of each Decision against the code, including relevant claims of the ticket. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. State in the plan any premise you could not verify. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. +Check the premises of each Decision against the code, including relevant claims of the ticket and the behavior of existing code you plan to reuse. Create throwaway probes (throwaway tests or throwaway projects) when reading the code is not enough. A probe that only simulates the behavior does not confirm it. If a premise that matters remains unverified, state it in the affected Decision, together with its consequence and what would resolve it. If a check invalidates a premise of a Decision you made, refine the Decision. If it invalidates a premise of a Decision the user made, ask the user. The last Decision may be an `Out-of-Scope` Decision, listing what the ticket or the discussion mentioned and the plan deliberately does not address. Do not invent exclusions. ### 3. `## Acceptance Criteria` -This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. +This is a list of **observable, verifiable outcomes** as unticked Markdown tasks (`- [ ]`). Each Decision except the `Out-of-Scope` Decision must be verifiable through at least one AC. ACs must not introduce behavior, contracts, scope, or dependencies that no Decision states. Tests and routine documentation that verify or explain a Decision refer to it and need no Decision of their own. Choose the Feedback Loops of AGENTS.md and its referenced documents that actually verify an AC's outcome, such as compilers, static code analyzers, automated tests and code coverage, mutation testing, and automated benchmarks. If no Feedback Loops are listed, stop and report this to the user. From b1c5738c894a9829ff2d3ee4aa47afa315e36715 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 06:47:39 +0100 Subject: [PATCH 7/9] feat: let write-plan take a plan structure when invoked The user can name a plan structure when invoking write-plan, as a path to a Markdown file or as the name of a bundled structure such as rdat-plan-structure.md. ai-plans/AGENTS.md can name one the same way; the default structure stays the fallback. Setup and the README explain how to choose a structure. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + README.md | 9 +++++++++ claude-plugin/claude-skills/setup/SKILL.md | 2 +- claude-plugin/claude-skills/write-plan/SKILL.md | 8 +++++++- skills/guided-coding-setup/SKILL.md | 2 +- skills/guided-coding-write-plan/SKILL.md | 8 +++++++- 6 files changed, 26 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0f2861..902102a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to Guided Coding are documented here. ## [Unreleased] - Add RDAT (Rationale, Decisions, Acceptance Criteria, Technical Details), an opt-in plan structure next to the default one: numbered Decisions summarize what a reviewer approves, and each section adds information instead of repeating earlier ones. +- Let `guided-coding-write-plan` take a plan structure when invoked, either a path to a Markdown file or the name of a bundled structure such as `rdat-plan-structure.md`. `ai-plans/AGENTS.md` can name one the same way. ## [2.0.0] - 2026-09-27 diff --git a/README.md b/README.md index 4adf000..9eede83 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,15 @@ The full method is documented at In most Agent Harnesses, these workflows must be invoked explicitly. All workflows set `allow_implicit_invocation: false` for Agent Plugins and `disable-model-invocation: true` for Claude Plugins, respectively. +## Plan Structures + +`guided-coding-write-plan` ships two plan structures: + +- `default-plan-structure.md` (the default): Rationale, Acceptance Criteria, Technical Details. +- `rdat-plan-structure.md` (RDAT): Rationale, Decisions, Acceptance Criteria, Technical Details. The numbered Decisions summarize what the reviewer approves, and each section adds information instead of repeating earlier ones. + +To choose a structure for one plan, name its file when invoking the skill, e.g. `/write-plan rdat-plan-structure.md` in Claude Code or `$guided-coding-write-plan rdat-plan-structure.md` in Codex. To choose it for a repository, name it in `ai-plans/AGENTS.md`, e.g. "Use the RDAT plan structure (`rdat-plan-structure.md`)." You can also describe your own structure there or pass a path to your own structure file. + ## Guided Learning Guided Learning is a variation of Guided Coding where the agent does not implement the plan itself but teaches you how to implement it. The `guided-coding-implement-show-me` and `guided-coding-implement-coach-me` skills give you two approaches for Beginning and Advanced developers that want to increase their capabilities. The regular `guided-coding-implement` skill should be used for regular Guided Coding. diff --git a/claude-plugin/claude-skills/setup/SKILL.md b/claude-plugin/claude-skills/setup/SKILL.md index 75f132c..3a0aed2 100644 --- a/claude-plugin/claude-skills/setup/SKILL.md +++ b/claude-plugin/claude-skills/setup/SKILL.md @@ -54,7 +54,7 @@ List the files you created, updated, or left unchanged, the feedback loops you d Then explain how Guided Coding can be customized, so the user knows the defaults are only a starting point: -- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. Describing a different structure in `ai-plans/AGENTS.md` overrides the default. +- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds numbered `## Decisions` as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. - **File names:** the skills use the placeholders `` (UTC, `YYYY-MM-DD-HHMM`), ``, and `` (kebab-case, shortened ticket title). Conventions for these, e.g., a `` format or a maximum length for ``, belong in `ai-plans/AGENTS.md`. - **Feedback loops:** plans should reference the feedback loops in the root `AGENTS.md` to make Acceptance Criteria verifiable. Adding or removing a feedback loop later only requires updating that list. - **Deviations:** the threshold for what counts as a material deviation can be tightened or relaxed in `ai-plans/AGENTS.md`. diff --git a/claude-plugin/claude-skills/write-plan/SKILL.md b/claude-plugin/claude-skills/write-plan/SKILL.md index 9effee8..1a6e94c 100644 --- a/claude-plugin/claude-skills/write-plan/SKILL.md +++ b/claude-plugin/claude-skills/write-plan/SKILL.md @@ -15,7 +15,13 @@ The initial file name of the new plan file is `.md`. ` ## Plan Structure -Check whether `ai-plans/AGENTS.md` contains the plan structure. If not, fall back to `assets/default-plan-structure.md` relative to this skill file. +Use the first plan structure that applies: + +1. A plan structure the user names when invoking this skill: a path to a Markdown file, or the name of a file in `assets/` relative to this skill file, such as `rdat-plan-structure.md`. +2. A plan structure that `ai-plans/AGENTS.md` names in the same way or describes itself. +3. `assets/default-plan-structure.md` relative to this skill file. + +If a named file does not exist, stop and report it. ## What Happens After Writing a Plan? diff --git a/skills/guided-coding-setup/SKILL.md b/skills/guided-coding-setup/SKILL.md index 4d97f5d..d79cc88 100644 --- a/skills/guided-coding-setup/SKILL.md +++ b/skills/guided-coding-setup/SKILL.md @@ -53,7 +53,7 @@ List the files you created, updated, or left unchanged, the feedback loops you d Then explain how Guided Coding can be customized, so the user knows the defaults are only a starting point: -- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. Describing a different structure in `ai-plans/AGENTS.md` overrides the default. +- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds numbered `## Decisions` as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. - **File names:** the skills use the placeholders `` (UTC, `YYYY-MM-DD-HHMM`), ``, and `` (kebab-case, shortened ticket title). Conventions for these, e.g., a `` format or a maximum length for ``, belong in `ai-plans/AGENTS.md`. - **Feedback loops:** plans should reference the feedback loops in the root `AGENTS.md` to make Acceptance Criteria verifiable. Adding or removing a feedback loop later only requires updating that list. - **Deviations:** the threshold for what counts as a material deviation can be tightened or relaxed in `ai-plans/AGENTS.md`. diff --git a/skills/guided-coding-write-plan/SKILL.md b/skills/guided-coding-write-plan/SKILL.md index d8b9756..c528337 100644 --- a/skills/guided-coding-write-plan/SKILL.md +++ b/skills/guided-coding-write-plan/SKILL.md @@ -14,7 +14,13 @@ The initial file name of the new plan file is `.md`. ` ## Plan Structure -Check whether `ai-plans/AGENTS.md` contains the plan structure. If not, fall back to `assets/default-plan-structure.md` relative to this skill file. +Use the first plan structure that applies: + +1. A plan structure the user names when invoking this skill: a path to a Markdown file, or the name of a file in `assets/` relative to this skill file, such as `rdat-plan-structure.md`. +2. A plan structure that `ai-plans/AGENTS.md` names in the same way or describes itself. +3. `assets/default-plan-structure.md` relative to this skill file. + +If a named file does not exist, stop and report it. ## What Happens After Writing a Plan? From fa12390ffb60ca415c28af24090d9b292fe3bc11 Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 06:51:39 +0100 Subject: [PATCH 8/9] fix: clarify plan structure paths and follow-up plans in write-plan Apply the review by GPT-6.1-Sol: resolve bare file names against the bundled assets and other relative paths against the repository root, never fall back when the selected structure is missing, let Follow-Up Plans use the selected structure, and use the namespaced Claude command in the README. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- claude-plugin/claude-skills/setup/SKILL.md | 2 +- claude-plugin/claude-skills/write-plan/SKILL.md | 4 ++-- skills/guided-coding-setup/SKILL.md | 2 +- skills/guided-coding-write-plan/SKILL.md | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9eede83..3fb4dc8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ In most Agent Harnesses, these workflows must be invoked explicitly. All workflo - `default-plan-structure.md` (the default): Rationale, Acceptance Criteria, Technical Details. - `rdat-plan-structure.md` (RDAT): Rationale, Decisions, Acceptance Criteria, Technical Details. The numbered Decisions summarize what the reviewer approves, and each section adds information instead of repeating earlier ones. -To choose a structure for one plan, name its file when invoking the skill, e.g. `/write-plan rdat-plan-structure.md` in Claude Code or `$guided-coding-write-plan rdat-plan-structure.md` in Codex. To choose it for a repository, name it in `ai-plans/AGENTS.md`, e.g. "Use the RDAT plan structure (`rdat-plan-structure.md`)." You can also describe your own structure there or pass a path to your own structure file. +To choose a structure for one plan, name its file when invoking the skill, e.g. `/guided-coding:write-plan rdat-plan-structure.md` with the Claude Code plugin or `$guided-coding-write-plan rdat-plan-structure.md` in a Codex prompt. To choose it for a repository, name it in `ai-plans/AGENTS.md`, e.g. "Use the RDAT plan structure (`rdat-plan-structure.md`)." You can also describe your own structure there or pass a path to your own structure file. ## Guided Learning diff --git a/claude-plugin/claude-skills/setup/SKILL.md b/claude-plugin/claude-skills/setup/SKILL.md index 3a0aed2..a4bc35f 100644 --- a/claude-plugin/claude-skills/setup/SKILL.md +++ b/claude-plugin/claude-skills/setup/SKILL.md @@ -54,7 +54,7 @@ List the files you created, updated, or left unchanged, the feedback loops you d Then explain how Guided Coding can be customized, so the user knows the defaults are only a starting point: -- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds numbered `## Decisions` as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. +- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds a `## Decisions` section with numbered Decisions as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. - **File names:** the skills use the placeholders `` (UTC, `YYYY-MM-DD-HHMM`), ``, and `` (kebab-case, shortened ticket title). Conventions for these, e.g., a `` format or a maximum length for ``, belong in `ai-plans/AGENTS.md`. - **Feedback loops:** plans should reference the feedback loops in the root `AGENTS.md` to make Acceptance Criteria verifiable. Adding or removing a feedback loop later only requires updating that list. - **Deviations:** the threshold for what counts as a material deviation can be tightened or relaxed in `ai-plans/AGENTS.md`. diff --git a/claude-plugin/claude-skills/write-plan/SKILL.md b/claude-plugin/claude-skills/write-plan/SKILL.md index 1a6e94c..223451d 100644 --- a/claude-plugin/claude-skills/write-plan/SKILL.md +++ b/claude-plugin/claude-skills/write-plan/SKILL.md @@ -21,7 +21,7 @@ Use the first plan structure that applies: 2. A plan structure that `ai-plans/AGENTS.md` names in the same way or describes itself. 3. `assets/default-plan-structure.md` relative to this skill file. -If a named file does not exist, stop and report it. +A bare file name refers to a file in `assets/` relative to this skill file. Resolve other relative paths from the repository root. If the selected file does not exist, stop and report it; do not fall back. ## What Happens After Writing a Plan? @@ -31,7 +31,7 @@ The user reviews the plan. They will provide feedback, aspects of the plan might A Follow-Up Plan supersedes decisions of a Frozen Plan. The decision to write one is made in the Guiding Phase, when the review of the implementation calls for larger changes. -Use the same format and file naming convention. Read every earlier document for the ticket. In the opening section of the plan (`## Rationale` in the default structure), name the plans this one follows by exact filename. +Use the plan structure selected above and the same file naming convention. Read every earlier document for the ticket. In the opening section of the plan (`## Rationale` in the default structure), name the plans this one follows by exact filename. Record only the changed decisions and outcomes. State exactly which earlier decisions this plan supersedes and why. Do not repeat unchanged decisions or contradict earlier plans silently. diff --git a/skills/guided-coding-setup/SKILL.md b/skills/guided-coding-setup/SKILL.md index d79cc88..3d8ca43 100644 --- a/skills/guided-coding-setup/SKILL.md +++ b/skills/guided-coding-setup/SKILL.md @@ -53,7 +53,7 @@ List the files you created, updated, or left unchanged, the feedback loops you d Then explain how Guided Coding can be customized, so the user knows the defaults are only a starting point: -- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds numbered `## Decisions` as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. +- **Plan structure:** `guided-coding-write-plan` uses a default structure with `## Rationale`, `## Acceptance Criteria`, and `## Technical Details`. It also ships the RDAT structure (`rdat-plan-structure.md`), which adds a `## Decisions` section with numbered Decisions as a summary for the reviewer. Name a structure file when invoking `guided-coding-write-plan`, or name it or describe your own structure in `ai-plans/AGENTS.md` to override the default. - **File names:** the skills use the placeholders `` (UTC, `YYYY-MM-DD-HHMM`), ``, and `` (kebab-case, shortened ticket title). Conventions for these, e.g., a `` format or a maximum length for ``, belong in `ai-plans/AGENTS.md`. - **Feedback loops:** plans should reference the feedback loops in the root `AGENTS.md` to make Acceptance Criteria verifiable. Adding or removing a feedback loop later only requires updating that list. - **Deviations:** the threshold for what counts as a material deviation can be tightened or relaxed in `ai-plans/AGENTS.md`. diff --git a/skills/guided-coding-write-plan/SKILL.md b/skills/guided-coding-write-plan/SKILL.md index c528337..c833a97 100644 --- a/skills/guided-coding-write-plan/SKILL.md +++ b/skills/guided-coding-write-plan/SKILL.md @@ -20,7 +20,7 @@ Use the first plan structure that applies: 2. A plan structure that `ai-plans/AGENTS.md` names in the same way or describes itself. 3. `assets/default-plan-structure.md` relative to this skill file. -If a named file does not exist, stop and report it. +A bare file name refers to a file in `assets/` relative to this skill file. Resolve other relative paths from the repository root. If the selected file does not exist, stop and report it; do not fall back. ## What Happens After Writing a Plan? @@ -30,7 +30,7 @@ The user reviews the plan. They will provide feedback, aspects of the plan might A Follow-Up Plan supersedes decisions of a Frozen Plan. The decision to write one is made in the Guiding Phase, when the review of the implementation calls for larger changes. -Use the same format and file naming convention. Read every earlier document for the ticket. In the opening section of the plan (`## Rationale` in the default structure), name the plans this one follows by exact filename. +Use the plan structure selected above and the same file naming convention. Read every earlier document for the ticket. In the opening section of the plan (`## Rationale` in the default structure), name the plans this one follows by exact filename. Record only the changed decisions and outcomes. State exactly which earlier decisions this plan supersedes and why. Do not repeat unchanged decisions or contradict earlier plans silently. From 283ccde376abbb7f39b6b829fabdaa626754b07f Mon Sep 17 00:00:00 2001 From: Kenny Pflug Date: Tue, 17 Nov 2026 06:59:51 +0100 Subject: [PATCH 9/9] docs: polish Plan Structures section in README Signed-off-by: Kenny Pflug --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fb4dc8..ba43251 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,10 @@ In most Agent Harnesses, these workflows must be invoked explicitly. All workflo `guided-coding-write-plan` ships two plan structures: - `default-plan-structure.md` (the default): Rationale, Acceptance Criteria, Technical Details. -- `rdat-plan-structure.md` (RDAT): Rationale, Decisions, Acceptance Criteria, Technical Details. The numbered Decisions summarize what the reviewer approves, and each section adds information instead of repeating earlier ones. +- `rdat-plan-structure.md` (RDAT): Rationale, Decisions, Acceptance Criteria, Technical Details. The numbered Decisions summarize what the reviewer approves, and each section adds information instead of repeating earlier ones. This is intended as an improvement over the default plan structure, available as of version 2.1.0. -To choose a structure for one plan, name its file when invoking the skill, e.g. `/guided-coding:write-plan rdat-plan-structure.md` with the Claude Code plugin or `$guided-coding-write-plan rdat-plan-structure.md` in a Codex prompt. To choose it for a repository, name it in `ai-plans/AGENTS.md`, e.g. "Use the RDAT plan structure (`rdat-plan-structure.md`)." You can also describe your own structure there or pass a path to your own structure file. +To choose a structure for one plan, name its file when invoking the skill, e.g. `/guided-coding-write-plan rdat-plan-structure.md`. To choose it for a repository, name it in `ai-plans/AGENTS.md`, e.g. "Use the RDAT plan structure (`rdat-plan-structure.md`)." You can also describe your own str +ucture there or pass a path to your own structure file. ## Guided Learning