Skip to content

docs: clarify copyright-header and ground-truth rules in xtend-to-java skill#1381

Merged
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:docs/xtend-skill-header-groundtruth
Jun 1, 2026
Merged

docs: clarify copyright-header and ground-truth rules in xtend-to-java skill#1381
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:docs/xtend-skill-header-groundtruth

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

Two clarifications to the xtend-to-java skill, prompted by ambiguities hit while migrating leaf modules:

  • Copyright header: state explicitly that the Avaloq banner header REPLACES any header the source carried (a /* generated by Xtext */ stub marker or a /** */ Javadoc-style block), and that the "never invent / preserve Javadoc" rule covers class/member Javadoc only — not the copyright header.
  • Ground truth when xtend-gen/ is absent: it is gitignored and missing in a fresh checkout. Add an explicit fallback — build the module, or read a pre-converted reference .java — and forbid writing Java from the .xtend source alone.

Docs-only; touches 5 files under .agents/skills/xtend-to-java/.

🤖 Generated with Claude Code

…a skill

Three ambiguities surfaced while migrating leaf modules with the skill:

- The header rule conflicted with "preserve Javadoc exactly / never invent",
  so the migration kept the source's `/* generated by Xtext */` or `/** */`
  header instead of the Avaloq banner. Make explicit that the banner REPLACES
  any source header and that "never invent" covers class/member Javadoc only,
  not the copyright header.
- The hard rule mandates reading `xtend-gen/`, but it is gitignored and absent
  in a fresh checkout. Add an explicit fallback: build the module to generate
  it, or read a pre-converted reference branch's `.java` as the equivalent
  behavioural ground truth. Never write Java from the `.xtend` source alone.
- The skill never mentioned `src-gen/` — the MWE2/Xtext-generated `Abstract*`
  supertypes the migrated class extends/overrides. It is committed (unlike
  `xtend-gen/`) and is the authoritative source for inherited constructor
  signatures, real `@Override` targets, and Xtend-inferred return types.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the docs/xtend-skill-header-groundtruth branch from c4b7fa8 to 09d1adf Compare May 30, 2026 14:14
@joaodinissf joaodinissf requested a review from rubenporras May 30, 2026 14:43
@joaodinissf joaodinissf marked this pull request as ready for review May 30, 2026 14:43
@joaodinissf joaodinissf enabled auto-merge (rebase) May 30, 2026 16:35
@joaodinissf joaodinissf merged commit 2dcfec9 into dsldevkit:master Jun 1, 2026
4 checks passed
@joaodinissf joaodinissf deleted the docs/xtend-skill-header-groundtruth branch June 1, 2026 07:18
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.

2 participants