Repository navigation
feat(bin): require mr-description skill in ship brief definition of done - #19
Merged
Merged
Conversation
The no-mistakes and direct-PR ship-scaffold Definition of done now orders the crewmate to write the PR/MR description with the mr-description skill, to act as the human that skill hands its text off to instead of waiting for confirmation on an already-authorized step, and to omit a "Generated with Claude Code" trailer or other orchestration vocabulary from the description. local-only and scout are untouched: neither mode ever opens a PR/MR.
alandomio
pushed a commit
that referenced
this pull request
Sep 26, 2026
… skill The direct-PR and no-mistakes definitions of done ordered every ship worker to write the PR/MR description with ~/.claude/skills/mr-description, a skill that exists nowhere, so every worker hit a dead reference. fc4f0bf (#19) reintroduced the line that da0e670 (#17) had already removed. The worker now writes the description itself, keeps the no-trailer and no-orchestration-vocabulary rule, and is still told to create the PR/MR without waiting for confirmation on a step the brief already authorizes. The test now pins the new wording in both forge vocabularies and asserts no generated brief names mr-description, guarding against a third return.
alandomio
added a commit
that referenced
this pull request
Sep 26, 2026
… skill (#35) The direct-PR and no-mistakes definitions of done ordered every ship worker to write the PR/MR description with ~/.claude/skills/mr-description, a skill that exists nowhere, so every worker hit a dead reference. fc4f0bf (#19) reintroduced the line that da0e670 (#17) had already removed. The worker now writes the description itself, keeps the no-trailer and no-orchestration-vocabulary rule, and is still told to create the PR/MR without waiting for confirmation on a step the brief already authorizes. The test now pins the new wording in both forge vocabularies and asserts no generated brief names mr-description, guarding against a third return. Co-authored-by: Alan Domio <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Change firstmate's shared tracked ship-brief scaffold (bin/fm-brief.sh) so every generated ship brief carries the captain's standing MR-description rule. In the ship scaffold's Definition of done, for both the no-mistakes and direct-PR variants (local-only and scout excluded, since neither ever opens a PR/MR), add one short forge-aware paragraph (using the existing PR/MR/PR-MR vocabulary derivation) stating: (1) the PR/MR description is written with the mr-description skill (~/.claude/skills/mr-description), never by hand; (2) that skill ends by offering the text to a human, and the worker IS that human here, so it must create or update the PR/MR itself and never wait for confirmation on a step the brief already authorizes; (3) no "Generated with Claude Code" trailer and no orchestration vocabulary in the description. Do not restate the skill itself. Extend the test that asserts the scaffold's generated text so it covers the new paragraph for at least the GitHub and GitLab vocabularies (the prior test_mr_description_skill_not_referenced guard existed only because the skill wasn't referenced yet, and is superseded by this change). Update bin/fm-brief.sh's header only if it enumerates the definition-of-done contents (it does not, so no header change was needed). This is shared tracked firstmate material: ship through this repo's no-mistakes pipeline, never add an agent as a commit co-author.
What Changed
bin/fm-brief.shnow emits a forge-aware paragraph in the Definition of done for both thedirect-PRandno-mistakesship modes. It orders the worker to write the PR/MR description with the mr-description skill, pre-authorizes the worker to act as the human that skill hands off to (create or update the PR/MR itself, no waiting for confirmation), and forbids a "Generated with Claude Code" trailer or orchestration vocabulary in the description. Thelocal-onlyandscoutvariants are unchanged and still never mention the skill.tests/fm-brief.test.shreplaces the oldtest_mr_description_skill_not_referencedguard withtest_mr_description_rule_present, which generates briefs against a GitHub and a GitLab project clone and asserts the new paragraph appears with the correct "pull request" / "merge request" wording in bothdirect-PRandno-mistakesmodes, with no cross-forge vocabulary leakage, while still assertinglocal-onlyandscoutbriefs never reference the skill.Risk Assessment
✅ Low: Prose-only addition to two heredoc DOD blocks using the existing forge-vocabulary variables, with a test that exercises the scaffold and asserts the generated brief for both forges; all intent constraints are satisfied and no logic or shell-quoting hazards were introduced.
Testing
Ran the targeted fm-brief scaffold test file (all pass, including the rewritten mr-description rule test), then generated real briefs for direct-PR and no-mistakes against GitHub and GitLab fixture clones plus local-only and scout, confirming the new three-sentence DOD paragraph appears with correct forge vocabulary only where a PR/MR is opened; the commit has no agent co-author and the header is untouched. No visual artifact applies since the surface is a generated markdown brief, which is included as evidence.
Evidence: DOD excerpts from generated briefs (GitHub/GitLab x direct-PR/no-mistakes, plus local-only/scout absence check)
Source: DOD excerpts from generated briefs (GitHub/GitLab x direct-PR/no-mistakes, plus local-only/scout absence check)
Evidence: Full generated brief: no-mistakes mode, GitLab project
Source: Full generated brief: no-mistakes mode, GitLab project
Evidence: Full generated brief: direct-PR mode, GitHub project
Source: Full generated brief: direct-PR mode, GitHub project
Evidence: tests/fm-brief.test.sh run log
Source: tests/fm-brief.test.sh run log
ok - fm-brief.sh: every PR/MR-opening ship brief orders the mr-description skill in its forge's vocabulary (28 ok, exit 0)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-brief.test.sh:382- The new test asserts the 'Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary' sentence only for the direct-PR/GitHub brief. Neither no-mistakes brief (GitHub or GitLab) asserts it, so a regression that drops that sentence from the no-mistakes DOD block in bin/fm-brief.sh would pass. Adding the same assert_grep after the no-mistakes/GitHub assertions closes the gap.bin/fm-brief.sh:501- In the no-mistakes DOD, the new sentence instructs the worker to 'create or update the PR/MR yourself' while the earlier line in the same block says 'Do not hand-edit, commit, or fix findings yourself while a run is active - the pipeline applies every fix.' The pipeline owns PR creation in this mode, so a worker has to infer that 'update' means writing the description onto the pipeline-opened PR/MR after the run reaches its return point. This wording is exactly what the user intent requires, so no change is requested; noting the tradeoff only.✅ **Test** - passed
✅ No issues found.
bash tests/fm-brief.test.sh(28 ok, exit 0; includes the newtest_mr_description_rule_present)Manual:FM_HOME=<tmp> bin/fm-brief.sh <id> gh-proj --mode direct-PRand--mode no-mistakesagainst a fixture clone with a github.com origin; captured DOD lines 74-76 / 88-90 of the generated brief.mdManual: same two modes against a gitlab.com-origin fixture clone (gl-proj), confirming merge request / glab /done: MRvocabularyManual:--mode local-onlyand--scoutbriefs grep count formr-descriptionis 0git log -1 --format=%B d181869 | grep -i co-authoredreturns nothing (no agent co-author trailer)Reviewedgit diff 55db226..d181869to confirm the bin/fm-brief.sh header was not modified✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.