[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACEDS969D6ZXE8SGZSPR3B":3,"skill-same:01M6ACEDS969D6ZXE8SGZSPR3B":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M6ACEDS969D6ZXE8SGZSPR3B","groovysh",null,"apache\u002Fgroovy","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACDPCXGWGWJN1KV90SHDQB",5482,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovysh\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"\u003C!--\n  Licensed to the Apache Software Foundation (ASF) under one\n  or more contributor license agreements.  See the NOTICE file\n  distributed with this work for additional information\n  regarding copyright ownership.  The ASF licenses this file\n  to you under the Apache License, Version 2.0 (the\n  \"License\"); you may not use this file except in compliance\n  with the License.  You may obtain a copy of the License at\n\n    http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing,\n  software distributed under the License is distributed on an\n  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n  KIND, either express or implied.  See the License for the\n  specific language governing permissions and limitations\n  under the License.\n-->\n---\nname: groovysh\ndescription: AI-tooling guardrails for changes in subprojects\u002Fgroovy-groovysh\u002F — points at the subproject's canonical architecture doc (vendored JLine forks, three-layer test infrastructure, terminal-aware test patterns, command-specific quirks, JLine bump procedure), then adds the AI-specific constraints on top: no fabricated JLine API names, terminal tests must use `dumb(true).streams(...)`, no full-string ANSI assertions, fork-sync diffs go against the fork-base tag, no reformatting of fork files, hand-back for review. Use when modifying anything in that subproject's tree, bumping JLine, or syncing vendored fork files.\nlicense: Apache-2.0\ncompatibility: claude, codex, copilot, cursor, gemini, aider\nmetadata:\n  audience: contributors to apache\u002Fgroovy\n  scope: ai-tooling-groovysh-guardrails\n---\n\n# groovysh\n\nThis skill is the **AI-tooling layer** over the `groovy-groovysh`\nsubproject's architecture. The conventions themselves — the\nvendored JLine forks, the three-layer test infrastructure, the\nterminal-aware test patterns, command-specific quirks, and the\nJLine bump procedure — live in\n[`subprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md).\nThis skill cites them and adds the AI-specific guardrails: no\nfabricated JLine API names, terminal tests use\n`dumb(true).streams(...)`, no full-string ANSI assertions,\nfork-sync diffs against the fork-base tag, no reformatting of\nfork files.\n\n- [`groovy-tests`](..\u002Fgroovy-tests\u002FSKILL.md) — pair with for\n  test conventions; this skill complements it for the\n  terminal-aware testing layer.\n- [`groovy-fix-workflow`](..\u002Fgroovy-fix-workflow\u002FSKILL.md) — AI\n  guardrails for the surrounding fix workflow when a fix lands\n  in this subproject.\n- [`subprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md)\n  — canonical subproject architecture; load alongside.\n\n## When to use this skill\n\n**Use it for:**\n\n- REPL command changes\n  (`subprojects\u002Fgroovy-groovysh\u002Fsrc\u002Fmain\u002Fgroovy\u002F...\u002Fjline\u002F`).\n- Anything terminal-related: writing tests, integrating JLine\n  APIs, image rendering.\n- Bumping the JLine version in `versions.properties`.\n- Syncing vendored fork files against upstream JLine.\n\n**Don't use it for:**\n\n- Pure compiler\u002Fruntime changes elsewhere —\n  [`groovy-internals`](..\u002Fgroovy-internals\u002FSKILL.md).\n- Changes to the project-wide build (root `build.gradle`,\n  `build-logic\u002F`) — [`groovy-build`](..\u002Fgroovy-build\u002FSKILL.md).\n\n## Read first\n\n- [`subprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md)\n  — the canonical conventions this skill cites (vendored forks,\n  test layers, gotchas, JLine bump procedure).\n- [`subprojects\u002Fgroovy-groovysh\u002Fsrc\u002Fspec\u002Fdoc\u002Fgroovysh.adoc`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002Fsrc\u002Fspec\u002Fdoc\u002Fgroovysh.adoc)\n  — user-facing reference, source of truth for command\n  behaviour.\n\n## Top failure modes\n\nThese are the recurring mistakes specific to AI tooling working\nin `groovy-groovysh`:\n\n1. **Hallucinated JLine API names.** JLine has a large API\n   surface that evolves between releases. AI tooling reaches\n   for plausible-sounding method or class names. `git grep` the\n   identifier in the working tree or the upstream JLine source\n   before depending on it.\n\n2. **Auto-detecting `Terminal` in tests.**\n   `TerminalBuilder.builder().build()` probes the JVM's TTY and\n   may invoke native bindings. Use\n   `dumb(true).streams(...)` instead — see\n   [Test infrastructure](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#test-infrastructure).\n\n3. **Full-string assertions on terminal output.** ANSI escapes,\n   capability probes, and JLine layout shifts make full-string\n   compares brittle. Prefer `printer.output` for printer-based\n   tests, `terminalOutput()` for terminal-side capture, and\n   substring assertions over equality. See\n   [Subproject-specific gotchas](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#subproject-specific-gotchas).\n\n4. **Fabricating fork content when syncing.** AI tooling, when\n   asked to sync the vendored forks against upstream, may\n   \"smooth over\" diffs in ways that obscure our customisations.\n   Diff against the *fork-base* tag and preserve our changes\n   explicitly — see\n   [Vendored JLine files](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#vendored-jline-files).\n\n5. **Treating vendored forks as independent files.** The five\n   small forks reference `GroovyEngine.Format` etc. Don't\n   delete or move one without re-deriving the coupling.\n\n6. **Reformatting JLine fork files outside the change.** The\n   forks are derived from upstream BSD-licensed sources; their\n   formatting often differs from project house style. Don't\n   reformat — it makes future upstream-sync diffs unreadable.\n   Same as the project-wide \"what *not* to do\" rule in\n   [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md).\n\n7. **Calling deprecated JLine APIs in new code.** `getWidth()`\n   \u002F `getHeight()` are deprecated since JLine 4.x; new code\n   uses `getColumns()` \u002F `getRows()`. AI tooling defaults to\n   the older names if it's seen them in adjacent code — see\n   [Subproject-specific gotchas](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#subproject-specific-gotchas).\n\n## Hand-back to a human\n\nAI tooling working in `groovy-groovysh` produces drafts; humans\nreview and land. Mirrors\n[`groovy-fix-workflow`](..\u002Fgroovy-fix-workflow\u002FSKILL.md)'s\nhand-back contract: no autonomous PR, no JIRA comment, no merge,\nno `Assisted-by:` trailer on someone else's commit. For a JLine\nversion bump or fork sync, the hand-back artefact includes the\nbump itself, the fork-sync diffs (with fork-base tag named), the\n`:groovy-groovysh:test` outcome, and any deprecation warnings\nsurfaced.\n\n## Validation checklist\n\nBefore declaring a groovysh change ready:\n\n- [ ] Tests use `dumb(true).streams(...)` for any terminal they\n      construct — see\n      [Test infrastructure](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#test-infrastructure).\n- [ ] Output assertions use stable substrings, not full-string\n      compares. Prefer `printer.output`; for terminal-side use\n      `terminalOutput()`; for Posix commands use the context's\n      `out` buffer with `--color=never` where applicable.\n- [ ] No locale-, platform-, or width-dependent assumptions —\n      see\n      [Test-writing pitfalls](..\u002F..\u002F..\u002FCONTRIBUTING.md#test-writing-pitfalls).\n- [ ] `@AfterEach` closes any terminal the test constructed.\n- [ ] Network\u002FMaven tests are gated by `-Djunit.network=true`.\n- [ ] No new calls to deprecated JLine APIs\n      (`getWidth`\u002F`getHeight`).\n- [ ] If a fork file was synced, the diff against fork-base\n      distinguishes our changes from upstream — see\n      [Vendored JLine files](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md#vendored-jline-files).\n- [ ] Verified JLine API names exist (`git grep` or upstream\n      source) — no hallucinated identifiers.\n- [ ] No fork files reformatted outside the change.\n- [ ] Commit message references `GROOVY-NNNNN` where\n      applicable; AI provenance trailer per\n      [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md) if AI assisted.\n\n## References\n\n- [`subprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FARCHITECTURE.md)\n  — canonical subproject architecture and conventions.\n- [`subprojects\u002Fgroovy-groovysh\u002FAGENTS.md`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FAGENTS.md)\n  — subproject AI-tooling pointer file.\n- [`subprojects\u002Fgroovy-groovysh\u002Fsrc\u002Fspec\u002Fdoc\u002Fgroovysh.adoc`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002Fsrc\u002Fspec\u002Fdoc\u002Fgroovysh.adoc)\n  — user-facing reference.\n- [`subprojects\u002Fgroovy-groovysh\u002FLICENSE`](..\u002F..\u002F..\u002Fsubprojects\u002Fgroovy-groovysh\u002FLICENSE)\n  — provenance for the BSD-licensed vendored files.\n- `.agents\u002Fskills\u002Fgroovy-tests\u002FSKILL.md` — sister skill for\n  test conventions; load alongside.\n- `.agents\u002Fskills\u002Fgroovy-fix-workflow\u002FSKILL.md` — AI guardrails\n  for the surrounding fix workflow.\n- [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md) — root agent guide.\n",{},"master","4ab67ec26055b11dc3c98a4a350020b99fecd8bd",".agents\u002Fskills\u002Fgroovysh",1914,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy","https:\u002F\u002Fgroovy-lang.org","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-15 01:42:11",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add apache\u002Fgroovy --skill groovysh",{"tool":37,"command":38},"bunx","bunx skills add apache\u002Fgroovy --skill groovysh",{"tool":40,"command":41},"pnpm","pnpm dlx skills add apache\u002Fgroovy --skill groovysh","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovysh\u002FSKILL.md",true,[],[46,55,63,70,78,86],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6ACEBR5V55F0X8YS9EJGRW2","groovy-triage","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-triage\u002FSKILL.md",[],[52,53,54],"groovy triage","groovy","triage",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6ACE9Y7AFJV4ZERD6WPF8QS","groovy-tests","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-tests\u002FSKILL.md",[],[61,62,53],"tests","groovy tests",{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M6ACE7HZNK305VJGV3WN4P5N","groovy-skills","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-skills\u002FSKILL.md",[],[69,53],"groovy skills",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M6ACE5BJCXWJPMZD0M12H3D5","groovy-reproducer","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-reproducer\u002FSKILL.md",[],[76,77,53],"reproducer","groovy reproducer",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M6ACE2M14SX17HE4JKR57DCC","groovy-reassess","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-reassess\u002FSKILL.md",[],[84,85,53],"reassess","groovy reassess",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M6ACDZWW85YHH8R4CMK1P5G3","groovy-jira","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgroovy\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fgroovy-jira\u002FSKILL.md",[],[92,93,53],"jira","groovy jira"]